Skip to content

function getPlayerSpell (client-side)

Available since version: 0.1.10

This function will get the equipped player/npc spell.

Declaration

int getPlayerSpell(int id, int slotId)

Parameters

  • int id: the player id.
  • int slotId: the equipped spell slotId in range <0, 7>.

Returns int

itemId the id of equipped spell.