Moderator: MacroQuest Developers
The reason ${String} was removed is because people were casting strings as strings. I'm not sure exactly why the devs CARE that people were doing this, but apparently they do. Anyway:ounvme wrote: Im pretty sure my problems lie here
/varset Classes ${String[${SpellBuff[${i},2]}].Count[,]}
/if (${Spawn[${sID}].Class.Name.Equal[${String[${SpellBuff[${i},2]}].Arg[${h},,]}]}) {
I removed the $String[ but now I have some more what look to be worse errors.
No such 'bool' member 'Arg'
test.mac@2031 (singlebuffs): /if (${Spawn[${sID}].Class.Name.Equal[${String[${SpellBuff[${i},2]}].Arg[${h},,]}]}) {
test.mac@789 (Main): /if (${Me.PctMana}>40 /if........./call SingleBuffs
Code: Select all
/varset Classes ${String[${SpellBuff[${i},2]}].Count[,]}
should be:
/varset Classes ${SpellBuff[${i},2].Count[,]}
Code: Select all
/if (${Spawn[${sID}].Class.Name.Equal[${String[${SpellBuff[${i},2]}].Arg[${h},,]}]}) {
should be:
/if (${Spawn[${sID}].Class.Name.Equal[${SpellBuff[${i},2].Arg[${h},,]}]}) {