XenoBot Forums - Powered by vBulletin

User Tag List

Page 1 of 4 123 ... LastLast
Results 1 to 10 of 34

Thread: Is there a way to setup Sio for teammates

  1. #1
    Lifetime Subscriber
    Join Date
    May 2012
    Location
    Brazil
    Posts
    800
    Mentioned
    16 Post(s)
    Tagged
    0 Thread(s)

    Is there a way to setup Sio for teammates

    I have never been able to do this. How would one set up a Sio for teammates would that be a script? Or an option already enabled in the bot. Any pointers would be great. Thanks.

  2. #2
    Administrator
    Join Date
    Dec 2010
    Posts
    2,565
    Mentioned
    228 Post(s)
    Tagged
    1 Thread(s)
    Script.

    Edit: Something like this...?

    lua code:

    local config = {}

    config.nameList = {"Eternal Oblivion", "Bubbles", "Tomurka"}
    config.partyEnabled = true
    config.healPercent = 85

    Module.New("auto_sio", function()
    local p = Self.GetSpectators()
    for i = 1, #p do
    local creature = p[i]
    if (config.partyEnabled and creature:isPartyMember()) or (table.contains(config.nameList, creature:Name())) then
    if Self.CanCastSpell("exura sio") and (creature:HealthPercent() <= config.healPercent) then
    Self.Say("exura sio '" .. creature:Name())
    end
    end
    end
    end)
    Last edited by Spectrus; 04-13-2013 at 11:08 AM.

  3. #3
    Senior Member Tobjun's Avatar
    Join Date
    Feb 2013
    Location
    Sweden, Skellefteċ
    Posts
    496
    Mentioned
    8 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Spectrus View Post
    Script.

    Edit: Something like this...?

    lua code:

    local config = {}

    config.nameList = {"Eternal Oblivion", "Bubbles", "Tomurka"}
    config.partyEnabled = true

    Module.New("auto_sio", function()
    local p = Self.GetSpectators()
    for i = 1, #p do
    local creature = p[i]
    if (config.partyEnabled and creature:isPartyMember()) or (table.contains(config.nameList, creature:Name())) then
    if Self.CanCastSpell("exura sio") then
    Self.Say("exura sio '" .. creature:Name())
    end
    end
    end
    end)
    so at what %age would this one heal ^^?
    Suprise motherfucker, Play some dice motherfucker, Pk in thais motherfucker.

  4. #4
    Lifetime Subscriber Sponx's Avatar
    Join Date
    Dec 2011
    Location
    United Kingdom
    Posts
    231
    Mentioned
    10 Post(s)
    Tagged
    0 Thread(s)
    Isn't using a sio script, really dangerous when it comes to bans? Just something I've heard.

  5. #5
    Administrator
    Join Date
    Dec 2010
    Posts
    2,565
    Mentioned
    228 Post(s)
    Tagged
    1 Thread(s)
    Quote Originally Posted by Tobjun View Post
    so at what %age would this one heal ^^?
    Hah, all. Woops!

  6. #6
    Senior Member Tobjun's Avatar
    Join Date
    Feb 2013
    Location
    Sweden, Skellefteċ
    Posts
    496
    Mentioned
    8 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Spectrus View Post
    Hah, all. Woops!
    hehe ;p
    Suprise motherfucker, Play some dice motherfucker, Pk in thais motherfucker.

  7. #7
    Senior Member Wovimus's Avatar
    Join Date
    Jan 2013
    Posts
    656
    Mentioned
    60 Post(s)
    Tagged
    0 Thread(s)
    Syntax version here:
    lua code:

    --[[
    Auto Healer
    Version 1.02
    Created by Syntax
    ]]

    local config = {
    WhiteList = {"Eternal Oblivion"},
    healWhiteList = true, -- heal players specified in the whitelist
    healParty = true, -- heal party members
    healAlly = true, -- heal war allies

    range = 4, -- max distance to heal players
    mana = 140, -- minimum mana needed to cast
    health = 70, -- % of friends health to heal at

    method = "exura sio" -- this is the only method currently, rune healing will be added later
    }

    local function sio(name)
    if(Self.Mana() >= config.mana)then
    Self.Say("exura sio \""..name)
    sleep(math.random(200,600))
    end
    end

    local function think()
    for i = CREATURES_LOW, CREATURES_HIGH do
    local creature = Creature.GetFromIndex(i)
    if (creature:isValid()) then
    if (creature:isOnScreen() and creature:isVisible() and creature:isAlive()) then
    local name = creature:Name()
    if(creature:isWarAlly() and config.healAlly) or (creature:isPartyMember() and config.healParty) or (table.find(config.WhiteList, name, false) and config.healWhiteList)then
    if(creature:DistanceFromSelf() <= config.range) and (creature:HealthPercent() <= config.health)then
    if(config.method == "exura sio")then
    sio(name)
    else
    displayInformationMessage("Unsupported method type in Auto Healer Script!")
    end
    end
    end
    end
    end
    end
    end

    local function display()
    local display = "Auto Healer by Syntax (v1.02)\n------------------\n\nMethod: " .. config.method .. "\nHeal Party: " .. tostring(config.healParty) .. "\n" .. "Heal War Allies: " .. tostring(config.healAlly)
    if(config.healWhiteList)then
    display = display .. "\n" .. "Heal Players:" .. table.concat(config.WhiteList, ", ")
    end
    displayInformationMessage(display)
    end

    display()

    while true do
    think()
    wait(100,300)
    end


  8. #8
    Senior Member Eion's Avatar
    Join Date
    Dec 2011
    Posts
    558
    Mentioned
    11 Post(s)
    Tagged
    0 Thread(s)
    Here is another version for healing a specific person only. This uses UH's instead of Sio.

    lua code:

    function AutoUH()
    local Afriend = Creature.New("FRIENDS NAME HERE")
    local AfriendHealth = Afriend:HealthPercent()
    local AfriendPos = Afriend:Position()
    local UHid = 3160 -- ID OF HEALING RUNES
    local backpack = Container.GetByName("blue backpack") -- Open backpack containing healing runes
    if (AfriendHealth <= 55) and (Self.DistanceFromPosition(AfriendPos.x, AfriendPos.y, AfriendPos.z) <= 7) and (Self.Position().z == AfriendPos.z) then
    for spots = 0, backpack:ItemCount() do
    local item = backpack:GetItemData(spots)
    if (item.id == UHid) then
    backpack:UseItemWithCreature(spots, Afriend:ID())
    break
    end
    end
    end
    end


    while true do
    AutoUH()
    wait(500,1000)
    end
    Last edited by Eion; 04-13-2013 at 04:22 PM.

  9. #9

    Join Date
    Mar 2013
    Posts
    99
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    should i chance the range to 6, this way it can heal my blocker any where on the screen?
    Quote Originally Posted by Wovimus View Post
    Syntax version here:
    lua code:

    --[[
    Auto Healer
    Version 1.02
    Created by Syntax
    ]]

    local config = {
    WhiteList = {"Eternal Oblivion"},
    healWhiteList = true, -- heal players specified in the whitelist
    healParty = true, -- heal party members
    healAlly = true, -- heal war allies

    range = 4, -- max distance to heal players
    mana = 140, -- minimum mana needed to cast
    health = 70, -- % of friends health to heal at

    method = "exura sio" -- this is the only method currently, rune healing will be added later
    }

    local function sio(name)
    if(Self.Mana() >= config.mana)then
    Self.Say("exura sio \""..name)
    sleep(math.random(200,600))
    end
    end

    local function think()
    for i = CREATURES_LOW, CREATURES_HIGH do
    local creature = Creature.GetFromIndex(i)
    if (creature:isValid()) then
    if (creature:isOnScreen() and creature:isVisible() and creature:isAlive()) then
    local name = creature:Name()
    if(creature:isWarAlly() and config.healAlly) or (creature:isPartyMember() and config.healParty) or (table.find(config.WhiteList, name, false) and config.healWhiteList)then
    if(creature:DistanceFromSelf() <= config.range) and (creature:HealthPercent() <= config.health)then
    if(config.method == "exura sio")then
    sio(name)
    else
    displayInformationMessage("Unsupported method type in Auto Healer Script!")
    end
    end
    end
    end
    end
    end
    end

    local function display()
    local display = "Auto Healer by Syntax (v1.02)\n------------------\n\nMethod: " .. config.method .. "\nHeal Party: " .. tostring(config.healParty) .. "\n" .. "Heal War Allies: " .. tostring(config.healAlly)
    if(config.healWhiteList)then
    display = display .. "\n" .. "Heal Players:" .. table.concat(config.WhiteList, ", ")
    end
    displayInformationMessage(display)
    end

    display()

    while true do
    think()
    wait(100,300)
    end

  10. #10
    Lifetime Subscriber
    Join Date
    Jun 2011
    Posts
    280
    Mentioned
    12 Post(s)
    Tagged
    0 Thread(s)
    Sio script is detectable ^^

Posting Permissions

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