|**
You need to include this in the bot.mac by opening it up each version changing and adding the following line at the top:
#include galenth.inc
Or if you eventually make more includes, you could just put them all in 1 include and do something like:
#include common.inc
Add the following section stuff:
[Custom]
CustomRestTotal=2
CustomCombatTotal=2
CustomRest1=/if (${SpawnCount[Deathmaster Sarenth]} && ${Defined[GalenthStarted]}) /varset GalenthStarted FALSE
CustomRest2=/if (${GalenthStarted} && ${Spawn[Commander Galenth].ID}) /call HealNPC ${Spawn[Commander Galenth].ID}
CustomCombat1=/if (${SpawnCount[Deathmaster Sarenth]} && ${Defined[GalenthStarted]}) /varset GalenthStarted FALSE
CustomCombat2=/if (${GalenthStarted} && ${Spawn[Commander Galenth].ID}) /call HealNPC ${Spawn[Commander Galenth].ID}
Add this alias if you want to be able to turn it off manually:
/alias /stopgal /echo GalenthStop
**|
#event GalenthStart "Commander Galenth shouts 'Stand fast! Here they come again!'"
#event GalenthHit "Commander Galenth clutches a wound in his side. 'Is that the best they can do? Let them attack! I'll slaughter them all!'"
#event GalenthStop "#*#GalenthStop#*#"
Sub Event_GalenthStop
/if (${Defined[GalenthStarted]}) /varset GalenthStarted FALSE
/return
Sub Event_GalenthHit
/squelch /tar galenth npc
/delay 1s ${Target.Name.Find[galenth]})
/if (${Me.Class.Priest} && ${Target.PctHPs}<90) /call HealNPC ${Target.ID}
/return
Sub Event_GalenthStart
/if (!${Defined[GalenthStarted]}) /declare GalenthStarted bool outer
/varset GalenthStarted TRUE
/return
Sub HealNPC(id)
/if (!${Defined[${id}HPs]}) /declare ${id}HPs int outer
/declare tempid int outer ${Target.ID}
/if (${Spawn[npc ${id}]}) {
/squelch /tar id ${id}
} else {
/return
}
/delay 1s ${Target.ID}==${id}
/declare i int local
/for i 1 to ${HealSingleTotal}
/if (${Target.PctHPs}>${HealSingleUseAt${i}}||${Target.PctHPs}>${HealSingleStopAt${i}}||!${HealSingleUse${i}}||!${Me.SpellReady[${HealSingleSpellName${i}}]} && !${Me.AltAbility[${HealSingleSpellName${i}}]}||!${HealSingleConditions${i}}||${HealSingleRecast${i}${Target.ID}}) /goto :skipi
/delay 3s !${Me.Casting.ID}
/call ${EchoSub} "${Teal} ${${CurrentSub}SpellName${i}} --> ${White} ${Target}"
/if (${Verbose} && ${MyChannel.NotEqual[NULL]}) /docommand /${MyChannel} ${HealSingleSpellName${i}} --> ${Target.CleanName}
/if (${${CurrentSub}Announce} && ${AnnounceChannel.NotEqual[NULL]}) /docommand /${AnnounceChannel} ${${CurrentSub}SpellName${i}} --> ${Target.CleanName}
/call Cast "${HealSingleSpellName${i}}" ${HealSingleSpellGem${i}} 3s
/if (${Select[${Macro.Return},CAST_SUCCESS,CAST_NOTHOLD]}) {
/if (!${Defined[HealSingleRecast${i}${Target.ID}]}) /declare HealSingleRecast${i}${Target.ID} timer outer
/varset HealSingleRecast${i}${Target.ID} ${Ini[MyIni,HealSingle,HealSingleRecast${i}]}
}
:skipi
/next i
/if (${tempid}) /squelch /tar id ${tempid}
/return