Signup Now
Page 3 of 3 FirstFirst 123
Results 21 to 24 of 24
  1. #21
    Free User
    Join Date
    Feb 2015
    Posts
    4
    Reputation
    10
    Rep Power
    0
    @borges Awesome script!!
    Is that possible to show only the valuable itens and not show the loot of garbage monsters, like:

    Demon: demon shield
    Demon: golden legs

    Pretend I'm killing Demons and Dragon Lords for example. My point is to not show menssage when Demon drops like only platinum coin.

    Thanks anyway

  2. #22
    Free User
    Join Date
    Oct 2014
    Posts
    29
    Reputation
    10
    Rep Power
    0
    Quote Originally Posted by Stynnger View Post
    @borges Awesome script!!
    Is that possible to show only the valuable itens and not show the loot of garbage monsters, like:

    Demon: demon shield
    Demon: golden legs

    Pretend I'm killing Demons and Dragon Lords for example. My point is to not show menssage when Demon drops like only platinum coin.

    Thanks anyway
    Great idea! That would be an easier way of doing what I was suggesting.
    Only display the valuable loot, and not the garbage.

  3. #23
    Free User
    Join Date
    Feb 2015
    Posts
    4
    Reputation
    10
    Rep Power
    0
    Quote Originally Posted by Pitoquinha View Post
    Great idea! That would be an easier way of doing what I was suggesting.
    Only display the valuable loot, and not the garbage.
    If it's possible it would be great

  4. #24
    Free User albino's Avatar
    Join Date
    Apr 2014
    Location
    Brazil
    Posts
    183
    Reputation
    27
    Rep Power
    21
    Quote Originally Posted by Borges View Post
    @engeclean, @sylomex
    with this script you don't need put all items that you want to check (boring part)

    just set price you want to change collor.

    you want more collors?
    feel free to change the script.

    init start
    local price = 1000 -- will change color if item cost >= 1000
    local warnitems = {}
    local maxindex = 10
    local spacing = 13
    local msgs = {}
    foreach lootingitem item do
    if itemvalue(item.id) >= price then
    table.insert(warnitems, item.name:lower())
    end
    end
    init end

    setfontstyle("Tahoma", 7, 75, 0xFFFFFF, 1, 0x000000)

    foreach newmessage m do
    local monster, loot = m.content:match("^Loot of ?a?n? (.-): (.+)$")

    if loot then
    local color = 0xFFFFFF

    for _, item in ipairs(warnitems) do
    if loot:find(item) then
    color = 0xF89E00
    break
    end
    end

    table.insert(msgs, {message = m.timestr .. " " .. monster .. ": " .. loot, color = color})
    end
    end

    while #msgs > maxindex do
    table.remove(msgs, 1)
    end

    for i, msg in ipairs(msgs) do
    setfontcolor(msg.color)
    drawtext(msg.message, 0, (#msgs - i + 1) * spacing)
    end

    setposition($worldwin.left + 4, $worldwin.bottom - #msgs * spacing - 12)

    This definitely deserve a dedicated thread on HUDs section.

    Also, it won't recognize items such as "Zaoan helmet" because of the capital Z. I just changed line 23 for the fix.
    if loot:lower():find(item) then

 

 

Posting Permissions

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