Code: Select all
|Buffs to be kept up on self
/declare AB_NumberOfBuffs int outer 9
/declare AB_MyBuffs[${NumberOfBuffs}] string outer
/varset AB_MyBuffs[1] "Spiritual Dominion"
/varset AB_MyBuffs[2] "Spirit of Wolf"
/varset AB_MyBuffs[3] "Infusion of Spirit"
/varset AB_MyBuffs[4] "Spiritual Vigor"
/varset AB_MyBuffs[5] "Frenzy"
/varset AB_MyBuffs[6] "Dexterity"
/varset AB_MyBuffs[7] "Furious Strength"
/varset AB_MyBuffs[8] "Regrowth"
/varset AB_MyBuffs[9] "Celerity"
/varset'AB_MyBuffs[-1]'failed, out of bounds on array
bsthunter.mac@94 (Main): /varset AB_MyBuffs[1] "Spiritual Dominion"
Ive tried using a variable /declare i int 1
in the [${1}] of my array, that doesnt work either. Ive tried putting the spell name into a variable before trying to varset the array[1]. So what am I missing? This should be easy, but ive been looking at code for to long!


