I have a problem with the target hp check and char mana check..Sub Main
/Declare tankname global
/echo Wiz-Mac-no.-1 Is <--!!RUNNING (woot)!!-->
/if "@Param1"=="" {
/echo Error! - Syntax: /macro test.mac [tankname] [start nukin at %] [stop nukin at %]
/endmacro
}
/varset tankname @Param0
/echo Assisting: @tankname
/echo Nukin at -> @Param1 - stopping at -> @Param2
/goto :start
:restart
/if $char(mana,pct)<=70 {
/echo Casting Harvest
/cast 6
}
/delay 60
/if $char(mana,pct)<=70 {
/echo Casting Druzzil Harvest
/press F10
}
:start
/if n $char(mana,pct)<=20 {
/echo Lom - Medding to 80
/goto :med
}
/assist @tankname
/delay 1
/if $target(hp,cur)<@Param2 /goto :gorestart
/if $target(hp,cur)<=@Param1 {
/if $target(hp,cur)>@Param2 {
/echo Nuking $target(name) with $char(gem,1).
/delay 1
/cast 1
/delay 120
/if $target(id)==0 /goto :gorestart
/if $target(hp,cur)<@Param2 /goto :gorestart
/echo Nuking $target(name) with $char(gem,3).
/cast 3
/delay 60
/echo Cast cycle restart..
}
}
}
/if $target(id)==0 {
/echo Target Dead - Restarting...
:gorestart
/goto :restart
}
/goto :restart
:med
/if n $char(mana,pct)<=80 {
/cast 6
/delay 120
/goto :med
}
/echo Done medding - restarting..
/goto :start
If mana goes to 100% the /if $char(mana,pct)<=70 reports TRUE.. I cant figure out why..
Also when the targets HP gets below 10 the macro starts the Nuking cycle again..
Any ideas on how to fix this?
Im pretty new to MQ-scripting, as you can imagine..

