Equip

From Kolmafia
Revision as of 22:06, 2 March 2010 by imported>StDoodle (moved Equip() to Equip)
Jump to navigation Jump to search

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.