Skip to content

event PathFind

Sub-commandEventNeeds client
event PathFind {x} {y} [z]
uo.dll
Pathfind

Also searchable as: event PathFind · pathfinding · walk to · go to

event PathFind makes the client walk your character to a world position, finding a way around walls and obstacles.

Parameter Meaning
x, y World position, as in #CharPosX and #CharPosY.
z Optional height. Default: your current #CharPosZ.
  • The script does not wait for the character to arrive. To wait, compare #CharPosX and #CharPosY with the target in a loop, with a timeout.
  • It only reaches spots within about one screen. For longer trips, walk in several steps: path find plans the whole route, and its steps are good stops along the way; path go walks it that way by itself.
  • When the client cannot find a way, it says so in the journal and the character does not move.

The command calls a function inside the client. On a client version where that function’s address is not known, it does nothing.

Walk to a spot and wait up to 10 seconds to get there:

set %x 1450
set %y 1630
event PathFind %x %y
set %until #SCnt + 10
while #CharPosX <> %x || #CharPosY <> %y
{
if #SCnt > %until
break
wait 5
}
halt

See also

Based on the EasyUO wiki, edited for EasyUO Reforged. This text is available under the GNU Free Documentation License 1.2.