Signup Now
Page 1 of 3 123 LastLast
Results 1 to 10 of 24
  1. #1
    Free User jakub's Avatar
    Join Date
    Dec 2013
    Location
    Poland
    Posts
    132
    Reputation
    32
    Rep Power
    21

    Sio / Mas Res / Spell Healer


    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.
    Last edited by jakub; 01-11-2014 at 10:09 AM.

  2. #2
    Moderator RoxZin xD's Avatar
    Join Date
    Dec 2013
    Location
    Rio de Janeiro
    Posts
    4,914
    Reputation
    109
    Rep Power
    31
    Looks cool! I was thinking on how to do it nice job, +rep



    Troubled Animals Quest [100+]
    ALL
    Feyrist Animals Surface [160+]
    RP
    Feyrist Silencers Underground X1 [180+]
    RP | EK
    Feyrist Silencers Underground X2 [200+]
    RP | EK
    Feyrist Silencers Surface [210+]
    RP | EK
    Rathleton Sewers [240+]
    RP
    Glooth Fairy [350+]
    ED/MS
    Hardcore Draken Walls [400+]
    EK

  3. #3
    Moderator Raphael's Avatar
    Join Date
    Dec 2013
    Location
    raphseller.com
    Posts
    2,440
    Reputation
    283
    Rep Power
    27
    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.
    RaphSeller
    PayPal Instantaneous Reseller


    raphseller.com

  4. #4
    Free User
    Join Date
    Jan 2014
    Posts
    136
    Reputation
    11
    Rep Power
    21
    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.

  5. #5
    Free User
    Join Date
    Jan 2014
    Posts
    136
    Reputation
    11
    Rep Power
    21
    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.
    Last edited by SweApa; 01-13-2014 at 01:29 PM.

  6. #6
    Free User jakub's Avatar
    Join Date
    Dec 2013
    Location
    Poland
    Posts
    132
    Reputation
    32
    Rep Power
    21
    Thank you I didnt know that I will fix it when I got time

  7. #7
    Free User
    Join Date
    Jan 2014
    Posts
    136
    Reputation
    11
    Rep Power
    21
    Quote Originally Posted by jakub View Post
    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

  8. #8
    Free User pradenho's Avatar
    Join Date
    Dec 2013
    Location
    Brazil
    Posts
    210
    Reputation
    23
    Rep Power
    21
    A question exists as to do without writing? Why are you hunting with hotkey, because this suddenly not Heal in exhausted

  9. #9
    Free User
    Join Date
    Jan 2014
    Posts
    136
    Reputation
    11
    Rep Power
    21
    Plx update

  10. #10
    Free User jakub's Avatar
    Join Date
    Dec 2013
    Location
    Poland
    Posts
    132
    Reputation
    32
    Rep Power
    21
    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 :/
    Last edited by jakub; 01-16-2014 at 12:41 PM.

 

 

Posting Permissions

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