Results 1 to 4 of 4

Thread: Help prismatic bolt counter

  1. #1
    Normal User
    Join Date
    Dec 2012
    Posts
    21
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    11
    Rep Power
    4

    Cool Help prismatic bolt counter

    AS the topic says i need bot to add prismatic bolts that were bought in hud loot counter, can somebody help me brahs ?

  2. #2
    iBot User
    Join Date
    Jun 2012
    Posts
    517
    Mentioned
    11 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    4 Post(s)
    Reputation
    132
    Rep Power
    7
    Quote Originally Posted by ionscurtuweb View Post
    AS the topic says i need bot to add prismatic bolts that were bought in hud loot counter, can somebody help me brahs ?
    You are making your own hud or using someone's?

  3. #3
    Normal User
    Join Date
    Dec 2012
    Posts
    21
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    11
    Rep Power
    4
    Quote Originally Posted by garkstal13 View Post
    You are making your own hud or using someone's?
    -- Loots
    local lootsitems = {'gold coin', 'Dragon Scale Mail', 'Royal Helmet', 'Tower Shield', 'Dragon Lord Trophy', 'Dragon Slayer', 'Fire Sword', 'Strange Helmet', 'Life crystal', 'Red Dragon Leather', 'Red Dragon Scale', 'Small Sapphire', 'magma boots', 'dragon slayer'}
    local lootsvalue = {1,40000,30000,8000,10000,15000,4000,500,85,200,20 0,250,2500,15000}

    -- Supplies
    local suppliesitems = {'strong mana potion', 'prismatic bolt', 'great spirit potion'}
    local suppsvalue = {80, 20, 310}

    -- Start Position
    local startpos = 50
    setposition(clientwin.left+10, worldwin.top+22)

    --dont change things below

    local loots = getitems(unpack(lootsitems))
    local qtdl = loots.count-1
    local totall = 0

    local supps = getitems(unpack(suppliesitems))
    local qtds = supps.count-1
    local totals = 0

    local startloot = 0

    setfontcolor("white")
    addtext("________________________________", 0,10+startpos)

    -- Supplies
    for i=0,qtds do
    addtext(supps[i].name, 10,30+(startloot*15)+20+startpos)
    addtext(":", 140,30+(startloot*15)+20+startpos)
    addtext(supps[i].usage .. ' (' .. math.floor(supps[i].usage*suppsvalue[i+1]/100)/10 .. 'k)', 150,30+(startloot*15)+20+startpos)
    startloot = startloot + 1
    totals = totals + supps[i].usage*suppsvalue[i+1]
    end

    addtext("Supplies", 10,30+startpos)
    addtext(":", 140,30+startpos)
    addtext(math.floor(totals) .. ' GPs', 150,30+startpos)

    addtext("________________________________", 0,45+(startloot*15)+startpos)

    -- Loots

    local posloot = 50+(startloot*15)+20+startpos

    for i=0,qtdl do
    addtext(loots[i].name, 10,50+(startloot*15)+40+startpos)
    addtext(":", 140,50+(startloot*15)+40+startpos)
    addtext(loots[i].loot .. ' (' .. math.floor(loots[i].loot*lootsvalue[i+1]/100)/10 .. 'k)', 150,50+(startloot*15)+40+startpos)
    startloot = startloot + 1
    totall = totall + loots[i].loot*lootsvalue[i+1]
    end

    addtext("Loot", 10,posloot)
    addtext(":", 140,posloot)
    addtext(math.floor(totall) .. ' GPs', 150,posloot)

    addtext("________________________________", 0,85+(startloot*15)+startpos)

    if totall-totals > 0 then
    setfontcolor(rgbcolor(128, 215, 74))
    else
    setfontcolor(rgbcolor(255, 83, 83))
    end

    addtext("Total : " .. (totall-totals) .. ' GPs (' .. math.floor((totall-totals)/1000/(tosec(timehunt)/3600)) .. ' k/h)', 0,50+(startloot*15)+20+startpos+35)

    setfontcolor("white")
    addtext("________________________________", 0,115+(startloot*15)+startpos)

  4. #4
    Normal User
    Join Date
    Dec 2012
    Posts
    21
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    11
    Rep Power
    4
    please answer me if somebody knows

Posting Permissions

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