
Originally Posted by
Floxy
hi, yea i would like to heal myself with exura, exura gran and exura vita.
is there some line to put my own healing before this script? or is it possible to put my own healing above the script?
Done. It's possible now to heal yourself with different spell (which you can set using 'spell' variable as in an example). If no 'spell' is defined it'll use "Exura Sio".
lua code:local targets = {}
targets[#targets + 1] = { name = "Nakuu", hp = 80, spell = "exura gran" }
targets[#targets + 1] = { name = "Nakux", hp = 80 }
Module("ssSio", function(module)
for k,v in ipairs(targets) do
local player = Creature(v.name)
if player:isOnScreen(false) and (player:HealthPercent() <= v.hp) then
if Self.CanCastSpell("exura") and (Self.Mana() > 100) then
if (v.spell) and (v.name == Self.Name()) then
Self.Cast(v.spell)
else
Self.Cast("exura sio \"" .. v.name)
end
end
end
end
end, false)
function onSpeak(chat, msg)
chat:SendYellowMessage(Self.Name(), msg)
if (msg == "start") then
Module("ssSio"):Start()
chat:SendOrangeMessage("ssSio", "ssSio has started.")
elseif (msg == "stop") then
Module("ssSio"):Stop()
chat:SendOrangeMessage("ssSio", "ssSio has stopped.")
else
targets[#targets + 1] = { name = msg, hp = 80 }
chat:SendOrangeMessage("ssSio", "Added " .. msg .. " to the healing list.")
end
end
function onClose() end
local chat = Channel("ssSio", onSpeak, onClose)
Not 100% tested but it should work