Results 1 to 2 of 2

Thread: I need to add P bolts to Jonatas loot counter !

  1. #1
    iBot User
    Join Date
    Jun 2012
    Posts
    42
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    6 Post(s)
    Reputation
    11
    Rep Power
    5

    I need to add P bolts to Jonatas loot counter !

    How can I do this?/Can anyone do it for me? Everything work except the p bolts counter.. Also is Soft boots -10k per worn sb possible?

    thx if so

    Code:
    -- Loots
    local lootsitems = {'Gold Coin', 'Bonelord Helmet', 'Bonelord Shield', 'Spiked Squelcher', 'Haunted Blade', 'Black Pearl', 'Bonelord Eye', 'Piece of Dead Brain', 'Sweet Smelling Bait', 'Red Robe', 'Life Crystal', 'Terra Mantle', 'Crystal Ring', 'White Pearl', 'Blue Robe', 'Ring of Healing', 'Stone Skin Amulet', 'Silver Brooch', 'Strong Mana Potion', 'Hair of a Banshee', 'Black Pearl', 'Petrified Scream', 'Lightning Headband', 'Platinum Amulet', 'Knight Armor', 'Knight Legs', 'Time Ring', 'Spider Silk', 'Maxilla Maximus', 'Castle Shield', 'Lightning Boots', 'Mercenary Sword', 'Batwing Hat', 'Black Shield', 'Bat Wing', 'Mutated Bat Ear', 'Small Amethyst'}
    local lootsvalue = {1,7500,1200,5000,8000,280,500,420,10000,5000,500,11000,250,160,10000,1100,2500,250,80,350,280,250,2500,2500,5000,5000,1500,2500,150000,5000,2500,12000,8000,900,50,480,250}
    
    -- Supplie
    local suppliesitems = {'strong mana potion', 'power bolt'}
    local suppsvalue = {80,7}
    
    -- Start Position
    local startpos = 200
    
    
    --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)
    setfontcolor("red")
    
    -- 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*suppsvalue[i+1], 150,30+(startloot*15)+20+startpos)
       startloot = startloot + 1
       totals = totals + supps[i].usage*suppsvalue[i+1]
    end
    
    setfontcolor("red")
    addtext("Supplie", 10,30+startpos)
    addtext(":", 140,30+startpos)
    addtext(totals, 150,30+startpos)
    
    setfontcolor("white")
    addtext("________________________________", 0,45+(startloot*15)+startpos)
    
    -- Loots
    
    setfontcolor("green")
    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*lootsvalue[i+1], 150,50+(startloot*15)+40+startpos)
       startloot = startloot + 1
       totall = totall + loots[i].loot*lootsvalue[i+1]
    end
    
    setfontcolor("green")
    addtext("Loots", 10,posloot)
    addtext(":", 140,posloot)
    addtext(totall, 150,posloot)
    
    setfontcolor("white")
    addtext("________________________________", 0,85+(startloot*15)+startpos)
    
    if totall-totals > 0 then
    setfontcolor("blue")
    else
    setfontcolor("red")
    end
    
    addtext("Total", 10,50+(startloot*15)+20+startpos+35)
    addtext(":", 140,50+(startloot*15)+20+startpos+35)
    addtext(totall-totals, 150,50+(startloot*15)+20+startpos+35)
    
    setfontcolor("white")
    addtext("________________________________", 0,115+(startloot*15)+startpos)

  2. #2
    iBot User
    Join Date
    Jun 2012
    Posts
    42
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    6 Post(s)
    Reputation
    11
    Rep Power
    5
    wups move to Hud/Hotkey requests plxxx

Posting Permissions

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