XenoBot Forums - Powered by vBulletin

User Tag List

Page 3 of 4 FirstFirst 1234 LastLast
Results 21 to 30 of 34

Thread: Is there a way to setup Sio for teammates

  1. #21

    Join Date
    Mar 2013
    Posts
    99
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I am using
    lua code:
    --[[
    Auto Healer
    Version 1.02
    Created by Syntax
    ]]

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

    range = 6, -- 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(creatureistanceFromSelf() <= 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

    and
    I get this error
    21:08 XenoScript Error:
    Script: 12sio.lua
    Line #: 34
    Chunk: ...\Andy?Documents?XenoBot?Scripts?12sio.lua
    Error: attempt to call global 'creatureistanceFromSelf' (a nil value)
    This is an error with user-input and should not be reported as a bug with XenoBot.

  2. #22

    Join Date
    Sep 2012
    Posts
    17
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    ^

    Change
    Code:
    creatureistanceFromSelf()
    at line 29 to
    Code:
    creature:DistanceFromSelf()
    .

  3. #23

    Join Date
    Jan 2013
    Location
    Louisiana USA
    Posts
    225
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    ahahahhahahahha
    Last edited by Fuzzy; 04-17-2013 at 10:49 PM.
    Bought 1kk from PunktG‎
    Bought Account from Grizzly
    Bought Account from Akilles001
    Bought Script from Avani
    Bought Account from melzo712


  4. #24
    Lifetime Subscriber Wizzard's Avatar
    Join Date
    Dec 2011
    Location
    Sweden
    Posts
    265
    Mentioned
    8 Post(s)
    Tagged
    0 Thread(s)
    I really wonder when we get a decent sio script up on this forum

  5. #25

    Join Date
    May 2013
    Posts
    7
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    im having trouble gettin this work :/

    im seetting like this is it right?


    local config = {}
    config.nameList = {"Son Of Dexter"}
    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)

  6. #26

    Join Date
    May 2013
    Posts
    7
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    it works but when trys heal it says (exura sio 'players name) doesnt have the " before players name

  7. #27

    Join Date
    Apr 2013
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    harley, do this


    change

    Self.Say("exura sio '" .. creature:Name())

    to

    Self.Say("exura sio \"" .. creature:Name())

  8. #28

    Join Date
    Oct 2014
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    this true? Is it easily detectable?

  9. #29

    Join Date
    Oct 2014
    Posts
    38
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Eion View Post
    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
    Worked, thanks

  10. #30

    Join Date
    Nov 2012
    Posts
    332
    Mentioned
    10 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by nashat View Post
    Sio script is detectable ^^
    Lol I have used sio scripts for years and I have never been deleted.

Posting Permissions

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