Equip: Difference between revisions
Jump to navigation
Jump to search
Wrote the page. |
imported>StDoodle |
(No difference)
|
Revision as of 22:06, 2 March 2010
boolean equip(slot slottype, item itemtype)
boolean equip(item itemtype)
Will attempt to equip the item. If the slot is not provided it will attempt to place it in the 'normal' position for the item. (A hat will be placed in a hat slot, a weapon in the mainhand etc.)
The return value indicates whether the item was succesfully equipped or not.
Note: If no slot is selected, accessories will only be placed in empty slots.
equip($slot[acc3],$item[hardened slime belt]);
Attempts to equip the hardened slimt belt in the accessory 3 slot.
equip($item[rave whistle]);
Attempts to equip the rave whistle as the main weapon.