Results 1 to 9 of 9

Thread: Recent LAST LOOT Hud

  1. #1
    Premium User iwoq's Avatar
    Join Date
    Mar 2012
    Location
    Derby
    Posts
    154
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    14 Post(s)
    Reputation
    11
    Rep Power
    5

    Recent LAST LOOT Hud

    hello, anyone maybe have script to show last 10 loot from monster?

  2. #2
    Premium User iwoq's Avatar
    Join Date
    Mar 2012
    Location
    Derby
    Posts
    154
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    14 Post(s)
    Reputation
    11
    Rep Power
    5
    re re re re

  3. #3
    Normal User blakw's Avatar
    Join Date
    Mar 2012
    Location
    www.blakw.com
    Posts
    815
    Mentioned
    221 Post(s)
    Tagged
    2 Thread(s)
    Quoted
    344 Post(s)
    Reputation
    462
    Rep Power
    10
    PHP 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 = 10
     
    -- 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


    ------------------------------------Latest Releases:------------------------------------
    Vocations:
    Darashia Lions Rock
    Oramond Seacrest Serpents X1

    For a better iBot!

    (◣_◢)

  4. #4
    Premium User iwoq's Avatar
    Join Date
    Mar 2012
    Location
    Derby
    Posts
    154
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    14 Post(s)
    Reputation
    11
    Rep Power
    5
    thanks! thanks!

  5. #5
    Normal User
    Join Date
    Dec 2012
    Posts
    5
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    4
    how do you create 3 types of items?

    like:

    gps and creature products green
    1k / 3k items orange
    and rares red

  6. #6
    Normal User
    Join Date
    Dec 2012
    Posts
    5
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    4
    Quote Originally Posted by blakw View Post
    PHP 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 = 10
     
    -- 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

    how do you create 3 types of items?

    like:

    gps and creature products green
    1k / 3k items orange
    and rares red

  7. #7
    Normal User
    Join Date
    Sep 2012
    Posts
    15
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5
    @Blakw
    Really neat! More people should see this, I will bump it if noone minds.

  8. #8
    Normal User
    Join Date
    Sep 2012
    Posts
    66
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    43
    Rep Power
    5
    great script, using atm ^^

  9. #9
    Normal User RafiXWPT's Avatar
    Join Date
    Jun 2012
    Location
    (Poland) http://rafixwptscripts.com
    Posts
    1,602
    Mentioned
    31 Post(s)
    Tagged
    1 Thread(s)
    Quoted
    128 Post(s)
    Reputation
    128
    Rep Power
    9
    Recent Loot with 4 colours edited by me:
    (4th colour for not listed items is white)
    PHP Code:
    -- Advenced Recent Loot HUD by RafiXWPT
    -- Add Items Here:
    local shititems = {"golden mug""energy ring""ice cube""green mushroom"}
    local warnitems = {"ice rapier""strange helmet""frosty heart""life crystal""small sapphire"
    local rareitems = {"spellbook of enlightenment""dragon scale mail""royal helmet""tower shield""dragon slayer""shard"

    -- 
    Set Colors Here
    local shitcolor 
    "green"
    local warncolor "orange"
    local rarecolor "red"

    -- max lines to display at once 
    local maxindex 
    10 
    -- spacing between lines 
    local spacing 
    15 

    local index 

    local msgs 
    getmessages("Server Log"
    local qtd msgs.count-

    for i=0,qtd do 
    if 
    msgs[qtd-i].type == 19 and msgs[qtd-i].text:find('Loot of 'then 

    local colorl 
    false 
    local colork 
    false 
    local colorm 
    false
    local l 

    local k 
    0
    local m 
    0

    for l=1table.getn(shititems) do 
    if 
    msgs[qtd-i].text:find(shititems[l]) then 
    colorl 
    true 
    break 
    end 
    end 

    for k=1table.getn(warnitems) do 
    if 
    msgs[qtd-i].text:find(warnitems[k]) then 
    colork 
    true 
    break 
    end 
    end 

    for m=1table.getn(rareitems) do 
    if 
    msgs[qtd-i].text:find(rareitems[m]) then 
    colorm 
    true 
    break 
    end 
    end

    if colorm then 
    setfontcolor
    (rarecolor
    elseif 
    colork then 
    setfontcolor
    (warncolor
    elseif 
    colorl then 
    setfontcolor
    (shitcolor
    else 
    setfontcolor('white'
    end 

    addtext
    (msgs[qtd-i].textworldwin.left+15,worldwin.bottom-(maxindex*spacing)+20+(index*spacing)) 
    index=index+
    if index == maxindex 
    then 
    break 
    end 
    end 
    end 
    enjoy

Posting Permissions

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