ScriptUO
Official ScriptUO EasyUO Scripts => Script Debug => Topic started by: Ketchup on July 25, 2017, 12:12:13 PM
-
I currently have a sub for movement along the lines of this
sub move
move 6232 422
move 6220 422
move 6220 418
move 6180 418
return
I'm trying to turn it into a pathfind sub to make it more efficient but I'm having issues where if I change the "move" to event pathfind it seems to want to spam pathfinding and unlike the move sub it seems to work terribly.
this is an example of what I changed it to
sub move
event pathfind 6232 422
event pathfind 6220 422
event pathfind 6220 418
event pathfind 6180 418
return
what am I doing wrong to make it spam so much?
-
no need to create a new forum for the same issue, it hard to help and follow.
TM can you merge this plx
http://www.scriptuo.com/index.php?topic=14462.msg117655#msg117655
-
"move" executes the move command, and tries to get to your location before it continues. event pathfind executes immediately with no wait between them.
-
Not sure if you don't know this or not but there is an easyuo wiki that lists each command and what it does.
http://wiki.easyuo.com/index.php?title=Move
http://wiki.easyuo.com/index.php?title=Event_PathFind
Bob was sorta right, it does try to get to your location but unspecified like in the case of the code you posted, it will timeout after 3 seconds and get you within a few tiles. Path finding is a tad more complicated than move but obviously the results are: You wont get stuck on a twig.
-
"Sorta" right? ;)