Guys do u know any way to put exura sio to heal friend at any life%?
thank you
Printable View
Guys do u know any way to put exura sio to heal friend at any life%?
thank you
lua code:local targets = {}
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
Self.Cast("exura sio \"" .. v.name)
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)
Thank you Naku for the reply... but i am having problem to put to work, is not working so far any idead?
heard this easily gets you delited, just my two cents... No clue if its true as I have no experience with this.
Works perfectly bro you just follow by this steps:
Step.1
lua code:targets[#targets + 1] = { name = "Nakux", hp = 80 }, { name = "duducloneuk", hp = 90} -- u can add more before run script.
Step.2
Say 'start' on ssSio chat
http://images66.fotosik.pl/775/a61ce7d8a4762b92med.png
Step.3
You can add more firends by writing Player_Name e.g ... Rif or Nakuu
http://images67.fotosik.pl/777/914b69ee549814abmed.png
Also u can say 'stop' to paused sio-script
thank you, for the support, all good now...
how to heal friend by potion?
is it also possible to put something like this:
when my hp is below X % heal myself before the sio on my friend, even when he is below the % that i put on the script
if there is something like this ^ i am gonna buy xenobot again instead of windbot
@Nakuu