Results 1 to 1 of 1

Thread: [Action] Healer (Configurable)

  1. #1
    Normal User
    Join Date
    Jun 2012
    Location
    Sweden
    Posts
    1,671
    Mentioned
    18 Post(s)
    Tagged
    1 Thread(s)
    Quoted
    8 Post(s)
    Reputation
    132
    Rep Power
    9

    [Action] Healer (Configurable)

    Hi!
    I've seen that alot of people having trouble with the healer so I figured I should make an healer in actions instead of the iBot healer to whoever have problem with iBot healer!

    PHP Code:
    -- [[
    v1.1
    Change the spam rate of the action to 200
    -200
    You can add 
    as many rules as you want
    ]]--
    local HEALER = {
        {   -- 
    RULE1
            ENABLED        
    true,
            
    HPPC        = {0,30}, -- Health percent to cast
            MPPC        
    = {10100}, -- Mana percent to cast
            ACTION        
    "exura vita" -- "spell" or "hotkey(potion/uh)"
        
    },
        {   -- 
    RULE2
            ENABLED        
    true,
            
    HPPC        = {31,70}, -- Health percent to cast
            MPPC        
    = {10100}, -- Mana percent to cast
            ACTION        
    "exura gran" -- "spell" or "hotkey(potion/uh)"
        
    },
        {   -- 
    RULE3
            ENABLED        
    true,
            
    HPPC        = {71,88}, -- Health percent to cast
            MPPC        
    = {10100}, -- Mana percent to cast
            ACTION        
    "exura" -- "spell" or "hotkey(potion/uh)"
        
    },
        {   -- 
    RULE4
            ENABLED        
    true,
            
    HPPC        = {0,100}, -- Health percent to cast
            MPPC        
    = {080}, -- Mana percent to cast
            ACTION        
    "F9" -- "spell" or "hotkey(potion/uh)"
        
    }
    }

    -- [[ DO 
    NOT EDIT BELOW ]]
    local HOTKEYS = {"F1","F2","F3","F4","F5","F6","F7","F8","F9","F10","F11","F12","SHIFT+F1","SHIFT+F2","SHIFT+F3","SHIFT+F4","SHIFT+F5","SHIFT+F6","SHIFT+F7","SHIFT+F8","SHIFT+F9","SHIFT+F10","SHIFT+F11","SHIFT+F12","CTRL+F1","CTRL+F2","CTRL+F3","CTRL+F4","CTRL+F5","CTRL+F6","CTRL+F7","CTRL+F8","CTRL+F9","CTRL+F10","CTRL+F11","CTRL+F12"}

    for 
    #HEALER, 1, -1 do
        
    if (HEALER[i].ENABLED) and (hppc >= HEALER[i].HPPC[1] and hppc <= HEALER[i].HPPC[2]) and (mppc >= HEALER[i].MPPC[1] and mppc <= HEALER[i].MPPC[2]) then
            
    if not table.find(HOTKEYS,HEALER[i].ACTION) and (cancast(HEALER[i].ACTION)) then
                cast
    (HEALER[i].ACTION)
            elseif (
    table.find(HOTKEYS,HEALER[i].ACTION)) then
                usehotkey
    (HEALER[i].ACTION)
            
    end        
            
    break
        
    end
    end 
    Notes:
    It's recommended to set the mana drinker to high mana as it will not drink mana and heal at the same time(eg. 0-80%)

    Hotkeys:
    F1 to F12
    SHIFT+F1 to SHIFT+F12
    CTRL+F1 to CTRL+F12

    Change log:
    Code:
    v1.0 - Initial release
    v1.1 - Rewrote everything - Merged potions & spells
    Todo:
    Code:
    Add utura/utura gran
    Make it better in any possible way

    It's not better than the built in healer but it's decent if you got troubles with the iBot healer.
    I'll update the code to make it better & smarter as my LUA knowledge expands, please post feedback if you tested!

    Regards,
    Soder.
    Last edited by soder; 03-07-2013 at 05:32 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
  •