Signup Now
Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 24
  1. #11
    Free User sylomex's Avatar
    Join Date
    Dec 2013
    Location
    France
    Posts
    369
    Reputation
    39
    Rep Power
    21
    wow.

    quite nice idea from both of you guys !

    If need some help im here

  2. #12
    Free User
    Join Date
    Apr 2015
    Posts
    11
    Reputation
    10
    Rep Power
    0
    hello guys...

    some advance in the script? hahahaha

    i'm waiting!!! gogogo

  3. #13
    Free User Borges's Avatar
    Join Date
    Feb 2014
    Location
    Brazil
    Posts
    1,469
    Reputation
    205
    Rep Power
    25
    @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)
    Last edited by Borges; 05-04-2015 at 07:45 PM.
    Helped you? REP+

  4. #14
    Free User
    Join Date
    Oct 2014
    Posts
    29
    Reputation
    10
    Rep Power
    0
    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)
    @borges Seems amazing, my friend .. i will test it later.
    But tell me, it highlights the whole loot message or only the specific valuable item?
    Would be pretty nice if only the valuable item would be highlited, is that possible?
    Even if not, if your script does what you say it does, its amazing. Thank you!

  5. #15
    Free User Borges's Avatar
    Join Date
    Feb 2014
    Location
    Brazil
    Posts
    1,469
    Reputation
    205
    Rep Power
    25
    Quote Originally Posted by Pitoquinha View Post
    @borges Seems amazing, my friend .. i will test it later.
    But tell me, it highlights the whole loot message or only the specific valuable item?
    Would be pretty nice if only the valuable item would be highlited, is that possible?
    Even if not, if your script does what you say it does, its amazing. Thank you!
    white for all items
    local color = 0xFFFFFF


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


    you can change this colors ofc.

    Red: 0xF80000
    Blue: 0x3E00F8
    Green: 0x17B061

    Other Colors
    Helped you? REP+

  6. #16
    Free User
    Join Date
    Oct 2014
    Posts
    29
    Reputation
    10
    Rep Power
    0
    Quote Originally Posted by borges View Post
    white for all items
    local color = 0xFFFFFF


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


    you can change this colors ofc.

    Red: 0xF80000
    Blue: 0x3E00F8
    Green: 0x17B061

    Other Colors
    @borges

    What i mean is, if a monster drop a lot of garbage and a demon shield, the whole message including the garbage will be highlited, and not only the "demon shield", right?
    Last edited by Pitoquinha; 05-04-2015 at 08:44 PM.

  7. #17
    Free User Borges's Avatar
    Join Date
    Feb 2014
    Location
    Brazil
    Posts
    1,469
    Reputation
    205
    Rep Power
    25
    Quote Originally Posted by Pitoquinha View Post
    @borges

    What i mean is, if a monster drop a lot of garbage and a demon shield, the whole message including the garbage will be highlited, and not only the "demon shield", right?
    yes dude, test by yourself
    Helped you? REP+

  8. #18
    Free User
    Join Date
    Oct 2014
    Posts
    29
    Reputation
    10
    Rep Power
    0
    Quote Originally Posted by borges View Post
    yes dude, test by yourself
    Well, it doesnt do what i tought it would do, ahaha.

    This would be AMAZING:
    Demon: garbage, garbage, garbage, demon shield, more garbage, another garbage.

    but i understand that its not possible, you cant change the color of part of the text, just the whole text.

  9. #19
    Free User Borges's Avatar
    Join Date
    Feb 2014
    Location
    Brazil
    Posts
    1,469
    Reputation
    205
    Rep Power
    25
    Quote Originally Posted by Pitoquinha View Post
    Well, it doesnt do what i tought it would do, ahaha.

    This would be AMAZING:
    Demon: garbage, garbage, garbage, demon shield, more garbage, another garbage.

    but i understand that its not possible, you cant change the color of part of the text, just the whole text.
    I think useless what you want to do... but...
    Helped you? REP+

  10. #20
    Free User
    Join Date
    Apr 2015
    Posts
    11
    Reputation
    10
    Rep Power
    0
    @borges oooh awesome dude!!!
    i'm going to include this HUD on my scripts! Thank you so much

 

 

Posting Permissions

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