Results 1 to 3 of 3

Thread: Loot List

  1. #1
    iBot User
    Join Date
    Jun 2012
    Location
    Germany
    Posts
    86
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    11 Post(s)
    Reputation
    15
    Rep Power
    5

    Loot List

    hello since i saw HUD where u can show the loot of the last 5 monsters u killed (like neobot) and i never saw it i wanted to ask where to find it
    thank you

  2. #2
    Normal User
    Join Date
    Jun 2012
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5
    also need it, can someone give a tips how to do it?

  3. #3
    Banned
    Join Date
    Aug 2012
    Location
    Home
    Posts
    1,084
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    47
    Rep Power
    0
    Code:
    -- you can add more items here
    local warnitems = {'dragon shield', 'wand of inferno', 'serpent sword','dragon hammer'}
    
    -- max lines to display at once 
    local maxindex = 6 
    
    -- spacing between lines
    local spacing = 15
    
    
    local index = 0 
    local msgs = getmessages("Server Log")
    local qtd = msgs.count-1
    for i=0,qtd do
       if msgs[qtd-i].type == 19 and msgs[qtd-i].text:find('Loot of ') then
          
          local colorm = false
          local l = 0
          for l=1, table.getn(warnitems) do
             if msgs[qtd-i].text:find(warnitems[l]) then
                colorm = true
                break
             end
          end
          if colorm then
             setfontcolor('red')
          else
             setfontcolor('green')
          end
    
          addtext(msgs[qtd-i].text, worldwin.left+5,worldwin.bottom-(maxindex*spacing)+20+(index*spacing))
    
          index=index+1
          if index == maxindex then
            break
          end
       end
    end
    http://www.tibiaibot.com/forum/showt...75-Scripts-Lua

Posting Permissions

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