View Full Version : Druid Heal Friend
taituvn
08-13-2016, 11:43 PM
who can make a scrip.lua with sio friend
Sio Friend : 75 percent
when my ED < 70 igrone sio friend
when my ED >70 sio friend
please help
yooka
08-15-2016, 07:40 AM
local friends = {"taituvn", "yooka"}
Module.New("AutoSio", function (mod)
local spectators = Self.GetSpectators()
for i = 1, #spectators do
local creature = spectators[i]
if creature:isPlayer() and creature:HealthPercent() <= 70 and table.contains(friends, creature:Name()) then
if(Self.CanCastSpell("exura sio "..creature:Name()) and getSelfSpellCooldown("exura sio "..creature:Name()) == 0) then
Self.Cast("exura sio "..creature:Name())
end
end
end, true)
Trykon
08-15-2016, 09:38 AM
Options "search" does not hurt... there are thousands of this topics on forum
taituvn
08-17-2016, 08:51 AM
TY a lot
taituvn
08-17-2016, 08:53 AM
local friends = {"taituvn", "yooka"}
Module.New("AutoSio", function (mod)
local spectators = Self.GetSpectators()
for i = 1, #spectators do
local creature = spectators[i]
if creature:isPlayer() and creature:HealthPercent() <= 70 and table.contains(friends, creature:Name()) then
if(Self.CanCastSpell("exura sio "..creature:Name()) and getSelfSpellCooldown("exura sio "..creature:Name()) == 0) then
Self.Cast("exura sio "..creature:Name())
end
end
end, true)
where is my percent hp and where is percent for sio friend ?
taituvn
08-17-2016, 09:52 AM
FRIEND_NAME = "Trykon"
FRIEND_PERCENT = 80
function HealFriend()
local friend = Creature.GetByName(FRIEND_NAME)
if (friend:HealthPercent() <= FRIEND_PERCENT and friend:isOnScreen()) then
Self.Say("exura sio "" .. FRIEND_NAME)
end
end
while (true) do
HealFriend()
wait(300, 500)
end
i am using this and get dead much by this script >.<
yooka
08-17-2016, 05:26 PM
where is my percent hp and where is percent for sio friend ?
local friends = {"taituvn", "yooka"}
local you_hp = 70
local friends_hp = 70
function Self.HealthPercent()
return (Self.Health() / Self.MaxHealth()) * 100
end
Module.New("AutoSio", function (mod)
local spectators = Self.GetSpectators()
if(Self.HealthPercent() < you_hp)then
return
end
for i = 1, #spectators do
local creature = spectators[i]
if creature:isPlayer() and creature:HealthPercent() <= friends_hp and table.contains(friends, creature:Name()) then
if(Self.CanCastSpell("exura sio "..creature:Name()) and getSelfSpellCooldown("exura sio "..creature:Name()) == 0) then
Self.Cast("exura sio "..creature:Name())
end
end
end, true)
Elvang
08-17-2016, 06:14 PM
where is my percent hp and where is percent for sio friend ?
if creature:isPlayer() and creature:HealthPercent() <= 70 and table.contains(friends, creature:Name()) then
Note the bolded number ^ for future reference.
NcGuy
08-26-2016, 10:34 AM
why it doesn't work for me? Error: 'end' expected (to close 'function' at line 10) near '<eof>'
Powered by vBulletin® Version 4.2.5 Copyright © 2025 vBulletin Solutions Inc. All rights reserved.