function getPlayerSpell (client-side)
Available since version: 0.1.10
This function will get the equipped player/npc spell.
Declaration
Item|null getPlayerSpell(int id, int slotId)
Parameters
intid: the player id.intslotId: the equipped spell slotId in range <0, 6>.
Returns Item|null
the item object or null. For more information see Item class.