Moderator: MacroQuest Developers

Comparison operators are... == (equal) != (not equal) > (greater than) < (less than) etc etc. a single = isn't a comparison, its an assignment. Hope that helps.BadBoy wrote:What is "Couldn't find a comparison operator in '100=100'??
Code: Select all
#turbo
Sub Main
:ScanSelf
:LoopStart
/press F1
/varset v11 $target(hp,pct)
:Group2
/press F2
/Call CC2
:Group3
/press F3
/Call CC3
:Group4
/press F4
/Call CC4
:Group5
/press F5
/Call CC5
:Group6
/press F6
/Call CC6
Sub CC2
/If $target(Class)==Enchanter {
/varset v2 1
/varset v22 $target(hp,pct)
/GoTo :Group3
} Else /If $target(Class)== Magician {
/varset v2 1
/varset v22 $target(hp,pct)
/GoTo :Group3
} Else /If $target(Class)== Wizard {
/varset v2 1
/varset v22 $target(hp,pct)
/GoTo :Group3
} Else /If $target(Class)== Cleric {
/varset v2 1
/varset v22 $target(hp,pct)
/GoTo :Group3
} Else /If $target(Class)== Beastlord {
/varset v2 1
/varset v22 $target(hp,pct)
/GoTo :Group3
} Else /If $target(Class)== Druid {
/varset v2 1
/varset v22 $target(hp,pct)
/GoTo :Group3
} Else /If $target(Class)== Necromancer {
/varset v2 1
/varset v22 $target(hp,pct)
/GoTo :Group3
} Else /If $target(Class)== Shaman {
/varset v2 1
/varset v22 $target(hp,pct)
/GoTo :Group3
} Else
/varset v2 0
/varset v22 $target(hp,pct)
/GoTo :Group3
/return
Sub CC3
/If $target(Class)==Enchanter {
/varset v3 1
/GoTo :Group4
} Else /If $target(Class)== Magician {
/varset v3 1
/varset v33 $target(hp,pct)
/GoTo :Group4
} Else /If $target(Class)== Wizard {
/varset v3 1
/varset v33 $target(hp,pct)
/GoTo :Group4
} Else /If $target(Class)== Cleric {
/varset v3 1
/varset v33 $target(hp,pct)
/GoTo :Group4
} Else /If $target(Class)== Beastlord {
/varset v3 1
/varset v33 $target(hp,pct)
/GoTo :Group4
} Else /If $target(Class)== Druid {
/varset v3 1
/varset v33 $target(hp,pct)
/GoTo :Group4
} Else /If $target(Class)== Necromancer {
/varset v3 1
/varset v33 $target(hp,pct)
/GoTo :Group4
} Else /If $target(Class)== Shaman {
/varset v3 1
/varset v33 $target(hp,pct)
/GoTo :Group4
} Else
/varset v3 0
/varset v33 $target(hp,pct)
/GoTo :Group4
Sub CC4
/If $target(Class)==Enchanter {
/varset v4 1
/varset v44 $target(hp,pct)
/GoTo :Group5
} Else /If $target(Class)== Magician {
/varset v4 1
/varset v44 $target(hp,pct)
/GoTo :Group5
} Else /If $target(Class)== Wizard {
/varset v4 1
/GoTo :Group5
} Else /If $target(Class)== Cleric {
/varset v4 1
/varset v44 $target(hp,pct)
/GoTo :Group5
} Else /If $target(Class)== Beastlord {
/varset v4 1
/varset v44 $target(hp,pct)
/GoTo :Group5
} Else /If $target(Class)== Druid {
/varset v4 1
/varset v44 $target(hp,pct)
/GoTo :Group5
} Else /If $target(Class)== Necromancer {
/varset v4 1
/varset v44 $target(hp,pct)
/GoTo :Group5
} Else /If $target(Class)== Shaman {
/varset v4 1
/varset v44 $target(hp,pct)
/GoTo :Group5
} Else
/varset v4 0
/varset v44 $target(hp,pct)
/GoTo :Group5
Sub CC5
/If $target(Class)==Enchanter {
/varset v5 1
/varset v55 $target(hp,pct)
/GoTo :Group6
} Else /If $target(Class)== Magician {
/varset v5 1
/varset v55 $target(hp,pct)
/GoTo :Group6
} Else /If $target(Class)== Wizard {
/varset v5 1
/varset v55 $target(hp,pct)
/GoTo :Group6
} Else /If $target(Class)== Cleric {
/varset v5 1
/varset v55 $target(hp,pct)
/GoTo :Group6
} Else /If $target(Class)== Beastlord {
/varset v5 1
/varset v55 $target(hp,pct)
/GoTo :Group6
} Else /If $target(Class)== Druid {
/varset v5 1
/varset v55 $target(hp,pct)
/GoTo :Group6
} Else /If $target(Class)== Necromancer {
/varset v5 1
/varset v55 $target(hp,pct)
/GoTo :Group6
} Else /If $target(Class)== Shaman {
/varset v5 1
/GoTo :Group6
} Else
/varset v5 0
/varset v55 $target(hp,pct)
/GoTo :Group6
Sub CC6
/If $target(Class)==Enchanter {
/varset v6 1
/varset v66 $target(hp,pct)
/Call Heal
} Else /If $target(Class)== Magician {
/varset v6 1
/varset v66 $target(hp,pct)
/Call Heal
} Else /If $target(Class)== Wizard {
/varset v6 1
/varset v66 $target(hp,pct)
/Call Heal
} Else /If $target(Class)== Cleric {
/varset v6 1
/varset v66 $target(hp,pct)
/Call Heal
} Else /If $target(Class)== Beastlord {
/varset v6 1
/varset v66 $target(hp,pct)
/Call Heal
} Else /If $target(Class)== Druid {
/varset v6 1
/varset v66 $target(hp,pct)
/Call Heal
} Else /If $target(Class)== Necromancer {
/varset v6 1
/varset v66 $target(hp,pct)
/Call Heal
} Else /If $target(Class)== Shaman {
/varset v6 1
/varset v66 $target(hp,pct)
/Call Heal
} Else
/varset v6 0
/varset v66 $target(hp,pct)
/Call Heal
Sub Heal
/If n $v11<=80 And
/If n $v22<=80 And
/If n $v33<=80 And
/If n $v44<=80 And
/If n $v55<=80 And
/If n $v66<=80 {
/Call :GroupHeal
}
/If n $v11<=60 {
/Call FastHeal
} Else /If n $v11 =<80 {
/Call CompleteHeal
} /If n $v22<=60 And
/If $v2=1 {
/Call FastHeal
} Else /If $v2=0 {
/Call CompleteHeal
} /If n $v33<=60 And
/If $v3=1 {
/Call FastHeal
} Else /If $v3=0 {
/Call CompleteHeal
} /If n $v44<=60 And
/If $v4=1 {
/Call FastHeal
} Else /If $v4=0 {
/Call CompleteHeal
} /If n $v55<=60 And
/If $v5=1 {
/Call FastHeal
} Else /If $v5=0 {
/Call CompleteHeal
} /If n $v66<=60 And
/If $v6=1 {
/Call FastHeal
} Else /If $v6=0 {
/Call CompleteHeal
}
Sub FastHeal
/sit off
/cast 2
/delay 50
/sit On
/GoTo :LoopStart
Sub CompleteHeal
/sit off
/cast 4
/delay 120
/sit On
/GoTo :LoopStart
Sub GroupHeal
/sit off
/cast 3
/delay 60
/sit On
/GoTo :LoopStart Code: Select all
/If n $v11<=60 {
/Call FastHeal
} Else /If n $v11 =<80 {
/Call CompleteHeal
} /If n $v22<=60 And
/If $v2=1 {
/Call FastHeal
} Else /If $v2=0 {
/Call CompleteHeal
} /If n $v33<=60 And
/If $v3=1 {
/Call FastHeal
} Else /If $v3=0 {
/Call CompleteHeal
} /If n $v44<=60 And
/If $v4=1 {
/Call FastHeal
} Else /If $v4=0 {
/Call CompleteHeal
} /If n $v55<=60 And
/If $v5=1 {
/Call FastHeal
} Else /If $v5=0 {
/Call CompleteHeal
} /If n $v66<=60 And
/If $v6=1 {
/Call FastHeal
} Else /If $v6=0 {
/Call CompleteHeal
}
Code: Select all
/if n $v11=>81Code: Select all
/if $v11=>81shouldn't that be...BadBoy wrote:Code: Select all
/if n $v11=>81
Code: Select all
/if n $v11>=81