XenoBot Forums - Powered by vBulletin

User Tag List

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

Thread: Heal friend

  1. #1

    Join Date
    Jan 2015
    Posts
    6
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Heal friend

    Need 1 of the 2 scripts for druid heal friend spell.

    1. simple script that will heal teammates listed when drop below certain hp percentage

    2. one that will give priority of a certain player above others example if I hunt in 4 man team I want my sio to prioritize the knight above the other teammates (however I will always be priority 1 with my normal heal spells I don't want sio to prevent me from healing myself with normal healing spells because knight is prioritized with sio)

  2. #2

    Join Date
    Nov 2015
    Posts
    8
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I'd enjoy this script as well

  3. #3
    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 Starfox View Post
    Need 1 of the 2 scripts for druid heal friend spell.

    1. simple script that will heal teammates listed when drop below certain hp percentage

    2. one that will give priority of a certain player above others example if I hunt in 4 man team I want my sio to prioritize the knight above the other teammates (however I will always be priority 1 with my normal heal spells I don't want sio to prevent me from healing myself with normal healing spells because knight is prioritized with sio)
    Quote Originally Posted by flazer View Post
    I'd enjoy this script as well
    Here's some of mine, sorry I won't edit them to do more than what they're coded for.

    1 will heal the person you specify, at a certain percentage.
    1 will heal ANY guild member, names don't matter, at a certain percentage.

  4. #4

    Join Date
    Jan 2015
    Posts
    6
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Joshwa534 View Post
    Here's some of mine, sorry I won't edit them to do more than what they're coded for.

    1 will heal the person you specify, at a certain percentage.
    1 will heal ANY guild member, names don't matter, at a certain percentage.

    on the first script just add names to top but on the guild one do I have to edit anything in the notepad like put in a guild name or anything or that doesn't matter as well? just curious about the guild one how that works. I don't want it to heal random players in other guilds.

  5. #5
    Moderator Elvang's Avatar
    Join Date
    Dec 2010
    Location
    B.C. Canada
    Posts
    1,365
    Mentioned
    104 Post(s)
    Tagged
    1 Thread(s)
    Quote Originally Posted by Starfox View Post
    on the first script just add names to top but on the guild one do I have to edit anything in the notepad like put in a guild name or anything or that doesn't matter as well? just curious about the guild one how that works. I don't want it to heal random players in other guilds.
    if PlayersNear[i]:isPlayer() and PlayersNear[i]:isGuildmate() then

    You don't need a guild name it gets the information from your character and theirs.

  6. #6

    Join Date
    Jan 2015
    Posts
    6
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    thank you

  7. #7

    Join Date
    Sep 2012
    Posts
    14
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Joshwa534 View Post
    Here's some of mine, sorry I won't edit them to do more than what they're coded for.

    1 will heal the person you specify, at a certain percentage.
    1 will heal ANY guild member, names don't matter, at a certain percentage.

    Hey dude I recently downloaded one of your lua scripts that heals any guild member at whatever % and I keep getting this error randomly and my tibia bugs and closes i was wondering if you know what i can do to fix it.

    the error is this XenoScript error: Script: heal guild.lua Error: not enough memory This is an error with user-input and should not be reported as a bug with XenoBot


    thank you

  8. #8

    Join Date
    May 2015
    Posts
    92
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    i wanna heal by Potion
    i have this code but it doesnt working with me
    local friends = { -- add targets u want to heal and at what percent
    ['Joker'] = 100,
    ['Joker'] = 100
    }


    local option = {



    potion_id = 7643 -- what potion to heal friend
    }

    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 and cistanceFromSelf() == 1) then
    Self.UseItemWithCreature(option['potion_id'], c:ID())
    breaking = true
    break
    end
    end
    end
    modelay(1000)
    end)

  9. #9

    Join Date
    May 2015
    Posts
    92
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    any help please?

  10. #10
    fioletowya's Avatar
    Join Date
    Nov 2015
    Posts
    26
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    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

Posting Permissions

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