Difference between revisions of "GetItemAtSlot"
From UODemo Wiki
(Created page with 'object '''getItemAtSlot'''(object ''Mobile'', integer SlotNumber);<br> If the given Mobile is not a valid mobile then NULL is returned. If the slot number is not between 1 o…') |
(No difference)
|
Revision as of 19:17, 24 November 2012
object getItemAtSlot(object Mobile, integer SlotNumber);
If the given Mobile is not a valid mobile then NULL is returned. If the slot number is not between 1 or 30 then NULL is returned. Otherwise the equipeded item at the specified index (SlotNumber) is returned.
You can use getItemAtSlot(29) to get the bank object.
There is a bug in this function. 30 is not a valid slot, 29 is the last valid one.
Due to the memory lay-out, the function will return the mobile's direction as if it were an object.
Return to the Command List.