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
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 ;)
thx guys
Would you suggest this script as being safe, or will it be easily detectable? I've heard a lot about sio scripts getting people deleted.
beautiful script mate <3
PLEASE you can teach me how does this work?
i try with this script but my character does not stop the "SIO" to the name of the character that I type in scrip
HELP ME PLEASE I'd be really grateful