Moderator: MacroQuest Developers
Code: Select all
|Macro starts on cleric, and nothing wrong is going on:
/tell BuffCustomer status on Virtue?
|BuffCustomer picks up tell and checks:
/if n $char(buff,"Virtue")<1 /tell cleric "Need Virtue"
|cleric event triggered by the response tell
/if $lcase("$p0")=="need virtue" /call Cast Virtue
|partial virtue casting code (1200 = example duration of virtue)
/cast virtue
/varset t0 1200
|BuffCheck just a boolean for seeing if you asked him for buff checks
/varset BuffCheck 1
|sub event_timer when t0 gets to 0 activates, and full mana
/if "$p0"==0 /if n $char(mana,pct)==100 {
/tell BuffCustomer status on Virtue?
/varset BuffCheck 0
}