Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- bot = {
- admin = "Hpassos",
- name = "Tribo",
- level = "Tópico irregular",
- joinDate = "+300",
- tribe = "Hpassos",
- lang = "BR",
- says = "<font color='#F0A78E'>> [%s] [<font color='#E88F4F'><a href='event:profil'>%s</a></font>] %s</font>",
- saysMod = "<font color='#ED67EA'>• [~Modération] %s</font>",
- saysInfo = "<font color='#6C77C1'>%s</font>",
- saysError = "<font color='#CB546B'>%s</font>",
- stats = {
- ["sham"] = 555, ["shamHard"] = 000, ["shamCheese"] = 1000, ["mouseFirst"] = 4650, ["mouseCheese"] = 789456123, ["mouseBootcamp"] = 3589778
- },
- titles = {
- "Tópico Irregular", "Bot Oficial", "Rasoco"
- },
- msg = {
- ["welcome"] = "Bem-vindo ao cafofo da tribo Tópico irregular! Duvidas? Procure Hpassos! Para saber os comandos, digite: !comd",
- ["mg"] = "Não temos mini-games no momento, estamos planejando...",
- ["adm"] = "Administrador da tribo online: Rasoco e Hpassos",
- ["comd"] = "!r - exibe as regras | adm - exibe os administradores online | mg - exibe os mini-games",
- ["r"] = "Sem spam, flood, insultos. Respeite todos e não abuse dos poderes.",
- ["ca"] = "say | mod | info | error",
- },
- commandsAdmin = {
- ["say"] = "", ["mod"] = "", ["info"] = "", ["error"] = ""
- }
- }
- function notify(message, name, type)
- if type == 0 then -- Normal.
- ui.addTextArea(0, string.format(bot.says, bot.lang, bot.name, message), name, 5, 374, 480, 50, 0x1C3C41, 0x1C3C41, 0.9, true)
- elseif type == 1 then -- Modération.
- ui.addTextArea(0, string.format(bot.saysMod, message), name, 5, 374, 480, 50, 0x1C3C41, 0x1C3C41, 0.9, true)
- elseif type == 2 then -- information.
- ui.addTextArea(0, string.format(bot.saysInfo, message), name, 5, 374, 480, 50, 0x1C3C41, 0x1C3C41, 0.9, true)
- else -- Error
- ui.addTextArea(0, string.format(bot.saysError, message), name, 5, 374, 480, 50, 0x1C3C41, 0x1C3C41, 0.9, true)
- end
- tfm.exec.displayParticle(15, 505, 380, 0, 0, 0, 0, name)
- end
- function main()
- for command, text in pairs(bot.msg) do
- system.disableChatCommandDisplay(command, true)
- end
- for command, text in pairs(bot.commandsAdmin) do
- system.disableChatCommandDisplay(command, true)
- end
- notify(bot.msg.welcome, nil, 0)
- end
- function eventNewPlayer(name)
- notify(bot.msg.welcome, name)
- end
- function eventChatCommand(name, command)
- if bot.msg[command] then
- notify(bot.msg[command], name, 0)
- elseif command:sub(0, 3) == "say" and name == bot.admin then
- notify(command:sub(5), nil, 0)
- elseif command:sub(0, 3) == "mod" and name == bot.admin then
- notify(command:sub(5), nil, 1)
- elseif command:sub(0, 4) == "info" and name == bot.admin then
- notify(command:sub(6), nil, 2)
- elseif command:sub(0, 5) == "error" and name == bot.admin then
- notify(command:sub(7), nil, 3)
- else
- notify("Este comando não existe. Para ver todos os comandos, digite: !comd", name, 3)
- end
- end
- function openBotProfile()
- barre = "<p align='center'><font color='#11181C'>_________________________________________</font><br><font color='#608599'>̅¯̅¯̅¯̅¯̅¯̅¯̅¯̅¯̅¯̅¯̅¯̅¯̅¯̅¯̅¯̅¯̅¯̅¯̅¯̅¯̅¯̅¯̅¯̅¯̅¯̅¯̅¯̅¯̅¯̅¯¯¯¯¯¯¯¯¯¯¯¯</b>"
- local name = "<font size=\"25\" color=\"#C2C2DA\" face=\"Soopafresh\" border=\"#000000\" border-size=\"3px\">~" .. bot.name .. "</font><br>" .. barre .. "</p>"
- local niveau = "<p align=\"left\"><font color=\"#C2C2DA\"> Nome da Tribo : <font color=\"#BABD2F\">" .. bot.level .. "</font><br>"
- local date = " Membros : <font color=\"#6C77C1\">" .. bot.joinDate .. "</font><br>"
- local titre = " ~Tribo : <font color=\"#009D9D\">«" .. bot.titles[2] .. "»</font><br>"
- local tribu = " Líder(es) : <font color=\"#BABD2F\">" .. bot.tribe .. "</font><br><br>"
- local cham = " Shaman</font><font color=\"#6C77C1\"><br>"
- local chamSaves = " • Ratos salvos com sucesso : " .. bot.stats.sham .. " / <font color=\"#009D9D\">" .. bot.stats.shamHard .. "</font><br>"
- local chamCheese = " • Queijos coletados pessoalmente : " .. bot.stats.shamCheese .. "<br><br>"
- local souris = "<font color=\"#C2C2DA\"> Rato</font><br>"
- local sourisFirst = "<font color=\"#6C77C1\"> • Queijos coletados em primeiro : " .. bot.stats.mouseFirst .."<br>"
- local sourisCheese = " • Queijos coletados : " .. bot.stats.mouseCheese .. "<br>"
- local sourisBoots = " • Bootcamp : " .. bot.stats.mouseBootcamp .. "</font><br><br>"
- local titres = "<font color=\"#C2C2DA\"> Títulos desbloqueados: </font><br>"
- local titre1 = "<font color=\"#6C77C1\"> • «" .. bot.titles[1] .. "»<br>"
- local titre2 = "<font color=\"#6C77C1\"> • «" .. bot.titles[2] .. "»<br>"
- local titre3 = "<font color=\"#6C77C1\"> • «" .. bot.titles[3] .. "»<br>"
- profil = name .. niveau .. date .. titre .. tribu .. cham .. chamSaves .. chamCheese .. souris .. sourisFirst .. sourisCheese .. sourisBoots .. titres .. titre1 .. titre2 .. titre3
- ui.addPopup(0, 0, profil, nil, 250, 45, 300, true)
- end
- function eventTextAreaCallback(id, name, callback)
- if callback == "profil" then
- openBotProfile()
- end
- end
- main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement