Skip to content

#LObjectID

VariableLast actionRead / writeIDNeeds client
uo.dll
LObjectID

Also searchable as: #LObjectID · LObjectID · last object · use object

#LObjectID is the ID of the object you used last (double-clicked). Set it and run event Macro 17 (Last Object) to use any object as if you had double-clicked it.

The value lives in the client, not in the script: setting it changes it for every script attached to that client, and the client changes it too as you play. Save the old value and put it back if other scripts may rely on it.

finditem ZLF C_ , #BackpackID ; bandages
set %bandages #FindID
set %old #LObjectID
set #LObjectID %bandages
event Macro 17 0
target 2s
set #LObjectID %old
halt

See also

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