wow.
quite nice idea from both of you guys !
If need some help im here
wow.
quite nice idea from both of you guys !
If need some help im here
hello guys...
some advance in the script? hahahaha
i'm waiting!!! gogogo
@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!
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.
@borges oooh awesome dude!!!
i'm going to include this HUD on my scripts! Thank you so much