event PathFind makes the client walk your character to a world position, finding a way around walls and
obstacles.
Parameters
Section titled “Parameters”| Parameter | Meaning |
|---|---|
x, y |
World position, as in #CharPosX and #CharPosY. |
z |
Optional height. Default: your current #CharPosZ. |
Details
Section titled “Details”- The script does not wait for the character to arrive. To wait, compare
#CharPosXand#CharPosYwith the target in a loop, with a timeout. - It only reaches spots within about one screen. For longer trips, walk in several steps:
path findplans the whole route, and its steps are good stops along the way;path gowalks 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.
Example
Section titled “Example”Walk to a spot and wait up to 10 seconds to get there:
set %x 1450set %y 1630event PathFind %x %yset %until #SCnt + 10while #CharPosX <> %x || #CharPosY <> %y{ if #SCnt > %until break wait 5}haltSee also
Based on the EasyUO wiki, edited for EasyUO Reforged. This text is available under the GNU Free Documentation License 1.2.