If anyone see a problem let me know. I'm going to try it and give the results. It has failed before but since I don't have the outout to post. I can't ask a good question.
Assuming petBuffList in a string array filled out elsewhere. In this case from an ini file.
Code: Select all
Sub BuffPet
/declare indx int local
/if (${Me.Pet}) {
/target id ${Me.Pet.ID}
/for indx 1 to 8 step 1
/if(!${Me.PetBuff[${petBuffList[indx]}]}) {
/call Cast "${petBuffList[indx]}"
}
/next indx
/target clear
}
/return


