I am wondering how I might make it spamm keypress 7 with myself targeted when mana 10< , untill my mana 55>
For now I blocked the variables.
Thanks in advance.
For now I blocked the variables.
Thanks in advance.
Rich (BB code):
#Include spell_routines.inc
#Event temp "Your #${hpbuff}# spell has worn off of #${tankname}#."
Sub Main
/declare tankname string outer ${Target}
/declare healspell string outer "Soul Mending (KMRA)"
/declare hpbuff string outer "Champion of the Gods (KMRA)"
/declare selfhealpoint int outer 65
/declare tankhealpoint int outer 57
/declare healwho string outer
/Echo Shammy Heal AFK loaded.
:Mainloop
/doevents
|/if (${Me.PctMana}<=30) /call lom
/if (${Target.PctHPs}<=${tankhealpoint}) {
/varset healwho ${tankname}
/call heal
}
/if (${Me.PctHPs}<=${selfhealpoint}) {
/varset healwho ${Me}
/call heal
}
/goto :Mainloop
/return
Sub Event_temp
/target ${tankname}
/g Im casting ${hpbuff} on <<<< ${Target} >>>>
/call cast "${hpbuff}"
/return
Sub heal
/target ${healwho}
/call Cast "Soul Mending (KMRA)"
/echo Casting "${healspell}"
/target ${tankname}
/return
----------------------
|sub lom
|/tell ${tankname} im low on mana
|/keypress 7
|:lomloop
|/if (${Me.PctMana}>50) {
|/gsay I'm at ${Me.PctMana}% mana
|/return
|}
|/goto :lomloop
|/return
|/keypress 7
|:lomloop
|/if (${Me.PctMana}>50) {
|/return
|}
|/goto :lomloop
|/return