- Joined
- Dec 14, 2006
- RedCents
- 692¢
Attached is a very simple modification for a cleric to keep 4 characters healed (including targetable pets) while they duel to increase skills. It is modified from the healbot.mac and healer.mac and should be easily modified to increase or decrease the number of monitored characters.
THIS CODE HAS BEEN MODIFIED AND LISTED BELOW WITH CORRECTIONS.
THIS CODE HAS BEEN MODIFIED AND LISTED BELOW WITH CORRECTIONS.
Rich (BB code):
|----------------------------------------------------------
|HealDuel.mac
|Simple Healer Macro to watch the health of four targets
|
|Usage: /mac HealDuel
|
|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
|By Dragonfire (MODIFIED FOR CLERIC WATCHING DUEL from healbot.mac)
|Date: 05/05/2007
|----------------------------------------------------------
#include Spell_Routines.inc
#event hpbuff "Your Temperance spell has worn off of#1#."
#event meleeguard "Your Protection of Vie spell has worn off of#1#."
|------------------------------------------------------|
| EXAMPLE
|------------------------------------------------------|
|#event invis "Your Invisibility spell has worn off of#1#."
|------------------------------------------------------|
Sub Main
/echo Healbot started
/declare j int outer 0
/declare plee[4] string outer
/varset plee[1] "Char1"
/varset plee[2] "Char2"
/varset plee[3] "Char3"
/varset plee[4] "Char4"
:loop
/if (${Me.Standing} && !${Me.Mount.ID}) /sit
/doevents
/if (${Me.PctHPs}<20) {
/gate
/endm
}
/for j 1 to 4
/target ${plee[${j}]}
/delay 1s
/if (${Target.PctHPs}<50) {
/call cast "Complete Heal" gem9 4s
}
/next j
/goto :loop
/return
|------------------------------------------------------|
| EXAMPLE
|------------------------------------------------------|
|Sub Event_invis(string, playername)
| /echo ${playername} has lost invisibility
| /target ${playername}
| /call cast "Invisibility" gem8 4s
|/return
|------------------------------------------------------|
Sub Event_hpbuff(string, playername)
/echo ${playername} needs HP buff
/target ${playername}
/call cast "Temperance" gem8 4s
/return
Sub Event_meleeguard(string, playername)
/echo ${playername} needs Melee Guard
/target ${playername}
/call cast "Protection of Vie" gem7 4s
/return
Sub Event_gate
/gate
/endmacro
/return
Last edited:

