XenoBot Forums - Powered by vBulletin

User Tag List

Page 2 of 2 FirstFirst 12
Results 11 to 12 of 12

Thread: Heal friend

  1. #11

    Join Date
    May 2015
    Posts
    92
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by fioletowya View Post
    Code:
    --[[
    Auto Healer
    Version 1.02
    Created by Syntax
    ]]
    
    local config = {
    WhiteList = {"Dopiero Zalogowalem", "Shaelex"},
    healWhiteList = true, -- heal players specified in the whitelist
    healParty = false, -- heal party members
    healAlly = false, -- heal war allies
    
    range = 4, -- max distance to heal players
    mana = 140, -- minimum mana needed to cast
    health = 60, -- % of friend's 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
    sleep(math.random(100,300))
    think()
    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()
    think()
    enjoy
    i wanna heal by Potion not sio

  2. #12

    Join Date
    Dec 2015
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Error line 22 For me doss it matter im playing ot? or whats wrong?

Posting Permissions

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