Page 1 of 16 12311 ... LastLast
Results 1 to 10 of 155

Thread: General Info HUD by ToadZ

  1. #1
    Normal User ToadZ's Avatar
    Join Date
    Jul 2012
    Location
    Tarantula Caves - Tiquanda
    Posts
    146
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    26
    Rep Power
    5

    Please, stop copying my code without my permission... For sure you can use it at your script free/paid, but please with credits.

    Features

    • Botting Status
    • Position
    • Supplies Counter
    • Monsters Need Kill to Level UP
    • Supplies Wasted (Potions and runes only)
    • Itens Looted
    • Calculates Gold Per Hour




    Full Version

    http://pastebin.com/LzaAwF08

    PHP Code:
    -- [ General Info HUD by ToadZ v0.4 ] --                               

    -- [ 
    Settings ] --
    local RaphaelLibrary false

    -- [ Botting Status by PV! ] --
    local showBotting true

    -- [ Position ] --
    local showPosition false

    -- [ Kills to Level UP ] --
    local showKillToUp false
    local monsterswillkill 
    = {"Lizard Chosen""Lizard High Guard"}
    local monstersexp = {22001450}

    -- [ 
    Supplies Counter ] --
    local showSupplies false
    local item1 
    = {name "Strong Mana Potion"buy 1200min 100}
    local item2 = {name "Crystalline Arrow"buy 1400min 100}
    local item3 = {name "Assassin Star"buy 50min 0}
    local items = {item1item2item3}

    -- [ 
    Supplies Wasted ] --
    local showSuppliesWasted true
    local suppliesitems 
    = {'strong mana potion'}
    local suppsvalue = {80}

    -- [ 
    Items looted ] --
    local showLoots true
    local lootitems 
    = {"Gold Coin""Platinum Coin""Zaoan Armor""Zaoan Legs""Zaoan Shoes""Zaoan Robe""Zaoan Helmet""Tower Shield""Strong Health Potion""Strong Mana Potion""Great Health Potion""Great Mana Potion""Spiked Iron Ball""Cursed Shoulder Spikes""Corrupted Flag""Lizard Scale""Small Diamond""Dragon Priest's Wandtip""Lizard Leather""Scale of Corruption""High Guard Shoulderplates""High Guard Flag""Small Emerald""Life Ring""Small Amethyst""Wand of Inferno""Terra Rod""Yellow Gem""Focus Cape"}
    local lootsvalue = {1100140001400050001200045000800000001003207001203001751506801305502504002003000200010006000}

    local myname true -- DO NOT DISABLEmake your char stop healing :P

    -- [ ENGINE ] --
    -- do 
    not change it below

    local fontsize 
    10
    local fontspacing 
    fontsize+2

    local cont 
    0
    local x 
    5
    local y 
    0
    local z 
    0
    local totals 
    0
    local totall 
    0
    local total 
    0
    local sub 
    17
    local 
    function captalizeAll(firstrest)
      return 
    first:upper()..rest:lower()
    end

    if clientwin.~= nil or clientwin.~= nil then
       setposition
    (clientwin.x+13clientwin.y+30)
    else
       
    setposition(520)
    end

    setfontstyle
    ("Tahoma"fontsize"white")
    -- [[ 
    Botting ]]
    if 
    showBotting then
       setfontcolor
    ("white")
       
    addtext('-----------------------------------------'0y)
       
    setfontcolor("yellow")
       
    10
       addtext
    ('             [ Botting ]'15y)
       
    10
       setfontcolor
    ("white")
       
    addtext('-----------------------------------------'0y)
       
    10
       addtext
    ('Exp Per Hour'xy)
       
    addtext('- ' .. exphour120y)
       
    15
       addtext
    ('Exp Left'xy)
       
    addtext('- ' .. exptolevel(), 120y)
       
    15
       addtext
    ('Exp Gained'xy)
       
    addtext('- ' .. expgained120y)
       
    15
       addtext
    ('Time To Next Level'xy)
       
    addtext('- ' .. timetolevel120y)
       
    15
       addtext
    ('Stamina'xy)
       
    addtext('- '120y)
       if 
    stamina >= 2400 then
          setfontcolor
    ("green")
       else if 
    stamina 2400 and (stamina 840then
             setfontcolor
    ("orange")
          else if 
    stamina <= 840 then
             setfontcolor
    ("red")
             
    end
          end
       end
       
    if RaphaelLibrary then
          addtext
    (time(stamina), 130y)
       else
          
    addtext(stamina130y)
       
    end
       y 
    15
       setfontcolor
    ("white")
       
    addtext('Time Played'xy)
       
    addtext('- ' .. timehunt120y)
       
    15
       addtext
    ('Cavebot'xy)
       
    addtext('- '120y)
       if 
    cavebot then
          setfontcolor
    ("green")
          
    addtext('ON'130y)
       else
          
    setfontcolor("red")
          
    addtext('OFF'130y)
       
    end
       y 
    15
       setfontcolor
    ("white")
       
    addtext('- '120y)
       
    addtext('Targeting'xy)
       if 
    targeting then
          setfontcolor
    ("green")
          
    addtext('ON'130y)
       else
          
    setfontcolor("red")
          
    addtext('OFF'130y)
       
    end
       y 
    15
       setfontcolor
    ("white")
       
    addtext('Looting'xy)
       
    addtext('- '120y)
       if 
    looting then
          setfontcolor
    ("green")
          
    addtext('ON'130y)
       else
          
    setfontcolor("red")
          
    addtext('OFF'130y)
       
    end
       y 
    15
       setfontcolor
    ("white")
       
    addtext('Walk Through'xy)
       
    addtext('- '120y)
       if 
    getsettings("Settings/CaveBot/Pathfinding/WalkThroughPlayers") == 'yes' then
          setfontcolor
    ("green")
          
    addtext('ON'130y)
       elseif 
    getsettings("Settings/CaveBot/Pathfinding/WalkThroughPlayers") == 'no' then
          setfontcolor
    ("red")
          
    addtext('OFF'130y)
       else
          
    setfontcolor("yellow")
          
    addtext('???'130y)
       
    end
       y 
    15
       setfontcolor
    ("white")
       
    addtext('Balance'xy)
       
    addtext('- '120y)
       if 
    balance == -1 then
          addtext
    ('?'130y)
       else
          
    addtext(balance130y)
       
    end
       y 
    10
    end

    -- [[ Position ]]

    if 
    showPosition then
       setfontcolor
    ("white")
       
    addtext('-----------------------------------------'0y)
       
    setfontcolor("yellow")
       
    10
       addtext
    ('            [ Position ]'15y)
       
    10
       setfontcolor
    ("white")
       
    addtext('-----------------------------------------'0y)
       
    10
       addtext
    ("Position X "xy)
       
    addtext("- "..posx120y)
       
    15
       addtext
    ("Position Y "xy)
       
    addtext("- "..posy120y)
       
    15
       addtext
    ("Position Z "xy)
       
    addtext("- "..posz120y)
       
    15
       addtext
    ("Cursor ID"xy)
       
    addtext('- '..cursorinfo().id120y)
       
    10
    end

    -- [[ Kills to Level UP ]]

    if 
    showKillToUp then
       setfontcolor
    ("white")
       
    addtext('-----------------------------------------'0y)
       
    setfontcolor("yellow")
       
    10
       addtext
    ('       [ Kills to Level UP ]'15y)
       
    10
       setfontcolor
    ("white")
       
    addtext('-----------------------------------------'0y)
       
    10
       
    for ij in pairs(monsterswillkill) do
          
    addtext(jxy)
          
    addtext(math.floor(exptolevel()/monstersexp[i]), 130y)
          
    15
       end
    end

    -- [[ Supplies ]]

    if 
    showSupplies then
       setfontcolor
    ("white"
       
    addtext('-----------------------------------------'0y)
       
    setfontcolor("yellow")
       
    10
       addtext
    ('            [ Supplies ]'15y)
       
    10
       setfontcolor
    ("white")
       
    addtext('-----------------------------------------'0y)
       
    10
       
    for ij in pairs(items) do
          if 
    itemid(items[i].name) == ammo then
             cont 
    itemcount(items[i].name) + ammoamount
          
    elseif itemid(items[i].name) == weapon then
             cont 
    itemcount(items[i].name) + weaponamount
          
    else
             
    cont itemcount(items[i].name)
          
    end
          addtext
    (items[i].namexy)
          
    addtext('-'120y)
          if 
    cont <= items[i].min then
             setfontcolor
    ("red")
          elseif 
    cont <= (items[i].buy/2then
             setfontcolor
    ("yellow")
          elseif 
    cont items[i].buy then
             setfontcolor
    ("white")
          else
             
    setfontcolor("green")
          
    end
          
    if itemid(items[i].name) == ammo then
             addtext
    (cont130y)
          elseif 
    itemid(items[i].name) == weapon then
             addtext
    (cont130y)
          else
             
    addtext(cont130y)
          
    end
          setfontcolor
    ("white")
          
    15
       end
       y 
    5
    end

    if showSuppliesWasted then setfontcolor("white"addtext('-----------------------------------------'0y10 setfontcolor("yellow"addtext('       [ Supplies wasted ]'15y10 setfontcolor("white"addtext('-----------------------------------------'0y10 local supps getitems(unpack(suppliesitems)) local qtds supps.count-for i=0,qtds do if string.len(supps[i].name) > 17 then addtext(string.sub((supps[i].name), 1sub).."..."xy) else addtext(supps[i].namexyend addtext("- "..supps[i].usage.." ("..(math.floor(supps[i].usage*suppsvalue[i+1] / 100)/10).."k)"120ytotals totals supps[i].usage*suppsvalue[i+115 end y 10 addtext("Total"xyaddtext("-"120yaddtext(totals.." GPs"130y10 end if showLoots then setfontcolor("white"addtext('-----------------------------------------'0ysetfontcolor("yellow"10 addtext('         [ Items looted ]'15y10 setfontcolor("white"addtext('-----------------------------------------'0y10 local loots getitems(unpack(lootitems)) local qtdl loots.count-for i=0,qtdl do if loots[i].loot 0 then lootname loots[i].name:gsub("(%a)([%w_']*)"captalizeAll) if string.len(loots[i].name) > 17 then addtext(string.sub(lootname1sub)..".."xy) else addtext(lootnamexyend addtext("- "..loots[i].loot.." ("..(math.floor(loots[i].loot*lootsvalue[i+1] / 100)/10).."k)"120ytotall totall loots[i].loot*lootsvalue[i+115 end end y 10 addtext("Total"xyaddtext("-"120yaddtext(totall.." GPs"130y10 end if showSuppliesWasted and showLoots then setfontcolor("white"addtext('-----------------------------------------'0y10 total totall totals if totall-totals 0 then setfontcolor("green"addtext("PROFIT:"xy) else setfontcolor("red"addtext("WASTE:"xyend setfontcolor("white"addtext(total.." GPs ("..(math.floor((total/(tosec(timehunt)/3600))/100)/10).."k/h)"50y10 end

    setfontcolor
    ("white")
    addtext('-----------------------------------------'0y)
    if 
    myname then
       setfontcolor
    ("yellow")
       
    10
       addtext
    ('          [ HUD by ToadZ ]'5y)
       
    10
       setfontcolor
    ("white")
       
    addtext('-----------------------------------------'0y)
    end 
    Waring! Your character may stop targeting if you click to edit it on iBot
    For any questions, just reply.
    Last edited by ToadZ; 08-08-2012 at 12:58 AM.

  2. #2
    Normal User ToadZ's Avatar
    Join Date
    Jul 2012
    Location
    Tarantula Caves - Tiquanda
    Posts
    146
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    26
    Rep Power
    5
    REALLY SORRY FOR THE BAD ENGLISH

    How to use it

    1. Botting Status

    To active botting status, just set showBotting = true



    And you will get this, with your exp/h, exp left to next level, exp gained from the bot start to moment, the time for the next level, your stamina in minutes (time formatted if you got Raphael's library), time played, your Cavebot, Looting, Targeting and Walk Through Players status and your last balance message (Will show "?" if don't get a balance message yet):



    2. Position

    To active position, just set showPosition = true



    And you will get this, with your current xyz position and ID of item above of your mouse cursor:



    3. Monsters Need Kill to Level UP

    To count how many monsters you need kill for the next level, set showKillsToUp = true and at monsterswillkill = {}, add a list of monsters you like to count (monster name don't need to be correct). On monstersexp = {}, add, at position of monsters, their exp.



    Other exemples:

    Code:
    -- [ Kills to Level UP ] --
    local showKillsToUp = true
    local monsterswillkill = {"Rotworm", "Carrion Worm"}
    local monstersexp = {40, 70}
    Code:
    -- [ Kills to Level UP ] --
    local showKillsToUp = true
    local monsterswillkill = {"Mutated Human", "Slime", "Mutated Rat"}
    local monstersexp = {150, 160, 450}
    You will get this:



    4. Supplies Counter

    5. Supplies Wasted

    6. Itens Looted

    7. Gold Per Hour
    Last edited by ToadZ; 07-21-2012 at 09:51 AM.

  3. #3
    Normal User ToadZ's Avatar
    Join Date
    Jul 2012
    Location
    Tarantula Caves - Tiquanda
    Posts
    146
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    26
    Rep Power
    5
    Change Log

    v0.1
    • Initial Release

    v0.2
    • Add a gold per hour based on (total gold / time played)
    • Strings now will sub if lenght > 17
    • Floor items total value
    • Now Raphael Library is opcional

    v0.3
    • Fixed a bug on gold per hour
    • Add bank balance field
    • Add walk through players field
    • Add a light version

    v0.4
    • Captalize item loot list
    • Add a monster to kill for next level


    To Do

    • Function to add wastes like Soft Boots, AS, ammo, etc. (Not possible yet)
    • Auto-add values to items by using Ropiderz library
    • Add a protect, if itemname is wrong, do not stop hud at all


    Special thanks to FrogZ who help me a lot!

    Got any suggestions? Reply it, please!
    Last edited by ToadZ; 07-21-2012 at 07:00 PM.

  4. #4
    Normal User FrogZ's Avatar
    Join Date
    Jul 2012
    Location
    Laguna Island - LB
    Posts
    239
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    14
    Rep Power
    5
    Kou ack ack ack, kou ack ack ack!

  5. #5
    Normal User ToadZ's Avatar
    Join Date
    Jul 2012
    Location
    Tarantula Caves - Tiquanda
    Posts
    146
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    26
    Rep Power
    5
    Quote Originally Posted by Ropiderz View Post
    Yo mate, I'm working to complete fix my items library, so you can add it later , but I think monster to kill for next level requires something like each monster exp - (exptolevel(a)-exp), sirmate have that on his lib. Also 'to do' list is outdated.
    Waiting anxiously for your items library, thanks for the good work You are making a items.xml, right?
    I think I will make a array to monster name and another to exp for now..

  6. #6
    Normal User ToadZ's Avatar
    Join Date
    Jul 2012
    Location
    Tarantula Caves - Tiquanda
    Posts
    146
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    26
    Rep Power
    5
    Quote Originally Posted by Ropiderz View Post
    Not really, I'm trying to load my lib after the items.xml, so everyone can use it normally.
    You can't just overwrite iBot function like Raphael made at his library?

  7. #7
    Normal User Kewx's Avatar
    Join Date
    Feb 2012
    Posts
    20
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    11
    Rep Power
    5
    , why u can't help me in forum? maybe others players wanna help too.

  8. #8
    Normal User ToadZ's Avatar
    Join Date
    Jul 2012
    Location
    Tarantula Caves - Tiquanda
    Posts
    146
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    26
    Rep Power
    5
    Quote Originally Posted by Kewx View Post
    , why u can't help me in forum? maybe others players wanna help too.
    None suggestion, post your HUD setup, please.

  9. #9
    Normal User Kewx's Avatar
    Join Date
    Feb 2012
    Posts
    20
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    11
    Rep Power
    5
    PHP Code:
    -- [[ General Info HUD by RevoltZ v0.3 ]]

    -- [[ 
    Settings ]]
    local RaphaelLibrary false

    -- [[ General and Botting Status by PV! ]]
    local showGeneral false
    local showBotting 
    true

    -- [[ Position ]]
    local showPosition false

    -- [[ Supplies Counter ]]
    local showSupplies false
    local item1 
    = {name "Mana Potion"buy 1200min 100}
    local item2 = {name "Onyx Arrow"buy 1400min 100}
    local item3 = {name "Assassin Star"buy 50min 0}
    local items = {item1item2item3}

    -- [[ 
    Supplies Wasted ]]
    local showSuppliesWasted true
    local suppliesitems 
    = {'mana potion'}
    local suppsvalue = {50}

    -- [[ 
    Items looted ]]
    local showLoots true
    local lootitems 
    = {"Gold Coin""Elven Scouting Glass""Elvish Talisman""Heaven Blossom""Elvish Bow""Elven Astral Observer""Holy Orchid""Wand of Cosmic Energy""Life Crystal""Yellow Gem"}
    local lootsvalue = {1504550200090150020005001000}

    local myname true -- DO NOT DISABLEmake your char stop healing :P

    local fontsize 
    10
    local fontspacing 
    fontsize+2

    -- [[ ENGINE ]] -- do not change it below

    local cont 
    0
    local x 
    5
    local y 
    0
    local z 
    0
    local totals 
    0
    local totall 
    0
    local total 
    0
    local sub 
    17

    -- [[ General ]]

    if 
    clientwin.~= nil or clientwin.~= nil then
    setposition
    (clientwin.x+5clientwin.y+20)
    else
    setposition(520)
    end
    setfontstyle
    ("Tahoma"fontsize"white")
    if 
    showGeneral then
    setfontcolor
    ("white")
    addtext('-----------------------------------------'0y)
    setfontcolor("yellow")
    10
    addtext
    (' [ General ]'5y
    setfontcolor("white")
    10
    addtext
    ('-----------------------------------------'0y
    setfontcolor("white")
    10
    addtext
    ('Level'xy)
    addtext('- '..level12030)
    15
    addtext
    ('Experience'xy)
    addtext('- '..exp120y)
    15
    addtext
    ('Health'xy)
    if 
    hppc 25 then
    setfontcolor
    ("red")
    else if 
    hppc 50 then
    setfontcolor
    ("yellow")
    else
    setfontcolor("white")
    end
    end
    addtext
    ('- '..hp..' ('..hppc..'%)'120y)
    15
    setfontcolor
    ("white")
    addtext('Mana'xy)
    if 
    mppc 25 then
    setfontcolor
    ("red")
    else if 
    mppc 50 then
    setfontcolor
    ("yellow")
    else
    setfontcolor("white")
    end
    end
    addtext
    ('- '..mp..' ('..mppc..'%)'120y)
    15
    setfontcolor
    ("white")
    addtext('Magic Level'xy
    addtext('- '..mlevel..' ('..100-mlevelpc.. '%)'120y)
    10 
    end

    -- [[ Botting ]]

    if 
    showBotting then
    setfontcolor
    ("white"
    addtext('-----------------------------------------'0y
    setfontcolor("yellow")
    10
    addtext
    (' [ Botting ]'15y
    setfontcolor("white"
    10
    addtext
    ('-----------------------------------------'0y
    setfontcolor("white"
    10
    addtext
    ('Exp Per Hour'xy)
    addtext('- ' .. exphour120y
    15
    addtext
    ('Exp Left'xy)
    addtext('- ' .. exptolevel(), 120y
    15
    addtext
    ('Exp Gained'xy)
    addtext('- ' .. expgained120y)
    15
    addtext
    ('Time To Next Level'xy)
    addtext('- ' .. timetolevel120y)
    15
    addtext
    ('Stamina'xy)
    addtext('- '120y
    if 
    stamina >= 2400 then
    setfontcolor
    ("green"
    else if 
    stamina 2400 and (stamina 840then
    setfontcolor
    ("orange")
    else if 
    stamina <= 840 then
    setfontcolor
    ("red")
    end
    end
    end
    if RaphaelLibrary then
    addtext
    (time(stamina), 130y)
    else
    addtext(stamina130y)
    end 
    15
    setfontcolor
    ("white")
    addtext('Time Played'xy)
    addtext('- ' .. timehunt120y)
    15
    addtext
    ('Cavebot'xy)
    addtext('- '120y)
    if 
    cavebot then
    setfontcolor
    ("green")
    addtext('ON'130y)
    else
    setfontcolor("red")
    addtext('OFF'130y)
    end
    15
    setfontcolor
    ("white")
    addtext('- '120y)
    addtext('Targeting'xy)
    if 
    targeting then
    setfontcolor
    ("green")
    addtext('ON'130y)
    else
    setfontcolor("red")
    addtext('OFF'130y)
    end 
    15
    setfontcolor
    ("white")
    addtext('Looting'xy)
    addtext('- '120y)
    if 
    looting then
    setfontcolor
    ("green")
    addtext('ON'130y
    else 
    setfontcolor("red")
    addtext('OFF'130y
    end
    15
    setfontcolor
    ("white")
    addtext('Walk Through'xy)
    addtext('- '120y)
    if 
    getsettings("Settings/CaveBot/Pathfinding/WalkThroughPlayers") == 'yes' then
    setfontcolor
    ("green")
    addtext('ON'130y
    elseif 
    getsettings("Settings/CaveBot/Pathfinding/WalkThroughPlayers") == 'no' then
    setfontcolor
    ("red")
    addtext('OFF'130y)
    else
    setfontcolor("yellow")
    addtext('???'130y)
    end
    15
    setfontcolor
    ("white")
    addtext('Balance'xy)
    addtext('- '120y)
    if 
    balance == -1 then
    addtext
    ('?'130y)
    else
    addtext(balance130y)
    end
    10
    end

    -- [[ Position ]]

    if 
    showPosition then
    setfontcolor
    ("white")
    addtext('-----------------------------------------'0y)
    setfontcolor("yellow")
    10
    addtext
    (' [ Position ]'15y)
    10
    setfontcolor
    ("white")
    addtext('-----------------------------------------'0y)
    setfontcolor("white")
    10
    addtext
    ("Position X "xy)
    addtext("- "..posx120y)
    15
    addtext
    ("Position Y "xy)
    addtext("- "..posy120y)
    15
    addtext
    ("Position Z "xy)
    addtext("- "..posz120y)
    15
    addtext
    ("Cursor ID"xy)
    addtext('- '..cursorinfo().id120y)
    10
    end

    -- [[ Supplies ]]

    if 
    showSupplies then
    setfontcolor
    ("white"
    addtext('-----------------------------------------'0y)
    setfontcolor("yellow")
    10
    addtext
    (' [ Supplies ]'15y)
    10
    setfontcolor
    ("white")
    addtext('-----------------------------------------'0y)
    setfontcolor("white")
    10
    for ij in pairs(items) do
    if 
    itemid(items[i].name) == ammo then
    cont 
    itemcount(items[i].name) + ammoamount
    elseif itemid(items[i].name) == weapon then
    cont 
    itemcount(items[i].name) + weaponamount
    else
    cont itemcount(items[i].name)
    end
    addtext
    (items[i].namexy)
    addtext('-'120y)
    if 
    cont <= items[i].min then
    setfontcolor
    ("red")
    elseif 
    cont <= (items[i].buy/2then
    setfontcolor
    ("yellow")
    elseif 
    cont items[i].buy then
    setfontcolor
    ("white")
    else
    setfontcolor("green")
    end
    if itemid(items[i].name) == ammo then
    addtext
    (cont130y)
    elseif 
    itemid(items[i].name) == weapon then
    addtext
    (cont130y)
    else
    addtext(cont130y)
    end
    setfontcolor
    ("white")
    15
    end
    5
    end

    -- [[ Supplies Wasted ]]

    if 
    showSuppliesWasted then
    setfontcolor
    ("white")
    addtext('-----------------------------------------'0y)
    setfontcolor("yellow")
    10
    addtext
    (' [ Supplies wasted ]'15y)
    10
    setfontcolor
    ("white")
    addtext('-----------------------------------------'0y)
    setfontcolor("white")
    10
    local supps 
    getitems(unpack(suppliesitems))
    local qtds supps.count-1
    for i=0,qtds do
    if 
    string.len(supps[i].name) > 17 then
    addtext
    (string.sub((supps[i].name), 1sub).."..."xy)
    else
    addtext(supps[i].namexy)
    end
    addtext
    ("- "..supps[i].usage.." ("..(math.floor(supps[i].usage*suppsvalue[i+1] / 100)/10).."k)"120y)
    totals totals supps[i].usage*suppsvalue[i+1]
    15
    end
    addtext
    ("Total"xy)
    addtext("-"120y)
    addtext(totals.." GPs"130y)
    10
    end

    -- [[ Loots ]]

    if 
    showLoots then
    setfontcolor
    ("white")
    addtext('-----------------------------------------'0y)
    setfontcolor("yellow")
    10
    addtext
    (' [ Items looted ]'15y)
    10
    setfontcolor
    ("white")
    addtext('-----------------------------------------'0y)
    setfontcolor("white")
    10
    local loots 
    getitems(unpack(lootitems))
    local qtdl loots.count-1
    for i=0,qtdl do
    if 
    loots[i].loot 0 then
    if string.len(loots[i].name) > 17 then
    addtext
    (string.sub((loots[i].name), 1sub).."..."xy)
    else
    addtext(loots[i].namexy)
    end
    addtext
    ("- "..loots[i].loot.." ("..(math.floor(loots[i].loot*lootsvalue[i+1] / 100)/10).."k)"120y)
    totall totall loots[i].loot*lootsvalue[i+1]
    15
    end
    end
    addtext
    ("Total"xy)
    addtext("-"120y)
    addtext(totall.." GPs"130y)
    10
    end

    if showSuppliesWasted and showLoots then
    setfontcolor
    ("white")
    addtext('-----------------------------------------'0y)
    10
    total 
    totall totals
    if totall-totals 0 then
    setfontcolor
    ("green")
    addtext("PROFIT:"xy)
    else
    setfontcolor("red")
    addtext("WASTE:"xy)
    end
    setfontcolor
    ("white")
    addtext(total.." GPs ("..(math.floor((total/(tosec(timehunt)/3600))/100)/10).."k/h)"50y)
    10
    end

    setfontcolor
    ("white")
    addtext('-----------------------------------------'0y)

    if 
    myname then
    setfontcolor
    ("yellow")
    10
    addtext
    (' [ HUD by RevoltZ ]'5y)
    setfontcolor("white")
    10
    addtext
    ('-----------------------------------------'0y)
    end 
    Last edited by Kewx; 07-11-2012 at 10:41 AM.

  10. #10
    Normal User FrogZ's Avatar
    Join Date
    Jul 2012
    Location
    Laguna Island - LB
    Posts
    239
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    14
    Rep Power
    5
    Quote Originally Posted by ToadZ View Post
    None suggestion, post your HUD setup, please.
    haha just to dont ask to you to paste the hud here... i knew he was going to paste the hud without the tags PHP
    Last edited by FrogZ; 07-11-2012 at 10:26 AM.

Posting Permissions

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