#LTargetID
- uo.dll
LTargetID
Also searchable as: #LTargetID · LTargetID · last target · target object
#LTargetID is the ID of the object you targeted last. To target any object from a script: wait for the
target cursor, set #LTargetID and #LTargetKind 1, then run
event Macro 22 (Last Target).
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.
Example
Section titled “Example”; carve a corpse with a daggerfinditem TSF C_ , #BackpackID ; a daggerset %dagger #FindIDfinditem YFM G_2 ; a corpse next to youset %corpse #FindIDset #LObjectID %daggerevent Macro 17 0target 5sset #LTargetID %corpseset #LTargetKind 1event Macro 22 0haltSee also
Based on the EasyUO wiki, edited for EasyUO Reforged. This text is available under the GNU Free Documentation License 1.2.