Skip to content

function getPlayerSpellNr (client-side)

Available since version: 0.2.1

This function will get spell slot number by given item.


int getPlayerSpellNr(int id, int itemid)


  • int id: the player id.
  • int itemid: the id of equipped spell item.

Returns int

the slot number associated with given slot number with given item. If item is not found, then -1 is returned.