Skip to content

function equipItemQueued (client-side)

Available since version: 0.3.9.0

Note

If you want to equip weapon/shield, first make sure that player is in WEAPONMODE_NONE.

This function is used to push equip item action on player/npc action queue.

Declaration

void equipItemQueued(int id, Item item, int slotId = -1)

Parameters

  • int id: the player id.
  • Item item: the item object. For more information see Item class.
  • int slotId: the slot id in which you want to equip item on player, e.g scrolls, runes, by default the item will be equipped on the first free slot.