should return the magical skill used to cast spell:
abjuration
alteration
conjuration
divination
evocation
Moderator: MacroQuest Developers
Skill trainingYKW-28983 wrote:May I ask why? What use would this have with a macro, if your going to request something give an example of how you would use it.
Code: Select all
/varset a(1,0) "spell0"
.
.
.
/varset a(1,5) "spell4"
/for l0 0 to 4
/if $char(skill,$spell("$a(1,$l0)",skill))<;maxskill
/cast "$a(1,$l0)"
/next l0
Code: Select all
Spellname 1
Spellname 1
Spellname 3
....