Skip to content

#TargCurs

VariableExtendedRead / writeBooleanNeeds client
uo.dll
TargCurs

Also searchable as: #TargCurs · TargCurs · target cursor · pick target

#TargCurs is 1 while the client shows a target cursor and 0 otherwise. target waits for it to become 1.

Setting it to 1 shows a target cursor yourself. Whatever the user then clicks lands in #LTargetID (and #LTargetKind), without targeting anything in the game: a simple way for a script to ask “which item?”.

event SysMessage Click the item to use.
set #TargCurs 1
while #TargCurs = 1
wait 1
set %item #LTargetID
display ok You chose %item
halt

See also

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