XenoBot Forums - Powered by vBulletin

User Tag List

Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: Xenobot - Help me

  1. #1

    Join Date
    Oct 2015
    Posts
    5
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Xenobot - Help me

    Hey guys, is it possible to make Xenobot sio my friend? cant figure how to make it sio other people thanks!

  2. #2
    Moderator Nakuu's Avatar
    Join Date
    Feb 2013
    Location
    EU
    Posts
    5,194
    Mentioned
    642 Post(s)
    Tagged
    2 Thread(s)
    Quote Originally Posted by Furpan View Post
    Friend Healer

    lua code:
    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

  3. #3

    Join Date
    Oct 2015
    Posts
    5
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    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.

  4. #4
    undead mage's Avatar
    Join Date
    Jul 2014
    Posts
    53
    Mentioned
    8 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Sisusaatana View Post
    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%

  5. #5
    undead mage's Avatar
    Join Date
    Jul 2014
    Posts
    53
    Mentioned
    8 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Nakuu View Post
    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.

  6. #6
    XenoBot Scripts Developer Joshwa534's Avatar
    Join Date
    May 2012
    Location
    Texas, USA
    Posts
    4,890
    Mentioned
    517 Post(s)
    Tagged
    3 Thread(s)
    Quote Originally Posted by undead mage View Post
    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.
    Last edited by Joshwa534; 10-30-2015 at 02:32 PM.

  7. #7

    Join Date
    Oct 2015
    Posts
    5
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    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)

  8. #8
    XenoBot Scripts Developer Joshwa534's Avatar
    Join Date
    May 2012
    Location
    Texas, USA
    Posts
    4,890
    Mentioned
    517 Post(s)
    Tagged
    3 Thread(s)
    Quote Originally Posted by Sisusaatana View Post
    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:

    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)

  9. #9

    Join Date
    Oct 2015
    Posts
    5
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    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)

  10. #10
    XenoBot Scripts Developer Joshwa534's Avatar
    Join Date
    May 2012
    Location
    Texas, USA
    Posts
    4,890
    Mentioned
    517 Post(s)
    Tagged
    3 Thread(s)
    Quote Originally Posted by undead mage View Post
    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.
    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)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •