SRL Archive - General Botting Help

Troubles with Pathfinding


Samson420

2014-09-01 11:42:41

Hello SRL-Community

lately i'm experiencing alot of fails and stucks, when my script tries to run the Character to a defined location.

I'm using operations like

wMine := [Point(225, 79), Point(173, 111), Point(168, 179), Point(173, 248), Point(190, 313), Point(205, 350)];
if SPS.walkPath(wMine) then
minimap.waitPlayerMoving()

but sometimes the walkPath stops to early without even near the mine. I'm wondering why that is.
And i want to ask for common failsafes to prevent troubles in walking paths :).

it would be awesome if you guys could help me improve my scripting skills ^^ … i will contribute my scripts when they are working fine !

thanks in advance!
Samson420

Turpinator

2014-09-01 12:23:26

try doing this.

while true do SPS.debugMyPos();

and then login and run around your area and watch the little popup box to see if its detecting you in the proper position.

The Spark

2014-09-01 12:53:04

Most likely something wrong with your SPS map.

Samson420

2014-09-01 13:15:16

From: Turpinator
try doing this.

while true do SPS.debugMyPos();

and then login and run around your area and watch the little popup box to see if its detecting you in the proper position.


thx i will try this :)