View Full Version : Xenobot - Help me
Sisusaatana
10-29-2015, 02:38 PM
Hey guys, is it possible to make Xenobot sio my friend? cant figure how to make it sio other people :) thanks!
Nakuu
10-29-2015, 05:19 PM
Friend Healer
local target = { -- add targets u want to heal and at what percent
['Furpan'] = 40,
['Furpans Friend'] = 40
}
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 c:DistanceFromSelf() == 1) then
Self.UseItemWithCreature(option['potion_id'], c:ID())
breaking = true
break
end
end
end
if (breaking) then break end
end
end
end
mod:Delay(500)
end)
Source: http://forums.xenobot.net/showthread.php?27771
Should still work I think :)
Sisusaatana
10-30-2015, 12:39 PM
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.
undead mage
10-30-2015, 01:09 PM
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.
****['Furpan'] = 40,
Change Furpan to your friends name and 40 to how much % before you will heal now its set at 40%
undead mage
10-30-2015, 01:09 PM
Source: http://forums.xenobot.net/showthread.php?27771
Should still work I think :)
Is it possible to heal all guild members? Like you could do on elf you had an option to choose to add all your guild members to your friend list to heal.
Joshwa534
10-30-2015, 01:35 PM
Is it possible to heal all guild members? Like you could do on elf you had an option to choose to add all your guild members to your friend list to heal.
edit: added script below.
Sisusaatana
10-30-2015, 01:48 PM
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 c:DistanceFromSelf() == 1) then
Self.UseItemWithCreature(option['potion_id'], c:ID())
breaking = true
break
end
end
end
if (breaking) then break end
end
end
end
mod:Delay(500)
end)
Joshwa534
10-30-2015, 02:06 PM
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? :(
I've change the original script to just cast exura sio, tested it and it works:
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)
Sisusaatana
10-30-2015, 02:19 PM
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
mod:Delay(500)
end)
Joshwa534
10-30-2015, 02:32 PM
Is it possible to heal all guild members? Like you could do on elf you had an option to choose to add all your guild members to your friend list to heal.
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.
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)
Joshwa534
10-30-2015, 02:44 PM
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
mod:Delay(500)
end)
Idk, just re-tested and it worked fine. I've uploaded the file here (https://www.dropbox.com/sh/w9t72a5xensnp5a/AACZfVHKX9sMmYHJkAvODR-ia?dl=0) so you can download it directly, maybe something is wrong with your copy/paste method. Otherwise you're likely using a version of XenoBot that didn't yet have these functions, no clue. Next time you get an error, post it here.
sholh
12-17-2015, 11:49 PM
Nakuu Joshwa534
i made this code but it doesnt working with me can u fix it please i wanna heal my friend by potion
<Code>
local friends = { -- add targets u want to heal and at what percent
['Joker'] = 100,
['Joker'] = 100
}
local option = {
potion_id = 7643 -- what potion to heal friend
}
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 and c:DistanceFromSelf() == 1) then
Self.UseItemWithCreature(option['potion_id'], c:ID())
break
end
end
end
mod:Delay(500)
end)
</code>
Powered by vBulletin® Version 4.2.5 Copyright © 2025 vBulletin Solutions Inc. All rights reserved.