Aller au contenu

Photo

How do I get the level of a spell being cast in a spellhook script?(Resolved)


  • Veuillez vous connecter pour répondre
1 réponse à ce sujet

#1
M. Rieder

M. Rieder
  • Members
  • 2 530 messages
I know that you use GetSpellLevel(GetLastSpell()); if you are writing an OnSpellCastAt event script.  But in the spellhook script, GetLastSpell always returns -1 and appears useless.  Do I have to use another function or... god forbid... do massive if statements with all the integers for each of the spells by level.... which incidentally have nothing to do with the level they are. 

Modifié par M. Rieder, 07 novembre 2011 - 02:25 .


#2
M. Rieder

M. Rieder
  • Members
  • 2 530 messages
GetSpellLevel(GetSpellID());