View Full Version : Heal friend
Starfox
12-03-2015, 05:02 PM
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)
flazer
12-03-2015, 09:11 PM
I'd enjoy this script as well
Joshwa534
12-03-2015, 10:54 PM
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)
I'd enjoy this script as well
Here (https://www.dropbox.com/sh/w9t72a5xensnp5a/AACZfVHKX9sMmYHJkAvODR-ia?dl=0)'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.
Starfox
12-05-2015, 12:44 AM
Here (https://www.dropbox.com/sh/w9t72a5xensnp5a/AACZfVHKX9sMmYHJkAvODR-ia?dl=0)'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.
Elvang
12-05-2015, 01:54 AM
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.
Starfox
12-05-2015, 07:33 PM
thank you
Fatsquad
12-18-2015, 12:19 AM
Here (https://www.dropbox.com/sh/w9t72a5xensnp5a/AACZfVHKX9sMmYHJkAvODR-ia?dl=0)'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
sholh
12-18-2015, 12:06 PM
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)
sholh
12-18-2015, 07:53 PM
any help please?
fioletowya
12-18-2015, 08:47 PM
--[[
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
sholh
12-19-2015, 01:04 AM
--[[
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
Shadownetz
01-12-2016, 04:58 PM
Error line 22 For me doss it matter im playing ot? or whats wrong?
Powered by vBulletin® Version 4.2.5 Copyright © 2025 vBulletin Solutions Inc. All rights reserved.