ok I need help with this macro
the problem is when one character in my group dies ..the healer starts healing the dead corpse
any suggestions to fix this?
Greatly Appreciated!!
here the macro
|Healbot.mac
|Simple Healer Macro to watch the health of a single target
|
|Usage: /mac Healbot <Percent> <Healspell>
|
|Effect: watch target health and cast specified spell at
|specified health. This is just like Healwatch.mac but uses
|spellcast.inc for simplicity/uniformity
|
|By Fantum409 (MODIFIED)
|Date: 05/01/2004
|----------------------------------------------------------
#turbo 40
#include Spell_Routines.inc
#event hpbuff "Your Skin like Nature spell has worn off of#1#."
#event thorns "Your Shield of Thorns spell has worn off of#1#."
#event strength "Your Storm Strength spell has worn off of#1#."
#event regen "Your Chloroplast spell has worn off of#1#."
#event gate "You have insufficient mana to cast this spell#1#."
#event mehpbuff "#*#Your skin loses its dire resiliences#*#"
#event mask "#*#Your features return to normal#*#"
#event mythorns "#*#The viridiflora fall away#*#"
#event dzquit "#*#You have entered Nedaria's Landing#*#"
|------------------------------------------------------|
| EXAMPLE
|------------------------------------------------------|
#event invis "Your Invisibility spell has worn off of#1#."
|------------------------------------------------------|
Sub Main
/echo Healbot started
/declare j int outer 0
/declare plee[21] string outer
[edited by Siddin]
/varset plee[1]
thru
/varset plee[21]
are names and as such were removed
[finished edit by Siddin]
:loop
/if (${Me.Standing} && !${Me.Mount.ID}) /sit
/doevents
/if (${Me.PctHPs}<20) {
/gate
/endm
}
/for j 1 to 21
/target ${plee[${j}]}
/delay 0s
/if (${Target.PctHPs}<80) {
/call cast "Superior Healing" gem1 5s
}
/delay 2
/next j
/goto :loop
/return
Sub Event_gate
/gate
/endmacro
/target Hyati
/mac follow
/return
Sub Event_dzquit
/echo Your exepdition has ended.
/delay 75s
/sit on
/camp desktop
/q
/endmacro
/return
|--------------------------------------------------------------------------------
|SUB: GM Check
|--------------------------------------------------------------------------------
Sub GMCheck
/if (${Spawn[gm].ID}) {
/beep
/beep
/beep
/echo GM has entered the zone!
/echo FUCK HIM but ending the macro...
/keypress forward
/keypress back
/quit
/endmacro
}
/return
thanks alot ipass :wink:
the problem is when one character in my group dies ..the healer starts healing the dead corpse
any suggestions to fix this?
Greatly Appreciated!!
here the macro
|Healbot.mac
|Simple Healer Macro to watch the health of a single target
|
|Usage: /mac Healbot <Percent> <Healspell>
|
|Effect: watch target health and cast specified spell at
|specified health. This is just like Healwatch.mac but uses
|spellcast.inc for simplicity/uniformity
|
|By Fantum409 (MODIFIED)
|Date: 05/01/2004
|----------------------------------------------------------
#turbo 40
#include Spell_Routines.inc
#event hpbuff "Your Skin like Nature spell has worn off of#1#."
#event thorns "Your Shield of Thorns spell has worn off of#1#."
#event strength "Your Storm Strength spell has worn off of#1#."
#event regen "Your Chloroplast spell has worn off of#1#."
#event gate "You have insufficient mana to cast this spell#1#."
#event mehpbuff "#*#Your skin loses its dire resiliences#*#"
#event mask "#*#Your features return to normal#*#"
#event mythorns "#*#The viridiflora fall away#*#"
#event dzquit "#*#You have entered Nedaria's Landing#*#"
|------------------------------------------------------|
| EXAMPLE
|------------------------------------------------------|
#event invis "Your Invisibility spell has worn off of#1#."
|------------------------------------------------------|
Sub Main
/echo Healbot started
/declare j int outer 0
/declare plee[21] string outer
[edited by Siddin]
/varset plee[1]
thru
/varset plee[21]
are names and as such were removed
[finished edit by Siddin]
:loop
/if (${Me.Standing} && !${Me.Mount.ID}) /sit
/doevents
/if (${Me.PctHPs}<20) {
/gate
/endm
}
/for j 1 to 21
/target ${plee[${j}]}
/delay 0s
/if (${Target.PctHPs}<80) {
/call cast "Superior Healing" gem1 5s
}
/delay 2
/next j
/goto :loop
/return
Sub Event_gate
/gate
/endmacro
/target Hyati
/mac follow
/return
Sub Event_dzquit
/echo Your exepdition has ended.
/delay 75s
/sit on
/camp desktop
/q
/endmacro
/return
|--------------------------------------------------------------------------------
|SUB: GM Check
|--------------------------------------------------------------------------------
Sub GMCheck
/if (${Spawn[gm].ID}) {
/beep
/beep
/beep
/echo GM has entered the zone!
/echo FUCK HIM but ending the macro...
/keypress forward
/keypress back
/quit
/endmacro
}
/return
thanks alot ipass :wink:
Last edited by a moderator: