Difference between revisions of "LObjectID"

From Wiki
Jump to: navigation, search
m
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
 
{{header|Last Action|rw|The #lObjectID system variable contains the ID of the last used object. You can also write to this variable and use it in conjuction with [[event Macro|event Macro]] 17 (LastObject), which will use the object as if it was double-clicked with the mouse.}}
 
{{header|Last Action|rw|The #lObjectID system variable contains the ID of the last used object. You can also write to this variable and use it in conjuction with [[event Macro|event Macro]] 17 (LastObject), which will use the object as if it was double-clicked with the mouse.}}
 +
 +
{{note|This variable is UO client dependent. Setting #LOBJECTID in one instance of EasyUO will affect the variable as it is seen by all other instances of EasyUO bound to that client. It is recommended to sanitize the variable by saving the existing value before overwriting it, then restoring the original value when the function is complete.}}
  
 
==== Example ====
 
==== Example ====
Line 9: Line 11:
  
 
</pre>
 
</pre>
{{footer}}
+
 
 +
<pre>
 +
set !_orig.lobjectid #LOBJECTID
 +
set #LOBJECTID %BandageID
 +
event macro 17
 +
set #LOBJECTID !_orig.lobjectid
 +
target 2s
 +
...
 +
</pre>
 +
=See Also=
 +
{{Last Action}}

Latest revision as of 10:09, 7 September 2007

The #lObjectID system variable contains the ID of the last used object. You can also write to this variable and use it in conjuction with event Macro 17 (LastObject), which will use the object as if it was double-clicked with the mouse.
Note: This variable is UO client dependent. Setting #LOBJECTID in one instance of EasyUO will affect the variable as it is seen by all other instances of EasyUO bound to that client. It is recommended to sanitize the variable by saving the existing value before overwriting it, then restoring the original value when the function is complete.

Example

set #lObjectID %carpentryTool
event macro 17
; crafting menu is now open
...

set !_orig.lobjectid #LOBJECTID
set #LOBJECTID %BandageID
event macro 17
set #LOBJECTID !_orig.lobjectid
target 2s
...

See Also

Last Action

  • The last action system variables are adjusted when certain activities are performed in the Ultima Online Client.
#lObjectID Returns the id of the last used object
#lObjectType Returns the type of the last used object
#lTargetID Returns the id of the last target used
#lTargetX Returns the world x-coordinate of the last target used
#lTargetY Returns the world y-coordinate of the last target used
#lTargetZ Returns the world z-coordinate of the last target used
#lTargetKind Returns the kind of what was last targeted
#lTargetTile Returns the tile last targeted
#lLiftedID Returns the id of the object last dragged/lifted
#lLiftedType Returns the type of the object last dragged/lifted
#lLiftedKind Returns if an object is being dragged/lifted
#lSkill Returns the skill last used
#lSpell Returns the last spell cast