se existe uma função no TFS pra alterar tamanho de fontes eu desconheço, entao vou usar a funçao doSendAnimatedText(position, text, color) e TEXTCOLOR_WHITE pra deixar o mais semelhante ao que parece, eu nao tenho mais computador hoje em dia devido a problemas economicos, mas por logica deve ficar +- assim:
local colorMsg = "orange"
local tableBoss = {
["[EXP] Statue"] = {seconds = 3600, newBoss = "[EXP] Statue"}
}
local function countdown(position)
for i = 5, 0, -1 do
addEvent(function()
doSendAnimatedText(position, tostring(i), TEXTCOLOR_WHITE)
end, (5 - i) * 1000)
end
end
local function timer(position, duration)
countdown(position)
addEvent(function()
for i = 0, (duration - 1) do
addEvent(function()
doSendAnimatedText(position, tostring(duration - i), TEXTCOLOR_WHITE)
end, (i + 6) * 1000)
end
end, 6000)
end
local lastTarget = nil
function onKill(cid, target, damage, flags)
if lastTarget and lastTarget == target then
return true
end
lastTarget = target
if isPlayer(target) then
return true
end
local boss = tableBoss[getCreatureName(target)]
if not boss then
return true
end
local position = getThingPos(target)
doPlayerSendTextMessage(cid, MESSAGE_TYPES[colorMsg], "The boss will be born in " .. boss.seconds .. " seconds.")
timer(position, boss.seconds)
addEvent(doCreateMonster, (boss.seconds + 5) * 1000, boss.newBoss, position)
return true
end