How to stop running the bot after the last waypoint here
Code: Select all
<!-- # 12 --><waypoint x="2596" z="3198" y="143">
my file for Drill Ground (I want to survive).
Code: Select all
<?xml version="1.0" encoding="utf-8"?><waypoints type="TRAVEL" >
<onLoad>
--== User Option ==--
RunningSpeed = 60 -- The speed the character runs, 50 is normal. Recommended 59.
--=================--
--== Apply speed hack ==--
local playerAddress = memoryReadIntPtr(getProc(), addresses.staticbase_char, addresses.charPtr_offset);
if playerAddress ~= 0 then
memoryWriteFloat(getProc(), playerAddress + 0x40, RunningSpeed);
end
--=================--
</onLoad>
<!-- # 1 --><waypoint x="2483" z="-1385" y="53">
player:target_NPC("Guild Castle Manager");
sendMacro("ChoiceOption(2);"); player:rest(2); waitForLoadingScreen(); player:rest(2);</waypoint>
<!-- # 1 --><waypoint x="0" z="-485" y="5"> </waypoint>
<!-- # 2 --><waypoint x="-125" z="-270" y="6"> </waypoint>
<!-- # 3 --><waypoint x="-303" z="-105" y="5"> </waypoint>
<!-- # 4 --><waypoint x="-389" z="-80" y="5"> </waypoint>
<!-- # 5 --><waypoint x="-403" z="183" y="9"> player:rest(2);
player:target_Object("Drill Ground III");
sendMacro("ChoiceOption(1);"); player:rest(2); waitForLoadingScreen(); player:rest(2);
player:target_NPC("Special Training Manager");
sendMacro("ChoiceOption(2);"); yrest(200);
sendMacro("ChoiceOption(2);"); player:rest(2); waitForLoadingScreen(); </waypoint>
<!-- # 1 --><waypoint x="2074" z="4519" y="31"> fly(); </waypoint>
<!-- # 2 --><waypoint x="2128" z="4465" y="31"> </waypoint>
<!-- # 3 --><waypoint x="2209" z="4384" y="71"> </waypoint>
<!-- # 4 --><waypoint x="2277" z="4268" y="112"> </waypoint>
<!-- # 5 --><waypoint x="2355" z="4188" y="143"> </waypoint>
<!-- # 6 --><waypoint x="2426" z="4109" y="143"> </waypoint>
<!-- # 7 --><waypoint x="2558" z="3962" y="143"> </waypoint>
<!-- # 8 --><waypoint x="2591" z="3791" y="143"> </waypoint>
<!-- # 9 --><waypoint x="2593" z="3696" y="143"> flyoff(); </waypoint>
<!-- # 10 --><waypoint x="2595" z="3534" y="143"> </waypoint>
<!-- # 11 --><waypoint x="2594" z="3319" y="143"> </waypoint>
<!-- # 12 --><waypoint x="2596" z="3198" y="143">
</waypoint>
</waypoints>