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.<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>
Waypoint Configuration Problem
-
- Posts: 8
- Joined: Mon Jul 13, 2009 9:46 am
Waypoint Configuration Problem
- Administrator
- Site Admin
- Posts: 5307
- Joined: Sat Jan 05, 2008 4:21 pm
Re: Waypoint Configuration Problem
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:
And in waypoint #25:
This way you can ensure that your character is running the correct direction and to the correct waypoint.
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);
Code: Select all
__WPL:setDirection(WPT_BACKWARD);
__WPL:setWaypointIndex(24);
Re: Waypoint Configuration Problem
I did that some time ago just with using apeacemoneys1105 wrote:It does reverse around after turning in the quest so that works.
Code: Select all
__WPL:reverse()
The RoM Bot Online Wiki needs your help!
Re: Waypoint Configuration Problem
[img[/img]
thats how i have mine set up, no reversing needed
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>
Last edited by j_schlott on Mon Oct 05, 2009 1:08 pm, edited 3 times in total.
Re: Waypoint Configuration Problem
That's a good tricky solution for all the cases you have nearly intervisibility between the board and the NPC.j_schlott wrote:[/code]thats how i have mine set up, no reversing needed
The RoM Bot Online Wiki needs your help!
Re: Waypoint Configuration Problem
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>
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
Who is online
Users browsing this forum: No registered users and 0 guests