Skip to content

function equipSpell (server-side)

Deprecated since version: 0.1.10

This function is used to equip spell on player for all players.


void equipSpell(int id, int itemId, int slotId = -1)


  • int id: the player id.
  • int itemId: the spell itemId to equip on player.
  • int slotId: the slot id in which you want to equip spell on player, by default the item will be equipped on the first free slot.