' ------------------------------------------------------------
' SPELL PRIORITY RANKINGS - Lower numbers get cast first.
' ------------------------------------------------------------
Const SP_Top = 1 'This constant should aways be 1.
Const SP_HealMe = 2
Const SP_HealOther = 3
Const SP_Bless = 4
Const SP_Defense = 5
Const SP_Sac = 6
Const SP_Hide = 7
Const SP_Offense = 8
Const SP_Misc = 9
Const SP_Bottom = 10 'This constant should always be highest.
' ------------------------------------------------------------
' HEALER SPELLS
' ------------------------------------------------------------
Sub Attempt_Accelerate_Healing (thename, theoutput, arrWildcards)
Add_Spell "accelerate healing", LCase(Trim(arrWildcards(1))), 50, SP_Bless, 0
End Sub
Sub Attempt_Attend_Wounds (thename, theoutput, arrWildcards)
Add_Spell "attend wounds", LCase(Trim(arrWildcards(1))), 20, SP_HealOther, -1
End Sub
Sub Attempt_Cause_Wounds (thename, theoutput, arrWildcards)
Add_Spell "cause wounds", LCase(Trim(arrWildcards(1))), 169, SP_Offense, -1
End Sub
Sub Attempt_Circle_Of_Privacy (thename, theoutput, arrWildcards)
Add_Spell "circle of privacy", LCase(Trim(arrWildcards(1))), 140, SP_Misc, 0
End Sub
Sub Attempt_Cure_Wounds (thename, theoutput, arrWildcards)
Add_Spell "cure wounds", LCase(Trim(arrWildcards(1))), 40, SP_HealOther, -1
End Sub
Sub Attempt_Heal_Wounds (thename, theoutput, arrWildcards)
Add_Spell "heal wounds", LCase(Trim(arrWildcards(1))), 125, SP_HealOther, -1
End Sub
Sub Attempt_Health_Blessing (thename, theoutput, arrWildcards)
Add_Spell "health blessing", LCase(Trim(arrWildcards(1))), 90, SP_Bless, 0
End Sub
Sub Attempt_Injure (thename, theoutput, arrWildcards)
Add_Spell "injure", LCase(Trim(arrWildcards(1))), 10, SP_Offense, -1
End Sub
Sub Attempt_Lesser_Party_Heal (thename, theoutput, arrWildcards)
Add_Spell "lesser party heal", LCase(Trim(arrWildcards(1))), 110, SP_HealOther, -1
End Sub
Sub Attempt_Sacred_Guardian (thename, theoutput, arrWildcards)
Add_Spell "sacred guardian", LCase(Trim(arrWildcards(1))), 100, SP_Bless, 0
End Sub
Sub Attempt_Spherical_Healing (thename, theoutput, arrWildcards)
Add_Spell "spherical healing", LCase(Trim(arrWildcards(1))), 150, SP_HealOther, -1
End Sub
Sub Attempt_Sober (thename, theoutput, arrWildcards)
Add_Spell "sober", LCase(Trim(arrWildcards(1))), 50, SP_Misc, -1
End Sub
Sub Attempt_Study_Corpse (thename, theoutput, arrWildcards)
Add_Spell "study corpse", Empty, 0, SP_Sac, -1
End Sub
' ------------------------------------------------------------
Sub Attempt_All_Bless (thename, theoutput, arrWildcards)
Attempt_Accelerate_Healing "Attempt_All_Bless", theoutput, arrWildcards
Attempt_Health_Blessing "Attempt_All_Bless", theoutput, arrWildcards
Add_Spell "heal wounds", LCase(Trim(arrWildcards(1))), 125, SP_Bless, -1
End Sub
' ------------------------------------------------------------
There are still pieces of code I haven't provided, such as the subroutines that determine "InParty", and the subroutine "Display_StatusLine" which displays information on my status line. Those are not all of the healer spells above, and I have more subroutines for other guild skill\spells in my script.
As said, this script requires MANY aliases and triggers, which I have not provided here... |