Question for Rock5

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Post Reply
Message
Author
SlashAnon
Posts: 11
Joined: Wed Mar 17, 2010 4:41 pm

Question for Rock5

#1 Post by SlashAnon » Wed Dec 01, 2010 7:46 pm

Hello,

I am just wondering where to start on creating a script that accepts a quest, goes out and gets a certain number or completed quest and then returns to npc to turn in and rinse and repeat. The only part im not sure of is the certain number or completed quests part. Thanks -Slash

SlashAnon
Posts: 11
Joined: Wed Mar 17, 2010 4:41 pm

Re: Question for Rock5

#2 Post by SlashAnon » Wed Dec 01, 2010 8:21 pm

I'm also wondering about mounting too. I checked out the egg script for some clues about the completed quest code but I am so lost. Basically what I am trying to do is this. Accept quest (mounted up), Go to location, get the right number of items to complete quest, mount up and return the quest to npc and reaccept.

atroxa
Posts: 11
Joined: Tue Sep 28, 2010 7:10 pm

Re: Question for Rock5

#3 Post by atroxa » Wed Dec 01, 2010 9:48 pm

1. Daily Quest Scripts are around just pick one and Mod it like you need it. Even with counting Quests, Changing Characters, and stoping the Bot.
i.E.: read here http://www.solarstrike.net/phpBB3/viewt ... =21&t=1762
2. There are several Mount-Addons You can use ingame and combine it with a simple sendMacro command, but also botsides:

if player:hasBuff("mount's buff") == false then
inventory:useItem("mount's name");
end;

or simple the Mount() function (not sure if it works with all Mounts/Languages.

Hope even if my name is not Rock5 I could help.

Greetz


p.s.: Learning botting is based on Searching the Forum and testing around ;-) After trying 60+ minutes around and finally got everything sortet you feel somehow really happy :-D

SlashAnon
Posts: 11
Joined: Wed Mar 17, 2010 4:41 pm

Re: Question for Rock5

#4 Post by SlashAnon » Wed Dec 01, 2010 10:31 pm

Thanks Atroxa and I did search and I'm making some progress but this is not easy for me to understand. I'm getting better though.

SlashAnon
Posts: 11
Joined: Wed Mar 17, 2010 4:41 pm

Re: Question for Rock5

#5 Post by SlashAnon » Thu Dec 02, 2010 1:23 am

I have made it a long way tonight with much study. :) I am getting stuck now. I need to know how I can get my bot to stay at waypoint #4 and not move on to waypoint #5 until the quantity of dailies items I need have been gathered.

<!-- # 4 --><waypoint x="8051" z="53158">

if 6 > inventory:getItemCount(208091) then end </waypoint>

I know that end is probably incorrect but I can't find anything on this and I'm wondering if someone can help me out.

SlashAnon
Posts: 11
Joined: Wed Mar 17, 2010 4:41 pm

Re: Question for Rock5

#6 Post by SlashAnon » Thu Dec 02, 2010 1:34 am

I went back and tagged the 5th waypoint and tried using an example from Rock's Egg script but its not working.

<!-- # 4 --><waypoint x="8051" z="53158">

if 6 > inventory:getItemCount(208091) then -- Continue
__WPL:setWaypointIndex(__WPL:findWaypointTag("Continue")); end </waypoint>

<!-- # 5 --><waypoint x="7708" z="52987" type="RUN" tag="Continue">

if player:hasBuff("Flying Rune Disk") == false then
inventory:useItem("Flying Rune Disk (Permanent)");
end; </waypoint>

runensammler
Posts: 13
Joined: Mon Apr 06, 2009 6:20 am

Re: Question for Rock5

#7 Post by runensammler » Thu Dec 02, 2010 3:52 am

I'm not used with tags and here in the Office i have no runes or bot installed but i think the solution could look like this:

(dont'n beat me if the syntax isn't correct)

If you have the desired amount of items the bot will "Continue", "else" it will do it "Again".

Code: Select all

<!-- # 4 --><waypoint x="8051" z="53158" tag="Again">

if 6 > inventory:getItemCount(208091) then -- Continue
__WPL:setWaypointIndex(__WPL:findWaypointTag("Continue"));
else --Again
__WPL:setWaypointIndex(__WPL:findWaypointTag("Again"));
end </waypoint>

<!-- # 5 --><waypoint x="7708" z="52987" type="RUN" tag="Continue">

if player:hasBuff("Flying Rune Disk") == false then
inventory:useItem("Flying Rune Disk (Permanent)");
end; </waypoint>
hope it helps

User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: Question for Rock5

#8 Post by rock5 » Thu Dec 02, 2010 4:10 am

First, don't ask for my help, specifically, when anyone might be able to help you (and maybe much sooner). Just post your question and if anyone can help, they will. I read all posts, so if no one has helped you yet I will, if I can.

So where were we.

To stay at a waypoint usually means a loop. An 'if then' statement is NOT a loop. It just takes 1 of a number of actions then moves on. What you want is a 'while' or 'repeat' loop.

On second thought I just saw runensammlers solution and that's better. By moving back to the waypoint, it gives the bot a chance to do its thing, like responding to aggro for example. Also if you get pulled from the waypoint, you return to it.

Edit: On third thought, I see an error with runensammlers solution. I'm not sure how many items you want but if you want to stay at the waypoint until you have 5, for example, then the 3rd line should be,

Code: Select all

if inventory:getItemCount(208091) >= 5  then -- Continue
  • Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
  • I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
  • How to: copy and paste in micromacro
    ________________________
    Quote:
    • “They say hard work never hurt anybody, but I figure, why take the chance.”
          • Ronald Reagan

SlashAnon
Posts: 11
Joined: Wed Mar 17, 2010 4:41 pm

Re: Question for Rock5

#9 Post by SlashAnon » Thu Dec 02, 2010 12:09 pm

The reason I aimed the post at you Rock is because I was using your work as a learning tool. Anyways, I ended up tagging the 4th waypoint and It works great. Ty everyone for the help.

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 2 guests