init start
local friends = {
{name = 'Friend1', hppc = 90},
{name = 'Friend2', hppc = 30},
-- you can delete or add friends by copying lines
}
local selfhppc = 90 -- % of your HP to mas res self (if enough people are in range), if your HP% is below will not sio friends.
local mininrange = 2 -- Atleast how many peope has to be in range of mas res to use it (including you only if your HP% is below selfhppc)
-- If theres no action to take it will run SPELL HEALER.
init end
auto(20,50)
local inrange = 0
local tosioname = nil
if $hppc <= selfhppc then
inrange = inrange + 1
end
foreach creature m 'pt' do
for k, v in ipairs(friends) do
if m.name == v.name and m.hppc <= v.hppc then
if tosioname == nil then
tosioname = m.name
end
if m.dist <=3 then
inrange = inrange + 1
end
end
end
end
if inrange >= mininrange then
if getsetting('SpellHealer/Enabled') == 'yes' then
setsetting('SpellHealer/Enabled', 'no')
end
if cancastspell('Mass Healing') then
cast('exura gran mas res')
end
return
end
if tosioname ~= nil and $hppc >= selfhppc then
if getsetting('SpellHealer/Enabled') == 'yes' then
setsetting('SpellHealer/Enabled', 'no')
end
if cancastspell('Heal Friend') then
cast('exura sio "' .. tosioname)
end
return
end
if getsetting('SpellHealer/Enabled') == 'no' then
setsetting('SpellHealer/Enabled', 'yes')
end
edit1: fixed bug
Post feedback please also feel free to improve! It lacks checking if enough mana to cast spells. Also could be improved to sio player with least hp.
Found out LucasLib has massheal and sio functions, but anyway this might be usefull.
01-11-2014, 01:54 AM
RoxZin xD
Looks cool! I was thinking on how to do it :p nice job, +rep
01-11-2014, 03:54 AM
Raphael
Looks pretty cool, mate.
By the way, to check for mana and any other requirements for spells (soul points, cooldown, level, etc...) try using cancastspell from Lucas' lib.
01-13-2014, 01:52 AM
SweApa
omg i didnt see u created a thread with it. i hope this one doesnt give u an error code ! ima try it.
thanks.
Gonna rep u when i tried it.
01-13-2014, 01:18 PM
SweApa
Okey so i tested it now, all works awesome. !!
SOME improvements can be make, like mana check aswell as the
mass res is slower then your selfhealing cooldowns so between 2 mass ress u can fit 1 self heal if its needed between the cooldown.
01-13-2014, 02:54 PM
jakub
Thank you I didnt know that I will fix it when I got time ;)
01-14-2014, 12:37 AM
SweApa
Quote:
Originally Posted by jakub
Thank you I didnt know that I will fix it when I got time ;)
Thanks man! i love your work, with this EK'S nor i will never die !!!!!!!!! <333333333333
01-14-2014, 01:10 AM
pradenho
A question exists as to do without writing? Why are you hunting with hotkey, because this suddenly not Heal in exhausted
01-15-2014, 06:57 PM
SweApa
Plx update :D
01-16-2014, 12:20 PM
jakub
okay gonna check it now:)
EDIT: try if this work well (Can not test myself got no ED):
init start
local friends = {
{name = 'Friend1', hppc = 90},
{name = 'Friend2', hppc = 30},
-- you can delete or add friends by copying lines
}
local selfhppc = 90 -- % of your HP to mas res self (if enough people are in range), if your HP% is below will not sio friends.
local mininrange = 2 -- Atleast how many peope has to be in range of mas res to use it (including you only if your HP% is below selfhppc)
-- If theres no action to take it will run SPELL HEALER.
init end
auto(20,50)
local inrange = 0
local tosioname = nil
if $hppc <= selfhppc then
inrange = inrange + 1
end
foreach creature m 'pt' do
for k, v in ipairs(friends) do
if m.name == v.name and m.hppc <= v.hppc then
if tosioname == nil then
tosioname = m.name
end
if m.dist <=3 then
inrange = inrange + 1
end
end
end
end
if inrange >= mininrange then
if getsetting('SpellHealer/Enabled') == 'yes' then
setsetting('SpellHealer/Enabled', 'no')
end
if cancastspell('Mass Healing') then
cast('exura gran mas res')
elseif cancastspell('Heal Friend') and tosioname ~= nil and $hppc >= selfhppc then
cast('exura sio "' .. tosioname)
end
return
end
if tosioname ~= nil and $hppc >= selfhppc then
if getsetting('SpellHealer/Enabled') == 'yes' then
setsetting('SpellHealer/Enabled', 'no')
end
if cancastspell('Heal Friend') then
cast('exura sio "' .. tosioname)
end
return
end
if getsetting('SpellHealer/Enabled') == 'no' then
setsetting('SpellHealer/Enabled', 'yes')
end
If it work I will put it into first post
Leave feedback please
edit:
It wont self heal if mas res is cooldowned, it will sio. No self heal between mas res will be implemented today sory :/