Hello everyone.
I would like to present...
Edited RecentLoot script colored by item price
7 difrent colors
#fixed - if rare item was earlier than lower price item, now correctly showing color.
Still working with "(bonus prey active)", cant find solution why not showing correct color if last item was rare.
init start
-- SCRIPT_VERSION = '2.3.2'
-- Edited by HunterSor for Lazy assholes ;D
--ITEMS OVER 80k--
local warnItemsErare = {'magic plate armor', 'nose ring'} --over 80k
local erareLootColor = 0x850185
--ITEMS OVER 30k--
local warnItemsUrare = {'zaoan sword', 'zaoan helmet', 'windborn colossus armor', 'vile axe', 'unholy book', 'the justice seeker', 'the ironworker', 'the avenger', 'tempest shield', 'steel boots', 'spirit container', 'skull helmet', 'ruthless axe', 'runed sword', 'royal helmet', 'royal axe', 'ring of the sky', 'panda teddy', 'ornate shield', 'ornate mace', 'ornate legs', 'ornate chestplate', 'nightmare blade', 'mystic blade', 'mycological bow', 'mastermind shield', 'icy mystic blade', 'icy heroic axe', 'icy cranial basher', 'hive bow', 'heroic axe', 'heavy mace', 'hammer of wrath', 'guardian boots', 'greenwood coat', 'golden legs', 'fiery mystic blade', 'fiery heroic axe', 'fiery cranial basher', 'executioner', 'energy mystic blade', 'energy heroic axe', 'energy cranial basher', 'earth mystic blade', 'earth heroic axe', 'earth cranial basher', 'dwarven legs', 'dwarven armor', 'draken boots', 'dragon scale mail', 'dragon robe', 'divine plate', 'depth scutum', 'depth lorica', 'depth galea', 'demonrage sword', 'demonbone amulet', 'demon trophy', 'demon shield', 'demon helmet', 'deepling axe', 'crystal crossbow', 'cranial basher', 'cobra crown', 'chain bolter', 'carapace shield', 'boots of haste', 'bloody edge', 'blessed sceptre', 'blade of corruption', 'arbalest', 'arcane staff', 'berserker' } --over 30k
local urareLootColor = 0xFF0000
--ITEMS OVER 10k--
local warnItemsVrare = {'zaoan robe', 'zaoan legs', 'zaoan armor', 'war axe', 'violet gem', 'vampire shield', 'thaian sword', 'terra mantle', 'terra legs', 'swamplair armor', 'spellbook of mind control', 'spellbook of lost souls', 'skullcracker armor', 'silkweaver bow', 'shadow sceptre', 'sea serpent trophy', 'sais', 'rubber cap', 'relic sword', 'piece of royal steel', 'phoenix shield', 'pharoah sword', 'paladin armor', 'ornate crossbow', 'ornamented axe', 'onyx flail', 'noble axe', 'moohtant cudgel', 'modified crossbow', 'mercenary sword', 'magma legs', 'magma coat', 'lightning robe', 'lightning legs', 'lavos armor', 'jade hammer', 'icy war axe', 'icy relic sword', 'icy dragon slayer', 'huge chunk of crude iron', 'hive scythe', 'heat core', 'guardian halberd', 'grasshopper legs', 'golden armor', 'glacier robe', 'glacier kilt', 'giant sword', 'frozen starlight', 'fiery war axe', 'fiery relic sword', 'fiery dragon slayer', 'execowtioner axe', 'energy war axe', 'energy relic sword', 'energy dragon slayer', 'enchanted chicken wing', 'egg of the many', 'earth war axe', 'earth relic sword', 'earth dragon slayer', 'dreaded cleaver', 'drakinata', 'draken trophy', 'dragon slayer', 'dragon lord trophy', 'drachaku', 'djinn blade', 'depth ocrea', 'depth calcei', 'crystalline armor', 'crystal wand', 'crystal mace', 'crown legs', 'crown armor', 'composite hornbow', 'claw of the noxious spawn', 'ceremonial ankh', 'calopteryx cape', 'bonebreaker', 'lue robe', 'blue legs', 'behemoth trophy', 'abyss hammer', 'alloy legs', 'assassin dagger', 'baby seal doll' } --over 10k
local vrareLootColor = 0xffaa00
--ITEMS OVER 5k--
local warnItemslrare = {'witch hat', 'warrior helmet', 'war horn', 'wand of everblazing', 'wand of defiance', 'tower shield', 'tentacle piece', 'stuffed dragon', 'springsprout rod', 'spiked squelcher', 'spellbook of warding', 'souleater trophy', 'soul stone', 'skull staff', 'sapphire hammer', 'pure energy', 'orcish maul', 'muck rod', 'mother soil', 'mino lance', 'metal bat', 'medusa shield', 'marlin trophy', 'mammoth fur cape', 'magic sulphur', 'lunar staff', 'lizard trophy', 'knight legs', 'knight armor', 'jade hat', 'icy orcish maul', 'icy headchopper', 'icy blacksteel sword', 'headchopper', 'haunted blade', 'guardian axe', 'green gem', 'gold ring', 'gold ingot', 'glooth cape', 'glacial rod', 'gearwheel chain', 'focus cape', 'flawless ice crystal', 'fire axe', 'fiery orcish maul', 'fiery headchopper', 'fiery blacksteel sword', 'eternal flames', 'epee', 'energy orcish maul', 'energy headchopper', 'energy blacksteel sword', 'earth orcish maul', 'earth headchopper', 'earth blacksteel sword', 'dragon lance', 'dragon claw', 'dracoyle statue', 'deepling squelcher', 'crusader helmet', 'crown shield', 'chaos mace', 'castle shield', 'buckle', 'broken key ring', 'bright sword', 'bonelord helmet', 'bonebeast trophy', 'black skull', 'blacksteel sword', 'batwing hat'} --over 5k
local lrareLootColor = 0xCCFF11
--ITEMS OVER 1k--
local warnItems = {'yellow gem', 'wyvern fang', 'wolf trophy', 'wand of voodoo', 'wand of starstorm', 'wand of inferno', 'wand of draconia', 'wand of decay', 'wand of cosmic energy', 'underworld rod', 'titan axe', 'terra rod', 'terra hood', 'terra boots', 'terra amulet', 'spool of yarn', 'spike sword', 'spellbook of enlightenment', 'sniper gloves', 'skeleton decoration', 'shockwave amulet', 'shard', 'scarab shield', 'sacred tree amulet', 'ruby necklace', 'purple tome', 'platinum amulet', 'pirate hat', 'pirate boots', 'piece of draconian steel', 'patched boots', 'pair of iron fists', 'ornamented shield', 'northwind rod', 'norse shield', 'necrotic rod', 'ecklace of the deep', 'natural soil', 'naginata', 'mino shield', 'metal spats', 'magma monocle', 'magma boots', 'magma amulet', 'lion trophy', 'lightning pendant', 'lightning headband', 'lightning boots', 'leopard armor', 'knight axe', 'icy war hammer', 'icy knight axe', 'iced soil', 'ce rapier', 'hibiscus dress', 'helmet of the lost', 'heavy trident', 'hailstorm rod', 'guardian shield', 'golden sickle', 'golden amulet', 'glorious axe', 'glooth whip', 'glooth club', 'glooth blade', 'glooth axe', 'glooth amulet', 'glimmering soil', 'glacier shoes', 'glacier mask', 'glacier amulet', 'giant shimmering pearl', 'flower dress', 'fire sword', 'fiery war hammer', 'fiery spike sword', 'fiery knight axe', 'energy war hammer', 'energy spike sword', 'energy soil', 'energy knight axe', 'elvish bow', 'earth war hammer', 'earth spike sword', 'earth knight axe', 'dragon hammer', 'disgusting trophy', 'diamond sceptre', 'devil helmet', 'demon horn', 'deer trophy', 'deepling staff', 'death ring', 'daramanian waraxe', 'crystal of power', 'crystal of focus', 'crystal of balance', 'crown helmet', 'crocodile boots', 'cowtana', 'broken visor', 'broken ring of ending', 'amber staff', 'angelic axe', 'banana staff', 'bat decoration', 'beastslayer axe', 'beetle necklace', 'behemoth claw' } --over 1k
local rareLootColor = 0xFFFF00
--RUSTY ITEMS--
local warnItemsRusty = {'rusty armor', 'rusty legs'}
local rustyLootColor = 0x993300
--PLATINUM COINS--
local warnItemsPlatinum = {'platinum coins', 'platinum coin'}
local platinumLootColor = 0x02d0ff
local maxMsgs = 8 -- max lines to display at once
local msgTimeOut = 30000 -- will only show loots from the last 30 seconds
local position = 'left' -- right or left
local lootColor = 0x11EC09
-- dont edit anything below this line
local fontsize = 7
local fontspacing = fontsize + 6
local isRight = (position == 'right')
local msgs = {}
setfontstyle("Tahoma", fontsize, 75, lootColor, 1, 0x002200)
setmaskcolorxp(0)
init end
foreach newmessage m do
if m.level == 0 and m.content:sub(0,8) == 'Loot of ' then
local msgInfo = m.content:lootmsg()
local color = lootColor
local hasItems = false
local a = 0
local b = 0
local c = 0
local d = 0
local e = 0
local f = 0
local g = 0
local msg = msgInfo.name .. ': '
local lastIndex = #msgInfo.items
for index, item in ipairs(msgInfo.items) do
hasItems = true
if (item.count > 1) then
msg = msg .. item.count .. ' '
end
msg = msg .. item.name
if index ~= lastIndex then
msg = msg .. ', ' or ' ('
end
if table.find(warnItemsErare, item.name) then
a = a + 1
elseif table.find(warnItemsUrare, item.name) then
b = b + 1
elseif table.find(warnItemsVrare, item.name) then
c = c + 1
elseif table.find(warnItemslrare, item.name) then
d = d + 1
elseif table.find(warnItems, item.name) then
e = e + 1
elseif table.find(warnItemsRusty, item.name) then
f = f + 1
elseif table.find(warnItemsPlatinum, item.name) then
g = g + 1
end
end
if (hasItems) then
if a > 0 then
color = erareLootColor
elseif b > 0 then
color = urareLootColor
elseif c > 0 then
color = vrareLootColor
elseif d > 0 then
color = lrareLootColor
elseif e > 0 then
color = rareLootColor
elseif f > 0 then
color = rustyLootColor
elseif g > 0 then
color = platinumLootColor
end
local msgWidth = measurestring(msg)
table.insert(msgs, {['msg'] = msg, ['color'] = color, ['time'] = $timems, ['width'] = msgWidth})
end
end
end
local msgsLen = #msgs
local longestLine = 0
if isRight then
for index = msgsLen, math.max(msgsLen - maxMsgs + 1, 1), -1 do
if msgs[index].width > longestLine then longestLine = msgs[index].width end
end
end
local i = 1
while (i <= msgsLen) do
if $timems - msgs[i].time <= msgTimeOut and i > msgsLen - maxMsgs then
setfontcolor(msgs[i].color)
addtext(msgs[i].msg, tern(isRight, longestLine - msgs[i].width + 2, 2), i*fontspacing)
i = i + 1
else
table.remove(msgs, i)
end
msgsLen = #msgs
end
if not isRight then
setposition($worldwin.left + 3, $worldwin.bottom - i*fontspacing)
else
setposition($worldwin.right - 3 - longestLine, $worldwin.bottom - i*fontspacing)
end
if msgsLen == 0 then -- to clear HUD when resetting script
addtext('', 0, 0)
end
Plz, do not hate me code, could be awefull, but u can still use earlier version
3njoy.