Postado Junho 21, 2017 8 anos Online HighScore - Não autorizo postagem em outros fóruns. Função: A cada X minutos aparece os TOP Levels que estão online no servidor. online_highscore.lua (Caso você entenda pode alterar pra aparecer mais ou menos players) function onThink(interval, lastExecution) local players = Game.getPlayers() table.sort(players, function(a, b) return a:getExperience() > b:getExperience() end) local msg = "~ TOP 5 players online" for i = 1, 5 do if not players[i] then break end msg = msg .. "\n" .. i .. ". ".. players[i]:getName() .. " [Lv: ".. players[i]:getLevel() .. "]" end for _, player in pairs(players) do player:sendTextMessage(MESSAGE_STATUS_CONSOLE_ORANGE, msg) end return true end tag xml <globalevent name="OnlineHighscore" interval="300000" script="online_highscore.lua"/> Testem e comentem, caso funcione poste o print por favor (estou sem ot) http://baiakuza.com/IP: baiakuza.com TIBIA: 10.96 Baiak Custom [ High Exp Rate ]
Postado Junho 21, 2017 8 anos Parabéns, seu tópico de conteúdo foi aprovado! Muito obrigado pela sua contribuição, nós do Tibia King agradecemos. Seu conteúdo com certeza ajudará à muitos outros, você recebeu +1 REP. Spoiler Congratulations, your content has been approved! Thank you for your contribution, we of Tibia King we are grateful. Your content will help many other users, you received +1 REP. ➥ Regras | Seções OTServ | Seções BOT
Participe da conversa
Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.