It used to have in the Bots for tibia...
Useful for when u are hunting in a tomb.
A HUD that would show in red( or any other color)if X loot, for example, Boh or Vampire Shield drops and so on...
I found this script that was for some other Tibia bot. But it doesn't work on with Mastercore bot.
Could someone fix it in a way that it could work on Mastercore?
CODE:
init start
local warnItems = {'cheese', 'energy ring', 'life ring'} -- you can add more items here
local maxLines = 10 -- max lines to display at once
local lootMsgs = {}
init end
setfontstyle('Tahoma', 7, 75, 0xFFFFFF, 1, 0x000000)
foreach newmessage m do
local creature, loot = m.content:match(REGEX_LOOT)
if loot then
local message, color = m.content, 0xFFFFFF
for k, v in ipairs(warnItems) do
if loot:find(v, 1, false) then
color = 0xFF0000
break
end
end
table.insert(lootMsgs, 1, {message = message, color = color})
end
end
while #lootMsgs > maxLines do
table.remove(lootMsgs)
end
for k, msg in ipairs(lootMsgs) do
setfontcolor(msg.color)
drawtext(msg.message, 0, k * 10)
end
setposition($worldwin.left + 3, $worldwin.bottom - #lootMsgs * 10 - 13)
Useful for when u are hunting in a tomb.
A HUD that would show in red( or any other color)if X loot, for example, Boh or Vampire Shield drops and so on...
I found this script that was for some other Tibia bot. But it doesn't work on with Mastercore bot.
Could someone fix it in a way that it could work on Mastercore?
CODE:
init start
local warnItems = {'cheese', 'energy ring', 'life ring'} -- you can add more items here
local maxLines = 10 -- max lines to display at once
local lootMsgs = {}
init end
setfontstyle('Tahoma', 7, 75, 0xFFFFFF, 1, 0x000000)
foreach newmessage m do
local creature, loot = m.content:match(REGEX_LOOT)
if loot then
local message, color = m.content, 0xFFFFFF
for k, v in ipairs(warnItems) do
if loot:find(v, 1, false) then
color = 0xFF0000
break
end
end
table.insert(lootMsgs, 1, {message = message, color = color})
end
end
while #lootMsgs > maxLines do
table.remove(lootMsgs)
end
for k, msg in ipairs(lootMsgs) do
setfontcolor(msg.color)
drawtext(msg.message, 0, k * 10)
end
setposition($worldwin.left + 3, $worldwin.bottom - #lootMsgs * 10 - 13)
