Olá, é um sistema que mostra quem é o novo top do servidor
vá em Pasta do seu OT/data/creaturescripts
nome_do_script.lua
function getTop() -- função by vodkart local query = db.getResult("SELECT `name`, `level` FROM `players` WHERE `id` > 6 AND `group_id` < 2 ORDER BY `level` DESC, `name` ASC;") if (query:getID() ~= -1) then return {query:getDataString("name"),query:getDataInt("level")} end return false end function onAdvance(cid, oldLevel, newLevel) if skill == 8 then local top = getTop() if newLevel > top[2] and getCreatureName(cid) ~= top[1] then broadcastMessage(getCreatureName(cid).." é o novo TOP do servidor ele está no level [" .. newLevel .. " ] .", 25) end end return true end
[/code]
creaturescripts.xml
<event type="advance" name="checkNewTop" script="nome_do_script.lua"/>
login.lua
registerCreatureEvent(cid, "checkNewTop")
é isso galerinha flws.