Working with code errors.
Posted: Mon Jul 25, 2005 10:29 am
I finally decided to step into the realm of this amazing utility. The help forum and wiki are good sources of info but this 1 has me stuck. I am trying to get the Cleric Bot to run but I keep getting the infamous "Due to complete misuse bla bla error. From what I read in the wiki it has to due with a change in variable declaration. My programming skills are at Qbasic level. I know a little but not near what some of you do.
WIKI PAGE [[Identify Code Errors]] Learning to trouble shoot code is a valuable lesson.
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
Unparsable in Calculation
What it looks like is the macro is testing conditions then calling the single buff routine and I think the error lies there. Any help/ideas appreciated.
WIKI PAGE [[Identify Code Errors]] Learning to trouble shoot code is a valuable lesson.
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
Unparsable in Calculation
What it looks like is the macro is testing conditions then calling the single buff routine and I think the error lies there. Any help/ideas appreciated.