Page 1 of 1
Waypoint Configuration Problem
Posted: Mon Sep 28, 2009 7:07 pm
by peacemoneys1105
<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.
Re: Waypoint Configuration Problem
Posted: Mon Sep 28, 2009 8:56 pm
by Administrator
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.
Re: Waypoint Configuration Problem
Posted: Tue Sep 29, 2009 3:40 am
by d003232
peacemoneys1105 wrote:It does reverse around after turning in the quest so that works.
I did that
some time ago just with using a
at the first and at the last waypoint. Or do it the way like Adin said.
Re: Waypoint Configuration Problem
Posted: Wed Sep 30, 2009 9:24 pm
by j_schlott
[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
Re: Waypoint Configuration Problem
Posted: Thu Oct 01, 2009 1:31 am
by d003232
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.
Re: Waypoint Configuration Problem
Posted: Mon Oct 05, 2009 1:08 pm
by j_schlott
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