|
HawkeyeX Beginner
Joined: 02 Mar 2005 Posts: 20
|
Posted: Fri Mar 04, 2005 5:25 am
Autoheal trigger help |
This is my prompt
158H 349M 129V | (excellent/{Minor Bleeding}) - 128660 >
(excellent) is the tank status. I want to autoheal at POOR or AWFUL.
How can I create a trigger for autoheal?
Thanks!
Hawkeye-X |
|
|
|
Aarlot Adept
Joined: 30 Dec 2003 Posts: 226
|
Posted: Fri Mar 04, 2005 5:52 am |
You could do something like this:
#CLASS {Tank Healing}
#ALIAS tank {#VAR tank {%-1}}
#VAR tank {}
#TRIGGER "tankheal" {%dH %dM %dV ~| ~((*)~/~{(*)~}~) ~- %d ~>} {
#IF ((%1 = "POOR") OR (%1 = "AWFUL")) {
cast 'heal' @tank
#T+ healrestart
#T- tankheal
}
} "" {nocr|prompt}
#TRIGGER "healrestart" {{MESSAGE FOR FAILING SPELL|MESSAGE FOR SPELL SUCESS}} {
#T+ tankheal
#T- healrestart
} "" {disable}
#CLASS 0
insert the correct mud output where needed and change the spell syntax as needed. Then paste to command line and hit enter.
Then to use, type "tank tankname" to set your tank's name in the variable, and any time his/her health gets to POOR or AWFUL it will heal them till it is no longer one of those two conditions. |
|
_________________ Everyone is entitled to their beliefs - until they die. Then only the truth matters. |
|
|
|
Aarlot Adept
Joined: 30 Dec 2003 Posts: 226
|
Posted: Fri Mar 04, 2005 6:01 am |
The enabling/disabling I put in there to keep it from going off over and over every time you get a prompt while the healing is happening, btw. In case you were wondering :)
|
|
_________________ Everyone is entitled to their beliefs - until they die. Then only the truth matters. |
|
|
|
HawkeyeX Beginner
Joined: 02 Mar 2005 Posts: 20
|
Posted: Fri Mar 04, 2005 7:44 pm |
That's cool, but as you can see the heals needs to be case sensitive (POOR instead of Poor and AWFUL instead of Awful) because mob's health also triggers my heal tank.
|
|
|
|
Aarlot Adept
Joined: 30 Dec 2003 Posts: 226
|
Posted: Fri Mar 04, 2005 10:56 pm |
Unless the mobs health is in the same place in the prompt as the tank's health you showed, it shouldn't.
|
|
_________________ Everyone is entitled to their beliefs - until they die. Then only the truth matters. |
|
|
|
|
|