Results 1 to 3 of 3

Thread: Count soft boots to waste HUD

  1. #1
    iBot User
    Join Date
    Nov 2012
    Posts
    58
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    6 Post(s)
    Reputation
    10
    Rep Power
    5

    Count soft boots to waste HUD

    Hey, I have kind of code, and want ask how to change it to countitem('worn soft boots') cuz in this form needs to be writen on server log, "Using the last worn soft boots." Anyone can help?
    Code:
                            
    local showSuppliesWasted = true
    local suppliesitems = {'mana potion', 'worn soft boots'}
    local suppsvalue = {50, 10000}
    
    if showSuppliesWasted then setfontcolor("white") 
    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)", 75, y) 
    totals = totals + supps[i].usage*suppsvalue[i+1] 
    y = y + 10 
    end 
    addtext("Total", 25, y) 
    addtext("-", 65, y) 
    addtext(totals.." GPs", 70, y)
     y = y + 10 
    end
    Last edited by nicolas.pucyk; 01-09-2013 at 03:39 PM.

  2. #2
    Normal User
    Join Date
    May 2012
    Location
    England
    Posts
    160
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    16
    Rep Power
    5
    I suspect you didn't write this code yourself, but I'll tell you it's easier to look at new messages and find one in which the NPC who repairs boots says "Here you are" or w.e it is he says, and calculate it based on that...

  3. #3
    iBot User
    Join Date
    Nov 2012
    Posts
    58
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    6 Post(s)
    Reputation
    10
    Rep Power
    5
    Nope, it isn't my code, but i have script which isn't full afk, and dont go repair soft boots.

    and if u can tell me how to make it cuz i want know it for myself
    Last edited by nicolas.pucyk; 01-09-2013 at 03:53 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
  •