Heal Friend / Mass Healing
Description
A persistent action that will heal your friends with Exura Sio and Exura Gran Mas Res.
Prioritizes Mass Healing.
Configuration
Set Sio to true or false to enable/disable Exura Sio.
Set MasRes to true or false to enable/disable Exura Gran Mas Res.
Code
init start
local SioFriends = {"Bubble", "Eternal Oblivion"} -- People to heal with Exura Sio
local MasResFriends = {"Astronis", "Riku"} -- People to heal with Exura Gran Mas Res
local settings = {
Sio = true,
HPPCsio = 80, -- Your FRIEND(S) Health % to cast Sio
SelfMPPCsio = 15, -- YOUR min. Mana % to cast Sio
SelfHPPCsio = 50, -- YOUR min. HP % to cast Sio
MasRes = true,
MinMasRes = 1, -- Min. people below HPPCmasres to cast.
HPPCmasres = 80, -- Your FRIEND(S) Health % to cast mas res
SelfMPPCmasres = 15, -- YOUR min. Mana % to cast Exura Gran Mas Res
SelfHPPCmasres = 20 --- YOUR min. HP % to cast Exura Gran Mas Res
}
init end
auto(350)
local amount = 0
if settings.MasRes then
if cancastspell("exura gran mas res") then
foreach creature masres "ps" do
if table.find(MasResFriends, masres.name) then
if isonspellarea(masres, "exura gran mas res", "any") and (masres.hppc <= settings.HPPCmasres) and ($mppc >= settings.SelfMPPCmasres) and ($hppc >= settings.SelfHPPCmasres) then
amount = amount+1
end
end
end
if (amount >= settings.MinMasRes) then
cast("exura gran mas res")
end
end
end
if settings.Sio then
if (amount < settings.MinMasRes) then
if cancastspell("Heal Friend") then
foreach creature sio "ps" do
if table.find(SioFriends, sio.name) and (sio.isshootable) then
if (sio.hppc <= settings.HPPCsio) and ($mppc >= settings.SelfMPPCsio) and ($hppc >= settings.SelfHPPCsio) then
cast('exura sio "'..sio.name)
end
end
end
end
end
end