im going to run with the assumption you want this to automate your wiz's role in your boxed setting ~ if that's the case you need a loop running to monitor your conditions to act on them:
a few things-
/varset doesnt need ==, just /varset pointer value(bold)
your dealing with a mobs life its more reliable to do a number comparison with the n switch in the /if for < > comparisons(red)
keep in mind with this setup, its going to call mobHP15 as long as the mobs life is < 15 (you prolly will be finishing it off with this nuke? not sure)
to minimize spam and executions, i added a casting check to my edited example
when you want to use the value of a variable, you need to put a @ before the pointer name so it parses to the value
Code: Select all
| This is Malkum's casting program. Simple, yet effective.
|
| Let's just hope it works...
|
|
/echo "Malkast macro starting. Be prepaired for some ownage!"
#turbo 20
Sub Main
/declare mobHP global
:mainloop
[b]/varset mobHP $target(hp,pct) [/b]
/if $char(casting)==FALSE {
/if [color=red]@[/color]mobHP==50 {
/call mobHP50
}
/if n [color=red]@[/color]mobHP<=15 {
/call mobHP15
}
}
/delay 1
/goto :mainloop
/return
Sub mobHP50
/if $char(state)==STAND {
/cast "Sunstrike"
} else {
/stand
/cast "Sunstrike"
}
/sit
/return
Sub mobHP15
/if $char(state)==STAND {
/cast "Draught of Ro"
} else {
/stand
/cast "Draught of Ro"
}
/sit
/return