Results 1 to 5 of 5

Thread: count potions USED

  1. #1
    Normal User
    Join Date
    Mar 2013
    Posts
    32
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    4

    count potions USED

    i see there is a loot counter that shows how much money ive made but is there a way to get it to count potions used as well so i know how much ive lost?

  2. #2
    iBot User
    Join Date
    May 2012
    Posts
    31
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5
    doesn't the loot counter by sirmate tell u how many potions u wasted and adds the price up for u

  3. #3
    Normal User Onehit's Avatar
    Join Date
    Mar 2012
    Location
    Cwb
    Posts
    693
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    1 Post(s)
    Reputation
    117
    Rep Power
    7
    Monitor My Hunt does that.

    NÃO RESPONDO DUVIDAS POR PM
    Brasil, aqui você é o palhaço.

  4. #4
    iBot User pink_panther's Avatar
    Join Date
    May 2012
    Location
    Australia
    Posts
    4,075
    Mentioned
    49 Post(s)
    Tagged
    1 Thread(s)
    Quoted
    178 Post(s)
    Reputation
    309
    Rep Power
    10
    Change supplies item and values, and loot items and values

    -- [ General Info HUD by ToadZ v0.4 ] --   http://www.tibiaibot.com/forum/showthread.php?8212-General-Info-HUD-by-ToadZ


    -- Supply Settings

    local suppliesitems = {"Great Spirit Potion", "Strong Mana Potion"}
    local suppsvalue = {190, 80}


    local showSuppliesWasted = true
    local showLoots = true

    local lootitems = {"queen's sceptre", "magic plate armor", "mastermind shield", "demon trophy", "demonrage sword", "demon shield", "golden legs", "red piece of cloth", "giant sword", "spellbook of mind control", "gold ring", "fire axe", "magic sulphur", "skull staff", "gold ingot", "crystal of power", "platinum amulet", "magma boots", "ice rapier", "devil helmet", "royal tapestry", "demon horn", "orb", "talon", "ultimate health potion", "might ring", "small emerald", "stealth ring", "energy ring", "great health potion", "great mana potion", "ring of healing", "platinum coin", "assassin star", "golden sickle", "gold coin", "purple tome", "red tome", "piggy bank", "fire mushroom"}

    local lootsvalue = {999999999, 90000, 50000, 40000, 35000, 30000, 30000, 20000, 17000, 13000, 8000, 8000, 8000, 6000, 5000, 3000, 2500, 2500, 1000, 1000, 1000, 1000, 750, 320, 310, 250, 250, 200, 200, 190, 120, 100, 100, 100, 10, 1, 2000, 2000, 100, 200}

    local fontsize = 10
    local fontspacing = fontsize+2

    local cont = 0
    local y = 45
    local x = 10
    local z = 0
    local totals = 0
    local totall = 0
    local total = 0
    local sub = 17

    local function captalizeAll(first, rest)
    return first:upper()..rest:lower()
    end


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

    if showSuppliesWasted then
    setfontcolor("white") addtext('-----------------------------------------', 0, y) y = y + 10
    setfontcolor("yellow") addtext(' [ Supplies wasted ]', 15, y) y = y + 10
    setfontcolor("white") addtext('-----------------------------------------', 0, y) y = y + 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), 1, sub).."...", x, y)
    else
    addtext(supps[i].name, x, y)
    end

    addtext("- "..supps[i].usage.." ("..(math.floor(supps[i].usage*suppsvalue[i+1] / 100)/10).."k)", 120, y) totals = totals + supps[i].usage*suppsvalue[i+1] y = y + 15
    end
    y = y + 10
    addtext("Total", x, y)
    addtext("-", 120, y)
    addtext(totals.." GPs", 130, y) y = y + 10
    end

    if showLoots then
    setfontcolor("white") addtext('-----------------------------------------', 0, y)
    setfontcolor("yellow") y = y + 10 addtext(' [ Items looted ]', 15, y) y = y + 10
    setfontcolor("white") addtext('-----------------------------------------', 0, y) y = y + 10

    local loots = getitems(unpack(lootitems))
    local qtdl = loots.count-1

    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(lootname, 1, sub).."..", x, y)
    else
    addtext(lootname, x, y)
    end

    addtext("- "..loots[i].loot.." ("..(math.floor(loots[i].loot*lootsvalue[i+1] / 100)/10).."k)", 120, y) totall = totall + loots[i].loot*lootsvalue[i+1] y = y + 15
    end
    end

    y = y + 10
    addtext("Total", x, y)
    addtext("-", 120, y)
    addtext(totall.." GPs", 130, y) y = y + 10
    end

    if showSuppliesWasted and showLoots then
    setfontcolor("white") addtext('-----------------------------------------', 0, y) y = y + 10 total = totall - totals

    if totall-totals > 0 then
    setfontcolor("green") addtext("PROFIT:", x, y)
    else
    setfontcolor("red") addtext("WASTE:", x, y)
    end

    setfontcolor("white") addtext(total.." GPs ("..(math.floor((total/(tosec(timehunt)/3600))/100)/10).."k/h)", x + 50, y) y = y + 10
    end

  5. #5
    Normal User SySiO's Avatar
    Join Date
    Dec 2012
    Posts
    355
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    2 Post(s)
    Reputation
    25
    Rep Power
    5
    The only thing it's not counting potions is when you turn off the hud, it's countinuing counting loot but not potions used.

Posting Permissions

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