Hey guys, is it possible to make Xenobot sio my friend? cant figure how to make it sio other peoplethanks!
Hey guys, is it possible to make Xenobot sio my friend? cant figure how to make it sio other peoplethanks!
Source: http://forums.xenobot.net/showthread.php?27771
Should still work I think![]()
I don't know how to make it heal my friend, what exacly should i change? i don't want to heal with UH or pot or whatever, just SIO and his name is Trixar could u please make it for me? i'd greatly appreciate it bought this bot yesterday so i dont know how it works just yet.
I tried to change it from [Furpan and 40% hp to player Hoseini and 80% hp and saved it as .lua and when i try to get it to Execute the script in-game it wont work it shows up in " FOUND SCRIPTS " but wont start running. can u please help me?![]()
local target = { -- add targets u want to heal and at what percent
['Hoseini'] = 80,}
local option = {
sio = true, -- use sio to heal friend
rune = true, -- use rune to heal friend
potion = true, -- use potion to heal friend
rune_id = 3160, -- what rune to heal friend
potion_id = 236 -- what potion to heal friend
}
local prio = {'sio', 'rune', 'potion'} -- in what order should we check?
Module.New('HEAL', function(mod)
local breaking = false
for i = 1, 3 do
if (option[prio[i]]) then
if (prio[i] == 'sio') then
for name, percent in pairs(target) do
local c = Creature.New(name)
if (c:isOnScreen()) then
if (c:HealthPercent() < percent) then
Self.Say('exura sio "' .. name)
breaking = true
break
end
end
end
if (breaking) then break end
elseif (prio[i] == 'rune') then
for name, percent in pairs(target) do
local c = Creature.New(name)
if (c:isOnScreen()) then
if (c:HealthPercent() < percent) then
Self.UseItemWithCreature(option['rune_id'], c:ID())
breaking = true
break
end
end
end
if (breaking) then break end
elseif (prio[i] == 'potion') then
for name, percent in pairs(target) do
local c = Creature.New(name)
if (c:isOnScreen()) then
if (c:HealthPercent() < percent and cistanceFromSelf() == 1) then
Self.UseItemWithCreature(option['potion_id'], c:ID())
breaking = true
break
end
end
end
if (breaking) then break end
end
end
end
modelay(500)
end)
I've change the original script to just cast exura sio, tested it and it works:
lua code:
local friends = { -- add targets u want to heal and at what percent
['Draadloos'] = 80,
['Furpan'] = 70
}
Module.New('HEAL', function(mod)
for name, percent in pairs(friends) do
local c = Creature.New(name)
if (c:isOnScreen()) then
if (c:HealthPercent() < percent) then
Self.Say('exura sio "' .. name)
break
end
end
end
mod:Delay(500)
end)
Copied ur text and replaced " Draadloos " with Trixar ( my friends name ) BUT it still wont EXECUTE to a running script.. I cant understand how i'll get it working Just the text down here should be working as u tried it.. but it wont for me for some reason.. The text below is all thats needed ? I open a notepad, put that text in, Save as .. all files, name it ( TRIXARSIO.Lua ) And try to run it but it wont .. what am i doing wrong? -.- starting to get annoyed by my own retardness lol.
local friends = { -- add targets u want to heal and at what percent
['Trixar'] = 80,
['Furpan'] = 70
}
Module.New('HEAL', function(mod)
for name, percent in pairs(friends) do
local c = Creature.New(name)
if (c:isOnScreen()) then
if (c:HealthPercent() < percent) then
Self.Say('exura sio "' .. name)
break
end
end
end
modelay(500)
end)
Its pretty sloppy code but it works, tested it with multiple guild members on screen at the same time and with players that were losing health that weren't in my guild.
lua code:
local percent = 80 -- Percent to heal any guild member
Module.New('heal-guild-members', function(mod)
local PlayersNear = Self.GetSpectators()
for i = 1, #PlayersNear do
if PlayersNear[i]:isPlayer() and PlayersNear[i]:isGuildmate() then
if PlayersNear[i]:HealthPercent() <= percent then
Self.Say('exura sio "' .. PlayersNear[i]:Name())
break
end
end
end
mod:Delay(500)
end)