Tenta
local monsters = {
["rat"] = 110000,
}
function onKill(cid, target, lastHit)
if(isMonster(target) == TRUE) then
local name = getCreatureName(target)
local monster = monsters[string.lower(name)]
if(monster) then
local killedMonsters = getPlayerStorageValue(cid, monster)
if(killedMonsters == -1) then
killedMonsters = 1
end
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Você matou " .. killedMonsters .. " " .. name .. "'s.")
setPlayerStorageValue(cid, monster, killedMonsters + 1)
end
end
return TRUE
end





info
Grupo: Artesão
Registrado: 06/02/13
Posts: 132
Reputação: +8
Char no Tibia: Koete
Peguei o Script Monster Conter
e tentei colocar ele mandar as msg em channel, até que não deu erro na source
mas da debug no cliente. Alguém pode me ajudar?
local monsters = {