Results 1 to 3 of 3

Thread: [REQUEST] Need loot-counter on screen HUD

  1. #1
    Banned
    Join Date
    Jun 2012
    Location
    Poland
    Posts
    18
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    0

    [REQUEST] Need loot-counter on screen HUD

    Hello
    Need hud to see last lot monster on my screen ! thx

  2. #2
    iBot User
    Join Date
    Nov 2012
    Posts
    107
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    3 Post(s)
    Reputation
    15
    Rep Power
    5
    try searching a little harder next time but this should be most of the huds you will need including recent loot.
    http://www.tibiaibot.com/forum/showt...ht=recent+loot

  3. #3
    Premium User zezaway's Avatar
    Join Date
    Mar 2012
    Location
    Brasil
    Posts
    300
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    3 Post(s)
    Reputation
    45
    Rep Power
    5
    Quote Originally Posted by degreeme View Post
    try searching a little harder next time but this should be most of the huds you will need including recent loot.
    http://www.tibiaibot.com/forum/showt...ht=recent+loot
    The search function on this forum isnt the best, so...

    Here a recent loot hud, try and see with that works

    -- [[ INIT START ]] --; local CONFIG = {; LINES_AMOUNT = 15,; SHOW_NOTHING = true,; WARN_ITEMS = {"Boots of haste", "blue robe", "Red Piece of Cloth",}, -- ITENS A SEREM MARCADOS DE CORES DIFERENTES; COLOR_WARN = rgbcolor(107, 142, 35),; COLOR_NORMAL = rgbcolor(255, 255, 255),; }; ; -- [[ DO NOT CHANGE ANYTHING BELOW THIS LINE. ]] --; ; LOOT_MESSAGES = LOOT_MESSAGES or {}; ; local function CreateMessageObject(MESSAGE_DATA); if (type(MESSAGE_DATA) ~= "userdata") then; return setmetatable({__data = {TYPE = -1, TIME_STAMP = -1, SENDER_NAME = "", SENDER_LEVEL = -1, CONTENT = ""}}, MessageMetaTable); else; return setmetatable({__data = {TYPE = MESSAGE_DATA.type, TIME_STAMP = Misc.ConvertToSeconds(string.sub(MESSAGE_DATA.text , 1, 5)), SENDER_NAME = MESSAGE_DATA.sender, SENDER_LEVEL = tonumber((tostring(string.match(MESSAGE_DATA.text, ".+ (%b[]): .+")):gsub("[^%d]", ""))) or 0, CONTENT = string.sub(MESSAGE_DATA.text, 7)}}, MessageMetaTable); end; end; ; local function addtextshadow(DISPLAY_TEXT, X_OFFSET, Y_OFFSET, FONT_COLOR); setfontcolor(rgbcolor(1, 1, 1)); addtext(DISPLAY_TEXT, X_OFFSET + 1, Y_OFFSET + 1); setfontcolor(FONT_COLOR); addtext(DISPLAY_TEXT, X_OFFSET, Y_OFFSET); end;-- [[ INIT END ]] --;;local SERVER_LOG_MESSAGES = getnewmessages("Server Log");local SERVER_LOG_MESSAGES_COUNT = SERVER_LOG_MESSAGES.count - 1;;for INDEX = SERVER_LOG_MESSAGES_COUNT, 0, -1 do; local MESSAGE_OBJECT = CreateMessageObject(SERVER_LOG_MESSAGES[SERVER_LOG_MESSAGES_COUNT - INDEX]); ; if (MESSAGE_OBJECT:Type() == 19) then; local MESSAGE_CONTENT = MESSAGE_OBJECT:Content(); local CREATURE_NAME, CREATURE_LOOT = MESSAGE_CONTENT:match("Loot of (.+): (.+)"); ; if (CREATURE_NAME and (CONFIG.SHOW_NOTHING or CREATURE_LOOT ~= "nothing")) then; local ITEM_FOUND = false; ; for _, ITEM_NAME in ipairs(CONFIG.WARN_ITEMS) do; if (MESSAGE_CONTENT:find(ITEM_NAME)) then; ITEM_FOUND = true; break; end; end; ; table.insert(LOOT_MESSAGES, {CREATURE = CREATURE_NAME:gsub("^a ", ""):gsub("^an ", ""):gsub("^the ", ""):lower(), TIME = string.sub(SERVER_LOG_MESSAGES[SERVER_LOG_MESSAGES_COUNT - INDEX].text, 1, 5), LOOT = CREATURE_LOOT, COLOR = (ITEM_FOUND and CONFIG.COLOR_WARN) or CONFIG.COLOR_NORMAL}); ; if (#LOOT_MESSAGES >= CONFIG.LINES_AMOUNT) then; table.remove(LOOT_MESSAGES, 1); end; end; end;end;;local ROWS = 0;;for i = math.max(#LOOT_MESSAGES - CONFIG.LINES_AMOUNT, 1), math.max(#LOOT_MESSAGES, 1) do; if (LOOT_MESSAGES[i]) then; addtextshadow(sprintf("[%s] %s: %s", LOOT_MESSAGES[i].TIME, LOOT_MESSAGES[i].CREATURE:ucwords(), LOOT_MESSAGES[i].LOOT), 5, ROWS * 15, LOOT_MESSAGES[i].COLOR); ; ROWS = ROWS + 1; end;end;;setposition(Client.WorldWindow().left + 5, Client.WorldWindow().bottom - ROWS * 15 + 25)

    Check my free scripts thread!

Posting Permissions

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