XenoBot Forums - Powered by vBulletin

User Tag List

Page 4 of 4 FirstFirst ... 234
Results 31 to 34 of 34

Thread: Is there a way to setup Sio for teammates

  1. #31

    Join Date
    Sep 2013
    Location
    Netherlands
    Posts
    135
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    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

    Hello @Syntax,

    Is it me, or when we share experience the healparty function is not working? Do we need an alternative for this?


    With best regards,
    Nos.

  2. #32
    rihop's Avatar
    Join Date
    Feb 2014
    Location
    Germany
    Posts
    119
    Mentioned
    15 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Nosarios View Post
    Hello @Syntax,

    Is it me, or when we share experience the healparty function is not working? Do we need an alternative for this?


    With best regards,
    Nos.
    its true when u enable expshare it wont work anymore, also i noticed it on the AUTO AREA ATK where it also dont work, so i quess partymember() dont work on exp share...

    i hope that will get fixed somhow...

  3. #33

    Join Date
    Mar 2014
    Location
    Scotland
    Posts
    38
    Mentioned
    0 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
    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)



    Do you copy and paste that to note pad? Im just used to clicking a download link. thanks in advance.

  4. #34

    Join Date
    May 2015
    Posts
    92
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    is there any potion heal script pleasE?

Posting Permissions

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