Signup Now
Page 1 of 3 123 LastLast
Results 1 to 10 of 25
  1. #1
    Free User Donatello's Avatar
    Join Date
    Dec 2013
    Location
    Tuscany, Italy
    Posts
    398
    Reputation
    51
    Rep Power
    22

    Mana Leech Analyser

    Mana Leech Analyser


    Description

    It helps people to track how much they're profiting using mana leech imbuement.

    Configuration

    Create one persistent hotkey and a HUD with these codes below.

    You must edit table mp, it contains 3 vars:
    • name - a mana potion for reference purposes.
    • avg - how much does this potion heals approximately?
    • get - bot will parse values lower than this, so if you usually heals 20-30 with mana leech imbuement, you should set something higher than 30.



    Screenshots




    Code

    Persistent Hotkey:

    init start

    -- SCRIPT VERSION: 1.0.2

    local mp = {name = "strong mana potion", avg = 150, get = 50}

    -- DO NOT CHANGE BELOW

    local REGEX_MANA_GAINED = '^You gained (%d+) mana%.$'
    manaLeechTotal = 0
    aproxManas = 0
    aproxCash = 0

    init end

    auto(200)
    foreach newmessage m do
    if m.type == MSG_STATUSLOG then
    local gained = m.content:match(REGEX_MANA_GAINED)
    if gained and tonumber(gained) < mp.get then
    manaLeechTotal = manaLeechTotal + gained
    end
    aproxManas = math.floor(manaLeechTotal / mp.avg)
    aproxCash = math.floor(aproxManas*itemcost(mp.name) / 100) / 10
    end
    end



    HUD Script:

    init start
    setfontstyle("Tahoma", 7, 99, "white", 1)
    setmaskcolorxp(0)
    init end

    setposition($clientwin.left + 10, $worldwin.bottom - 10)
    drawtext("Mana Leech: "..manaLeechTotal .." (aprox.: "..aproxManas .."/" ..aproxCash .. "k)")



    MMS:
    {'Mana Leech', function() return math.floor(manaLeechTotal / 100) / 10 .."k ("..aproxManas .."/" ..aproxCash .. "k)" end}


    Feel free to share your opinion/improve the code.
    Last edited by Donatello; 02-16-2017 at 07:52 PM. Reason: Fixed an issue on persistent code.

  2. #2
    Free User
    Join Date
    Aug 2016
    Posts
    72
    Reputation
    16
    Rep Power
    17
    will try it

  3. #3
    Free User Orimorfus's Avatar
    Join Date
    Dec 2013
    Location
    Way to Deletera
    Posts
    314
    Reputation
    92
    Rep Power
    22
    aproxManas and aproxCash are not defined anywhere

  4. #4
    Free User Borges's Avatar
    Join Date
    Feb 2014
    Location
    Brazil
    Posts
    1,468
    Reputation
    205
    Rep Power
    26
    Quote Originally Posted by Orimorfus View Post
    aproxManas and aproxCash are not defined anywhere
    init start

    -- SCRIPT VERSION: 1.0

    local mp = {name = "mana potion", avg = 100, get = 50}

    -- DO NOT CHANGE ABOVE

    local REGEX_MANA_GAINED = '^You gained (%d+) mana%.$'
    manaLeechTotal = 0

    init end

    auto(200)
    foreach newmessage m do
    if m.type == MSG_STATUSLOG then
    local gained = m.content:match(REGEX_MANA_GAINED)
    if gained and tonumber(gained) < mp.get then
    manaLeechTotal = manaLeechTotal + gained
    end
    aproxManas = math.ceil(manaLeechTotal/mp.avg)
    aproxCash = aproxManas*itemcost(mp.name)/1000
    end
    end
    Last edited by Borges; 02-12-2017 at 07:18 PM.
    Helped you? REP+

  5. #5
    Free User Wesker's Avatar
    Join Date
    Dec 2013
    Posts
    462
    Reputation
    -65
    Rep Power
    0
    does it compare the amount of mana leech and manas that you would waste ?

    btw good job.

    it would be good to know if i got the bot to use manas at 80% if im using the mana sor the mana leech jump in.

  6. #6
    Free User Donatello's Avatar
    Join Date
    Dec 2013
    Location
    Tuscany, Italy
    Posts
    398
    Reputation
    51
    Rep Power
    22
    Fixed, sorry, when I posted it I was sleepy.

  7. #7
    Banned
    Join Date
    Jun 2014
    Location
    Sweden
    Posts
    625
    Reputation
    29
    Rep Power
    0
    @Donatello there should i put the MMS ? Nice work man will test when i now what to do with MMS

  8. #8
    Free User Donatello's Avatar
    Join Date
    Dec 2013
    Location
    Tuscany, Italy
    Posts
    398
    Reputation
    51
    Rep Power
    22
    Quote Originally Posted by selassie View Post
    @Donatello there should i put the MMS ? Nice work man will test when i now what to do with MMS

  9. #9
    Banned
    Join Date
    Jun 2014
    Location
    Sweden
    Posts
    625
    Reputation
    29
    Rep Power
    0
    Ok but i dont think my script look like that it is bought script. But gone look =) is this your own script in the pic you show ? And Thx

  10. #10
    Free User Donatello's Avatar
    Join Date
    Dec 2013
    Location
    Tuscany, Italy
    Posts
    398
    Reputation
    51
    Rep Power
    22
    Quote Originally Posted by selassie View Post
    Ok but i dont think my script look like that it is bought script. But gone look =) and thx
    You don't need to use it on MMS, you can use the other HUD that is on main post.

 

 

Posting Permissions

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