Advertisement
JessiewindScripts

Modules juntos 1.13.1

Sep 28th, 2018
338
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. --[[ Script contendo o module #anvilwar, #pistas, #explosion e #true_false. Compilado às 21h09 (UTC) 28/09/2018. ]]--
  2.  
  3. local modulo = {
  4.     _NOME = "anvilwar",
  5.     _VERSION = "1.13.1",
  6.     _AUTHOR = "Jessiewind26#2546"
  7. }
  8.  
  9. system.disableChatCommandDisplay("pw")
  10.  
  11. active = ""
  12. admin = ""
  13.  
  14. local modo = {}
  15.  
  16. resetAll = function()
  17.     for i=0,10000 do
  18.         ui.removeTextArea(i,nil)
  19.     end
  20.     for i=1,50 do
  21.         ui.addPopup(i,0,"",nil,-9999,9999)
  22.     end
  23.     for i=901,910 do
  24.         ui.addPopup(i,0,"",nil,-9999,9999)
  25.     end
  26.     for i=1201,1210 do
  27.         ui.addPopup(i,0,"",nil,-9999,9999)
  28.     end
  29.     for _,f in next,{"AutoShaman","AutoScore","AutoNewGame","AutoTimeLeft","MinimalistMode","PhysicalConsumables","AfkDeath","MortCommand","DebugCommand"} do
  30.     tfm.exec["disable"..f](false)
  31.     end
  32. end
  33.  
  34. roomAdmin = function()
  35.     for name,player in pairs(tfm.get.room.playerList) do
  36.         if string.find(tfm.get.room.name,name) then
  37.             admin=name
  38.         else
  39.             admin="Jessiewind26#2546"
  40.         end
  41.     end
  42. end
  43.  
  44. initAnvilwar = function()
  45. for _,f in next,{"AutoShaman","AutoScore","AutoNewGame","AutoTimeLeft","PhysicalConsumables","DebugCommand","AfkDeath"} do
  46.     tfm.exec["disable"..f](true)
  47. end
  48. tfm.exec.setRoomMaxPlayers(32)
  49. powerups={double=false,chuva=false,count=0,choosed="",bomba=false,objeto=false,explosion=false,triple=false,selective=false,r_azul=false,r_vermelho=false,multiple=false,multi_count=0} -- powerups
  50. play_azul={} -- jogadores do time azul
  51. players_table={} -- variável que define os jogadores novos, não alterar
  52. objetos={1,2,3,4,6,7,10,23,28,29,30,31,32,33,34,35,39,40,45,46,54,59,60,61,62,65,67,68,69,80,89,90,95,201,202,203,301,302,303,401,402,403,601,604,2806} -- objetos que podem ser atirados
  53. caps={azul="",vermelho=""} -- capitães dos times azul e vermelho
  54. play_vermelho={} -- jogadores do time azul
  55. avs_list={} -- avaliadores de mapas do module
  56. mods_list={} -- moderadores do module
  57. managers_list={"Tryndavayron#0000","Varusofeyzan#0000","Jhinsword350#0000","Nasus_assassin#1534","Vaicntaefeto#0000","Reksai_void2600#6638","Dhanny_mheyran#6701"} -- gerenciadores do module
  58. admins_list={"Jessiewind26#2546","Zed#9431"} -- administradores e criadores do module
  59. scoreloop=0 -- não alterar
  60. sudden_death=false -- modo morte súbita, não pode ser alterado
  61. local temp_name="" -- não alterar
  62. local temp_name2="" -- não alterar
  63. local temp_name3="" -- não alterar
  64. local skips=0 -- funcionalidade do comando !skip
  65. actual_player="" -- jogador atual a atirar
  66. tempo=0 -- tempo da partida
  67. players=0 -- não alterar
  68. time_limit=10 -- não alterar
  69. team=1 -- não alterar
  70. kills=0 -- não alterar
  71. data={} -- dados dos jogadores, não mexer
  72. ratos=0 -- não alterar
  73. loop=8 -- não alterar
  74. power=5 -- potência do tiro
  75. valendo=false -- variável que define quando o jogo está valendo
  76. anvil_launched=false -- variável que passa a vez pro próximo jogador
  77. set=false -- comando de admin, não alterar
  78. object=10 -- variável de objeto usada no powerup F10
  79. set_name="" -- comando de admin, não alterar
  80. reset=false -- variável que reinicia o mapa quando acabar a partida
  81. count=0 -- não alterar
  82. count_azul=0 -- quantidade de jogadores do time azul
  83. count_vermelho=0 -- quantidade de jogadores do time vermelho
  84. for _,f in next,{"help","powerups","set","tc","p","rank","data_score","score","kill","tt","rv","cap","cmd","acmd","ban","unban","skip"} do
  85.     system.disableChatCommandDisplay(f)
  86. end
  87. anvils={10,1002,1003,1004,1005} -- as bigornas
  88. mapas={"@7467262","@7463118","@7436867","@7412348","@7467977","@7470456","@7480017","@7433435","@7483583","@7485139","@7485233","@7486518","@7486596","@7486946","@7487828","@7488212","@7487008","@7493478","@7493568","@7375714","@7495501","@7495286","@7495744","@7497388","@7499355","@7501996","@7511352"}
  89. lang = {}
  90. lang.br = {
  91.     win_vermelho = "<R><b>GG Time Vermelho!</b><br>A próxima partida será iniciada em 15 segundos.",
  92.     win_azul = "<BL><b>GG Time Azul!</b><br>A próxima partida será iniciada em 15 segundos.",
  93.     sudden_death = "<VP><b>Morte Súbita!</b><br>A equipe que conseguir eliminar qualquer um adversário será declarada a vencedora.",
  94.     empate_text = "<J><b>Houve um empate!</b><br>A próxima partida será iniciada em 15 segundos.",
  95.     instructions = "Use as teclas de 1 a 9 para alterar a potência da bigorna e barra de espaço para atirar. Para ajuda digite !help. Para ver poderes especiais digite !powerups.",
  96.     turn = "<VP>É a vez de",
  97.     timeout = "<J>Tempo esgotado! O atirador será alterado.",
  98.     enter_vermelho = "Entrar no time vermelho",
  99.     enter_azul = "Entrar no time azul",
  100.     exit = "Sair do time",
  101.     double = "acionou o powerup Bigorna Dupla!",
  102.     double2 = "<br>Neste powerup, você atira 2 bigornas de uma vez.",
  103.     triple = "acionou o powerup Bigorna Tripla!",
  104.     triple2 = "<br>Neste powerup, você atira 3 bigornas de uma vez.",
  105.     bomba1 = "acionou o powerup Bomba Relógio!",
  106.     bomba2 = "<br>Neste powerup, uma explosão em um lugar aleatório do time adversário ocorrerá.",
  107.     objeto1 = "acionou o powerup Tiro Aleatório!",
  108.     objeto2 = "<br>Neste powerup, ao pressionar a barra de espaço, você vai atirar um objeto aleatório de shaman. Caso você tenha usado a habilidade Bigorna Dupla, você irá atirar 2 objetos ao invés de um.",
  109.     exp1 = "acionou o powerup Olha a Explosão!",
  110.     exp2 = "<br>Neste powerup, você pode gerar uma explosão clicando em um local do time inimigo.<br>Você possui 5 segundos para explodir!",
  111.     chuva1 = "acionou o powerup Chuva de Objetos!",
  112.     chuva2 = "<br>Neste powerup, ao atirar uma bigorna, irão aparecer diversos objetos continuamente até a troca de jogador.",
  113.     fly1 = "acionou o powerup Rato Pequeno!",
  114.     fly2 = "<br>Neste powerup, seu rato diminuirá 50% de tamanho. Esta habilidade só pode ser usada uma vez por jogador.",
  115.     inv1 = "acionou o powerup Modo Imortal!",
  116.     inv2 = "<br>Neste powerup, você ficará imortal durante 4 turnos do seu time. Esta habilidade só pode ser utilizada uma vez por partida.",
  117.     inv3 = "Sua habilidade Modo Imortal expirou.",
  118.     invi1 = "acionou o powerup Lançamento Múltiplo!",
  119.     invi2 = "<br>Neste powerup, você pode atirar 3 bigornas em seu turno.<br>Este powerup não pode ser usado com as bigornas duplas e triplas.",
  120.     selec1 = "acionou o powerup Objeto Seletivo!",
  121.     selec2 = "<br>Neste powerup, você pode escolher um objeto para atirar ao invés de uma bigorna. Os preços variam de acordo com o objeto selecionado.",
  122.     bar = "#anvilwar - Compilação RTM 7136.071",
  123.     intensity = "Intensidade",
  124.     your_turn = "<J>É a sua vez de jogar. Pressione ESPAÇO para atirar e use as teclas de 1 a 9 para alterar a potência da bigorna. Use as teclas F1 a F10 para usar poderes especiais.",
  125.     help = "Pressione ESPAÇO para atirar e use as teclas de 1 a 9 para alterar a potência da bigorna. Use as teclas de F1 a F10 para usar poderes especiais (para saber quais são, digite !powerups). A equipe que conseguir eliminar todos do time adversário vencerá a partida.<br><br>Digite !cmd para ver todos os comandos do jogo.<br><br><b>Créditos:</b><br>Desenvolvimento: Jessiewind26#2546 e Zed#9431<br>Powerups: Jhinsword350#0000 e Vidaloka9999#0000<br>Tradução: Nasus_assassin#1534 (EN), Alexsaky#7307 + Vigo#4765 (AR), Dejavu#2242 (ES) e Puiguirata#0000 (DE)",
  126.     teamkill1 = "Oh não! ",
  127.     teamKill2 = "matou um companheiro de equipe",
  128.     ajuda = "Ajuda",
  129.     credits = "Créditos",
  130.     mostrar = "Mostrar",
  131.     seconds = "<ROSE>Faltam 60 segundos!",
  132.     seconds30 = "<ROSE>Faltam 30 segundos!",
  133.     seconds10 = "<ROSE>Faltam 10 segundos!",
  134.     powerups1 = "F1 = Bigorna Dupla<br>F2 = Bigorna Tripla<br>F3 = Bomba Relógio<br>F4 = Tiro Aleatório<br>F5 = Olha a Explosão<br>F6 = Chuva de Objetos<br>F7 = Modo Teleport<br>F8 = Modo Imortal<br>F9 = Lançamento Múltiplo<br>F10 = Objeto Seletivo",
  135.     powerups2 = "6pts<br>12pts<br>5pts<br>6pts<br>18pts<br>15pts<br>15pts<br>20pts<br>10pts<br>5pts",
  136.     powerups3 = "<a href='event:power1'>Mostrar</a><br><a href='event:power2'>Mostrar</a><br><a href='event:power3'>Mostrar</a><br><a href='event:power4'>Mostrar</a><br><a href='event:power5'>Mostrar</a><br><a href='event:power6'>Mostrar</a><br><a href='event:power7'>Mostrar</a><br><a href='event:power8'>Mostrar</a><br><a href='event:power9'>Mostrar</a><br><a href='event:power10'>Mostrar</a>",
  137.     powerups4 = "1<br>2<br>2<br>2<br>5<br>6<br>3<br>5<br>4<br>3",
  138.     teamchat = "<J>Você pode usar o comando !tc [mensagem] para falar apenas com o seu time.<br><br>Você pode ver seu perfil no jogo digitando !p e o ranking temporário digitando !rank.",
  139.     menu_bar = "<p align='center'><a href='event:help'>Ajuda</a>  |  <a href='event:powerups'>Powerups</a>  |  <a href='event:profile'>Perfil</a>  |  <a href='event:ranking'>Ranking</a>  |  <a href='event:cap'>Capitão</a>  |  <a href='event:cmd'>Comandos</a>",
  140.     powerupslist = "Lista de Poderes",
  141.     profile = "Use o comando !p para ver o seu perfil. Use !p [nome] para ver o perfil de outra pessoa.",
  142.     starting = "<VP>A partida está prestes a começar. Preparem-se!",
  143.     suicide = "O seguinte jogador cometeu suicídio: ",
  144.     ban = " foi banido da sala #anvilwar por ",
  145.     unban = " teve seu banimento removido da sala.",
  146.     caps = " foi escolhido para ser o capitão da equipe.",
  147.     cap = "Este tipo de jogador (escolhido aleatoriamente) receberá 50% a mais de pontuação que os outros e poderá transferir seus pontos para outro jogador de sua equipe usando o comando !tt [nome].<br>Você também poderá utilizar o comando !rv [nome] para reviver UM membro morto de sua equipe.",
  148.     cap_text = "<br><VP>Você é o capitão da sua equipe.<br><br>Você irá receber 50% mais pontos por tempo vivo e poderá transferir pontos para outros jogadores usando o comando !tt [nome].<br>Você também poderá utilizar o comando !rv [nome] para reviver UM membro morto de sua equipe.",
  149.     score30 = "<R>Você precisa de 30 pontos para usar isto.",
  150.     advanced = "<VP>Você acaba de avançar para o nível ",
  151.     tag_text = "<J>Não se esqueça de colocar a #tag no final do nome desejado! Caso contrário, o comando não irá funcionar!",
  152.     revivetext = "<J>O seguinte jogador reviveu: ",
  153.     yturn = "É a vez de: ",
  154.     level_error = "<R>Você não possível nível suficiente para usar isto.",
  155.     funct = "Função não permitida. (Você colocou a #tag no nome?)",
  156.     cmds = "Comandos do Jogo",
  157.     commands = "• !help = Exibe as instruções de como jogar.<br>• !p [jogador] = Exibe o perfil do jogador escolhido. Digite !p sem argumentos para ver o seu perfil.<br>• !rank = Exibe o ranking temporário de quem está na sala.<br>• !tc [mensagem] = Fala apenas com os jogadores do seu time.<br>• !skip = Envia um voto para pular o mapa atual. Este comando só pode ser usado quando a partida ainda não tiver começado.<br><ROSE>* <N>!rv [jogador] = Revive um jogador morto de sua equipe.<br><ROSE>* <N>!tt [jogador] = Transfere seus pontos para outro jogador<br><br>Os comandos marcados com <ROSE>* <N>são de uso exclusivo do capitão da equipe. Para saber mais sobre isso, digite !cap.",
  158.     admin_commands = "<BL>• <N>!skip = Pula o mapa atual.<br><BL>• <N>!pw [texto] = Adiciona uma senha na sala.<br><BL>• <N>!rodar [mapa] = Executa o mapa especificado.<br><J>• <N>!kill [nome] = Mata o jogador especificado.<br><R>• <N>!limit [número] = Limita a quantidade de ratos na sala.<br><br>Você só pode usar os comandos correspondentes a cor do seu nome.<br><br>Por motivos de segurança e estabilidade, nem todos os comandos especiais foram adicionados aqui.",
  159.     playingmap = "Rodando mapa",
  160.     created = "criado por"
  161. }
  162. lang.en = {
  163.     win_vermelho = "<R><b>The RED team wins!</b><br>The next match will start in 15 seconds.",
  164.     win_azul = "<BL><b>The BLUE team wins!</b><br>The next match will start in 15 seconds.",
  165.     sudden_death = "<VP><b>SUDDEN DEATH!</b><br>The team that kill anyone of other team will won the match.",
  166.     empate_text = "<J><b>There was a draw!</b><br>The next match will start in 15 seconds.",
  167.     instructions = "Use the 1 to 9 keys to change the intensity of anvil and SPACEBAR to throw a anvil.",
  168.     turn = "<VP>It's turn of",
  169.     timeout = "<J>Time is over! The shooter will be changed.",
  170.     enter_vermelho = "Enter on RED team",
  171.     enter_azul = "Enter on BLUE team",
  172.     exit = "Leave this team",
  173.     double = "used the powerup Double Anvil!",
  174.     triple = "used the powerup Triple Anvil!",
  175.     bomba1 = "used the powerup Time Bomb!",
  176.     bomba2 = "<br>On this powerup, a explosion will occur on a random place of enemy area.",
  177.     objeto1 = "used the powerup Random Shoot!",
  178.     objeto2 = "<br>On this powerup, you will shoot a random shaman object instead of a anvil. If you have used the Double Anvil powerup, you can shoot 2 objects instead of one.",
  179.     exp1 = "used the powerup Explosion!",
  180.     exp2 = "<br>On this powerup, you can cause a explosion clicking on enemy area with your mouse.<br>You have 5 seconds to cause your explosion.",
  181.     chuva1 = "used the powerup Anvil Rain!",
  182.     chuva2 = "<br>On this powerup, you will shoot several anvils",
  183.     fly1 = "used the powerup Small Mice!",
  184.     fly2 = "<br>On this powerup, the size of your mice will be reduced at 50%. This powerup can be used only 1 time per player.",
  185.     inv1 = "used the powerup Immortal Mode!",
  186.     inv2 = "<br>On this powerup, you be immortal during the next 4 turns. This powerup only can be used 1 time per game.",
  187.     inv3 = "Your immortality has ended.",
  188.     invi1 = "used the powerup Multiple Anvil!",
  189.     invi2 = "<br>On this powerup, you can shoot up to 3 anvils on your turn. This ability can't be used with double and triple anvils.",
  190.     selec1 = "used the powerup Selective Object!",
  191.     selec2 = "<br>On this powerup, you can select a shaman object to shoot instead of a anvil. This ability can't be used with double and triple anvils.",
  192.     bar = "#anvilwar - Compilation RTM 7136.071",
  193.     intensity = "Intensity",
  194.     your_turn = "<J>It's your turn to shoot. Press SPACEBAR to throw a anvil and use the 1 to 9 keys to change the intensity of anvil. Use the F1 to F10 keys to use powerups.",
  195.     help = "Press SPACEBAR to throw a anvil and use the 1 to 9 keys to change the intensity of anvil. Use the F1 to F10 keys to use powerups (type !powerups). The team that eliminates the enemy team wons the game.<br><br>Type !cmd to show all the game commands.<br><br><b>Credits:</b><br>Development: Jessiewind26#2546 and Zed#9431<br>Powerups: Jhinsword350#0000 and Vidaloka9999#0000<br>Translations: Nasus_assassin#1534 (EN), Alexsaky#7307 + Vigo#4765 (AR), Dejavu#2242 (ES) and Puiguirata#0000 (DE)",
  196.     teamkill1 = "Oh no! ",
  197.     teamKill2 = "has killed a player of her team",
  198.     ajuda = "Help",
  199.     credits = "Credits",
  200.     mostrar = "Show",
  201.     seconds = "<ROSE>60 seconds remaining!",
  202.     seconds30 = "<ROSE>30 seconds remaining!",
  203.     seconds10 = "<ROSE>10 seconds remaining!",
  204.     powerups1 = "F1 = Double Anvil<br>F2 = Triple Anvil<br>F3 = Time Bomb<br>F4 = Random Shoot<br>F5 = Explosion<br>F6 = Anvil Rain<br>F7 = Small Mice<br>F8 = Immortal Mode<br>F9 = Multiple Anvil<BR>F10 = Selective Object",
  205.     powerups2 = "6pt<br>12pt<br>5pt<br>6pt<br>18pt<br>15pt<br>15pt<br>20pt<br>10pt<br>5pt",
  206.     powerups3 = "<a href='event:power1'>Show</a><br><a href='event:power2'>Show</a><br><a href='event:power3'>Show</a><br><a href='event:power4'>Show</a><br><a href='event:power5'>Show</a><br><a href='event:power6'>Show</a><br><a href='event:power7'>Show</a><br><a href='event:power8'>Show</a><br><a href='event:power9'>Show</a><br><a href='event:power10'>Show</a>",
  207.     powerups4 = "1<br>2<br>2<br>2<br>5<br>6<br>3<br>5<br>4<br>3",
  208.     teamchat = "<J>You can use the command !tc [message] to speak with your team.<br><br>You can see your profile typing !p and the temporary tanking typing !rank.",
  209.     menu_bar = "<p align='center'><a href='event:help'>Help</a>  |  <a href='event:powerups'>Powerups</a>  |  <a href='event:profile'>Profile</a>  |  <a href='event:ranking'>Ranking</a>  |  <a href='event:cap'>Capitain</a>  |  <a href='event:cmd'>Commands</a>",
  210.     powerupslist = "Powerups List",
  211.     profile = "Use the !p command to view your profile and use !p [username] to view the profile of another user.",
  212.     starting = "<VP>The match will start on a few seconds. Get ready!",
  213.     suicide = "The following player committed suicide: ",
  214.     ban = " was banned of room by ",
  215.     unban = " was unbanned of room.",
  216.     caps = " was choosed to be the team capitain.",
  217.     cap = "This type of player (that is choosed randomly) will receive 50% more points and will get the ability of transfer your points to other players alive on the match using the !tt [name] command. You can use the !rv [name] command to revive ONE team player dead.",
  218.     cap_text = "<br><VP>You are the team capitain.<br><br>You will receive 50% more points than other team players and can transfer your points to other team players using the !tt [name] command. You can use the !rv [name] command to revive ONE team player dead.",
  219.     score30 = "<R>You need 30 points to use this.",
  220.     advanced = "<VP>You reached the level ",
  221.     tag_text = "<J>Don't forget to insert the #tag on the target nickname, else this command don't will work!",
  222.     revivetext = "<J>The following player has been revived: ",
  223.     yturn = "Actual player: ",
  224.     level_error = "<R>You don't have level to use this. To view your level use the !p command.",
  225.     funct = "Function not allowed",
  226.     cmds = "Game commands",
  227.     commands = "• !help = Show the game help.<br>• !p [player] = Show the profile of selected player. Type !p without arguments to show your profile.<br>• !rank = Show the temporary room ranking.<br>• !tc [message] = Chat with other members of your team.<br>• !skip = Send a vote to skip the actual map. This command cannot be used during the match.<br><ROSE>* <N>!rv [player] = Revive a dead player of your team.<br><ROSE>* <N>!tt [player] = Transfer your points to another team member.<br><br>The commands marked with <ROSE>* <N>are of exclusive use of the team capitains. To see more info about this, use the !cap command.",
  228.     admin_commands = "<BL>• <N>!skip = Skip the actual map.<br><BL>• <N>!pw [texto] = Add a password on the room. Type only !pw to remove the password.<br><BL>• <N>!rodar [mapa] = Run the specified map.<br><J>• <N>!kill [nome] = Kill the specified player.<br><R>• <N>!limit [número] = Set a limit of mices on this room.<br><br>You only can use the commands that match with your name color.",
  229.     playingmap = "Playing map",
  230.     created = "created by"
  231. }
  232. lang.ar = {
  233.     win_vermelho = "<R><b>فاز الفريق الأحمر!</b><br>ستبدأ المباراة التالية في غضون 15 ثانية!",
  234. win_azul = "<BL><b>فاز الفريق الأزرق!</b><br>ستبدأ المعركة التالية في غضون 15 ثانية!",
  235. sudden_death = "<VP><b>المعركة النهائية!</b><br>إذا قام أي أحد بقتل عضو في أي فريق أخر، سوف يفوز الفريق الذي قتل!",
  236. empate_text = "<J><b>تعادل!</b><br>ستبدأ المباراة التالية في غضون 15 ثانية!",
  237. instructions = "إستخدم مفاتيح لوحة التحكم من 1 الى 9 للتحكم في سرعة وقوة السندان.",
  238. turn = "<VP>إنه دور",
  239. timeout = "<J>إنتهى الوقت! سيتم تغيير الضارب",
  240. enter_vermelho = "قم بالدخول للفريق الأحمر",
  241. enter_azul = "قم بالدخول للفريق الأزرق",
  242. exit = "قم بالخروج من هذا الفريق",
  243. double = "إستخدم السندان المزدوج!",
  244. triple = "إستخدم السندان الثلاثي، إحترس!",
  245. bomba1 = "إستخدم فرقعة الزمن، إحترس من الإنفجار!",
  246. bomba2 = "<br>في هذه القوة، سوف يحدث إنفجار في بقعة مختلفة في مكان العدو",
  247. objeto1 = "إستخدم الضربة العشوائية! قد يقوم بضرب أي شيئ الأن!",
  248. objeto2 = "<br>في هذه القوة، يمكنك ضرب أداة شامان بدلآ من السندان، إذا قمت بإختيار السندان المزدوج، سيتم ضرب اداتان شامان بدلآ من سندان",
  249. exp1 = "قام بإستخدام قوة الإنفجار!",
  250. exp2 = "<br>بإستخدام هذه القوة، يمكنك إحداث إنفجار في منطقة العدو بإستخدام الفأرة (الماوس)، لديك 5 ثوانٍ فقط للقيام بإنفجار",
  251. chuva1 = "إستخدم قوة مَطر السندان! إحتمي!",
  252. chuva2 = "<br>في هذه القوة، يمكنك ضرب العديد من السندان",
  253. fly1 = "used the powerup Small Mice!",
  254. fly2 = "<br>On this powerup, the size of your mice will be reduced at 50%. This powerup can be used only 1 time per player.",
  255. inv1 = "إستخدم قوة عدم الموت",
  256. inv2 = "<br>بإستخدام هذه القوة، لن يمكنك الموت لمدة 4 جولات من الضرب، يمكنك إستخدامها مرة واحدة فقط في الجولة الواحدة",
  257. inv3 = "قوة عدم موتك قد إنتهت، أصبحت قابلآ للموت الأن!.",
  258. invi1 = "إستخدم قوة السندان مضاعف حذارِ!",
  259. invi2 = "<br>في تلك القوة يمكنك إستخدام ثلاث سندان، لا تعمل في حالات السندان المزدوج أو الثلاثي.",
  260. selec1 = "إستخدم قوة إختيار أداة شامان للضرب!",
  261. selec2 = "<br>في هذه القوة، يمكنك إختيار أداة شامان للإطلاق بدلآ من سندان ثلاثي",
  262. bar = "#anvilwar - Compilation RTM 7136.071",
  263. intensity = "قوة الضرب وسرعته",
  264. your_turn = "<J>إنه دورك للضرب! إضغط زر المسافة لإطلاق سندان مع استخدام الزر من 1 الى 9 للتحكم في سرعة السندان لتغيير قوة ضرب السندان، . إستخدم المفتاح إف 1 حتى إف 9 لإطلاق ضربات مختلفة! إكتشف!",
  265. help = "إضغط زر المسافة لإطلاق سندان وللتحكم بسرعته يمكنك الضغط على زر الوجوه من 1 الى 9 ، إستخدم المفتاح من إف1 حتى إف9 لإطلاق ضربات القوة (أكتب !powerups) الفريق الذي يحطم العدو يفوز بالجولة <br><br>Type لترى جميع إيعازات اللعبة !cmds أكتب<br><br><b>Credits:</b><br>البرمجة والتطوير Jessiewind26#2546 and Zed#9431<br>نظام القوة: Jhinsword350#0000 and Vidaloka9999#0000<br>الترجمة: Nasus_assassin#1534 (EN), Alexsaky#7307 + Vigo#4765 (AR), Dejavu#2242 (ES) and Puiguirata#0000 (DE)",
  266. teamkill1 = "أوه لا!! ",
  267. teamKill2 = "قام بقتل عضو من فريقه!",
  268. ajuda = "المساعدة",
  269. credits = "Credits",
  270. mostrar = "أظهر",
  271. seconds = "<ROSE>60 ثانية متبقية",
  272. seconds30 = "<ROSE>30 ثانية متبقية!",
  273. seconds10 = "<ROSE>10 ثوانٍ متبقية!",
  274. powerups1 = "F1 = سندان مزدوج<br>F2 =سندان ثلاثي <br>F3 =فرقعة بالفأرة<br>F4 = ضربة أداة شامان عشوائية<br>F5 = تفجير!<br>F6 =مطر السندان!<br>F7 = Small Mice<br>F8 = وضع عديم الموت<br>F9 =سندان مختفي<BR>F10 = إختيار أداة شامان لإطلاقها.",
  275. powerups2 = "6pt<br>12pt<br>5pt<br>6pt<br>18pt<br>15pt<br>15pt<br>20pt<br>10pt<br>5pt",
  276. powerups3 = "<a href='event:power1'>Show</a><br><a href='event:power2'>Show</a><br><a href='event:power3'>Show</a><br><a href='event:power4'>Show</a><br><a href='event:power5'>Show</a><br><a href='event:power6'>Show</a><br><a href='event:power7'>Show</a><br><a href='event:power8'>Show</a><br><a href='event:power9'>Show</a><br><a href='event:power10'>Show</a>",
  277. powerups4 = "1<br>2<br>2<br>2<br>5<br>6<br>3<br>5<br>4<br>3",
  278. teamchat = "<J>إستخم الإيعاز !tc [msg] للتكلم مع أعضاء فريقك<br><br>You can see your profile typing !p and the temporary tanking typing !rank.",
  279. menu_bar = "<p align='center'><a href='event:help'>Help</a> | <a href='event:powerups'>Powerups</a> | <a href='event:profile'>Profile</a> | <a href='event:ranking'>Ranking</a> | <a href='event:cap'>Capitain</a> | <a href='event:cmd'>Commands</a>",
  280. powerupslist = "Powerups List",
  281. profile = "إستخدم !p لرؤية ملفك وأستخدم !p name لرؤية ملف لاعب أخر ",
  282. starting = "<VP>ستبدأ المباراة غي غضون بضعة ثواني، إستعد!",
  283. suicide = "قام بالإنتحار ",
  284. ban = " تم حظره من الغرفة من قبل ",
  285. unban = " تم فك حظره من الغرفة من قبل",
  286. caps = " تم إختياره ليصبح قائد الفريق. لرؤية المزيد عن هذا أكتب !cap أو استخدم قسم القائد في القائمة, ",
  287. cap = "الكابتن هو قائد الفريق، يتم إختياره عشوائيآ، سوف يحصل على نقاط بنسبة 50% أكثر من اللاعبين، اي جَني النقاط بسرعة!يمكنه تحويل النقاط للاعب أخر عن طريق الإيعاز ويمكنه إحياء لاعب مات من فريقه بإستخدام !rv [name] ولكن يتطلب 30 نقطة لذلك",
  288. cap_text = "<br><VP>أنت قائد الفريق<br><br>سوف تحصل على نقاط زائدة بنسبة 50% ويمكنك نق لنقاطك للاعب أخر بإستخدام !tt name أو إحياء لاعب أخر بإستخدام !rv name يتطلب الإحياء 30 نقطة",
  289. score30 = "<R>تحتاج 30 نقطة للقيام بهذا",
  290. advanced = "<VP>وصلت للستوى ",
  291. tag_text = "<J>لا تنسى بوضع الهاشتاج على الإسم الذي تم إختياره, أو لن يعمل هذا الإيعاز",
  292. revivetext = "<J>هذا اللاعب قام بإستقبال : ",
  293. yturn = "اللاعب الحالي: ",
  294. level_error = "<R>لا تملك المستوى المطلوب لفعل هذا، لترى مستواك إكتب !p",
  295. funct = "الإيعاز غير مسموح",
  296. cmds = "إيعازات اللعبة : ",
  297. commands = "• !help لرؤية المساعدة<br>• !p [player] = لرؤية ملف لاعب، أكتب !p بدون أي شيئ لرؤية ملفك<br>• !rank لرؤية الرتبة الحالية.<br>• !tc [message] = المحادثة مع أعضاء فريقك<br>• !skip = إرسال تصويت لتخطي الجولة الحالية هذا الإيعاز لن يتم إستخدامه في الجولات التي تم بدأها، فقط في الجولات التي لم تبدأ بعد (في وضع إختيار الفرق) فقط<br><ROSE>* <N>!rv [player] = إحياء لاعب مات من فريقك، تطلب ان تكون القائد ومعك 30 نقطة<br><ROSE>* <N>!tt [player] = تقوم بنقل نقاطك للاعب أخر في الغرفة<br><br>الإيعازات المُعلمة بـ <ROSE>* <N> إيعازات فقط للقائد، لرؤية المزيد أكتب !cap",
  298. admin_commands = "<BL>• <N>!skip =تخطي الجولة الحالية map.<br><BL>• <N>!pw [text] = وضع كلمة سر للغرفة أكتب !pw لإزالة الباسورد<br><BL>• <N>!set_map [map] = تشغيل الخريطة المحددة<br><J>• <N>!kill [name] = قتل اللاعب المختار<br><R>• <N>!limit [number] = وضع حد للفئران في الغرفة<br><br>يمكنك إستخدام هذه الإيعازات عندما يكون إسمك باللون :.",
  299.     playingmap = "Playing map",
  300.     created = "created by"
  301. }
  302. lang.es = {
  303.     win_vermelho = "<R><b>¡Ha ganado el equipo ROJO!</b><br>La próxima ronda comenzará en 15 segundos.",
  304. win_azul = "<BL><b>¡Ha ganado el equipo AZUL!</b><br>La próxima ronda comenzará en 15 segundos.",
  305.     sudden_death = "<VP><b>MUERTE SÚBITA!</b><br>El equipo que mate a alguien del otro equipo ganará esta ronda.",
  306.     empate_text = "<J><b>Hubo un empate!</b><br>La próxima ronda comenzará en 15 segundos.",
  307.     instructions = "Usa las teclas 1 al 9 para cambiar la intensidad del yunque y ESPACIO para lanzarlo.",
  308.     turn = "<VP>Es el turno de",
  309.     timeout = "<J>El tiempo ha terminado. El tirador será cambiado.",
  310.     enter_vermelho = "Unirse al equipo ROJO",
  311.     enter_azul = "Unirse al equipo AZUL",
  312.     exit = "Abandonar este equipo",
  313.     double = "usó el powerup Doble Yunque!",
  314.     triple = "usó el powerup Triple Yunque!",
  315.     bomba1 = "usó el powerup Bomba de Tiempo!",
  316.     bomba2 = "<br>Con este powerup se producirá una explosión en un lugar aleatorio del área enemigo.",
  317.     objeto1 = "usó el de powerup Tiro Aleatorio!",
  318.     objeto2 = "<br>Con este powerup lanzarás un objeto de chamán aleatorio en lugar de un yunque. Si has usado el powerup Doble Yunque puedes lanzar 2 objetos en vez de 1.",
  319.     exp1 = "usó el powerup Explosión!",
  320.     exp2 = "<br>Con este powerup puedes provocar una explosión clicando en área enemigo con tu ratón.<br>Tienes 5 segundos para provocar la explosión.",
  321.     chuva1 = "usó el powerup Lluvia de Yunques!",
  322.     chuva2 = "<br>Con este powerup lanzarás varios yunques.",
  323.     fly1 = "used the powerup Small Mice!",
  324.     fly2 = "<br>On this powerup, the size of your mice will be reduced at 50%. This powerup can be used only 1 time per player.",
  325.     inv1 = "usó el powerup Modo Inmortal!",
  326.     inv2 = "<br>Con este powerup serás inmortal durante los próximos 4 turnos. Solo puedes usarlo 1 vez por ronda.",
  327.     inv3 = "Tu inmortalidad ha terminado.",
  328.     invi1 = "usó el powerup Múltiple Yunque!",
  329.     invi2 = "<br>Con este powerup vas a lanzar 3 yunques. Esto no puede ser usado con doble o triple yunque.",
  330.     selec1 = "usó el powerup Objeto Selectivo!",
  331.     selec2 = "<br>Con este powerup puedes seleccionar un objeto de chamán para lanzar en vez de un yunque. Esto no puede ser usado con doble o triple yunque.",
  332.     bar = "#anvilwar - Compilación RTM 7136.071",
  333.     intensity = "Intensidad",
  334.     your_turn = "<J>Es tu turno de lanzar. Presiona ESPACIO para lanzar un yunque y usa las teclas 1 al 9 para cambiar la intensidad de este. Usa las teclas F1 al F10 para usar los powerups.",
  335.     help = "Presiona ESPACIO para lanzar un yunque y usa las teclas 1 al 9 para cambiar la intensidad de este. Usa las teclas F1 al F10 para usar los powerups (escribe !powerups). El equipo que elimine al enemigo ganará la ronda.<br><br>Escribe !cmd para mostrar todos los comandos del juego.<br><br><b>Créditos:</b><br>Desarrollo: Jessiewind26#2546 y Zed#9431<br>Powerups: Jhinsword350#0000 y Vidaloka9999#0000<br>Traducciones: Nasus_assassin#1534 (EN), Alexsaky#7307 + Vigo#4765 (AR), Dejavu#2242 (ES) y Puiguirata#0000 (DE)",
  336.     teamkill1 = "¡Oh no! ",
  337.     teamKill2 = "ha matado a un jugador de su equipo",
  338.     ajuda = "Ayuda",
  339.     credits = "Créditos",
  340.     mostrar = "Mostrar",
  341.     seconds = "<ROSE>¡Quedan 60 segundos!",
  342.     seconds30 = "<ROSE>¡Quedan 30 segundos!",
  343.     seconds10 = "<ROSE>¡Quedan 10 segundos!",
  344.     powerups1 = "F1 = Doble Yunque<br>F2 = Triple Yunque<br>F3 = Bomba de Tiempo<br>F4 = Tiro Aleatorio<br>F5 = Explosión<br>F6 = Lluvia de Yunques<br>F7 = Small Mice<br>F8 = Modo Inmortal<br>F9 = Invisible Anvil<BR>F10 = Objeto Selectivo",
  345.     powerups2 = "6pt<br>12pt<br>5pt<br>6pt<br>18pt<br>15pt<br>15pt<br>20pt<br>10pt<br>5pt",
  346.     powerups3 = "<a href='event:power1'>Mostrar</a><br><a href='event:power2'>Mostrar</a><br><a href='event:power3'>Mostrar</a><br><a href='event:power4'>Mostrar</a><br><a href='event:power5'>Mostrar</a><br><a href='event:power6'>Mostrar</a><br><a href='event:power7'>Mostrar</a><br><a href='event:power8'>Mostrar</a><br><a href='event:power9'>Mostrar</a><br><a href='event:power10'>Mostrar</a>",
  347.     powerups4 = "1<br>2<br>2<br>2<br>5<br>6<br>3<br>5<br>4<br>3",
  348.     teamchat = "<J>Puedes usar el comando !tc [mensaje] para hablar con tu equipo.<br><br>Puedes ver tu perfil escribiendo !p y el ranking temporal escribiendo !rank.",
  349.     menu_bar = "<p align='center'><a href='event:help'>Ayuda</a>  |  <a href='event:powerups'>Powerups</a>  |  <a href='event:profile'>Perfil</a>  |  <a href='event:ranking'>Ranking</a>  |  <a href='event:cap'>Capitán</a>  |  <a href='event:cmd'>Comandos</a>",
  350.     powerupslist = "Lista de Powerups",
  351.     profile = "Usa el comando !p para ver tu perfil y usa !p [apodo] para ver el de otra persona.",
  352.     starting = "<VP>La ronda comenzará en unos segundos. ¡Prepárate!",
  353.     suicide = "El siguiente jugador cometió suicidio: ",
  354.     ban = " fue baneado de la sala por ",
  355.     unban = " fue desbaneado de la sala.",
  356.     caps = " fue elegido para ser el capitán del equipo. Para ver más información acerca de esto, escribe el comando !cap o usa la sección de Capitán en el menú.",
  357.     cap = "En esta compilación fue incluido la funcionalidad de jugador capitán. Este tipo de jugador (es elegido aleatoriamente) recibirá un 50% más de puntos y la posibilidad de transferir tus puntos a otros jugadores vivos en la ronda usando el comando !tt [apodo]. Puedes usar el comando !rv [apodo] para revivir UN jugador muerto del equipo.",
  358.     cap_text = "<br><VP>Eres el capitán del equipo.<br><br>Recibirás un 50% más de puntos y la posibilidad de transferir tus puntos a otros jugadores del equipo usando el comando !tt [apodo]. Puedes usar el comando !rv [apodo] command para revivir UN jugador muerto del equipo.",
  359.     score30 = "<R>Necesitas 30 puntos para usar esto.",
  360.     advanced = "<VP>Has alcanzado el nivel ",
  361.     tag_text = "<J>No te olvides de colocar el #tag en el apodo del objetivo, o este comando no funcionará.",
  362.     revivetext = "<J>El siguiente jugador ha sido revivido: ",
  363.     yturn = "Jugador actual: ",
  364.     level_error = "<R>No tienes el nivel para usar esto. Para ver tu nivel usa el comando !p.",
  365.     funct = "Función no permitido",
  366.     cmds = "Comandos del juego",
  367.     commands = "• !help = Mostrar la ayuda del juego.<br>• !p [apodo] = Mostrar el perfil de un determinado jugador. Escribe !p solamente para mostrar tu perfil.<br>• !rank = Mostrar el ranking temporal de la sala.<br>• !tc [mensaje] = Hablar con otros miembros de tu equipo.<br>• !skip = Votar para saltar el mapa actual. Esto no puede ser usado durante la ronda.<br><ROSE>* <N>!rv [apodo] = Revivir a un jugador muerto de tu equipo.<br><ROSE>* <N>!tt [apodo] = Transferir tus puntos a otro miembro de tu equipo.<br><br>Los comandos marcados con <ROSE>* <N>son de uso exclusivo para capitanes de equipos. Para saber más de esto, usa el comando !cap.",
  368.     admin_commands = "<BL>• <N>!skip = Saltar el mapa actual.<br><BL>• <N>!pw [texto] = Agregar una contraseña a la sala. Escribe !pw nuevamente para remover la contraseña.<br><BL>• <N>!set_map [mapa] = Cargar un mapa en específico.<br><J>• <N>!kill [apodo] = Matar a un jugador en específico.<br><R>• <N>!limit [número] = Limitar el número de ratones en la sala.<br><br>Solo puedes utilizar los comandos que coincidan con el color de tu nombre.",
  369.     playingmap = "Jugando mapa",
  370.     created = "creado por"
  371. }
  372. lang.de = {
  373.     win_vermelho = "<R><b>Das ROTE Team gewinnt!</b><br>Das nächste Spiel beginnt in 15 Sekunden.",
  374.     win_azul = "<BL><b>Das BLAUE Team gewinnt!</b><br>Das nächste Spiel beginnt in 15 Sekunden.",
  375.     sudden_death = "<VP><b>PLÖTZLICHER TOD!</b><br>Das Team, das jemanden aus einem anderen Team tötet, gewinnt das Spiel.",
  376.     empate_text = "<J><b>Es gab ein Unentschieden!</b><br>Das nächste Spiel beginnt in 15 Sekunden.",
  377.     instructions = "Verwenden Sie die Tasten 1 bis 9, um die Intensität des Ambosses zu ändern und die Leertaste, um einen Amboss zu werfen.",
  378.     turn = "<VP>Es ist die Wende von",
  379.     timeout = "<J>Die Zeit ist vorbei! Der Schütze wird gewechselt.",
  380.     enter_vermelho = "Betreten Sie das ROTE Team",
  381.     enter_azul = "Betreten Sie das BLAUE Team",
  382.     exit = "Dieses Team verlassen",
  383.     double = "benutzte den Powerup Double Anvil!.",
  384.     triple = "benutzte den Powerup Triple Anvil!",
  385.     bomba1 = "benutzte den Powerup Time Bomb!",
  386.     bomba2 = "<br>Bei diesem Powerup kommt es zu einer Explosion an einem beliebigen Ort im feindlichen Gebiet.",
  387.     objeto1 = "benutzte den Powerup Random Shoot!",
  388.     objeto2 = "<br>Bei diesem Powerup schießt du ein zufälliges Schamanenobjekt anstelle eines Ambosses. Wenn du das Double Anvil Powerup benutzt hast, kannst du 2 Objekte anstelle von einem aufnehmen.",
  389.     exp1 = "benutzte den Powerup Explosion!",
  390.     exp2 = "<br>Bei diesem Powerup kannst du eine Explosion verursachen, indem du mit der Maus auf den gegnerischen Bereich klickst.<br>Sie haben 5 Sekunden Zeit, um deine Explosion zu verursachen.",
  391.     chuva1 = "benutzte den Powerup Anvil Rain!",
  392.     chuva2 = "<br>Bei diesem Powerup schießt du mehrere Ambosse.",
  393.     fly1 = "used the powerup Small Mice!",
  394.     fly2 = "<br>On this powerup, the size of your mice will be reduced at 50%. This powerup can be used only 1 time per player.",
  395.     inv1 = "benutzte den Powerup Immortal Mode!",
  396.     inv2 = "<br>Bei diesem Powerup bist du in den nächsten 4 Runden unsterblich. Dieses Powerup kann nur einmal pro Spiel verwendet werden.",
  397.     inv3 = "Deine Unsterblichkeit ist vorbei.",
  398.     invi1 = "benutzte den Powerup Multiple Anvil!",
  399.     invi2 = "<br>Bei diesem Powerup kannst du bis zu 3 Ambosse schießen, wenn du an der Reihe bist. Diese Fähigkeit kann nicht bei Doppel- und Dreifachambossen eingesetzt werden.",
  400.     selec1 = "benutzte den Powerup Selective Object!",
  401.     selec2 = "<br>Bei diesem Powerup kannst du ein Schamanenobjekt auswählen, das du anstelle eines Ambosses aufnehmen möchtest. Diese Fähigkeit kann nicht bei Doppel- und Dreifachambossen eingesetzt werden.",
  402.     bar = "#anvilwar - Compilation RTM 7136.071",
  403.     intensity = "Intensität",
  404.     your_turn = "<J>Du bist dran mit dem Schießen. Drücken Sie die LEERTASTE, um einen Amboss zu werfen, und verwenden Sie die Tasten 1 bis 9, um die Intensität des Ambosses zu ändern. Verwenden Sie die Tasten F1 bis F10, um Powerups zu verwenden.",
  405.     help = "Drücken Sie die LEERTASTE, um einen Amboss zu werfen, und verwenden Sie die Tasten 1 bis 9, um die Intensität des Ambosses zu ändern. Verwenden Sie die Tasten F1 bis F10, um Powerups zu verwenden (Typ !powerups). Das Team, das das gegnerische Team eliminiert, gewinnt das Spiel.<br><br>Geben Sie !cmd ein, um alle Spielbefehle anzuzeigen.<br><br><b>Credits:</b><br>Entwicklung: Jessiewind26#2546 und Zed#9431<br>Powerups: Jhinsword350#0000 und Vidaloka9999#0000<br>Übersetzungen: Nasus_assassin#1534 (EN) Alexsaky#7307 + Vigo#4765 (AR) Dejavu#2242 (ES) und Puiguirata#0000 (DE)",
  406.     teamkill1 = "Oh nein! ",
  407.     teamKill2 = "hat einen Spieler ihrer Mannschaft getötet.",
  408.     ajuda = "Hilfe",
  409.     credits = "Credits",
  410.     mostrar = "Zeigen",
  411.     seconds = "<ROSE>Noch 60 Sekunden!",
  412.     seconds30 = "<ROSE>Noch 30 Sekunden!",
  413.     seconds10 = "<ROSE>Noch 10 Sekunden!",
  414.     powerups1 = "F1 = Double Anvil<br>F2 = Triple Anvil<br>F3 = Time Bomb<br>F4 = Random Shoot<br>F5 = Explosion<br>F6 = Anvil Rain<br>F7 = Small Mice<br>F8 = Immortal Mode<br>F9 = Invisible Anvil<BR>F10 = Selective Object",
  415.     powerups2 = "6pt<br>12pt<br>5pt<br>6pt<br>18pt<br>15pt<br>15pt<br>20pt<br>10pt<br>5pt",
  416.     powerups3 = "<a href='event:power1'>Show</a><br><a href='event:power2'>Show</a><br><a href='event:power3'>Show</a><br><a href='event:power4'>Show</a><br><a href='event:power5'>Show</a><br><a href='event:power6'>Show</a><br><a href='event:power7'>Show</a><br><a href='event:power8'>Show</a><br><a href='event:power9'>Show</a><br><a href='event:power10'>Show</a>",
  417.     powerups4 = "1<br>2<br>2<br>2<br>5<br>6<br>3<br>5<br>4<br>3",
  418.     teamchat = "<J>Du kannst den Befehl !tc [message] um mit Ihrem Team zu sprechen.<br><br>Du kannst deine Profiltypisierung sehen !p und die Typisierung des temporären Tankens !rank.",
  419.     menu_bar = "<p align='center'><a href='event:help'>Help</a>  |  <a href='event:powerups'>Powerups</a>  |  <a href='event:profile'>Profile</a>  |  <a href='event:ranking'>Ranking</a>  |  <a href='event:cap'>Capitain</a>  |  <a href='event:cmd'>Commands</a>",
  420.     powerupslist = "Powerups List",
  421.     profile = "Verwenden Sie die !p Befehl, um Ihr Profil anzusehen und zu verwenden !p [username] um das Profil eines anderen Benutzers anzuzeigen.",
  422.     starting = "<VP>Das Spiel beginnt in wenigen Sekunden. Macht euch bereit!",
  423.     suicide = "Der folgende Spieler beging Selbstmord: ",
  424.     ban = " wurde aus dem Zimmer verbannt von ",
  425.     unban = " wurde nicht aus dem Zimmer verbannt.",
  426.     caps = " wurde als Teamchef ausgewählt. Um mehr Informationen darüber zu erhalten, geben Sie Folgendes ein !cap Befehl oder verwenden Sie den Abschnitt Capitain im Menü des Moduls.",
  427.     cap = "Auf dieser Zusammenstellung wurde die Funktionalität eines Capitain-Players integriert. Diese Art von Spieler (die zufällig ausgewählt wird) erhält 50% mehr Punkte und die Möglichkeit, Ihre Punkte auf andere Spieler zu übertragen, die im Spiel leben. !tt [name] Befehl. Sie können die Funktion !rv [name] Befehl, EINE Teamspielerin wiederzubeleben, die tot is.",
  428.     cap_text = "<br><VP>Du bist der Teamchef.<br><br>Du bekommst 50% mehr Punkte als andere Teammitglieder und kannst deine Punkte auf andere Teammitglieder übertragen !tt [name] Befehl. Sie können die Funktion !rv [name] Befehl, EINE Teamspielerin wiederzubeleben, die tot is.",
  429.     score30 = "<R>Du brauchst 30 Punkte, um das zu benutzen.",
  430.     advanced = "<VP>Du hast das Level erreicht ",
  431.     tag_text = "<J>Vergiss nicht, das #Tag auf dem Ziel-Nicknamen einzufügen, sonst funktioniert dieser Befehl nicht!",
  432.     revivetext = "<J>Der folgende Spieler wurde wiederbelebt: ",
  433.     yturn = "Aktueller Spieler: ",
  434.     level_error = "<R>Du hast kein Level, um das hier zu benutzen. Um dein Level zu sehen, benutze den !p Befehl.",
  435.     funct = "Funktion nicht erlaubt",
  436.     cmds = "Spielbefehle",
  437.     commands = "• !help = Zeigen Sie die Spielhilfe an.<br>• !p [player] = Zeigt das Profil des ausgewählten Spielers an. Typ !p ohne Argumente, um Ihr Profil anzuzeigen.<br>• !rank = Anzeige der Rangfolge der temporären Zimmer.<br>• !tc [message] = Chat Sie mit anderen Mitgliedern Ihres Teams.<br>• !skip = Senden Sie eine Abstimmung, um die aktuelle Karte zu überspringen. Dieser Befehl kann während des Spiels nicht verwendet werden.<br><ROSE>* <N>!rv [player] = Erwecke einen toten Spieler deines Teams zum Leben.<br><ROSE>* <N>!tt [player] = Übertragen Sie Ihre Punkte auf ein anderes Teammitglied.<br><br>Die * mit gekennzeichneten Befehle  <ROSE>* <N>sind ausschließlich für die Teammitglieder bestimmt. Um weitere Informationen dazu zu erhalten, verwenden Sie die Option !cap Befehl.",
  438.     admin_commands = "<BL>• <N>!skip = Überspringen der aktuellen Karte.<br><BL>• <N>!pw [text] = Füge ein Passwort für den Zimmer hinzu. Geben Sie nur !pw ein, um das Passwort zu entfernen.<br><BL>• <N>!set_map [map] = Ausführen der angegebenen Karte.<br><J>• <N>!kill [name] = Töten des angegebenen Spielers.<br><R>• <N>!limit [number] = Setzen Sie ein Limit für Mäuse in diesem Zimmer.<br><br>Du kannst nur die Befehle verwenden, die mit deiner Namensfarbe übereinstimmen.",
  439.     playingmap = "Wiedergabekarte",
  440.     created = "erstellt von"
  441. }
  442.  
  443. if tfm.get.room.community == "br" then
  444.     text = lang.br
  445. elseif tfm.get.room.community == "ar" then
  446.     text = lang.ar
  447. elseif tfm.get.room.community == "es" then
  448.     text = lang.es
  449. elseif tfm.get.room.community == "de" then
  450.     text = lang.de
  451. else
  452.     text = lang.en
  453. end
  454. function changeMap()
  455.     tfm.exec.newGame(mapas[math.random(#mapas)])
  456. end
  457. function resetPowers()
  458.     ui.removeTextArea(701,nil)
  459.     powerups.double=false
  460.     powerups.objeto=false
  461.     powerups.count=2
  462.     kills=0
  463.     powerups.bomba=false
  464.     powerups.explosion=false
  465.     powerups.chuva=false
  466.     powerups.fly=false
  467.     anvil_launched=false
  468.     powerups.triple=false
  469.     powerups.selective=false
  470.     powerups.r_vermelho=false
  471.     powerups.r_azul=false
  472.     powerups.multi_count=2
  473.     powerups.multiple=false
  474.     set=false
  475.     advanceLevel()
  476.     skips=0
  477. end
  478. changeMap()
  479. function split(t,s)
  480.     local a={}
  481.     for i,v in string.gmatch(t,string.format("[^%s]+",s or "%s")) do
  482.         table.insert(a,i)
  483.     end
  484.     return a
  485. end
  486. function eventRanking(name)
  487.     local sc = {}
  488.     for id, name in pairs(players_table) do
  489.         sc[#sc+1] = {n=name,s=data[name].score,f=data[name].kills,d=data[name].kd,l=data[name].nivel}
  490.     end
  491.  
  492.     table.sort(sc,function(a,b) return a.s>b.s end)
  493.  
  494.     str1 = ''
  495.     str2 = ''
  496.     str3 = ''
  497.     str4 = ''
  498.     str5 = ''
  499.     for k,v in pairs(sc) do
  500.         if k < 11 then
  501.             if str ~= '' then
  502.                 str1=str1.."<br><N>"..k.."° | <VP>"..v.n..""
  503.                 str2=str2.."<br><b><N>"..v.s.."</b>"
  504.                 str3=str3.."<br><N>"..v.f..""
  505.                 str4=str4.."<br><N>"..v.d..""
  506.                 str5=str5.."<br><N>"..v.l..""
  507.             else
  508.                 str1="<J>"..k.."° | <VP>"..v.n..""
  509.                 str2="<J><b>"..v.s.."</b>"
  510.                 str3="<J>"..v.f..""
  511.                 str4="<J>"..v.d..""
  512.                 str5="<J>"..v.l..""
  513.             end
  514.         end
  515.     end
  516.     ui.addTextArea(8000,'<B><J><font size="13"><p align="center">Temporary Ranking',name,100,100,600,30,nil,0x2e424d,nil,true)
  517.     ui.addTextArea(8001,"<B><font size='13'><font face='Consolas'>#      Name                                 Score       Kills     Ratio%    Level",name,110,110,580,20,0x0e232b,0x0e232b,nil,true)
  518.     ui.addTextArea(8002,"<B><font size='16'><font face='Consolas'>"..str1,name,110,130,580,220,0x0e232b,0x0e232b,nil,true)
  519.     ui.addTextArea(8003,"<p align='right'><font size='16'><font face='Consolas'>"..str2,name,400,130,60,220,0x0e232b,0x0e232b,nil,true)
  520.     ui.addTextArea(8004,"<p align='right'><font size='16'><font face='Consolas'>"..str3,name,485,130,60,220,0x0e232b,0x0e232b,nil,true)
  521.     ui.addTextArea(8005,"<p align='right'><font size='16'><font face='Consolas'>"..str4,name,575,130,45,220,0x0e232b,0x0e232b,nil,true)
  522.     ui.addTextArea(8007,"<p align='right'><font size='16'><font face='Consolas'>"..str5,name,635,130,45,220,0x0e232b,0x0e232b,nil,true)
  523.     ui.addTextArea(8006,"<p align='center'><font size='16'><R><a href='event:close'>Close</a>",name,300,350,210,20,0x3c5063,0x3c5063,nil,true)
  524. end
  525. function loadPowerups(name)
  526.     ui.addTextArea(9000,"<B><J><font size='13'><p align='center'>"..text.powerupslist.."",name,100,80,600,30,nil,0x2e424d,nil,true)
  527.     ui.addTextArea(9001,"<font size='14'><font face='Consolas'>Powerup Name                          Score     Funct.   Min Level",name,110,110,580,20,0x0e232b,0x0e232b,nil,true)
  528.     ui.addTextArea(9002,"<font size='14'><font face='Consolas'>"..text.powerups1.."",name,110,135,580,175,0x0e232b,0x0e232b,nil,true)
  529.     ui.addTextArea(9003,"<font size='14'><font face='Consolas'>"..text.powerups2.."",name,420,135,60,175,0x0e232b,0x0e232b,nil,true)
  530.     ui.addTextArea(9004,"<font size='14'><font face='Consolas'>"..text.powerups3.."",name,500,135,60,175,0x0e232b,0x0e232b,nil,true)
  531.     ui.addTextArea(9005,"<font size='14'><font face='Consolas'>"..text.powerups4.."",name,570,135,60,175,0x0e232b,0x0e232b,nil,true)
  532.     ui.addTextArea(9006,"<font size='14'><R><a href='event:closep'>Close</a>",name,300,320,190,20,0x3c5063,0x3c5063,nil,true)
  533. end
  534. function eventChatCommand(name,message)
  535.     local arg = split(message, " ")
  536.     if arg[1] == "p" then
  537.         if arg[2] then
  538.             nome = arg[2]:lower():gsub('%a', string.upper, 1)
  539.         else
  540.             nome = name
  541.         end
  542.  
  543.         if tfm.get.room.playerList[nome] then
  544.             ui.addTextArea(8003,'<B><J><font size="17"><p align="center">'..nome,name,245,95,315,30,nil,0x2e424d,nil,true)
  545.             ui.addTextArea(8004,"<font size='12'><b>Level: "..data[nome].nivel.."</b><br><br>Experience: "..data[nome].exp.."/"..data[nome].maxp.."<br><br><br>Score: "..data[nome].score.."<br>Matchs played: "..data[nome].matchs.."<br><br>Kills: "..data[nome].kills.."<br>Wins: "..data[nome].wins.."<br>Max Killing Spree: "..data[nome].max.."<br>Multi Kills: "..data[nome].mks.."<br>Kills/Match: "..data[nome].kd.."%",name,255,125,290,200,0x0e232b,0x0e232b,nil,true)
  546.             ui.addTextArea(8006,"",name,260,178,((data[nome].exp/data[nome].maxp)*270)+3,6,0xffffff,0x000001,nil,true)
  547.             ui.addTextArea(8005,"<R><p align='center'><B><a href='event:fechar'>Close</a>",name,255,320,290,20,0x3c5063,0x3c5063,nil,true)
  548.         else
  549.             tfm.exec.chatMessage(text.funct,name)
  550.         end
  551.     end
  552.  
  553.     if message == "rank" then
  554.         eventRanking(name)
  555.     end
  556.     if(message:sub(0,4) == "kill") then
  557.         if data[name].level >= 3 or name == "Jessiewind26#2546" or name == "Zed#9431" or name == admin then
  558.             tfm.exec.killPlayer(message:sub(6))
  559.         end
  560.     end
  561.     if(message:sub(0,5) == "rodar") then
  562.         if data[name].level >= 2 or name == "Jessiewind26#2546" or name == "Zed#9431" or name == admin then
  563.             tfm.exec.newGame(message:sub(7))
  564.         end
  565.     end
  566.     if(message:sub(0,5) == "limit") then
  567.         if data[name].level >= 4 or name == "Jessiewind26#2546" or name == "Zed#9431" or name == admin then
  568.             local limite=tonumber(message:sub(7))
  569.             tfm.exec.chatMessage("Room mice limit: "..limite.."")
  570.             tfm.exec.setRoomMaxPlayers(limite)
  571.         end
  572.     end
  573.     if(message:sub(0,3) == "ban") then
  574.         if data[name].level >= 3 or name == "Jessiewind26#2546" or name == "Zed#9431" then
  575.             if data[message:sub(5)] then
  576.                 tfm.exec.killPlayer(message:sub(5))
  577.                 data[message:sub(5)].level=-1
  578.                 tfm.exec.chatMessage(""..message:sub(5)..""..text.ban..""..name..".")
  579.             else
  580.                 tfm.exec.chatMessage(text.funct,name)
  581.             end
  582.         end
  583.     end
  584.     if(message:sub(0,5) == "unban") then
  585.         if data[name].level >= 3 or name == "Jessiewind26#2546" or name == "Zed#9431" then
  586.             if data[message:sub(7)] then
  587.                 data[message:sub(7)].level=0
  588.                 tfm.exec.chatMessage(""..message:sub(7)..""..text.unban.."")
  589.             else
  590.                 tfm.exec.chatMessage(text.funct,name)
  591.             end
  592.         end
  593.     end
  594.     if(message:sub(0,2) == "tc") then
  595.         local typer=name
  596.         if data[typer].team == "azul" then
  597.             for name,player in pairs(tfm.get.room.playerList) do
  598.                 if data[name].team == "azul" then
  599.                     tfm.exec.chatMessage("<font color='#0080ff'>• ["..typer.."] "..message:sub(4).."",name)
  600.                 end
  601.             end
  602.         elseif data[typer].team == "vermelho" then
  603.             for name,player in pairs(tfm.get.room.playerList) do
  604.                 if data[name].team == "vermelho" then
  605.                     tfm.exec.chatMessage("<font color='#ff8000'>• ["..typer.."] "..message:sub(4).."",name)
  606.                 end
  607.             end
  608.         end
  609.     end
  610.     if message == "reset" then
  611.         if data[name].level >= 2 or name == "Jessiewind26#2546" or name == "Zed#9431" or name == admin then
  612.             changeMap()
  613.         end
  614.     end
  615.     if message == "skip" then
  616.         if ratos >= 10 then
  617.             local rato=math.ceil(ratos/2.5)
  618.             if data[name].skip == 0 and valendo == false then
  619.                 skips=skips+1
  620.                 tfm.exec.chatMessage("Your skip vote has been added. ("..skips.."/"..rato..") ["..name.."]",name)
  621.                 tfm.exec.chatMessage("Your skip vote has been added. ("..skips.."/"..rato..") ["..name.."]","Jessiewind26#2546")
  622.                 data[name].skip=1
  623.                 if skips >= rato then
  624.                     changeMap()
  625.                 end
  626.             end
  627.         else
  628.             tfm.exec.chatMessage(text.funct,name)
  629.         end
  630.     end
  631.     if(message:sub(0,2) == "pw") then
  632.         if data[name].level >= 2 or name == "Jessiewind26#2546" or name == "Zed#9431" or name == admin then
  633.             if message:sub(4) == "" then
  634.                 tfm.exec.setRoomPassword("")
  635.                 tfm.exec.chatMessage("Password cleared.",name)
  636.             else
  637.                 tfm.exec.setRoomPassword(message:sub(4))
  638.                 tfm.exec.chatMessage("Password: "..message:sub(4).."",name)
  639.             end
  640.         end
  641.     end
  642.     if(message:sub(0,3) == "set") then
  643.         if data[name].level >= 4 or name == "Jessiewind26#2546" or name == "Zed#9431" then
  644.             if data[message:sub(5)] then
  645.                 set_name=message:sub(5)
  646.                 set=true
  647.             else
  648.                 tfm.exec.chatMessage(text.funct,name)
  649.             end
  650.         end
  651.     end
  652.     if(message:sub(0,2) == "tt") then
  653.         if name == caps.azul or name == caps.vermelho and valendo == true and reset == false then
  654.             temp_name2=message:sub(4)
  655.             if data[temp_name2] then
  656.                 ui.addPopup(1201,2,"1 = 5pts<br>2 = 10pts<br>3 = 15pts<br>4 = 20pts",name,350,225,200,true)
  657.                 tfm.exec.chatMessage(text.tag_text,name)
  658.             else
  659.                 tfm.exec.chatMessage(text.funct,name)
  660.             end
  661.         else
  662.             tfm.exec.chatMessage(text.funct,name)
  663.         end
  664.     end
  665.     if(message:sub(0,2) == "rv") then
  666.         if name == caps.azul or name == caps.vermelho and valendo == true and reset == false then
  667.             temp_name3=message:sub(4)
  668.             if data[temp_name3] then
  669.                 ui.addPopup(1204,1,"Revive "..temp_name3.."?",name,350,225,200,true)
  670.                 tfm.exec.chatMessage(text.tag_text,name)
  671.             else
  672.                 tfm.exec.chatMessage(text.funct,name)
  673.             end
  674.         else
  675.             tfm.exec.chatMessage(text.funct,name)
  676.         end
  677.     end
  678.     if(message:sub(0,5) == "score") then
  679.         if data[name].level >= 3 or name == "Jessiewind26#2546" or name == "Zed#9431" then
  680.             temp_name=message:sub(7)
  681.             ui.addPopup(906,2,"Score",name,350,175,200,true)
  682.         end
  683.     end
  684.     if message == "help" then
  685.         ui.addTextArea(9000,"<B><J><font size='13'><p align='center'>"..text.ajuda.."",name,100,90,600,30,nil,0x2e424d,nil,true)
  686.         ui.addTextArea(9005,"<font size='13'><font face='Consolas'>"..text.help.."",name,150,125,500,205,0x0e232b,0x0e232b,nil,true)
  687.         ui.addTextArea(9006,"<font size='13'><R><a href='event:closep'>Close</a>",name,300,337,190,20,0x3c5063,0x3c5063,nil,true)
  688.     end
  689.     if message == "cmd" then
  690.         ui.addTextArea(9000,"<B><J><font size='13'><p align='center'>"..text.cmds.."",name,100,90,600,30,nil,0x2e424d,nil,true)
  691.         ui.addTextArea(9005,"<font size='13'><font face='Consolas'>"..text.commands.."",name,150,125,500,200,0x0e232b,0x0e232b,nil,true)
  692.         ui.addTextArea(9006,"<font size='13'><R><a href='event:closep'>Close</a>",name,300,334,190,20,0x3c5063,0x3c5063,nil,true)
  693.     end
  694.     if message == "acmd" then
  695.         ui.addTextArea(9000,"<B><J><font size='13'><p align='center'>"..text.cmds.."",name,100,90,600,30,nil,0x2e424d,nil,true)
  696.         ui.addTextArea(9005,"<font size='13'><font face='Consolas'>"..text.admin_commands.."",name,150,125,500,190,0x0e232b,0x0e232b,nil,true)
  697.         ui.addTextArea(9006,"<font size='13'><R><a href='event:closep'>Close</a>",name,300,324,190,20,0x3c5063,0x3c5063,nil,true)
  698.     end
  699.     if message == "cap" then
  700.         ui.addTextArea(9000,"<B><J><font size='13'><p align='center'>"..text.cmds.."",name,100,110,600,30,nil,0x2e424d,nil,true)
  701.         ui.addTextArea(9005,"<font size='13'><font face='Consolas'>"..text.cap.."",name,150,145,500,100,0x0e232b,0x0e232b,nil,true)
  702.         ui.addTextArea(9006,"<font size='13'><R><a href='event:closep'>Close</a>",name,300,254,160,20,0x3c5063,0x3c5063,nil,true)
  703.     end
  704.     if message == "powerups" then
  705.         loadPowerups(name)
  706.     end
  707. end
  708. function eventPopupAnswer(id,name,message)
  709.     if id == 901 then
  710.         data[temp_name].score=tonumber(message)
  711.         return name
  712.     elseif id == 902 then
  713.         data[temp_name].kills=tonumber(message)
  714.         return name
  715.     elseif id == 903 then
  716.         data[temp_name].wins=tonumber(message)
  717.         return name
  718.     elseif id == 904 then
  719.         data[temp_name].matchs=tonumber(message)
  720.         return name
  721.     elseif id == 905 then
  722.         data[temp_name].kd=tonumber(message)
  723.         return name
  724.     elseif id == 906 then
  725.         tfm.exec.setPlayerScore(temp_name,tonumber(message),true)
  726.         return name
  727.     elseif id == 1201 then
  728.         if data[temp_name2] then
  729.             if message == "1" then
  730.                 if tfm.get.room.playerList[name].score < 5 then
  731.                     tfm.exec.chatMessage(text.funct,name)
  732.                 else
  733.                     tfm.exec.setPlayerScore(temp_name2,5,true)
  734.                     tfm.exec.setPlayerScore(name,-5,true)
  735.                     return name
  736.                 end
  737.             elseif message == "2" then
  738.                 if tfm.get.room.playerList[name].score < 10 then
  739.                     tfm.exec.chatMessage(text.funct,name)
  740.                 else
  741.                     tfm.exec.setPlayerScore(temp_name2,10,true)
  742.                     tfm.exec.setPlayerScore(name,-10,true)
  743.                     return name
  744.                 end
  745.             elseif message == "3" then
  746.                 if tfm.get.room.playerList[name].score < 15 then
  747.                     tfm.exec.chatMessage(text.funct,name)
  748.                 else
  749.                     tfm.exec.setPlayerScore(temp_name2,15,true)
  750.                     tfm.exec.setPlayerScore(name,-15,true)
  751.                     return name
  752.                 end
  753.             elseif message == "4" then
  754.                 if tfm.get.room.playerList[name].score < 20 then
  755.                     tfm.exec.chatMessage(text.funct,name)
  756.                 else
  757.                     tfm.exec.setPlayerScore(temp_name2,20,true)
  758.                     tfm.exec.setPlayerScore(name,-20,true)
  759.                     return name
  760.                 end
  761.             else
  762.                 tfm.exec.chatMessage(text.funct,name)
  763.             end
  764.         else
  765.             tfm.exec.chatMessage(text.funct,name)
  766.         end
  767.     elseif id == 1204 then
  768.         if message == "yes" then
  769.             if data[temp_name3] then
  770.                 if tfm.get.room.playerList[name].score >= 30 then
  771.                     tfm.exec.respawnPlayer(temp_name3)
  772.                     if data[temp_name3].team == "azul" and powerups.r_azul == false then
  773.                         powerups.r_azul=true
  774.                         tfm.exec.movePlayer(temp_name3,math.random(850,1200),160,false,0,0,false)
  775.                         data[temp_name3].killed=0
  776.                     elseif data[temp_name3].team == "vermelho" and powerups.r_vermelho == false then
  777.                         powerups.r_vermelho=true
  778.                         tfm.exec.movePlayer(temp_name3,math.random(400,750),160,false,0,0,false)
  779.                         data[temp_name3].killed=0
  780.                     end
  781.                     tfm.exec.setPlayerScore(name,-30,true)
  782.                     tfm.exec.chatMessage(""..text.revivetext..""..temp_name3.."")
  783.                 else
  784.                     tfm.exec.chatMessage(text.score30,name)
  785.                 end
  786.             else
  787.                 tfm.exec.chatMessage(text.funct,name)
  788.             end
  789.         end
  790.     end
  791. end
  792. function showTeams(name)
  793.     if valendo == false then
  794.         if name:sub(1,1) == "*" then
  795.             tfm.exec.killPlayer(name)
  796.             tfm.exec.chatMessage("<R>You must be connected to a Transformice account to play #anvilwar.",name)
  797.         elseif data[name].level <= -1 then
  798.             tfm.exec.killPlayer(name)
  799.             tfm.exec.chatMessage("<R>This account was banned of #anvilwar room.",name)
  800.         else
  801.             ui.addTextArea(41, "<p align='center'><a href='event:enter_vermelho'>"..text.enter_vermelho.."</a></p>",name, 300, 165, 200, 20, 0x800000, 0x600000,1.0,true)
  802.             ui.addTextArea(42, "<p align='center'><a href='event:enter_azul'>"..text.enter_azul.."</a></p>",name, 300, 195, 200, 20, 0x80, 0x60,1.0,true)
  803.         end
  804.     end
  805. end
  806. function eventLoop(passado,faltando)
  807.     if passado > 1200 and passado < 1700 then
  808.         tfm.exec.chatMessage(""..text.playingmap.." <J>"..tfm.get.room.currentMap.."<BL> "..text.created.." <J>"..tfm.get.room.xmlMapInfo.author)
  809.     end
  810.     local minutos=math.floor(tempo/60)
  811.     local segundos=math.floor((minutos*60)-tempo) * -1
  812.     if valendo == true and tempo < 60 and tempo > 59 and sudden_death == false then
  813.         tfm.exec.chatMessage(text.seconds,nil)
  814.     end
  815.     if valendo == true and tempo < 30 and tempo > 29 then
  816.         tfm.exec.chatMessage(text.seconds30,nil)
  817.     end
  818.     if valendo == true and tempo < 10 and tempo > 9 then
  819.         tfm.exec.chatMessage(text.seconds10,nil)
  820.     end
  821.     if valendo == true and reset == false then
  822.         tempo=tempo-0.5
  823.         if tempo < 0 then
  824.             tempo=0
  825.         end
  826.         scoreloop=scoreloop+1
  827.         if scoreloop >= 40 then
  828.             for name,player in pairs(tfm.get.room.playerList) do
  829.                 if data[name].killed == 0 then
  830.                     tfm.exec.setPlayerScore(name,2,true)
  831.                     data[name].score=data[name].score+1
  832.                     data[name].exp=data[name].exp+1
  833.                     if name == caps.vermelho or name == caps.azul then
  834.                         tfm.exec.setPlayerScore(name,2,true)
  835.                         data[name].score=data[name].score+1
  836.                     end
  837.                 end
  838.             end
  839.             scoreloop=0
  840.         end
  841.     end
  842.     if anvil_launched == false and valendo == true then
  843.         ui.addTextArea(501,"<font size='40'><p align='center'>"..math.floor(faltando/1000).."",actual_player,360,310,80,55,0x000001,0x000001,1.0,true)
  844.     else
  845.         ui.removeTextArea(501,actual_player)
  846.     end
  847.     if valendo == true and reset == false and tempo <= 0 and sudden_death == true then
  848.         if count_vermelho > count_azul then
  849.             tfm.exec.chatMessage(text.win_vermelho)
  850.         elseif count_vermelho < count_azul then
  851.             tfm.exec.chatMessage(text.win_azul)
  852.         else
  853.             tfm.exec.chatMessage(text.empate_text)
  854.         end
  855.         count_azul=0
  856.         count_vermelho=0
  857.         valendo=false
  858.         reset=true
  859.         tfm.exec.setGameTime(15)
  860.     end
  861.     if reset == true then
  862.         if faltando < 1 then
  863.             changeMap()
  864.         end
  865.     end
  866.     if valendo == true and reset == false and anvil_launched == false then
  867.         time_limit=time_limit-0.5
  868.         if time_limit == 0 then
  869.             anvil_launched=true
  870.             time_limit=15
  871.             tfm.exec.chatMessage(text.timeout)
  872.         end
  873.     end
  874.     if valendo == false and reset == false and faltando < 1888 and count_azul > 0 and count_vermelho > 0 then
  875.         for i=11,297 do
  876.             ui.removeTextArea(i,nil)
  877.         end
  878.     end
  879.     if valendo == false and reset == false and faltando <= 1 then
  880.         if count_azul > 0 and count_vermelho > 0 then
  881.             if count == 0 then
  882.                 for name,player in pairs(tfm.get.room.playerList) do
  883.                     tfm.exec.chatMessage(text.starting,name)
  884.                     if data[name].team == "azul" then
  885.                         data[name].matchs=data[name].matchs+1
  886.                         tfm.exec.respawnPlayer(name)
  887.                         tfm.exec.movePlayer(name,1000,160,false,0,0,false)
  888.                         table.insert(play_azul,name)
  889.                         tfm.exec.setPlayerScore(name,0,false)
  890.                     elseif data[name].team == "vermelho" then
  891.                         data[name].matchs=data[name].matchs+1
  892.                         tfm.exec.respawnPlayer(name)
  893.                         tfm.exec.movePlayer(name,600,160,false,0,0,false)
  894.                         table.insert(play_vermelho,name)
  895.                         tfm.exec.setPlayerScore(name,0,false)
  896.                     else
  897.                         tfm.exec.movePlayer(name,800,-2000,false,0,0,false)
  898.                         tfm.exec.setPlayerScore(name,-1,false)
  899.                         kills=0
  900.                     end
  901.                 end
  902.             end
  903.             kills=0
  904.             count=count+0.5
  905.             if count >= 10 then
  906.                 caps.azul=play_azul[math.random(#play_azul)]
  907.                 caps.vermelho=play_vermelho[math.random(#play_vermelho)]
  908.                 for name,player in pairs(tfm.get.room.playerList) do
  909.                     if data[name].team == "azul" then
  910.                         tfm.exec.chatMessage(""..caps.azul..""..text.caps.."",name)
  911.                     elseif data[name].team == "vermelho" then
  912.                         tfm.exec.chatMessage(""..caps.vermelho..""..text.caps.."",name)
  913.                     end
  914.                     if name == caps.azul or name == caps.vermelho then
  915.                         tfm.exec.chatMessage(text.cap_text,name)
  916.                         tfm.exec.setNameColor(name,0x8000ff)
  917.                     end
  918.                 end
  919.                 valendo=true
  920.                 players=count_azul+count_vermelho
  921.                 tempo=120+(players*6)
  922.                 for i=11,297 do
  923.                     ui.removeTextArea(i,nil)
  924.                 end
  925.                 if team == 2 then
  926.                     team=1
  927.                     if set == false then
  928.                         actual_player=play_vermelho[math.random(#play_vermelho)]
  929.                     else
  930.                         actual_player=set_name
  931.                     end
  932.                 else
  933.                     team=2
  934.                     if set == false then
  935.                         actual_player=play_azul[math.random(#play_azul)]
  936.                     else
  937.                         actual_player=set_name
  938.                     end
  939.                 end
  940.                 loop=10
  941.                 anvil_launched=false
  942.                 tfm.exec.setGameTime(15)
  943.                 time_limit=15
  944.                 if valendo == true and reset == false then
  945.                     tfm.exec.chatMessage(text.your_turn,actual_player)
  946.                 end
  947.             end
  948.         else
  949.             tfm.exec.setGameTime(15)
  950.         end
  951.     end
  952.     if valendo == true and anvil_launched == true then
  953.         loop=loop-1
  954.         if loop == 0 then
  955.             if kills >= 3 then
  956.                 data[actual_player].mks=data[actual_player].mks+1
  957.             end
  958.             if tfm.get.room.community == "br" then
  959.                 if kills == 2 then
  960.                     tfm.exec.chatMessage("<ROSE>Double Kill de "..actual_player.."!")
  961.                 elseif kills >= 3 then
  962.                     tfm.exec.chatMessage("<ROSE>Multi Kill: "..kills.." kills de "..actual_player.."!")
  963.                 end
  964.             else
  965.                 if kills == 2 then
  966.                     tfm.exec.chatMessage("<ROSE>Double Kill of "..actual_player.."!")
  967.                 elseif kills >= 3 then
  968.                     tfm.exec.chatMessage("<ROSE>Multi Kill: "..kills.." kills of "..actual_player.."!")
  969.                 end
  970.             end
  971.             kills=0
  972.             play_azul={}
  973.             play_vermelho={}
  974.             count_azul=0
  975.             count_vermelho=0
  976.             for name,player in pairs(tfm.get.room.playerList) do
  977.                 if data[name].team == "azul" then
  978.                     if data[name].killed == 0 then
  979.                         table.insert(play_azul,name)
  980.                         count_azul=count_azul+1
  981.                     end
  982.                 end
  983.                 if data[name].team == "vermelho" then
  984.                     if data[name].killed == 0 then
  985.                         table.insert(play_vermelho,name)
  986.                         count_vermelho=count_vermelho+1
  987.                     end
  988.                 end
  989.                 if data[name].immortal == true then
  990.                     data[name].imatchs=data[name].imatchs+1
  991.                     if data[name].imatchs >= 9 then
  992.                         data[name].immortal=false
  993.                         tfm.exec.chatMessage(text.inv3,name)
  994.                         tfm.exec.setNameColor(name,0xd7d7e6)
  995.                     end
  996.                 end
  997.             end
  998.             if team == 2 then
  999.                 team=1
  1000.                 if set == false then
  1001.                     actual_player=play_vermelho[math.random(#play_vermelho)]
  1002.                 else
  1003.                     actual_player=set_name
  1004.                 end
  1005.             else
  1006.                 team=2
  1007.                 if set == false then
  1008.                     actual_player=play_azul[math.random(#play_azul)]
  1009.                 else
  1010.                     actual_player=set_name
  1011.                 end
  1012.             end
  1013.             loop=8
  1014.             resetPowers()
  1015.             if valendo == true and reset == false then
  1016.                 if count_azul == 0 and count_vermelho == 0 then
  1017.                     tfm.exec.chatMessage(text.empate_text)
  1018.                     valendo=false
  1019.                     reset=true
  1020.                     tfm.exec.setGameTime(15)
  1021.                 elseif count_azul == 0 then
  1022.                     winRed()
  1023.                     tfm.exec.chatMessage(text.win_vermelho)
  1024.                     valendo=false
  1025.                     reset=true
  1026.                     tfm.exec.setGameTime(15)
  1027.                 elseif count_vermelho == 0 then
  1028.                     winAzul()
  1029.                     tfm.exec.chatMessage(text.win_azul)
  1030.                     valendo=false
  1031.                     reset=true
  1032.                     tfm.exec.setGameTime(15)
  1033.                 end
  1034.             end
  1035.             tfm.exec.setGameTime(15)
  1036.             time_limit=15
  1037.             if valendo == true and reset == false then
  1038.                 tfm.exec.chatMessage(text.your_turn,actual_player)
  1039.             end
  1040.         end
  1041.     end
  1042.     if valendo == true and reset == false and tempo <= 0 and sudden_death == false and anvil_launched == false then
  1043.         if count_vermelho > count_azul then
  1044.             tfm.exec.chatMessage(text.win_vermelho)
  1045.             winRed()
  1046.             valendo=false
  1047.             reset=true
  1048.             tfm.exec.setGameTime(15)
  1049.             count_azul=0
  1050.             count_vermelho=0
  1051.         elseif count_vermelho < count_azul then
  1052.             tfm.exec.chatMessage(text.win_azul)
  1053.             winAzul()
  1054.             valendo=false
  1055.             reset=true
  1056.             tfm.exec.setGameTime(15)
  1057.             count_azul=0
  1058.             count_vermelho=0
  1059.         elseif count_vermelho == count_azul and count_vermelho >= 2 and count_azul >= 2 then
  1060.             tfm.exec.setGameTime(90)
  1061.             tempo=90
  1062.             tfm.exec.chatMessage(text.sudden_death)
  1063.             sudden_death=true
  1064.         elseif count_vermelho == count_azul and count_vermelho <= 1 and count_azul <= 1 then
  1065.             valendo=false
  1066.             reset=true
  1067.             tfm.exec.setGameTime(15)
  1068.             count_azul=0
  1069.             count_vermelho=0
  1070.             tfm.exec.chatMessage(text.empate_text)
  1071.         end
  1072.     end
  1073.     if powerups.bomba == true then
  1074.         powerups.count=powerups.count+1
  1075.         if powerups.count == 3 then
  1076.             local x_position=0
  1077.             if data[actual_player].team == "azul" then
  1078.                 x_position=math.random(100,750)
  1079.                 tfm.exec.explosion(x_position,200,30,120,true)
  1080.                 tfm.exec.displayParticle(12,x_position,200,0,0,0,0,nil)
  1081.             elseif data[actual_player].team == "vermelho" then
  1082.                 x_position=math.random(850,1500)
  1083.                 tfm.exec.explosion(x_position,200,30,120,true)
  1084.                 tfm.exec.displayParticle(12,x_position,200,0,0,0,0,nil)
  1085.             end
  1086.             powerups.count=2
  1087.             powerups.bomba=false
  1088.         end
  1089.     end
  1090.     if powerups.chuva == true and anvil_launched == true then
  1091.         if data[actual_player].team == "azul" then
  1092.             tfm.exec.addShamanObject(anvils[math.random(#anvils)],tfm.get.room.playerList[actual_player].x,tfm.get.room.playerList[actual_player].y-60,0,(4+power*2)*-1,-8)
  1093.         elseif data[actual_player].team == "vermelho" then
  1094.             tfm.exec.addShamanObject(anvils[math.random(#anvils)],tfm.get.room.playerList[actual_player].x,tfm.get.room.playerList[actual_player].y-60,0,4+power*2,-8)
  1095.         end
  1096.     end
  1097.     if valendo == true and reset == false and faltando > 10000 then
  1098.         if data[actual_player].team == "azul" then
  1099.             ui.addTextArea(2204,"<p align='center'><font size='14'>"..text.yturn.."<b><font color='#0197f3'>"..actual_player.."",nil,200,82,400,27,0x000001,0x000001,1.0,true)
  1100.         else
  1101.             ui.addTextArea(2204,"<p align='center'><font size='14'>"..text.yturn.."<b><font color='#f32202'>"..actual_player.."",nil,200,82,400,27,0x000001,0x000001,1.0,true)
  1102.         end
  1103.     else
  1104.         ui.removeTextArea(2204,nil)
  1105.     end
  1106.     if valendo == true and reset == false then
  1107.         ui.addTextArea(2201,"<p align='center'><font color='#000001'><font size='35'><font face='Trebuchet MS'>"..count_vermelho.."",nil,200,24,64,48,0x990000,0xff0000,1.0,true)
  1108.         ui.addTextArea(2202,"<p align='center'><font color='#aaaaaa'><font size='35'><font face='Trebuchet MS'>"..count_azul.."",nil,536,24,64,48,0x000099,0x0000ff,1.0,true)
  1109.         if sudden_death == false then
  1110.             if segundos < 10 and tempo > 29.5 then
  1111.                 ui.addTextArea(14,"<p align='center'><font size='24'><font face='Segoe UI Symbol'>⏱<font face='Arial'> <b>"..minutos..":0"..segundos.."</b>",nil,350,24,100,34,0x000001,0x000001,1.0,true)
  1112.             elseif segundos >= 10 and tempo > 29.5 then
  1113.                 ui.addTextArea(14,"<p align='center'><font size='24'><font face='Segoe UI Symbol'>⏱<font face='Arial'> <b>"..minutos..":"..segundos.."</b>",nil,350,24,100,34,0x000001,0x000001,1.0,true)
  1114.             elseif segundos < 10 and tempo <= 29.5 then
  1115.                 ui.addTextArea(14,"<p align='center'><font size='24'><font face='Segoe UI Symbol'>⏱<font face='Arial'> <font color='#ff0000'><b>"..minutos..":0"..segundos.."</b>",nil,350,24,100,34,0x000001,0x000001,1.0,true)
  1116.             elseif segundos >= 10 and tempo <= 29.5 then
  1117.                 ui.addTextArea(14,"<p align='center'><font size='24'><font face='Segoe UI Symbol'>⏱<font face='Arial'> <font color='#ff0000'><b>"..minutos..":"..segundos.."</b>",nil,350,24,100,34,0x000001,0x000001,1.0,true)
  1118.             end
  1119.         else
  1120.             if segundos < 10 then
  1121.                 ui.addTextArea(14,"<p align='center'><font size='24'><font face='Segoe UI Symbol'>⏱<font face='Arial'> <b>"..minutos..":0"..segundos.."</b>",nil,350,24,100,34,0x400000,0x300000,1.0,true)
  1122.             elseif segundos >= 10 then
  1123.                 ui.addTextArea(14,"<p align='center'><font size='24'><font face='Segoe UI Symbol'>⏱<font face='Arial'> <b>"..minutos..":"..segundos.."</b>",nil,350,24,100,34,0x400000,0x300000,1.0,true)
  1124.             end
  1125.         end
  1126.     else
  1127.         ui.removeTextArea(14,nil)
  1128.         ui.removeTextArea(2201,nil)
  1129.         ui.removeTextArea(2202,nil)
  1130.     end
  1131. end
  1132. function eventPlayerDied(name)
  1133.     if count < 10 then
  1134.         if data[name].team == "azul" then
  1135.             tfm.exec.respawnPlayer(name)
  1136.             tfm.exec.movePlayer(name,900,180,false,0,0,false)
  1137.         elseif data[name].team == "vermelho" then
  1138.             tfm.exec.respawnPlayer(name)
  1139.             tfm.exec.movePlayer(name,700,180,false,0,0,false)
  1140.         end
  1141.     end
  1142.     if data[name].immortal == false then
  1143.         if valendo == true and reset == false then
  1144.             tfm.exec.setPlayerScore(name,-1,false)
  1145.             tfm.exec.setPlayerScore(actual_player,2+kills,true)
  1146.             if actual_player == caps.vermelho or name == actual_player then
  1147.                 tfm.exec.setPlayerScore(actual_player,1,true)
  1148.                 data[actual_player].score=data[actual_player].score+1
  1149.                 data[actual_player].exp=data[actual_player].exp+1
  1150.             end
  1151.             data[actual_player].kills=data[actual_player].kills+1
  1152.             data[actual_player].score=data[actual_player].score+5
  1153.             loop=loop+1
  1154.             data[name].killed=1
  1155.             kills=kills+1
  1156.             data[actual_player].exp=data[actual_player].exp+3*kills
  1157.             if kills > data[actual_player].max then
  1158.                 data[actual_player].max=kills
  1159.                 data[actual_player].exp=data[actual_player].exp+6*kills
  1160.             end
  1161.             if data[name].team == data[actual_player].team and anvil_launched == true then
  1162.                 tfm.exec.chatMessage("<J>"..text.teamkill1..""..actual_player.." "..text.teamKill2..": <b>"..name.."</b>.")
  1163.                 tfm.exec.setPlayerScore(actual_player,-4,true)
  1164.                 kills=kills-1
  1165.                 data[actual_player].kills=data[actual_player].kills-1
  1166.                 data[actual_player].score=data[actual_player].score-15
  1167.                 data[actual_player].exp=data[actual_player].exp-12
  1168.             end
  1169.         end
  1170.         if name == actual_player and valendo == true and reset == false then
  1171.             tfm.exec.chatMessage(""..text.suicide..""..actual_player.."")
  1172.             data[actual_player].score=data[actual_player].score-20
  1173.             data[actual_player].exp=data[actual_player].exp-15
  1174.         end
  1175.     else
  1176.         tfm.exec.respawnPlayer(name)
  1177.         tfm.exec.setNameColor(name,0x00ff00)
  1178.         if data[name].team == "azul" then
  1179.             tfm.exec.movePlayer(name,1000,160,false,0,0,false)
  1180.         elseif data[name].team == "vermelho" then
  1181.             tfm.exec.movePlayer(name,600,160,false,0,0,false)
  1182.         end
  1183.     end
  1184.     if sudden_death == true then
  1185.         if data[name].team == "azul" and data[name].immortal == false then
  1186.             winRed()
  1187.             tfm.exec.chatMessage(text.win_vermelho)
  1188.             count_azul=0
  1189.         elseif data[name].team == "vermelho" and data[name].immortal == false then
  1190.             winAzul()
  1191.             tfm.exec.chatMessage(text.win_azul)
  1192.             count_vermelho=0
  1193.         end
  1194.         valendo=false
  1195.         reset=true
  1196.         tfm.exec.setGameTime(15)
  1197.         sudden_death=false
  1198.     end
  1199.     if actual_player == name then
  1200.         anvil_launched=true
  1201.         actual_palayer=""
  1202.     end
  1203. end
  1204. function eventPlayerLeft(name)
  1205.     ratos=ratos-1
  1206.     data[name].killed=-1
  1207.     data[name].team=""
  1208. end
  1209. function eventNewPlayer(name)
  1210.     ui.setMapName(text.bar)
  1211.     ratos=ratos+1
  1212.     if not data[name] then
  1213.         table.insert(players_table,name)
  1214.         data[name]={wins=0,matchs=0,kills=0,max=0,score=0,mks=0,kd=0,killed=-1,team="",immortal=false,imatchs=0,immortal2=false,level=0,nivel=1,exp=0,maxp=50}
  1215.     end
  1216.     showTeams(name)
  1217.     for name,player in pairs(tfm.get.room.playerList) do
  1218.         ui.addTextArea(299,"<p align='center'><a href='event:show_menu'><font size='18'>Menu",name,365,376,70,24,0x000001,0x000001,0.75,true)
  1219.         for i=32,123 do
  1220.             tfm.exec.bindKeyboard(name,i,true,true)
  1221.             system.bindMouse(name,true)
  1222.         end
  1223.     end
  1224.     if name:sub(1,1) == "*" then
  1225.         data[name].level=-1
  1226.     end
  1227. end
  1228. for name,player in pairs(tfm.get.room.playerList) do
  1229.     eventNewPlayer(name)
  1230.     tfm.exec.setPlayerScore(name,0,false)
  1231. end
  1232. function eventKeyboard(name,key,down,x,y)
  1233.     if anvil_launched == false then
  1234.         if actual_player == name then
  1235.             if key == 32 then
  1236.                 if valendo == true then
  1237.                     powerups.fly=false
  1238.                     set=false
  1239.                     set_name=""
  1240.                     ui.removeTextArea(4003,nil)
  1241.                     if powerups.selective == true then
  1242.                         if data[name].team == "azul" then
  1243.                             tfm.exec.addShamanObject(object,x,y-60,0,(4+power*2)*-1,-8)
  1244.                         elseif data[name].team == "vermelho" then
  1245.                             tfm.exec.addShamanObject(object,x,y-60,0,4+power*2,-8)
  1246.                         end
  1247.                     end
  1248.                     if powerups.objeto == true and powerups.selective == false then
  1249.                         if data[name].team == "azul" then
  1250.                             tfm.exec.addShamanObject(objetos[math.random(#objetos)],x,y-60,0,(4+power*2)*-1,-8)
  1251.                         elseif data[name].team == "vermelho" then
  1252.                             tfm.exec.addShamanObject(objetos[math.random(#objetos)],x,y-60,0,4+power*2,-8)
  1253.                         end
  1254.                         if powerups.double == true and powerups.selective == false then
  1255.                             if data[name].team == "azul" then
  1256.                                 tfm.exec.addShamanObject(objetos[math.random(#objetos)],x+40,y-60,0,(4+power*2)*-1,-8)
  1257.                             elseif data[name].team == "vermelho" then
  1258.                                 tfm.exec.addShamanObject(objetos[math.random(#objetos)],x-40,y-60,0,4+power*2,-8)
  1259.                             end
  1260.                         end
  1261.                         if powerups.triple == true and powerups.selective == false then
  1262.                             if data[name].team == "azul" then
  1263.                                 tfm.exec.addShamanObject(objetos[math.random(#objetos)],x+80,y-60,0,(4+power*2)*-1,-8)
  1264.                             elseif data[name].team == "vermelho" then
  1265.                                 tfm.exec.addShamanObject(objetos[math.random(#objetos)],x-80,y-60,0,4+power*2,-8)
  1266.                             end
  1267.                         end
  1268.                         anvil_launched=true
  1269.                     else
  1270.                         if powerups.selective == false then
  1271.                             if data[name].team == "azul" then
  1272.                                 tfm.exec.addShamanObject(anvils[math.random(#anvils)],x,y-60,0,(4+power*2)*-1,-8)
  1273.                             elseif data[name].team == "vermelho" then
  1274.                                 tfm.exec.addShamanObject(anvils[math.random(#anvils)],x,y-60,0,4+power*2,-8)
  1275.                             end
  1276.                             if powerups.double == true then
  1277.                                 if data[name].team == "azul" then
  1278.                                     tfm.exec.addShamanObject(anvils[math.random(#anvils)],x+40,y-60,0,(4+power*2)*-1,-8)
  1279.                                 elseif data[name].team == "vermelho" then
  1280.                                     tfm.exec.addShamanObject(anvils[math.random(#anvils)],x-40,y-60,0,4+power*2,-8)
  1281.                                 end
  1282.                             end
  1283.                             if powerups.triple == true then
  1284.                                 if data[name].team == "azul" then
  1285.                                     tfm.exec.addShamanObject(anvils[math.random(#anvils)],x+80,y-60,0,(4+power*2)*-1,-8)
  1286.                                 elseif data[name].team == "vermelho" then
  1287.                                     tfm.exec.addShamanObject(anvils[math.random(#anvils)],x-80,y-60,0,4+power*2,-8)
  1288.                                 end
  1289.                             end
  1290.                         else
  1291.                             if data[name].team == "azul" then
  1292.                                 tfm.exec.addShamanObject(1010,x,y-60,0,(4+power*2)*-1,-8)
  1293.                             elseif data[name].team == "vermelho" then
  1294.                                 tfm.exec.addShamanObject(1010,x,y-60,0,4+power*2,-8)
  1295.                             end
  1296.                         end
  1297.                         powerups.multi_count=powerups.multi_count+1
  1298.                         if powerups.multi_count >= 3 then
  1299.                             anvil_launched=true
  1300.                         end
  1301.                     end
  1302.                 end
  1303.             end
  1304.             if key >= 49 and key <= 57 then
  1305.                 power=key-48
  1306.                 ui.addTextArea(4003,"<font size='13'><p align='center'>"..text.intensity..": "..power.."",name,320,376,160,24,0x000001,0x000001,1.0,true)
  1307.             end
  1308.             if key == 48 then
  1309.                 power=10
  1310.                 ui.addTextArea(4003,"<font size='13'><p align='center'>"..text.intensity..": "..power.."",name,320,376,160,24,0x000001,0x000001,1.0,true)
  1311.             end
  1312.             if powerups.selective == false then
  1313.                 if valendo == true and reset == false then
  1314.                 if key == 112 then
  1315.                     if tfm.get.room.playerList[name].score >= 6 and powerups.double == false and powerups.triple == false then
  1316.                         if data[name].nivel >= 1 then
  1317.                             powerups.double=true
  1318.                             tfm.exec.setPlayerScore(name,-6,true)
  1319.                             tfm.exec.chatMessage("<VP>"..actual_player.." "..text.double.."")
  1320.                         else
  1321.                             tfm.exec.chatMessage(text.level_error,name)
  1322.                         end
  1323.                     end
  1324.                 end
  1325.                 if key == 113 then
  1326.                     if tfm.get.room.playerList[name].score >= 12 and powerups.double == false and powerups.triple == false then
  1327.                         if data[name].nivel >= 2 then
  1328.                             powerups.double=true
  1329.                             powerups.triple=true
  1330.                             tfm.exec.setPlayerScore(name,-12,true)
  1331.                             tfm.exec.chatMessage("<VP>"..actual_player.." "..text.triple.."")
  1332.                         else
  1333.                             tfm.exec.chatMessage(text.level_error,name)
  1334.                         end
  1335.                     end
  1336.                 end
  1337.                 if key == 114 then
  1338.                     if tfm.get.room.playerList[name].score >= 5 and powerups.bomba == false and powerups.double == false and powerups.objeto == false then
  1339.                         if data[name].nivel >= 2 then
  1340.                             powerups.bomba=true
  1341.                             tfm.exec.setPlayerScore(name,-5,true)
  1342.                             tfm.exec.chatMessage("<VP>"..actual_player.." "..text.bomba1.."")
  1343.                             tfm.exec.chatMessage(text.bomba2,name)
  1344.                             anvil_launched=true
  1345.                             loop=12
  1346.                         else
  1347.                             tfm.exec.chatMessage(text.level_error,name)
  1348.                         end
  1349.                     end
  1350.                 end
  1351.                 if key == 115 then
  1352.                     if tfm.get.room.playerList[name].score >= 6 and powerups.objeto == false then
  1353.                         if data[name].nivel >= 2 then
  1354.                             powerups.objeto=true
  1355.                             tfm.exec.setPlayerScore(name,-6,true)
  1356.                             tfm.exec.chatMessage("<VP>"..actual_player.." "..text.objeto1.."")
  1357.                             tfm.exec.chatMessage(text.objeto2,name)
  1358.                         else
  1359.                             tfm.exec.chatMessage(text.level_error,name)
  1360.                         end
  1361.                     end
  1362.                 end
  1363.                 if key == 116 then
  1364.                     if tfm.get.room.playerList[name].score >= 18 and powerups.explosion == false and powerups.bomba == false and powerups.double == false and powerups.objeto == false then
  1365.                         if data[name].nivel >= 5 then
  1366.                             powerups.explosion=true
  1367.                             tfm.exec.setPlayerScore(name,-18,true)
  1368.                             tfm.exec.chatMessage("<VP>"..actual_player.." "..text.exp1.."")
  1369.                             tfm.exec.chatMessage(text.exp2,name)
  1370.                             anvil_launched=true
  1371.                             loop=12
  1372.                         else
  1373.                             tfm.exec.chatMessage(text.level_error,name)
  1374.                         end
  1375.                     end
  1376.                 end
  1377.                 if key == 117 then
  1378.                     if tfm.get.room.playerList[name].score >= 15 and powerups.explosion == false and powerups.bomba == false and powerups.double == false and powerups.objeto == false then
  1379.                         if data[name].nivel >= 6 then
  1380.                             powerups.chuva=true
  1381.                             tfm.exec.setPlayerScore(name,-15,true)
  1382.                             tfm.exec.chatMessage("<VP>"..actual_player.." "..text.chuva1.."")
  1383.                             tfm.exec.chatMessage(text.chuva2,name)
  1384.                         else
  1385.                             tfm.exec.chatMessage(text.level_error,name)
  1386.                         end
  1387.                     end
  1388.                 end
  1389.                 if key == 118 then
  1390.                     if tfm.get.room.playerList[name].score >= 15 then
  1391.                         if data[name].nivel >= 3 then
  1392.                             tfm.exec.setPlayerScore(name,-15,true)
  1393.                             tfm.exec.chatMessage("<VP>"..actual_player.." "..text.fly1.."")
  1394.                             tfm.exec.chatMessage(text.fly2,name)
  1395.                             tfm.exec.changePlayerSize(actual_player,0.5)
  1396.                         else
  1397.                             tfm.exec.chatMessage(text.level_error,name)
  1398.                         end
  1399.                     end
  1400.                 end
  1401.                 if key == 119 then
  1402.                     if tfm.get.room.playerList[name].score >= 20 and data[name].immortal2 == false then
  1403.                         if data[name].nivel >= 5 then
  1404.                             data[name].immortal=true
  1405.                             data[name].immortal2=true
  1406.                             tfm.exec.setNameColor(name, 0x00ff00)
  1407.                             tfm.exec.setPlayerScore(name,-20,true)
  1408.                             tfm.exec.chatMessage("<VP>"..actual_player.." "..text.inv1.."")
  1409.                             tfm.exec.chatMessage(text.inv2,name)
  1410.                         else
  1411.                             tfm.exec.chatMessage(text.level_error,name)
  1412.                         end
  1413.                     end
  1414.                 end
  1415.                 if key == 120 then
  1416.                     if tfm.get.room.playerList[name].score >= 10 and powerups.double == false and powerups.triple == false and powerups.objeto == false then
  1417.                         if data[name].nivel >= 4 then
  1418.                             powerups.multiple=true
  1419.                             powerups.multi_count=0
  1420.                             tfm.exec.setPlayerScore(name,-10,true)
  1421.                             tfm.exec.chatMessage("<VP>"..actual_player.." "..text.invi1.."")
  1422.                             tfm.exec.chatMessage(text.invi2,name)
  1423.                         else
  1424.                             tfm.exec.chatMessage(text.level_error,name)
  1425.                         end
  1426.                     end
  1427.                 end
  1428.                 if key == 121 then
  1429.                     if tfm.get.room.playerList[name].score >= 5 and powerups.double == false and powerups.triple == false and powerups.objeto == false and powerups.invisible == false then
  1430.                         if data[name].nivel >= 3 then
  1431.                             powerups.selective=true
  1432.                             ui.addTextArea(701,"<font size='12'>Select your object:<br>F1 = Anvil (0pt)<br>F2 = Small Box (1pt)<br>F3 = Green Apple (2pt)<br>F4 = Triangle (4pt)<br>F5 = Large Box (6pt)<br>F6 = Large Board (12pt)<br>F7 = Follow-up Box (8pt)<br>F8 = Giant Board (25pt)",actual_player,320,72,160,160,0x424242,0x424242,0.88,true)
  1433.                             tfm.exec.setGameTime(15)
  1434.                             time_limit=15
  1435.                             tfm.exec.setPlayerScore(name,-5,true)
  1436.                             tfm.exec.chatMessage("<VP>"..actual_player.." "..text.selec1.."")
  1437.                             tfm.exec.chatMessage(text.selec2,name)
  1438.                             object=10
  1439.                         else
  1440.                             tfm.exec.chatMessage(text.level_error,name)
  1441.                         end
  1442.                     end
  1443.                 end
  1444.             end
  1445.             else
  1446.                 if key >= 112 and key <= 119 and object == 10 then
  1447.                     if key == 112 then
  1448.                         object=10
  1449.                     elseif key == 113 then
  1450.                         if tfm.get.room.playerList[name].score > 1 then
  1451.                             object=1
  1452.                             tfm.exec.setPlayerScore(name,-1,true)
  1453.                             ui.removeTextArea(701,nil)
  1454.                         end
  1455.                     elseif key == 114 then
  1456.                         if tfm.get.room.playerList[name].score > 2 then
  1457.                             object=39
  1458.                             tfm.exec.setPlayerScore(name,-2,true)
  1459.                             ui.removeTextArea(701,nil)
  1460.                         end
  1461.                     elseif key == 115 then
  1462.                         if tfm.get.room.playerList[name].score > 4 then
  1463.                             object=68
  1464.                             tfm.exec.setPlayerScore(name,-4,true)
  1465.                             ui.removeTextArea(701,nil)
  1466.                         end
  1467.                     elseif key == 116 then
  1468.                         if tfm.get.room.playerList[name].score > 6 then
  1469.                             object=2
  1470.                             tfm.exec.setPlayerScore(name,-6,true)
  1471.                             ui.removeTextArea(701,nil)
  1472.                         end
  1473.                     elseif key == 117 then
  1474.                         if tfm.get.room.playerList[name].score > 12 then
  1475.                             object=4
  1476.                             tfm.exec.setPlayerScore(name,-12,true)
  1477.                             ui.removeTextArea(701,nil)
  1478.                         end
  1479.                     elseif key == 118 then
  1480.                         if tfm.get.room.playerList[name].score > 8 then
  1481.                             object=61
  1482.                             tfm.exec.setPlayerScore(name,-8,true)
  1483.                             ui.removeTextArea(701,nil)
  1484.                         end
  1485.                     elseif key == 119 then
  1486.                         if tfm.get.room.playerList[name].score > 25 then
  1487.                             object=67
  1488.                             tfm.exec.setPlayerScore(name,-25,true)
  1489.                             ui.removeTextArea(701,nil)
  1490.                         end
  1491.                     end
  1492.                 end
  1493.             end
  1494.         end
  1495.     end
  1496. end
  1497. function eventMouse(name,x,y)
  1498.     if powerups.explosion == true and actual_player == name then
  1499.         tfm.exec.explosion(x,y,30,120,true)
  1500.         tfm.exec.displayParticle(12,x,y,0,0,0,0,nil)
  1501.         powerups.explosion=false
  1502.     end
  1503.     if powerups.fly == true and actual_player == name and anvil_launched == false then
  1504.         if data[name].team == "vermelho" then
  1505.             if x < 790 and x > 200 then
  1506.                 tfm.exec.movePlayer(name,x,190,false,0,0,false)
  1507.             end
  1508.         end
  1509.         if data[name].team == "azul" then
  1510.             if x > 810 and x < 1400 then
  1511.                 tfm.exec.movePlayer(name,x,190,false,0,0,false)
  1512.             end
  1513.         end
  1514.     end
  1515. end
  1516. function eventNewGame()
  1517.     advanceLevel()
  1518.     for i=11,297 do
  1519.         ui.removeTextArea(i,nil)
  1520.     end
  1521.     sudden_death=false
  1522.     time_limit=15
  1523.     reset=false
  1524.     count_azul=0
  1525.     count_vermelho=0
  1526.     tempo=0
  1527.     power=5
  1528.     count=0
  1529.     kills=0
  1530.     play_azul={}
  1531.     play_vermelho={}
  1532.     valendo=false
  1533.     loop=8
  1534.     resetPowers()
  1535.     for name,player in pairs(tfm.get.room.playerList) do
  1536.         tfm.exec.changePlayerSize(name,1)
  1537.         data[name].kd=math.floor((data[name].kills/data[name].matchs)*100)
  1538.         data[name].killed=-1
  1539.         data[name].team=""
  1540.         data[name].immortal=false
  1541.         data[name].immortal2=false
  1542.         data[name].imatchs=0
  1543.         data[name].skip=0
  1544.         tfm.exec.setNameColor(name,0xd7d7e6)
  1545.         giveCargos(name,data[name].level)
  1546.         for i=32,123 do
  1547.             tfm.exec.bindKeyboard(name,i,true,true)
  1548.         end
  1549.         showTeams(name)
  1550.         for id,name in pairs(avs_list) do
  1551.             if data[name] then
  1552.                 giveCargos(name,2)
  1553.             end
  1554.         end
  1555.         for id,name in pairs(mods_list) do
  1556.             if data[name] then
  1557.                 giveCargos(name,3)
  1558.             end
  1559.         end
  1560.         for id,name in pairs(managers_list) do
  1561.             if data[name] then
  1562.                 giveCargos(name,4)
  1563.             end
  1564.         end
  1565.         for id,name in pairs(admins_list) do
  1566.             if data[name] then
  1567.                 giveCargos(name,5)
  1568.             end
  1569.         end
  1570.     end
  1571.     tfm.exec.setGameTime(30)
  1572. end
  1573. function eventTextAreaCallback(id,name,callback)
  1574.     if callback == "show_menu" then
  1575.         ui.addTextArea(299,"<p align='center'><a href='event:hide_menu'><font size='18'>Menu",name,365,376,70,24,0x000001,0x000001,0.75,true)
  1576.         ui.addTextArea(298,text.menu_bar,name,200,345,400,20,0x000001,0x000001,0.80,true)
  1577.     end
  1578.     if callback == "hide_menu" then
  1579.         ui.addTextArea(299,"<p align='center'><a href='event:show_menu'><font size='18'>Menu",name,365,376,70,24,0x000001,0x000001,0.75,true)
  1580.         ui.removeTextArea(298,name)
  1581.     end
  1582.     if callback == "ranking" then
  1583.         eventChatCommand(name,"rank")
  1584.     end
  1585.     if callback == "cap" then
  1586.         eventChatCommand(name,"cap")
  1587.     end
  1588.     if callback == "cmd" then
  1589.         eventChatCommand(name,"cmd")
  1590.     end
  1591.     if callback == "powerups" then
  1592.         loadPowerups(name)
  1593.     end
  1594.     if callback == "power1" then
  1595.         tfm.exec.chatMessage(text.double2,name)
  1596.     end
  1597.     if callback == "help" then
  1598.         eventChatCommand(name,"help")
  1599.     end
  1600.     if callback == "power2" then
  1601.         tfm.exec.chatMessage(text.triple2,name)
  1602.     end
  1603.     if callback == "power3" then
  1604.         tfm.exec.chatMessage(text.bomba2,name)
  1605.     end
  1606.     if callback == "power4" then
  1607.         tfm.exec.chatMessage(text.objeto2,name)
  1608.     end
  1609.     if callback == "power5" then
  1610.         tfm.exec.chatMessage(text.exp2,name)
  1611.     end
  1612.     if callback == "power6" then
  1613.         tfm.exec.chatMessage(text.chuva2,name)
  1614.     end
  1615.     if callback == "power7" then
  1616.         tfm.exec.chatMessage(text.fly2,name)
  1617.     end
  1618.     if callback == "power8" then
  1619.         tfm.exec.chatMessage(text.inv2,name)
  1620.     end
  1621.     if callback == "power9" then
  1622.         tfm.exec.chatMessage(text.invi2,name)
  1623.     end
  1624.     if callback == "power10" then
  1625.         tfm.exec.chatMessage(text.selec2,name)
  1626.     end
  1627.     if callback == "profile" then
  1628.         tfm.exec.chatMessage(text.profile,name)
  1629.     end
  1630.     if callback == "fechar" then
  1631.         for id=8000,8010 do
  1632.             ui.removeTextArea(id,name)
  1633.         end
  1634.     end
  1635.     if callback == "close" then
  1636.         for id=8000,8010 do
  1637.             ui.removeTextArea(id,name)
  1638.             ui.removeTextArea(6969+id,name)
  1639.             ui.removeTextArea(7979+id,name)
  1640.         end
  1641.     end
  1642.     if callback == "closep" then
  1643.         for id=9000,9010 do
  1644.             ui.removeTextArea(id,name)
  1645.         end
  1646.     end
  1647.     if callback == "enter_vermelho" then
  1648.         if data[name].killed == -1 and data[name].team == "" then
  1649.             data[name].team="vermelho"
  1650.             data[name].killed=0
  1651.             tfm.exec.respawnPlayer(name)
  1652.             tfm.exec.movePlayer(name,700,180,false,0,0,false)
  1653.             count_vermelho=count_vermelho+1
  1654.             ui.removeTextArea(41,name)
  1655.             ui.removeTextArea(42,name)
  1656.             ui.addTextArea(51,"<p align='center'><a href='event:sair_vermelho'>"..text.exit.."",name,300,180,200,20,0x505050,0x323232,1.0,true)
  1657.         end
  1658.     end
  1659.     if callback == "enter_azul" then
  1660.         if data[name].killed == -1 and data[name].team == "" then
  1661.             data[name].team="azul"
  1662.             data[name].killed=0
  1663.             tfm.exec.respawnPlayer(name)
  1664.             tfm.exec.movePlayer(name,900,180,false,0,0,false)
  1665.             count_azul=count_azul+1
  1666.             ui.removeTextArea(41,name)
  1667.             ui.removeTextArea(42,name)
  1668.             ui.addTextArea(52,"<p align='center'><a href='event:sair_azul'>"..text.exit.."",name,300,180,200,20,0x505050,0x323232,1.0,true)
  1669.         end
  1670.     end
  1671.     if callback == "sair_azul" then
  1672.         data[name].team=""
  1673.         data[name].killed=-1
  1674.         tfm.exec.killPlayer(name)
  1675.         count_azul=count_azul-1
  1676.         ui.removeTextArea(52,name)
  1677.         ui.addTextArea(41, "<p align='center'><a href='event:enter_vermelho'>"..text.enter_vermelho.."</a></p>", name, 300, 165, 200, 20, 0x800000, 0x600000,1.0,true)
  1678.         ui.addTextArea(42, "<p align='center'><a href='event:enter_azul'>"..text.enter_azul.."</a></p>", name, 300, 195, 200, 20, 0x80, 0x60,1.0,true)
  1679.     end
  1680.     if callback == "sair_vermelho" then
  1681.         data[name].team=""
  1682.         data[name].killed=-1
  1683.         tfm.exec.killPlayer(name)
  1684.         count_vermelho=count_vermelho-1
  1685.         ui.removeTextArea(51,name)
  1686.         ui.addTextArea(41, "<p align='center'><a href='event:enter_vermelho'>"..text.enter_vermelho.."</a></p>", name, 300, 165, 200, 20, 0x800000, 0x600000,1.0,true)
  1687.         ui.addTextArea(42, "<p align='center'><a href='event:enter_azul'>"..text.enter_azul.."</a></p>", name, 300, 195, 200, 20, 0x80, 0x60,1.0,true)
  1688.     end
  1689. end
  1690. function winRed()
  1691.     for name,player in pairs(tfm.get.room.playerList) do
  1692.         if data[name].team == "vermelho" then
  1693.             data[name].exp=data[name].exp+20
  1694.             data[name].wins=data[name].wins+1
  1695.             data[name].score=data[name].score+15
  1696.             tfm.exec.respawnPlayer(name)
  1697.             tfm.exec.movePlayer(name,math.random(225,775),170,false,0,0,false)
  1698.             tfm.exec.playEmote(name,0)
  1699.         end
  1700.     end
  1701.     advanceLevel()
  1702. end
  1703. function winAzul()
  1704.     for name,player in pairs(tfm.get.room.playerList) do
  1705.         if data[name].team == "azul" then
  1706.             data[name].exp=data[name].exp+20
  1707.             data[name].wins=data[name].wins+1
  1708.             data[name].score=data[name].score+15
  1709.             tfm.exec.respawnPlayer(name)
  1710.             tfm.exec.movePlayer(name,math.random(825,1375),170,false,0,0,false)
  1711.             tfm.exec.playEmote(name,0)
  1712.         end
  1713.     end
  1714.     advanceLevel()
  1715. end
  1716. function advanceLevel()
  1717.     for name,player in pairs(tfm.get.room.playerList) do
  1718.         if data[name].exp >= data[name].maxp then
  1719.             data[name].exp=data[name].exp-data[name].maxp
  1720.             data[name].maxp=data[name].maxp+50
  1721.             data[name].nivel=data[name].nivel+1
  1722.             tfm.exec.chatMessage(""..text.advanced..""..data[name].nivel.."!",name)
  1723.         end
  1724.     end
  1725. end
  1726. function giveCargos(name,type)
  1727.     if type == 2 and data[name] then
  1728.         data[name].level=2
  1729.         tfm.exec.setNameColor(name,0x0076FF)
  1730.     elseif type == 3 and data[name] then
  1731.         data[name].level=3
  1732.         tfm.exec.setNameColor(name,0xFFFB00)
  1733.     elseif type == 4 and data[name] then
  1734.         data[name].level=4
  1735.         tfm.exec.setNameColor(name,0xFF7100)
  1736.     elseif type == 5 and data[name] then
  1737.         data[name].level=5
  1738.         tfm.exec.setNameColor(name,0xFF0000)
  1739.     end
  1740. end
  1741. end
  1742.  
  1743. initPistas = function()
  1744. tfm.exec.disableAllShamanSkills(true)
  1745. tfm.exec.disableAutoNewGame(true)
  1746. tfm.exec.disableAfkDeath(true)
  1747. tfm.exec.disableAutoTimeLeft(true)
  1748. tfm.exec.disablePhysicalConsumables(true)
  1749. tfm.exec.disableMortCommand(true)
  1750. pergunta=0
  1751. valendo=false
  1752. limite=6 -- Variável usada para armazenar o limite de partidas
  1753. dica10="" -- Variável usada para armazenar a dica valendo 10 pontos
  1754. dica9="" -- Variável usada para armazenar a dica valendo 9 pontos
  1755. dica8="" -- Variável usada para armazenar a dica valendo 8 pontos
  1756. resposta="" -- Variável usada para armazenar a resposta da pergunta
  1757. players={} -- Variável usada para armazenar os jogadores que vão participar do espetáculo
  1758. data={}
  1759. tempo=999 -- NÃO ALTERAR!
  1760. loop=0
  1761. system.disableChatCommandDisplay("help")
  1762. system.disableChatCommandDisplay("ratos")
  1763. system.disableChatCommandDisplay("skip")
  1764. system.disableChatCommandDisplay("shaman")
  1765. mapa="@4677521" -- Variável usada para armazenar o mapa do module
  1766. lang = {}
  1767. lang.br = {
  1768.     welcome = "<J>Bem-vindo ao module do Jogo das 3 Pistas! Não sabe como jogar? Digite !help.<br><br>Script criado por Jessiewind26#2546. Créditos adicionais a Hecarimjhenx#0000 e Camilledrain#0000",
  1769.     time = "<R>Tempo esgotado! A resposta era ",
  1770.     fim = "<R>Partida encerrada! O jogador com melhor pontuação será o shaman!",
  1771.     shaman = "<R>Acabou o tempo! Outro shaman será escolhido.",
  1772.     c10p = "Dica valendo 10 pontos:",
  1773.     c9p = "Dica valendo 9 pontos:",
  1774.     c8p = "Dica valendo 8 pontos:",
  1775.     module = "Jogo das 3 Pistas",
  1776.     cancel = "<R>Rodada cancelada.",
  1777.     question = "<VP>Pressione G para fazer uma pergunta.",
  1778.     help = "<J>Como jogar:<br>Quando você tiver jogando, o shaman te dará 3 dicas. Se você acertar a pergunta, você ganha um número de pontos específico, dependendo de quanto tempo você demorou para responder. Quem tiver mais pontos no final vira o shaman do jogo.",
  1779.     win = "acertou a resposta! A resposta era",
  1780.     cancelled = "<R>Rodada cancelada! O shaman falou a resposta.",
  1781. }
  1782. lang.en = {
  1783.     welcome = "<J>Welcome to 3 Tips Game! If you want help, type !help.<br><br>Script made by Jessiewind26#2546. Credits to Hecarimjhenx#0000 and Camilledrain#0000",
  1784.     time = "<R>End of time! The answer was",
  1785.     fim = "<R>The match ended! The best player will be the shaman.",
  1786.     shaman = "<R>Time is gone! Other shaman will be selected.",
  1787.     c10p = "Tip for 10 points:",
  1788.     c9p = "Tip for 9 points:",
  1789.     c8p = "Tip for 8 points:",
  1790.     module = "3 Tips Game",
  1791.     cancel = "<R>Cancelled match.",
  1792.     question = "<VP>Press G to make a question.",
  1793.     help = "<J>How to Play:<br>When you is playing, the shaman will make 3 tips. If you discover the answer, you win points, depending of time remaining to wim. At final of the match, the player that get more points will be the shaman.",
  1794.     win = "discovered the answer! The answer was",
  1795.     cancelled = "<R>The shaman typed the answer! The question will be cancelled.",
  1796. }
  1797. if tfm.get.room.community == "br" then
  1798.     text = lang.br
  1799. else
  1800.     text = lang.en
  1801. end
  1802. tfm.exec.setPlayerScore(admin,999,true)
  1803. tfm.exec.newGame(mapa)
  1804. rato=0
  1805. function eventNewPlayer(name)
  1806.     newData={
  1807.         ["played"]=0;
  1808.             }
  1809.     data[name]=newData;
  1810.     tfm.exec.bindKeyboard(name,71,true,true)
  1811.     tfm.exec.respawnPlayer(name)
  1812.     tfm.exec.chatMessage(text.welcome,name)
  1813. end
  1814. for name,player in pairs(tfm.get.room.playerList) do
  1815.     eventNewPlayer(name)
  1816. end
  1817. function eventLoop(p,f)
  1818.     loop=loop+1
  1819.     tempo=math.ceil(f/1000)
  1820.     if f < 2000 and valendo == true then
  1821.         tfm.exec.chatMessage(""..text.time..""..resposta.."",nil)
  1822.         ui.removeTextArea(1,nil)
  1823.         ui.removeTextArea(2,nil)
  1824.         ui.removeTextArea(3,nil)
  1825.         valendo=false
  1826.         tfm.exec.setGameTime(60)
  1827.     end
  1828.     if pergunta == limite and valendo == false then
  1829.         tfm.exec.chatMessage(text.fim,nil)
  1830.         tfm.exec.newGame(mapa)
  1831.     end
  1832.     if f <= 100 then
  1833.         tfm.exec.chatMessage(text.shaman,nil)
  1834.         tfm.exec.newGame(mapa)
  1835.     end
  1836.     if loop == 10 then
  1837.         for name,player in pairs(tfm.get.room.playerList) do
  1838.             tfm.exec.setPlayerScore(name,0,false)
  1839.         end
  1840.     end
  1841.     if valendo == true and f <= 59000 then
  1842.         ui.addTextArea(1,"<font size='17'><p align='center'><font face='Segoe UI'><J>"..text.c10p.." <b>"..dica10.."",nil,5,30,780,32,0x000001,0x000001,0.9,true)
  1843.     end
  1844.     if valendo == true and f <= 49000 then
  1845.         ui.addTextArea(2,"<font size='17'><p align='center'><font face='Segoe UI'><J>"..text.c9p..": <b>"..dica9.."",nil,5,70,780,32,0x000001,0x000001,0.9,true)
  1846.     end
  1847.     if valendo == true and f <= 39000 then
  1848.         ui.addTextArea(3,"<font size='17'><p align='center'><font face='Segoe UI'><J>"..text.c8p.." <b>"..dica8.."",nil,5,110,780,32,0x000001,0x000001,0.9,true)
  1849.     end
  1850.     ui.setMapName("<J>"..text.module.."   <G>|   <N>Question : <V>"..pergunta.."/"..limite.."   <G>|   <N>Time : <V>"..tempo.."s   <G>|   <N>Compilation RTM 2<")
  1851. end
  1852. function eventChatCommand(name,message)
  1853.     if message == "skip" then
  1854.         if name == "Jessiewind26#2546" or name == "Hecarimjhenx#0000" or name == "Camilledrain#0000" or name == admin then
  1855.             tfm.exec.chatMessage(text.cancel,nil)
  1856.             tfm.exec.newGame(mapa)
  1857.         end
  1858.     end
  1859.     if(message:sub(1,6) == "limite") then
  1860.         if name == "Jessiewind26#2546" or name == "Hecarimjhenx#0000" or name == "Camilledrain#0000" or name == admin then
  1861.             limite=tonumber(message:sub(8))
  1862.         end
  1863.     end
  1864.     if(message:sub(1,5) == "ratos") then
  1865.         if name == "Jessiewind26#2546" or name == "Hecarimjhenx#0000" or name == "Camilledrain#0000" or name == admin then
  1866.             tfm.exec.setRoomMaxPlayers(message:sub(7))
  1867.         end
  1868.     end
  1869.     if(message:sub(1,6) == "shaman") then
  1870.         if name == "Jessiewind26#2546" or name == "Hecarimjhenx#0000" or name == "Camilledrain#0000" or name == admin then
  1871.             tfm.exec.setPlayerScore(message:sub(8),9999,false)
  1872.             tfm.exec.newGame(mapa)
  1873.         end
  1874.     end
  1875.     if(message:sub(1,2) == "pw") then
  1876.         if name == "Jessiewind26#2546" or name == "Hecarimjhenx#0000" or name == "Camilledrain#0000" or name == admin then
  1877.             if message:sub(4) == "" then
  1878.                 tfm.exec.setRoomPassword("")
  1879.                 tfm.exec.chatMessage("Password cleared.",name)
  1880.             else
  1881.                 tfm.exec.setRoomPassword(message:sub(4))
  1882.                 tfm.exec.chatMessage("Password: "..message:sub(4).."",name)
  1883.             end
  1884.         end
  1885.     end
  1886.     if message == "help" then
  1887.         tfm.exec.chatMessage(text.help,name)
  1888.     end
  1889. end
  1890. function eventNewGame()
  1891.     loop=0
  1892.     ui.removeTextArea(1,nil)
  1893.     ui.removeTextArea(2,nil)
  1894.     ui.removeTextArea(3,nil)
  1895.     pistas={p10="",p9="",p8=""}
  1896.     valendo=false
  1897.     pergunta=0
  1898.     tfm.exec.setGameTime(60)
  1899.     rato=0
  1900.     for name,player in pairs(tfm.get.room.playerList) do
  1901.         if tfm.get.room.playerList[name].isShaman then
  1902.             data[name].played=1
  1903.             tfm.exec.chatMessage(text.question,name)
  1904.         end
  1905.         tfm.exec.bindKeyboard(name,71,true,true)
  1906.         table.insert(players,name)
  1907.         rato=rato+1
  1908.         tfm.exec.setPlayerScore(name,0,false)
  1909.     end
  1910.     obterJogadores()
  1911. end
  1912. function eventChatMessage(name,message)
  1913.     if string.upper(message) == string.upper(resposta) and valendo == true then
  1914.         if not tfm.get.room.playerList[name].isShaman then
  1915.             if tempo >= 50 then
  1916.                 tfm.exec.setPlayerScore(name,10,true)
  1917.             elseif tempo >= 40 and tempo < 50 then
  1918.                 tfm.exec.setPlayerScore(name,9,true)
  1919.             elseif tempo < 40 then
  1920.                 tfm.exec.setPlayerScore(name,8,true)
  1921.             end
  1922.             valendo=false
  1923.             tfm.exec.setGameTime(59)
  1924.             tfm.exec.chatMessage("<VP>"..name.." "..text.win.." "..string.upper(resposta).."",nil)
  1925.             resposta=""
  1926.             ui.removeTextArea(1,nil)
  1927.             ui.removeTextArea(2,nil)
  1928.             ui.removeTextArea(3,nil)
  1929.         else
  1930.             tfm.exec.chatMessage(text.cancelled,nil)
  1931.             ui.removeTextArea(1,nil)
  1932.             ui.removeTextArea(2,nil)
  1933.             ui.removeTextArea(3,nil)
  1934.             valendo=false
  1935.             tfm.exec.setGameTime(59)
  1936.         end
  1937.     end
  1938. end
  1939. function obterJogadores()
  1940.     players={}
  1941. end
  1942. function eventKeyboard(name,key)
  1943.     if tfm.get.room.playerList[name].isShaman then
  1944.         ui.addPopup(0,2,text.c10p,name,350,125,200,true)
  1945.     end
  1946. end
  1947. function eventPopupAnswer(id,name,answer)
  1948.     if tfm.get.room.playerList[name].isShaman then
  1949.     if id == 0 then
  1950.         dica10=answer
  1951.         ui.addPopup(1,2,text.c9p,name,350,125,200,true)
  1952.     end
  1953.     if id == 1 then
  1954.         dica9=answer
  1955.         ui.addPopup(2,2,text.c8p,name,350,125,200,true)
  1956.     end
  1957.     if id == 2 then
  1958.         dica8=answer
  1959.         ui.addPopup(3,2,"Insert the ANSWER:",name,350,125,200,true)
  1960.     end
  1961.     if id == 3 then
  1962.         if string.len(answer) >= 2 and string.len(answer) <= 32 then
  1963.             pergunta=pergunta+1
  1964.             resposta=string.upper(answer)
  1965.             tfm.exec.setGameTime(60)
  1966.             valendo=true
  1967.         else
  1968.             ui.addPopup(3,2,"Insert the ANSWER:",name,350,125,200,true)
  1969.         end
  1970.     end
  1971.     end
  1972. end
  1973. function eventPlayerDied(name)
  1974.     if tfm.get.room.playerList[name].isShaman then
  1975.         tfm.exec.newGame(mapa)
  1976.     end
  1977. end
  1978. end
  1979. initTrue = function()
  1980. for _,f in next,{"AutoScore","AutoNewGame","AutoTimeLeft","AllShamanSkills","PhysicalConsumables","AfkDeath"} do
  1981.     tfm.exec["disable"..f](true)
  1982. end
  1983. tfm.exec.setRoomMaxPlayers(35)
  1984. t=false;
  1985. f=false;
  1986. tempa=20   
  1987. ratos=0
  1988. loop=0
  1989. temp2=3
  1990. resposta="0"
  1991. players={}
  1992. votos=0
  1993. vivo=0;
  1994. min1=0
  1995. seg1=0
  1996. seg2=0
  1997. lt=0
  1998. segundos=0
  1999. lock=false;
  2000. pergunta=""
  2001. shaman=""
  2002. lock=false
  2003. minutos=10;
  2004. modo="desativado"
  2005. for _,f in next,{"admin77","admin78","limite"} do
  2006.     system.disableChatCommandDisplay(f)
  2007. end
  2008. mapa="@7417328"
  2009. lang = {}
  2010.  
  2011. lang.br = {
  2012.   textFalse = "A resposta era FALSO!",
  2013.   textTrue = "A resposta era VERDADEIRO!",
  2014.   textRandom = "Um shaman aleatório foi escolhido.",
  2015.   textSkip = "O shaman passou a vez.",
  2016.   textPergunta = "Insira a sua pergunta:<br><br>NÃO USE SÍMBOLOS ESPECIAIS NA PERGUNTA!",
  2017.   textTime = "Tempo esgotado!",
  2018.   textNothingWins = "Ninguém venceu esta partida. :(",
  2019.   textWinner = " venceu a partida!",
  2020.   textNothing = "Não tivemos vencedor nessa partida.",
  2021.   textTimeOut = "O tempo da partida acabou! Outro shaman será escolhido.",
  2022.   textTimeLeave = "Tempo esgotado! Outro shaman será escolhido.",
  2023.   textTrueFalse = "Envie SIM se a resposta for verdadeira ou NÃO se a resposta for falsa.",
  2024.   textEnter = "<b>Bem-vindo ao module True or False!</b><br><BL>Para maiores informações sobre o jogo, digite !help.<br><br><VP>Atualização RTM 1.125:<br>- Correção de pequenos bugs",
  2025.   textHelp = "<J>Quando o shaman fizer uma pergunta, você deverá ir no campo TRUE se a resposta for verdadeira ou no campo FALSE se a resposta for falsa. Aqueles que errarem serão eliminados da partida. O processo continua até que sobre um vencedor, que será o novo shaman.<br>Se você for o shaman, digite !per para fazer uma pergunta.<br><br>- Script desenvolvido atualmente por Forzaldenon#0000, ideia original por Haxhhhhhhhhh.",
  2026.   textGotShaman = "<J>Você é o shaman. Digite <b>!per</b> para fazer uma pergunta.<br>Você tem 1 minuto para fazer sua pergunta, ou outro shaman entrará em seu lugar.<br><br>Digite <b>!skip</b> para pular sua vez de shaman.",
  2027.   textLowTime = "O tempo da partida está acabando.",
  2028.   mices = "São necessários pelo menos 3 jogadores para jogar True or False",
  2029.   textArea1 = "Tempo da partida:",
  2030.   textArea2 = "Ratos vivos:",
  2031.   textArea3 = "Limite de tempo:",
  2032.   textLongQuestion = "Sua pergunta é muito longa. Tente usar uma pergunta menor.",
  2033.   textShortQuestion = "Sua pergunta é muito curta ou não é permitida.",
  2034.   textCmd = "<VP>Comandos do jogo:<br><br>!per = faz uma pergunta (quando você é shaman)<br>!skip = pula a sua vez (quando você é shaman)",
  2035.   textLt = "<J>Use o comando /ban [nome] para reportar alguém que esteja infrigindo as regras da sala.",
  2036. }
  2037. lang.en = {
  2038.   textFalse = "The answer was FALSE!",
  2039.   textTrue = "The answer was TRUE!",
  2040.   textRandom = "A random shaman has been choosed.",
  2041.   textSkip = "The shaman skipped your turn.",
  2042.   textPergunta = "Type your question here:",
  2043.   textTime = "Time is up!",
  2044.   textNothingWins = "Nothing wins the game. :(",
  2045.   textWinner = " wons the game!",
  2046.   textNothing = "Aren't winners on this game.",
  2047.   textTimeOut = "The game time is gone! Other shaman has been choosed.",
  2048.   textTimeLeave = "Time is up! Other shaman has been choosed.",
  2049.   textTrueFalse = "Send YES if the answer is TRUE or send NO if the answer is FALSE.",
  2050.   textEnter = "<b>Welcome to module True or False!</b><br><V>For more information of the game, type !help.<br><br><VP>Update RTM 1.125:<br>- Correction of small bugs",
  2051.   textHelp = "<J>When the shaman make the question, You must go to the TRUE side if the answer is true or go to the FALSE side if the answer is false. If you err the answer, you will be eliminated of the game. The process continue until someone win the game, which will be the new shaman.<br>If you are the shaman, type !per to make a question.<br><br>Suggestions and problems report to Forzaldenon#0000.",
  2052.   textGotShaman = "<J>You are the shaman. Type <b>!per</b> to make a question.<br>You have 1 minute to make the question, or other shaman will enter in your place.<br><br>Type <b>!skip</b> to skip your shaman turn.",
  2053.   textLowTime = "The match time is ending.",
  2054.   mices = "Are needed at least 3 players to play True or False.",
  2055.   textArea1 = "Match time:",
  2056.   textArea2 = "Mices alive:",
  2057.   textArea3 = "Time limit:",
  2058.   textLongQuestion = "Your question is very long. Try to use a short question.",
  2059.   textShortQuestion = "Your question is very short or isn't allowed.",
  2060.   textCmd = "<VP>Game commands:<br><br>!per = make a question (only for shaman)<br>!skip = skip your shaman turn (only for shaman)",
  2061.   textLt = ""
  2062. }
  2063. if tfm.get.room.community == "br" then
  2064.     text = lang.br
  2065. else
  2066.     text = lang.en
  2067. end
  2068. function obterJogadores()
  2069.     players={}
  2070.     for name,player in pairs(tfm.get.room.playerList) do
  2071.     if not tfm.get.room.playerList[name].isDead then
  2072.         table.insert(players,name)
  2073.     end
  2074.     end
  2075. end
  2076. function eventNewPlayer(name)
  2077.     ratos=ratos+1;
  2078.     tfm.exec.chatMessage("<J>"..text.textEnter.."",name)
  2079.     obterJogadores()
  2080. end
  2081. for name,player in pairs(tfm.get.room.playerList) do
  2082.     tfm.exec.setPlayerScore(name,0,false)
  2083.     eventNewPlayer(name)
  2084. end
  2085. function eventPlayerLeft(name)
  2086.     ratos=ratos-1;
  2087.     obterJogadores()
  2088. end
  2089. function eventChatCommand(name,message)
  2090.     if tfm.get.room.currentMap == "@7417328" then
  2091.     if message == "f5" then
  2092.         if name == "Forzaldenon#0000" then
  2093.             t=true;
  2094.             tfm.exec.chatMessage("<R>"..text.textFalse.."",nil)
  2095.             modo="desativado" end
  2096.     elseif message == "skip" then
  2097.             if tfm.get.room.playerList[name].isShaman then
  2098.             obterJogadores()
  2099.             tfm.exec.chatMessage("<R>"..text.textSkip.."",nil)
  2100.             eventChatCommand("Forzaldenon#0000","admin77") end         
  2101.     elseif message == "v5" then
  2102.         if name == "Forzaldenon#0000" then
  2103.             f=true;
  2104.             tfm.exec.chatMessage("<VP>"..text.textTrue.."",nil)
  2105.             modo="desativado" end
  2106.     elseif message == "per" then
  2107.         if tfm.get.room.playerList[name].isShaman then
  2108.             if modo == "desativado" then
  2109.                 ui.removeTextArea(27,nil)
  2110.                 ui.addPopup(1,2,""..text.textPergunta.."",name,250,125,350,true)
  2111.             end
  2112.         end
  2113.     elseif message == "admin77" then
  2114.         if modo == "desativado" then
  2115.         if name == "Forzaldenon#0000" or name == "Ashearcher#0000" then
  2116.             changeMap()
  2117.             tfm.exec.setShaman(message:sub(50))
  2118.         end end
  2119.     elseif(message:sub(1,7) == "admin78") then
  2120.         if modo == "desativado" then
  2121.         if name == "Forzaldenon#0000" or name == "Ashearcher#0000" then
  2122.             tfm.exec.setPlayerScore(message:sub(9),8001,false)
  2123.             changeMap()
  2124.         end end
  2125.     elseif(message:sub(0,4) == "kill") then
  2126.         if name == "Forzaldenon#0000" or name == "Ashearcher#0000" then
  2127.             tfm.exec.killPlayer(message:sub(6))
  2128.         end
  2129.     elseif message == "help" then
  2130.         tfm.exec.chatMessage("<N>"..text.textHelp.."",name)
  2131.     elseif message == "cmd" then
  2132.         tfm.exec.chatMessage("<N>"..text.textCmd.."",name)
  2133.     end
  2134.     end
  2135. end
  2136. function eventNewGame()
  2137.     ui.removeTextArea(27,nil)
  2138.     tfm.exec.setGameTime(63)
  2139.     vivo=0;
  2140.     modo="desativado"
  2141.     tempa=19
  2142.     votos=0;
  2143.     t=false;
  2144.     f=false;
  2145.     segundos=0;
  2146.     min1=0
  2147.     min3=0
  2148.     seg1=0
  2149.     seg2=0
  2150.     for name,player in pairs(tfm.get.room.playerList) do
  2151.         if name:sub(1,1) == "*" then
  2152.             tfm.exec.killPlayer(name)
  2153.                 tfm.exec.chatMessage("<R>Souris aren't allowed to play on this module. Create an account or log in to play True or False.",name)
  2154.         end
  2155.         vivo=vivo+1
  2156.         if tfm.get.room.playerList[name].isShaman then
  2157.             tfm.exec.setPlayerScore(name,-2,false)
  2158.             vivo=vivo-1
  2159.         end
  2160.     end
  2161.     obterJogadores()
  2162. end
  2163. function eventLoop(pass,tempo)
  2164.     local pass2=tempo/1000
  2165.     lt=lt+1
  2166.     if lt >= 1200 then
  2167.         if tfm.get.room.community == "br" then
  2168.             tfm.exec.chatMessage("<R>"..text.textLt.."",nil)
  2169.             lt=0
  2170.         end
  2171.     end
  2172.     if tfm.get.room.currentMap == "@7277839" then
  2173.         tfm.exec.setGameTime(63)
  2174.     end
  2175.     if lock == true then
  2176.         tfm.exec.setGameTime(tempo/950)
  2177.     end
  2178.     loop=loop+0.5
  2179.     if pass >= 3000 and pass <= 179995 then
  2180.         if ratos < 3 then
  2181.             if tfm.get.room.currentMap == "@7417328" then
  2182.                 tfm.exec.newGame("@7277839")
  2183.                 tfm.exec.chatMessage("<R>"..text.mices.."",nil)
  2184.             end
  2185.         end
  2186.     end
  2187.     if ratos >= 3 then
  2188.         if tfm.get.room.currentMap == "@7277839" then
  2189.             changeMap()
  2190.         end
  2191.     end
  2192.     if min1 == minutos-1 then
  2193.         ui.addTextArea(125,"<font size='13'><font color='#ff0000'>   <font face='Segoe UI'>"..text.textArea1.." <b>"..min1..":"..seg1..""..seg2.."</b>                                                 "..text.textArea2.." <b>"..vivo.."</b>                                            "..text.textArea3.." <b>"..minutos.." min.</b>",nil,5,380,790,22,0,0,1.0,true)
  2194.     else
  2195.         ui.addTextArea(125,"<font size='13'><font color='#010101'>   <font face='Segoe UI'>"..text.textArea1.." <b>"..min1..":"..seg1..""..seg2.."</b>                                                 "..text.textArea2.." <b>"..vivo.."</b>                                            "..text.textArea3.." <b>"..minutos.." min.</b>",nil,5,380,790,22,0,0,1.0,true)
  2196.     end
  2197.     if loop == 1 then
  2198.         segundos=segundos+1
  2199.         seg2=seg2+1
  2200.         loop=0
  2201.     if seg2 >= 10 then
  2202.         seg2=0
  2203.         seg1=seg1+1
  2204.         if seg1 >= 6 then
  2205.             min1=min1+1
  2206.             seg1=0
  2207.             seg2=0
  2208.             end
  2209.             if min1 >= minutos then
  2210.                 for name,player in pairs(tfm.get.room.playerList) do
  2211.                     if tfm.get.room.playerList[name].isShaman then
  2212.                         ui.addPopup(1,0,""..text.textTime.."",name,350,175,200,true)
  2213.                         ui.addPopup(2,0,""..text.textTime.."",name,350,175,200,true)
  2214.                     end
  2215.                 end
  2216.                 tfm.exec.chatMessage("<R>"..text.textTimeOut.."",nil)
  2217.                 eventChatCommand("Forzaldenon#0000","admin77")
  2218.             end
  2219.         end
  2220.     end
  2221.     tfm.exec.setUIMapName("True or False - RTM 1.125")
  2222.     if modo == "pergunta" then
  2223.         tempa=tempa-0.5
  2224.     end
  2225.     for name,player in pairs(tfm.get.room.playerList) do
  2226.         if tfm.get.room.playerList[name].isShaman then
  2227.             if tfm.get.room.currentMap == "@7417328" then
  2228.                 if pass > 450 and pass < 1050 then
  2229.                     tfm.exec.chatMessage("<VP>"..text.textGotShaman.."",name)
  2230.                     tfm.exec.setPlayerScore(name,-2,false)
  2231.                 end
  2232.             end
  2233.         end
  2234.     end
  2235.     if tempa < 0.1 then
  2236.         modo="resposta"
  2237.         tempa=0
  2238.         for pn, p in pairs(tfm.get.room.playerList) do
  2239.             if p.y <= 220 then
  2240.                 tfm.exec.killPlayer(pn)
  2241.             end
  2242.         end
  2243.     end
  2244.     if f == true then
  2245.         for pn, p in pairs(tfm.get.room.playerList) do
  2246.             if p.x >= 405 then
  2247.                 tfm.exec.killPlayer(pn)
  2248.                 modo="desativado"
  2249.             end
  2250.         end
  2251.         f=false;
  2252.     end
  2253.     if t == true then
  2254.         for pn, p in pairs(tfm.get.room.playerList) do
  2255.             if p.x <= 395 then
  2256.                 tfm.exec.killPlayer(pn)
  2257.                 modo="desativado"
  2258.             end
  2259.         end
  2260.         t=false;
  2261.     end
  2262.     if modo == "resposta" then
  2263.         tfm.exec.setGameTime(63)
  2264.         temp2=temp2-0.5
  2265.         if temp2 == 1 then
  2266.             modo="desativado"
  2267.             if resposta == "yes" then
  2268.                 eventChatCommand("Forzaldenon#0000","v5")
  2269.             else
  2270.                 eventChatCommand("Forzaldenon#0000","f5")
  2271.             end
  2272.             tempa=19
  2273.             temp2=3
  2274.             pergunta=""
  2275.             ui.removeTextArea(27,nil)
  2276.         end
  2277.     end
  2278.     if modo == "desativado" then
  2279.     if tempo < 60000 and tempo > 59400 then
  2280.         if pass > 10000 then
  2281.             for name,player in pairs(tfm.get.room.playerList) do
  2282.             if not tfm.get.room.playerList[name].isDead then
  2283.                 tfm.exec.setPlayerScore(name,1,true)
  2284.             end
  2285.         end
  2286.         end
  2287.     end
  2288.     if tfm.get.room.currentMap == "@7417328" then
  2289.     if vivo == 1 then
  2290.         if tempo < 59000 then
  2291.             tfm.exec.setPlayerScore(shaman,8000,false)
  2292.             changeMap()
  2293.         end
  2294.     end
  2295.     if vivo <= 0 then
  2296.         tfm.exec.setGameTime(5)
  2297.         obterJogadores()
  2298.         changeMap()
  2299.         tfm.exec.chatMessage("<R>"..text.textNothing.."",nil)
  2300.     end
  2301.     if tempo < 500 then
  2302.         tfm.exec.setPlayerScore(players[math.random(#players)],1,true)
  2303.         for name,player in pairs(tfm.get.room.playerList) do
  2304.             if tfm.get.room.playerList[name].isShaman then
  2305.                 ui.addPopup(1,0,""..text.textTime.."",name,350,175,200,true)
  2306.                 ui.addPopup(2,0,""..text.textTime.."",name,350,175,200,true)
  2307.             end
  2308.         end
  2309.         tfm.exec.chatMessage("<R>"..text.textTimeLeave.."",nil)
  2310.         changeMap()
  2311.     end
  2312.     end
  2313.     end
  2314.     if modo == "troca" then
  2315.         obterJogadores()
  2316.         if tempo < 100 then
  2317.             changeMap()
  2318.         end
  2319.     end
  2320.     if vivo == 0 then
  2321.         shaman=""
  2322.     end
  2323. end
  2324. function eventPopupAnswer(id,name,answer)
  2325.     if id == 1 then
  2326.         if tfm.get.room.playerList[name].isShaman then
  2327.             if tfm.get.room.currentMap == "@7417328" then
  2328.                 if string.len(answer) >= 180 then
  2329.                     tfm.exec.chatMessage(""..text.textLongQuestion.."",name)
  2330.                 elseif string.len(answer) <= 5 then
  2331.                     tfm.exec.chatMessage(""..text.textShortQuestion.."",name)
  2332.                 else
  2333.                     pergunta=answer
  2334.                     pcall(ui.addPopup(2,1,""..text.textTrueFalse.."",name,350,175,200,true))
  2335.                 end
  2336.             end
  2337.         end
  2338.     end
  2339.     if id == 2 then
  2340.         resposta=tostring(answer)
  2341.         modo="pergunta"
  2342.         ui.addTextArea(27,"<font size='15'><font face='Segoe UI'><p align='center'><font color='#020202'>"..pergunta.."",nil,32,338,720,50,0,0,1.0,true)
  2343.         tfm.exec.chatMessage("<CH>"..pergunta.."",nil)
  2344.         tfm.exec.chatMessage("<BL>"..answer.."","Forzaldenon#0000")
  2345.         tfm.exec.setGameTime(20)
  2346.         for name,player in pairs(tfm.get.room.playerList) do
  2347.             tfm.exec.movePlayer(name,400,102,false,1,1,false)
  2348.             if tfm.get.room.playerList[name].isShaman then
  2349.                 tfm.exec.movePlayer(name,400,885,false,1,1,false)
  2350.             end
  2351.         end
  2352.     end
  2353. end
  2354. function eventPlayerDied(name)
  2355.     if not tfm.get.room.playerList[name].isShaman then
  2356.         vivo=vivo-1
  2357.     end
  2358.     local i=0
  2359.     local n
  2360.     for pname,player in pairs(tfm.get.room.playerList) do
  2361.         if not player.isDead and not player.isShaman then
  2362.             i=i+1
  2363.             n=pname
  2364.         end
  2365.     end
  2366.     if i==0 then
  2367.         -- não faça nada
  2368.     elseif i==1 then
  2369.         shaman=n;
  2370.     end
  2371. end
  2372. function changeMap()
  2373.     tfm.exec.newGame(mapa)
  2374. end
  2375. changeMap()
  2376. end
  2377.  
  2378. initExplosion = function()
  2379. tfm.exec.disableAutoNewGame(true)
  2380. tfm.exec.disableAutoShaman(true)
  2381. tfm.exec.disableAutoTimeLeft(true)
  2382. tfm.exec.disablePhysicalConsumables(true)
  2383. tfm.exec.disableMinimalistMode(true)
  2384. tfm.exec.disableDebugCommand(true)
  2385. tfm.exec.disableAutoScore(true)
  2386. tfm.exec.setRoomMaxPlayers(40)
  2387. sudden=false
  2388. winner=""
  2389. data={}
  2390. increase=0
  2391. intensity=30
  2392. mices=0
  2393. remain=12
  2394. last_win=""
  2395. times=1;
  2396. enabled=false
  2397. function eventNewPlayer(name)
  2398.     system.bindMouse(name)
  2399.     newData={
  2400.     ["time"]=0;
  2401.     }
  2402.     data[name]=newData;
  2403.     tfm.exec.chatMessage("<VP>Clique com o mouse para gerar uma explosão, mate os outros jogadores e seja o último sobrevivente!<br><br>BETA #explosion module by Jessiewind26#2546",name)
  2404. end
  2405. for name,player in pairs(tfm.get.room.playerList) do
  2406.     eventNewPlayer(name)
  2407. end
  2408. function eventMouse(name,x,y)
  2409.     if not tfm.get.room.playerList[name].isDead == true and enabled then
  2410.         if data[name].time >= 2 then
  2411.             tfm.exec.explosion(x,y,intensity/2,intensity*1.5,false)
  2412.             data[name].time=0;
  2413.             tfm.exec.displayParticle(12,x,y,0,0,0,0,nil)
  2414.         end
  2415.     end
  2416. end
  2417. function eventNewGame()
  2418.     ui.removeTextArea(1,nil)
  2419.     sudden=false
  2420.     tfm.exec.setGameTime(165)
  2421.     winner=""
  2422.     increase=0;
  2423.     remain=12
  2424.     enabled=false
  2425.     intensity=30
  2426.     prox=false;
  2427. end
  2428. function eventLoop(pass,falt)
  2429.     if sudden == true then
  2430.         intensity=intensity+1
  2431.     end
  2432.     if falt < 40000 and sudden == false and falt > 30000 then
  2433.         tfm.exec.chatMessage("<R>Habilitado modo ultra perigoso! kkkkkkkkkkkkkk",nil)
  2434.         ui.addTextArea(1,"",nil,-1000,-1000,3000,3000,0x000001,0x000001,0.9,false)
  2435.         sudden=true;
  2436.     end
  2437.     if falt < 100 then
  2438.         tfm.exec.newGame("#10")
  2439.     end
  2440.     if prox == false then
  2441.     ui.setMapName(""..tfm.get.room.currentMap.."  <BL>|  <N>Click War RTM v0.8.0 Beta  <BL>|  <N>Intensidade: <b>"..intensity.."</b>  <BL>|  <N>Criado por Jessiewind26#2546 <")
  2442.     else
  2443.         ui.setMapName("<b>"..winner.."</b> <N>venceu a partida! Próxima rodada em "..math.ceil(falt/1000).." segundos.                                                                                              ")
  2444.     end
  2445.     remain=remain-0.5
  2446.     if remain <= 5 and remain >= 0.5 then
  2447.         ui.addTextArea(0,"<font size='33'><p align='center'>"..math.ceil(remain).."",nil,370,350,60,45,0x000001,0x000001,0.8,true)
  2448.     end
  2449.     if remain <= 0 then
  2450.         ui.removeTextArea(0,nil)
  2451.         enabled=true;
  2452.     end
  2453.     for name,player in pairs(tfm.get.room.playerList) do
  2454.         data[name].time=data[name].time+1
  2455.     end
  2456.     if enabled == true then
  2457.         increase=increase+0.5
  2458.         if increase >= 4 then
  2459.             if sudden == false then
  2460.                 intensity=intensity+2
  2461.                 increase=0;
  2462.             end
  2463.         end
  2464.     end
  2465. end
  2466. function eventPlayerDied(name)
  2467.     local i=0
  2468.     local n
  2469.     for pname,player in pairs(tfm.get.room.playerList) do
  2470.         if not player.isDead then
  2471.             i=i+1
  2472.             n=pname
  2473.         end
  2474.     end
  2475.     if i==0 then
  2476.         tfm.exec.newGame("#10")
  2477.     elseif i==1 then
  2478.         winner=n;
  2479.         tfm.exec.giveCheese(n)
  2480.         tfm.exec.playerVictory(n)
  2481.         tfm.exec.setGameTime(10)
  2482.         tfm.exec.setPlayerScore(n,1,true)
  2483.         prox=true;
  2484.         if winner == last_win then
  2485.             times=times+1
  2486.             tfm.exec.chatMessage("<J>"..last_win.." venceu <b>"..times.."</b> vezes seguidas!")
  2487.         else
  2488.             if times >= 3 then
  2489.             tfm.exec.chatMessage("<R>O Winning Spree de <J>"..last_win.." foi neutralizado!")
  2490.             times=1
  2491.             last_win=n
  2492.         end
  2493.     end
  2494. end
  2495. end
  2496. tfm.exec.newGame("#10")
  2497. end
  2498.  
  2499. tfm.exec.chatMessage("#anvilwar Universal Mode Loader version 1.13.1<br>by Jessiewind26#2546<br><br>The requested room is loading or updating. Please wait...",nil)
  2500.  
  2501. if string.find(tfm.get.room.name,"pistas") then
  2502.     active = "pistas"
  2503.     resetAll()
  2504.     roomAdmin()
  2505.     initPistas()
  2506. elseif string.find(tfm.get.room.name,"true_false") then
  2507.     active = "true_false"
  2508.     resetAll()
  2509.     roomAdmin()
  2510.     initTrue()
  2511. elseif string.find(tfm.get.room.name,"explosion") then
  2512.     active = "explosion"
  2513.     resetAll()
  2514.     roomAdmin()
  2515.     initExplosion()
  2516. else
  2517.     active = "anvilwar"
  2518.     resetAll()
  2519.     roomAdmin()
  2520.     initAnvilwar()
  2521. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement