Signup Now
Results 1 to 8 of 8
  1. #1
    Banned
    Join Date
    Dec 2013
    Posts
    556
    Reputation
    18
    Rep Power
    0

    Rune Heal Friend

    I have edited Raphael sio friend hotkey (If you want to can close/delete that thread, I didn't ask you about permission to editing and releasing it)

    There is only 1 thing that I can't get working, it works only on the first char name in list ;o

    init start
    -- Friends to heal
    local friends = {
    "Eternal Oblivion",
    "Bubble"
    }

    local healHPPC = 90 -- Minimum HPPC to heal

    table.lower(friends)
    init end

    auto(100)
    foreach creature m 'pt' do
    if m.hppc < healHPPC and table.find(friends, m.name:lower()) then
    useoncreature("ultimate healing rune", unpack(friends))
    wait(300, 500)
    return
    end
    end

  2. #2
    Moderator Raphael's Avatar
    Join Date
    Dec 2013
    Location
    raphseller.com
    Posts
    2,441
    Reputation
    309
    Rep Power
    28
    init start
    -- Friends to heal
    local friends = {
    "Eternal Oblivion",
    "Bubble"
    }

    local healHPPC = 90 -- Minimum HPPC to heal

    table.lower(friends)
    init end

    auto(100)
    foreach creature m 'pt' do
    if m.hppc < healHPPC and table.find(friends, m.name:lower()) then
    useoncreature("ultimate healing rune", m.name:lower())
    wait(300, 500)
    return
    end
    end


    This fixes your problem of only working on the first character in the list.

  3. #3
    Free User
    Join Date
    Oct 2014
    Posts
    172
    Reputation
    10
    Rep Power
    20
    u can heal with uhs on distance ?

  4. #4
    Free User
    Join Date
    Jan 2015
    Posts
    11
    Reputation
    10
    Rep Power
    0
    Quote Originally Posted by terje View Post
    u can heal with uhs on distance ?
    yes you can

  5. #5
    Free User
    Join Date
    Oct 2014
    Posts
    172
    Reputation
    10
    Rep Power
    20
    in that code, can u add more names? like 10+ ppl etc?

    And what about only heal Friends Listed if ur HPPC is higher than 70%+ ~?

  6. #6
    Banned
    Join Date
    Dec 2013
    Posts
    556
    Reputation
    18
    Rep Power
    0
    Quote Originally Posted by terje View Post
    in that code, can u add more names? like 10+ ppl etc?

    And what about only heal Friends Listed if ur HPPC is higher than 70%+ ~?
    It's simple.

        init start
    -- Friends to heal
    local friends = {
    "Eternal Oblivion", "Bubble", "Cachero", "Xulodue", "Deathwonderer"
    }

    local healHPPC = 90 -- Minimum HPPC to heal

    table.lower(friends)
    init end

    auto(100)
    foreach creature m 'pt' do
    if m.hppc < healHPPC and table.find(friends, m.name:lower()) and $hppc > 70 then
    useoncreature("ultimate healing rune", unpack(friends))
    wait(300, 500)
    return
    end
    end

  7. #7
    Free User
    Join Date
    Sep 2014
    Posts
    13
    Reputation
    25
    Rep Power
    0
    Can this be editted to use ultimate health potion on some other friend that is next to you?

  8. #8
    Free User downloadkct's Avatar
    Join Date
    Dec 2013
    Location
    Rio de Janeiro
    Posts
    1,167
    Reputation
    25
    Rep Power
    23
    Quote Originally Posted by Raphael View Post
    init start
    -- Friends to heal
    local friends = {
    "Eternal Oblivion",
    "Bubble"
    }

    local healHPPC = 90 -- Minimum HPPC to heal

    table.lower(friends)
    init end

    auto(100)
    foreach creature m 'pt' do
    if m.hppc < healHPPC and table.find(friends, m.name:lower()) then
    useoncreature("ultimate healing rune", m.name:lower())
    wait(300, 500)
    return
    end
    end


    This fixes your problem of only working on the first character in the list.
    Thanks Raphael ^^
    Old 'n Proud Neobot-Elfbot and blackd user

 

 

Posting Permissions

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