Waypoint Configuration Problem

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Post Reply
Message
Author
peacemoneys1105
Posts: 8
Joined: Mon Jul 13, 2009 9:46 am

Waypoint Configuration Problem

#1 Post by peacemoneys1105 » Mon Sep 28, 2009 7:07 pm

<waypoints type="RUN">
<!-- # 1 --><waypoint x="-5477" z="3408">
__WPL:setWaypointIndex(1);
yrest(2000);
player:scan_for_NPC("Bullet");
yrest(1000);
</waypoint>
....
<!-- # 25 --><waypoint x="-2806" z="9232">
player:target_NPC("Simon");
yrest(1000);
</waypoint>
<!-- # 26 --><waypoint x="-2749" z="9231" type="TRAVEL">__WPL:reverse();</waypoint>
</waypoints>
When I start the bot it will usually work for one loop but when it returns it gets the quest again and then tries going for last waypoint.. thus getting stuck. I thought it was the WPL:reverse so I tried a different tag and that didn't help either. It does reverse around after turning in the quest so that works.

User avatar
Administrator
Site Admin
Posts: 5307
Joined: Sat Jan 05, 2008 4:21 pm

Re: Waypoint Configuration Problem

#2 Post by Administrator » Mon Sep 28, 2009 8:56 pm

When you reach waypoint #1, you are resetting the waypoint index to 1 again. This means you will probably keep trying to run to waypoint #1 forever.

Once it has reached the last waypoint and reversed and then reaches waypoint #1 again, it will still be going in reverse (hence, trying to go to waypoint #25 from waypoint #1). You should put this in waypoint #1:

Code: Select all

__WPL:setDirection(WPT_FORWARD);
__WPL:setWaypointIndex(2);
And in waypoint #25:

Code: Select all

__WPL:setDirection(WPT_BACKWARD);
__WPL:setWaypointIndex(24);
This way you can ensure that your character is running the correct direction and to the correct waypoint.

d003232
Posts: 1252
Joined: Wed Jun 03, 2009 4:27 pm

Re: Waypoint Configuration Problem

#3 Post by d003232 » Tue Sep 29, 2009 3:40 am

peacemoneys1105 wrote:It does reverse around after turning in the quest so that works.
I did that some time ago just with using a

Code: Select all

__WPL:reverse()
at the first and at the last waypoint. Or do it the way like Adin said.
The RoM Bot Online Wiki needs your help!

j_schlott
Posts: 119
Joined: Tue Aug 18, 2009 11:42 pm

Re: Waypoint Configuration Problem

#4 Post by j_schlott » Wed Sep 30, 2009 9:24 pm

[img[/img]

Code: Select all

<waypoints>
   <!-- # 1 --><waypoint x="00000" z="00000" ></waypoint>
   <!-- # 2 --><waypoint x="00000" z="00000" type="RUN">
      keyboardHold(key.VK_SHIFT);
      player:mouseclickL(440, 280, 825, 582);   <!-- Blackboard -->
      keyboardRelease(key.VK_SHIFT);
      player:rest(.5);   
      player:mouseclickL(150, 250, 825, 582);   <!-- quest -->
      player:rest(.5);   
   </waypoint>
   <!-- # 3 --><waypoint x="00000" z="00000" ></waypoint>
   <!-- # 4 --><waypoint x="00000" z="00000" >
   player:target_NPC("NPCNAME");
   player:rest(1);
   player.free_counter1 = player.free_counter1 + 1;
   if(player.free_counter1 == 10) then
     player:sleep();
   end;
   </waypoint>
</waypoints>
thats how i have mine set up, no reversing needed
Last edited by j_schlott on Mon Oct 05, 2009 1:08 pm, edited 3 times in total.

d003232
Posts: 1252
Joined: Wed Jun 03, 2009 4:27 pm

Re: Waypoint Configuration Problem

#5 Post by d003232 » Thu Oct 01, 2009 1:31 am

j_schlott wrote:[/code]thats how i have mine set up, no reversing needed
That's a good tricky solution for all the cases you have nearly intervisibility between the board and the NPC.
The RoM Bot Online Wiki needs your help!

j_schlott
Posts: 119
Joined: Tue Aug 18, 2009 11:42 pm

Re: Waypoint Configuration Problem

#6 Post by j_schlott » Mon Oct 05, 2009 1:08 pm

Image

Code: Select all

<waypoints type="RUN">
   <!-- # 1 --><waypoint x="00000" z="00000" ></waypoint>
   <!-- # 2 --><waypoint x="00000" z="00000" >
      keyboardHold(key.VK_SHIFT);
      player:mouseclickL(440, 280, 825, 582);   <!-- Blackboard --> 
      keyboardRelease(key.VK_SHIFT);
      player:rest(.5);    
      player:mouseclickL(150, 250, 825, 582);   <!-- quest -->
      player:rest(.5);   
   </waypoint>
   <!-- # 3 --><waypoint x="00000" z="00000" ></waypoint>
   <!-- # 4 --><waypoint x="00000" z="00000" ></waypoint>
   <!-- # 5 --><waypoint x="00000" z="00000" ></waypoint>
   <!-- # 6 --><waypoint x="00000" z="00000" ></waypoint>
   <!-- # 7 --><waypoint x="00000" z="00000" ></waypoint>
   <!-- # 8 --><waypoint x="00000" z="00000" ></waypoint>
   <!-- # 9 --><waypoint x="00000" z="00000" ></waypoint>
   <!-- #10 --><waypoint x="00000" z="00000" ></waypoint>
   <!-- #11 --><waypoint x="00000" z="00000" >
   player:target_NPC("NPCNAME");
   player:rest(1);
   player.free_counter1 = player.free_counter1 + 1;
   if(player.free_counter1 == 10) then
     player:sleep();
   end;
   </waypoint>
   <!-- #10 --><waypoint x="00000" z="00000" ></waypoint>
   <!-- # 9 --><waypoint x="00000" z="00000" ></waypoint>
   <!-- # 8  --><waypoint x="00000" z="00000" ></waypoint>
   <!-- # 7 --><waypoint x="00000" z="00000" ></waypoint>
   <!-- # 6 --><waypoint x="00000" z="00000" ></waypoint>
   <!-- # 5 --><waypoint x="00000" z="00000" ></waypoint>
   <!-- # 4 --><waypoint x="00000" z="00000" ></waypoint>
   <!-- # 3 --><waypoint x="00000" z="00000" ></waypoint>
</waypoints>
with a little modification you could do any daily hand in

you dont have to use reverse commands if you add the waypoints in reverse order, or even just similarly placed points for the trip back to the board

Post Reply

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 3 guests