Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: Mana burning

  1. #1
    Normal User takijestem's Avatar
    Join Date
    Jul 2014
    Posts
    18
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    3

    Mana burning

    Hey guys!

    [TRANSLATE]
    I need that HUD will show how much mana need to burn to reach the next level of magic, I mean it should show the current level of magic, the next and how much it needs to burn mana.

    Sb can help me?

  2. #2
    Normal User RafiXWPT's Avatar
    Join Date
    Jun 2012
    Location
    (Poland) http://rafixwptscripts.com
    Posts
    1,602
    Mentioned
    31 Post(s)
    Tagged
    1 Thread(s)
    Quoted
    128 Post(s)
    Reputation
    128
    Rep Power
    9
    Lua Code:
    local function addbordertext(text, color, xpos, ypos)
        setfontcolor(rgbcolor(1, 1, 1))
        addtext(text, xpos+1, ypos)
        addtext(text, xpos-1, ypos)
        addtext(text, xpos, ypos+1)
        addtext(text, xpos, ypos-1)
        setfontcolor(color)
        addtext(text, xpos, ypos)
    end
     
    function coutmanatolevel(current, multip)
        local manatospend = 1600*(multip^current)*(mlevelpc/100)
        return math.floor(manatospend+.5)
    end
     
    addbordertext('Current Magic Level: '..mlevel, COLOR1, 5, 50)
    addbordertext('Next Magic Level: '..(mlevel+1)..' after:', COLOR2, 5, 65)
    addbordertext(coutmanatolevel(mlevel, 1.4)..' Mana', COLOR3, 5, 80) -- Knights: 3, Paladins: 1.4, Mages: 1.1


    Precision of this HUD is 99.0%.
    Just edit COLORX to make good for you, and set multipler for your vocation, works here.
    Last edited by RafiXWPT; 08-12-2014 at 06:24 PM.

  3. #3
    Normal User takijestem's Avatar
    Join Date
    Jul 2014
    Posts
    18
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    3
    Well, can you changer for me? color does not metter pos to.. my character MS thanks

  4. #4
    Normal User RafiXWPT's Avatar
    Join Date
    Jun 2012
    Location
    (Poland) http://rafixwptscripts.com
    Posts
    1,602
    Mentioned
    31 Post(s)
    Tagged
    1 Thread(s)
    Quoted
    128 Post(s)
    Reputation
    128
    Rep Power
    9
    @takijestem

    Lua Code:
    local function addbordertext(text, color, xpos, ypos)
        setfontcolor(rgbcolor(1, 1, 1))
        addtext(text, xpos+1, ypos)
        addtext(text, xpos-1, ypos)
        addtext(text, xpos, ypos+1)
        addtext(text, xpos, ypos-1)
        setfontcolor(color)
        addtext(text, xpos, ypos)
    end
     
    function coutmanatolevel(current, multip)
        local manatospend = 1600*(multip^current)*(mlevelpc/100)
        return math.floor(manatospend+.5)
    end
     
    addbordertext('Current Magic Level: '..mlevel, 'red', 5, 50)
    addbordertext('Next Magic Level: '..(mlevel+1)..' after:', 'red', 5, 65)
    addbordertext(coutmanatolevel(mlevel, 1.4)..' Mana', 'red', 5, 80) -- Knights: 3, Paladins: 1.4, Mages: 1.1


    try
    Last edited by RafiXWPT; 08-12-2014 at 06:23 PM.

  5. #5
    iBot User pepekoerich's Avatar
    Join Date
    Jun 2012
    Posts
    425
    Mentioned
    5 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    44 Post(s)
    Reputation
    21
    Rep Power
    5
    18:22 : LUAoAction:HUD: - LuaInterface.LuaScriptException: [string "chunk"]:17: malformed number near '1..'
    it's good to be back

  6. #6
    Normal User RafiXWPT's Avatar
    Join Date
    Jun 2012
    Location
    (Poland) http://rafixwptscripts.com
    Posts
    1,602
    Mentioned
    31 Post(s)
    Tagged
    1 Thread(s)
    Quoted
    128 Post(s)
    Reputation
    128
    Rep Power
    9
    Quote Originally Posted by pepekoerich View Post
    18:22 : LUAoAction:HUD: - LuaInterface.LuaScriptException: [string "chunk"]:17: malformed number near '1..'
    http://screenshooter.net/9772902/gsmodsv <- Screen

    Works here without problem, make sure you copied all, if you still have that error try that:
    Lua Code:
    local function addbordertext(text, color, xpos, ypos)
        setfontcolor(rgbcolor(1, 1, 1))
        addtext(text, xpos+1, ypos)
        addtext(text, xpos-1, ypos)
        addtext(text, xpos, ypos+1)
        addtext(text, xpos, ypos-1)
        setfontcolor(color)
        addtext(text, xpos, ypos)
    end
     
    function coutmanatolevel(current, multip)
        local manatospend = 1600*(multip^current)*(mlevelpc/100)
        return math.floor(manatospend+.5)
    end
     
    addbordertext('Current Magic Level: '..mlevel, 'red', 5, 50)
    addbordertext('Next Magic Level: '..tostring(tonumber(mlevel+1))..' after:', 'red', 5, 65)
    addbordertext(coutmanatolevel(mlevel, 1.4)..' Mana', 'red', 5, 80) -- Knights: 3, Paladins: 1.4, Mages: 1.1


    maybe tostring(tonumber()) would solve it for you.

  7. #7
    iBot User pepekoerich's Avatar
    Join Date
    Jun 2012
    Posts
    425
    Mentioned
    5 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    44 Post(s)
    Reputation
    21
    Rep Power
    5
    now working, thanks!
    it's good to be back

  8. #8
    Normal User takijestem's Avatar
    Join Date
    Jul 2014
    Posts
    18
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    3
    ohh yeah thanks

  9. #9
    iBot User
    Join Date
    Oct 2012
    Posts
    11
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    2 Post(s)
    Reputation
    10
    Rep Power
    5
    setfontcolor(rgbcolor(0,250,0))
    addtext(" BRAZILIAN HUD", 10,55)
    addtext("_________________", 7,57)
    addtext("Next LvL:", 10,70)
    addtext("Exp/hour:", 10,85)
    addtext("Exp gained:", 10,100)
    addtext("Time to LvL:", 10,115)
    addtext("Time ON:", 10,130)
    setfontcolor("yellow")
    addtext(exptolevel(), 80,70)
    addtext(exphour, 80,85)
    addtext(expgained, 80,100)
    addtext(timetolevel, 80,115)
    addtext(timehunt, 80,130)
    setfontcolor(rgbcolor(0,250,0))
    function coutmanatolevel(current, multip)
    local manatospend = 1600*(multip^current)*(mlevelpc/100)
    return math.floor(manatospend+.5)
    end
    addtext(" Mana to ML "..(mlevel+1).." = "..coutmanatolevel(mlevel, 3), 7, 145)
    -- Knights:3, Paladins:1.4, Mages:1.1

  10. #10
    iBot User reynald0's Avatar
    Join Date
    Jul 2012
    Location
    Praia Grande-SP
    Posts
    58
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    6 Post(s)
    Reputation
    10
    Rep Power
    5
    Hi Guys, Alright??

    Very cool the Huds, especially the count of mana. But does anyone know how to display the remaining amount of mana to the next ML? these Huds display only the mana spent to ML

    Ty!!

    Fala pessoal, blz?? Muito rox as Huds, especialmente a contagem da mana. Mas alguém sabe como exibir a quantidade de mana restante para o próximo ML? essas Huds exibem a mana gasta para o ML

    vlws!!
    Last edited by reynald0; 09-25-2015 at 01:51 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
  •