Customize as you please. Make sure text commands are surrounded in quotation marks and keys are not.
Push Heals ListShows who is set to which key
Push Heals SetSets keys, example: "/ph name1 name2 name3 etc"
Self HealHeals yourself repeatedly
Radius HealToggles radius heal
Ranged HealRange heals your click target, or heals yourself
Frames/pulseNumber of frames it takes to regen a self-heal pulse
Ranged healing item
Caduceus
Mercurial Staff
Asklepian
Asklepian Staff

Self healing item
Moonstone
Selenite Crystal
Key to heal target 1
Key to heal target 2
Key to heal target 3
Key to heal target 4
Key to heal target 5
Key to heal target 6
Key to heal target 7
Key to heal target 8
Key to heal target 9
Key to heal target 10







setglobal RangedItem "Asklepian"
setglobal SelfItem "Moonstone"

"/phl" call PushHealsList //Shows who is set to which key
"/ph" call PushHealsSet //Sets keys, to usage would be "/ph name1 name2 name3 etc"
F1 call selfheal //Heals yourself repeatedly. Attempting to range heal yourself will do the same.
numpad-. call radiusheal //Toggles radius heal
click2 call rangeheal //Range heals your click target. If you target yourself it will self heal
setglobal framesperpulse 6 //Number of frames it takes to regen a self-heal pulse

numpad-1 call puh1
numpad-2 call puh2
numpad-3 call puh3
numpad-4 call puh4
numpad-5 call puh5
numpad-6 call puh6
numpad-7 call puh7
numpad-8 call puh8
numpad-9 call puh9
numpad-0 call puh0


//Set keys for players individually
"/1" setglobal pushheals_1 @text
"/2" setglobal pushheals_2 @text
"/3" setglobal pushheals_3 @text
"/4" setglobal pushheals_4 @text
"/5" setglobal pushheals_5 @text
"/6" setglobal pushheals_6 @text
"/7" setglobal pushheals_7 @text
"/8" setglobal pushheals_8 @text
"/9" setglobal pushheals_9 @text
"/10" setglobal pushheals_0 @text

//SELF-HEAL

//checks if you need to equip moonstone
selfheal
{
if @my.right_item == SelfItem
goto start
end if
"/equip " SelfItem "\r"
label start
call reheal
}



//Auto-heals yourself
reheal
{
if selfh != 1
setglobal selfh 1
setglobal htimer 0
label hstart
if @my.right_item == SelfItem
if @env.textLog >= "You cannot possibly use anything in your current condition."
goto end
end if
if htimer <= 0
"/use 9\r"
setglobal htimer framesperpulse
end if
setglobal htimer - 1
pause 1
goto hstart
end if
if @my.right_item != SelfItem
setglobal selfh 0
goto end
end if
end if
if selfh == 1
setglobal htimer 0
end if
label end
}

//RADIUS HEAL
radiusheal
{
if @my.right_item == RangedItem
goto skip
end if
"/equip "RangedItem "\r"
label skip
"/use\r"
}

//CAD
rangeheal
{
if @clicksplayer == @my.name
call selfheal
else
if @my.right_item == RangedItem
"/use " @clicksplayer "\r"
message "-healing"@clicksplayer
else
"/equip " RangedItem "\r"
"/use " @clicksplayer "\r"
message "-healing"@clicksplayer
end if
end if
}

pushheals
{
if nowhealing == ""
call selfheal
goto end
end if
if nowhealing == @my.name
call selfheal
goto end
end if
if @my.right_item != RangedItem
"/equip " RangedItem "\r"
end if
"/use " nowhealing "\r"
message "-healing"nowhealing
label end
}


setglobal pushheals_1 ""
setglobal pushheals_2 ""
setglobal pushheals_3 ""
setglobal pushheals_4 ""
setglobal pushheals_5 ""
setglobal pushheals_6 ""
setglobal pushheals_7 ""
setglobal pushheals_8 ""
setglobal pushheals_9 ""
setglobal pushheals_0 ""
setglobal nowhealing ""

PushHealsList
{
message 7= pushheals_7 8= pushheals_8 9= pushheals_9
message 4= pushheals_4 5= pushheals_5 6= pushheals_6
message 1= pushheals_1 2= pushheals_2 3= pushheals_3
message 10= pushheals_0 last healed= nowhealing
}

PushHealsSet
{
setglobal pushheals_1 @text.word[0]
setglobal pushheals_2 @text.word[1]
setglobal pushheals_3 @text.word[2]
setglobal pushheals_4 @text.word[3]
setglobal pushheals_5 @text.word[4]
setglobal pushheals_6 @text.word[5]
setglobal pushheals_7 @text.word[6]
setglobal pushheals_8 @text.word[7]
setglobal pushheals_9 @text.word[8]
}


puh1
{
setglobal nowhealing pushheals_1
call pushheals
}

puh2
{
setglobal nowhealing pushheals_2
call pushheals
}

puh3
{
setglobal nowhealing pushheals_3
call pushheals
}

puh4
{
setglobal nowhealing pushheals_4
call pushheals
}

puh5
{
setglobal nowhealing pushheals_5
call pushheals
}

puh6
{
setglobal nowhealing pushheals_6
call pushheals
}

puh7
{
setglobal nowhealing pushheals_7
call pushheals
}

puh8
{
setglobal nowhealing pushheals_8
call pushheals
}

puh9
{
setglobal nowhealing pushheals_9
call pushheals
}

puh0
{
setglobal nowhealing pushheals_0
call pushheals
}