Everyone who has never used our Bots before, can test each one for 2 days without any limitation.
The trial is given automatically when you login on the Bot, but in some cases it wouldn't work (security reasons).
If this happens, send me a private message and i will be checking the failed trials manually and adding it for those who didn't get it.
We are looking for resellers who may accept payment methods different from ours, including classictibia's cash, realesta's cash, mastercores' cash, etc. Interested? Click here at anytime.



Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
If X loot drop, the loot msg shows in red
#1
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)
Reply



Forum Jump:



Forum software by © MyBB Theme © iAndrew 2016