Advertisement
JessiewindScripts

Modules juntos 1.26

Dec 1st, 2018
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 147.76 KB | None | 0 0
  1. --[[ Script contendo o module #anvilwar, #mestre, #pistas, #perguntas e #true_false. Compilado às 17h30 (UTC) 01/12/2018. ]]--
  2.  
  3. local modulo = {
  4.     _NOME = "anvilwar",
  5.     _VERSION = "1.26",
  6.     _AUTHOR = "Jessiewind26#2546"
  7. }
  8.  
  9. system.disableChatCommandDisplay("pw")
  10.  
  11. active = ""
  12.  
  13. initAnvilwar = function()
  14. for _,f in next,{"AutoShaman","AutoScore","AutoNewGame","AutoTimeLeft","PhysicalConsumables","DebugCommand","AfkDeath"} do
  15.     tfm.exec["disable"..f](true)
  16. end
  17. tfm.exec.setRoomMaxPlayers(35)
  18. 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,int_azul=2,int_vermelho=2}
  19. play_azul={}
  20. players_table={}
  21. 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}
  22. caps={azul="",vermelho=""}
  23. play_vermelho={}
  24. avs_list={}
  25. mods_list={}
  26. managers_list={"Nasus_assassin#1534","Jarvanfender#0000","Spectra_phantom#6089"}
  27. admins_list={"Jessiewind26#2546","Zed#9431"}
  28. level6_list={"Linkventusx5#0000","Forzaldenon#0000","Skyrectarrow#0000"}
  29. scoreloop=0
  30. sudden_death=false
  31. local temp_name=""
  32. local temp_name2=""
  33. local temp_name3=""
  34. local skips=0
  35. actual_player=""
  36. count_int=20
  37. tempo=0
  38. players=0
  39. time_limit=10
  40. team=1
  41. kills=0
  42. data={}
  43. ratos=0
  44. loop=8
  45. power=5
  46. valendo=false
  47. anvil_launched=false
  48. set=false
  49. object=10
  50. set_name=""
  51. reset=false
  52. intervalo=false
  53. count=0
  54. count_azul=0
  55. count_vermelho=0
  56. for _,f in next,{"help","powerups","set","tc","p","rank","data_score","score","kill","tt","rv","cap","cmd","acmd","ban","unban","skip","rodar","reset"} do
  57.     system.disableChatCommandDisplay(f)
  58. end
  59. anvils={10,1002,1003,1004,1005}
  60. mapas={"@7467262","@7463118","@7436867","@7412348","@7467977","@7470456","@7480017","@7433435","@7483583","@7485139","@7486518","@7486596","@7486946","@7487828","@7488212","@7487008","@7493568","@7375714","@7495501","@7495286","@7495744","@7497388","@7499355","@7501996","@7511352","@7522536","@7522330","@7521998","@7540655","@7532950","@7542639","@7512942","@7114424","@7497464"}
  61. map_names={"The Dual-Sided Fight Area","","Inside the Castle","Hell and Water","A very simple waterfall","","The Frozen Arena","The Golden Flying Arena","The Beach Test Map","Inside the Theasure Cave","A random fall map","","The first #anvilwar map","The Beach Test Map 2","","","The Six Attributes","Inside the Ocean","","","","","","","The Stone Platforms","Inside the Hell","Let's fly!","Inside the Volcano","The Dance of Anvils on Stone","On the Space Tower","On the Edge of Void","","",""}
  62. lang = {}
  63. lang.br = {
  64.     win_vermelho = "<R><b>GG Time Vermelho!</b><br>A próxima partida será iniciada em 15 segundos.",
  65.     win_azul = "<BL><b>GG Time Azul!</b><br>A próxima partida será iniciada em 15 segundos.",
  66.     sudden_death = "<VP><b>Morte Súbita!</b><br>A equipe que conseguir eliminar qualquer um adversário será declarada a vencedora.",
  67.     empate_text = "<J><b>Houve um empate!</b><br>A próxima partida será iniciada em 15 segundos.",
  68.     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.",
  69.     turn = "<VP>É a vez de",
  70.     timeout = "<J>Tempo esgotado! O atirador será alterado.",
  71.     enter_vermelho = "Entrar no time vermelho",
  72.     enter_azul = "Entrar no time azul",
  73.     exit = "Sair do time",
  74.     double = "acionou o powerup Bigorna Dupla!",
  75.     double2 = "<br>Neste powerup, você atira 2 bigornas de uma vez.",
  76.     triple = "acionou o powerup Bigorna Tripla!",
  77.     triple2 = "<br>Neste powerup, você atira 3 bigornas de uma vez.",
  78.     bomba1 = "acionou o powerup Bomba Relógio!",
  79.     bomba2 = "<br>Neste powerup, uma explosão em um lugar aleatório do time adversário ocorrerá.",
  80.     objeto1 = "acionou o powerup Tiro Aleatório!",
  81.     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.",
  82.     exp1 = "acionou o powerup Olha a Explosão!",
  83.     exp2 = "<br>Neste powerup, você pode gerar uma explosão clicando em um local do time inimigo.<br>Você possui 5 segundos para explodir!",
  84.     chuva1 = "acionou o powerup Chuva de Objetos!",
  85.     chuva2 = "<br>Neste powerup, ao atirar uma bigorna, irão aparecer diversos objetos continuamente até a troca de jogador.",
  86.     fly1 = "acionou o powerup Rato Pequeno!",
  87.     fly2 = "<br>Neste powerup, seu rato diminuirá 50% de tamanho. Esta habilidade só pode ser usada uma vez por jogador.",
  88.     inv1 = "acionou o powerup Modo Imortal!",
  89.     inv2 = "<br>Neste powerup, você ficará imortal durante 4 turnos do seu time. Esta habilidade só pode ser utilizada uma vez por partida.",
  90.     inv3 = "Sua habilidade Modo Imortal expirou.",
  91.     invi1 = "acionou o powerup Lançamento Múltiplo!",
  92.     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.",
  93.     bar = "#anvilwar - RTM 8255.080",
  94.     intensity = "Intensidade",
  95.     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.",
  96.     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)",
  97.     teamkill1 = "Oh não! ",
  98.     teamKill2 = "matou um companheiro de equipe",
  99.     ajuda = "Ajuda",
  100.     credits = "Créditos",
  101.     mostrar = "Mostrar",
  102.     seconds = "<ROSE>Faltam 60 segundos!",
  103.     seconds30 = "<ROSE>Faltam 30 segundos!",
  104.     seconds10 = "<ROSE>Faltam 10 segundos!",
  105.     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 = Rato Pequeno<br>F8 = Modo Imortal<br>F9 = Lançamento Múltiplo",
  106.     powerups2 = "6pts<br>12pts<br>5pts<br>6pts<br>12pts<br>15pts<br>15pts<br>20pts<br>10pts",
  107.     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><b",
  108.     powerups4 = "1<br>2<br>2<br>2<br>3<br>4<br>3<br>5<br>4",
  109.     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.",
  110.     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>",
  111.     powerupslist = "Lista de Poderes",
  112.     profile = "Use o comando !p para ver o seu perfil. Use !p [nome] para ver o perfil de outra pessoa.",
  113.     starting = "<VP>A partida está prestes a começar. Preparem-se!",
  114.     suicide = "O seguinte jogador cometeu suicídio: ",
  115.     ban = " foi banido da sala #anvilwar por ",
  116.     unban = " teve seu banimento removido da sala.",
  117.     caps = " foi escolhido para ser o capitão da equipe.",
  118.     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.",
  119.     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. Você também pode usar a tecla END no teclado para pedir até 2 intervalos de 20 segundos cada.",
  120.     score30 = "<R>Você precisa de 30 pontos para usar isto.",
  121.     advanced = "<VP>Você acaba de avançar para o nível ",
  122.     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!",
  123.     revivetext = "<J>O seguinte jogador reviveu: ",
  124.     yturn = "É a vez de: ",
  125.     level_error = "<R>Você não possível nível suficiente para usar isto.",
  126.     funct = "Função não permitida. (Você colocou a #tag no nome?)",
  127.     cmds = "Comandos do Jogo",
  128.     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.",
  129.     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.",
  130.     playingmap = "Rodando mapa",
  131.     created = "criado por",
  132.     red_int_text = "<R>A equipe vermelha pediu tempo.",
  133.     blue_int_text = "<BL>A equipe azul pediu tempo.",
  134. }
  135. lang.en = {
  136.     win_vermelho = "<R><b>The RED team wins!</b><br>The next match will start in 15 seconds.",
  137.     win_azul = "<BL><b>The BLUE team wins!</b><br>The next match will start in 15 seconds.",
  138.     sudden_death = "<VP><b>SUDDEN DEATH!</b><br>The team that kill anyone of other team will won the match.",
  139.     empate_text = "<J><b>There was a draw!</b><br>The next match will start in 15 seconds.",
  140.     instructions = "Use the 1 to 9 keys to change the intensity of anvil and SPACEBAR to throw a anvil.",
  141.     turn = "<VP>It's turn of",
  142.     timeout = "<J>Time is over! The shooter will be changed.",
  143.     enter_vermelho = "Enter on RED team",
  144.     enter_azul = "Enter on BLUE team",
  145.     exit = "Leave this team",
  146.     double = "used the powerup Double Anvil!",
  147.     triple = "used the powerup Triple Anvil!",
  148.     bomba1 = "used the powerup Time Bomb!",
  149.     bomba2 = "<br>On this powerup, a explosion will occur on a random place of enemy area.",
  150.     objeto1 = "used the powerup Random Shoot!",
  151.     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.",
  152.     exp1 = "used the powerup Explosion!",
  153.     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.",
  154.     chuva1 = "used the powerup Anvil Rain!",
  155.     chuva2 = "<br>On this powerup, you will shoot several anvils",
  156.     fly1 = "used the powerup Small Mice!",
  157.     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.",
  158.     inv1 = "used the powerup Immortal Mode!",
  159.     inv2 = "<br>On this powerup, you be immortal during the next 4 turns. This powerup only can be used 1 time per game.",
  160.     inv3 = "Your immortality has ended.",
  161.     invi1 = "used the powerup Multiple Anvil!",
  162.     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.",
  163.     bar = "#anvilwar - RTM 8255.080",
  164.     intensity = "Intensity",
  165.     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.",
  166.     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)",
  167.     teamkill1 = "Oh no! ",
  168.     teamKill2 = "has killed a player of her team",
  169.     ajuda = "Help",
  170.     credits = "Credits",
  171.     mostrar = "Show",
  172.     seconds = "<ROSE>60 seconds remaining!",
  173.     seconds30 = "<ROSE>30 seconds remaining!",
  174.     seconds10 = "<ROSE>10 seconds remaining!",
  175.     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",
  176.     powerups2 = "6pt<br>12pt<br>5pt<br>6pt<br>12pt<br>15pt<br>15pt<br>20pt<br>10pt",
  177.     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>",
  178.     powerups4 = "1<br>2<br>2<br>2<br>3<br>4<br>3<br>5<br>4",
  179.     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.",
  180.     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>",
  181.     powerupslist = "Powerups List",
  182.     profile = "Use the !p command to view your profile and use !p [username] to view the profile of another user.",
  183.     starting = "<VP>The match will start on a few seconds. Get ready!",
  184.     suicide = "The following player committed suicide: ",
  185.     ban = " was banned of room by ",
  186.     unban = " was unbanned of room.",
  187.     caps = " was choosed to be the team capitain.",
  188.     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.",
  189.     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. You also can use the END key on the keyboard to request up to 2 timeouts.",
  190.     score30 = "<R>You need 30 points to use this.",
  191.     advanced = "<VP>You reached the level ",
  192.     tag_text = "<J>Don't forget to insert the #tag on the target nickname, else this command don't will work!",
  193.     revivetext = "<J>The following player has been revived: ",
  194.     yturn = "Actual player: ",
  195.     level_error = "<R>You don't have level to use this. To view your level use the !p command.",
  196.     funct = "Function not allowed",
  197.     cmds = "Game commands",
  198.     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.",
  199.     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.",
  200.     playingmap = "Playing map",
  201.     created = "created by",
  202.     red_int_text = "<R>The red team requested a timeout.",
  203.     blue_int_text = "<BL>The blue team requested a timeout.",
  204. }
  205. lang.ar = {
  206.     win_vermelho = "<R><b>فاز الفريق الأحمر!</b><br>ستبدأ المباراة التالية في غضون 15 ثانية!",
  207. win_azul = "<BL><b>فاز الفريق الأزرق!</b><br>ستبدأ المعركة التالية في غضون 15 ثانية!",
  208. sudden_death = "<VP><b>المعركة النهائية!</b><br>إذا قام أي أحد بقتل عضو في أي فريق أخر، سوف يفوز الفريق الذي قتل!",
  209. empate_text = "<J><b>تعادل!</b><br>ستبدأ المباراة التالية في غضون 15 ثانية!",
  210. instructions = "إستخدم مفاتيح لوحة التحكم من 1 الى 9 للتحكم في سرعة وقوة السندان.",
  211. turn = "<VP>إنه دور",
  212. timeout = "<J>إنتهى الوقت! سيتم تغيير الضارب",
  213. enter_vermelho = "قم بالدخول للفريق الأحمر",
  214. enter_azul = "قم بالدخول للفريق الأزرق",
  215. exit = "قم بالخروج من هذا الفريق",
  216. double = "إستخدم السندان المزدوج!",
  217. triple = "إستخدم السندان الثلاثي، إحترس!",
  218. bomba1 = "إستخدم فرقعة الزمن، إحترس من الإنفجار!",
  219. bomba2 = "<br>في هذه القوة، سوف يحدث إنفجار في بقعة مختلفة في مكان العدو",
  220. objeto1 = "إستخدم الضربة العشوائية! قد يقوم بضرب أي شيئ الأن!",
  221. objeto2 = "<br>في هذه القوة، يمكنك ضرب أداة شامان بدلآ من السندان، إذا قمت بإختيار السندان المزدوج، سيتم ضرب اداتان شامان بدلآ من سندان",
  222. exp1 = "قام بإستخدام قوة الإنفجار!",
  223. exp2 = "<br>بإستخدام هذه القوة، يمكنك إحداث إنفجار في منطقة العدو بإستخدام الفأرة (الماوس)، لديك 5 ثوانٍ فقط للقيام بإنفجار",
  224. chuva1 = "إستخدم قوة مَطر السندان! إحتمي!",
  225. chuva2 = "<br>في هذه القوة، يمكنك ضرب العديد من السندان",
  226. fly1 = "used the powerup Small Mice!",
  227. 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.",
  228. inv1 = "إستخدم قوة عدم الموت",
  229. inv2 = "<br>بإستخدام هذه القوة، لن يمكنك الموت لمدة 4 جولات من الضرب، يمكنك إستخدامها مرة واحدة فقط في الجولة الواحدة",
  230. inv3 = "قوة عدم موتك قد إنتهت، أصبحت قابلآ للموت الأن!.",
  231. invi1 = "إستخدم قوة السندان مضاعف حذارِ!",
  232. invi2 = "<br>في تلك القوة يمكنك إستخدام ثلاث سندان، لا تعمل في حالات السندان المزدوج أو الثلاثي.",
  233. bar = "#anvilwar - RTM 8255.080",
  234. intensity = "قوة الضرب وسرعته",
  235. your_turn = "<J>إنه دورك للضرب! إضغط زر المسافة لإطلاق سندان مع استخدام الزر من 1 الى 9 للتحكم في سرعة السندان لتغيير قوة ضرب السندان، . إستخدم المفتاح إف 1 حتى إف 9 لإطلاق ضربات مختلفة! إكتشف!",
  236. 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)",
  237. teamkill1 = "أوه لا!! ",
  238. teamKill2 = "قام بقتل عضو من فريقه!",
  239. ajuda = "المساعدة",
  240. credits = "Credits",
  241. mostrar = "أظهر",
  242. seconds = "<ROSE>60 ثانية متبقية",
  243. seconds30 = "<ROSE>30 ثانية متبقية!",
  244. seconds10 = "<ROSE>10 ثوانٍ متبقية!",
  245. powerups1 = "F1 = سندان مزدوج<br>F2 =سندان ثلاثي <br>F3 =فرقعة بالفأرة<br>F4 = ضربة أداة شامان عشوائية<br>F5 = تفجير!<br>F6 =مطر السندان!<br>F7 = Small Mice<br>F8 = وضع عديم الموت<br>F9 =سندان مختفي",
  246. powerups2 = "6pt<br>12pt<br>5pt<br>6pt<br>12pt<br>15pt<br>15pt<br>20pt<br>10pt",
  247. 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>",
  248. powerups4 = "1<br>2<br>2<br>2<br>3<br>4<br>3<br>5<br>4",
  249. teamchat = "<J>إستخم الإيعاز !tc [msg] للتكلم مع أعضاء فريقك<br><br>You can see your profile typing !p and the temporary tanking typing !rank.",
  250. 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>",
  251. powerupslist = "Powerups List",
  252. profile = "إستخدم !p لرؤية ملفك وأستخدم !p name لرؤية ملف لاعب أخر ",
  253. starting = "<VP>ستبدأ المباراة غي غضون بضعة ثواني، إستعد!",
  254. suicide = "قام بالإنتحار ",
  255. ban = " تم حظره من الغرفة من قبل ",
  256. unban = " تم فك حظره من الغرفة من قبل",
  257. caps = " تم إختياره ليصبح قائد الفريق. لرؤية المزيد عن هذا أكتب !cap أو استخدم قسم القائد في القائمة, ",
  258. cap = "الكابتن هو قائد الفريق، يتم إختياره عشوائيآ، سوف يحصل على نقاط بنسبة 50% أكثر من اللاعبين، اي جَني النقاط بسرعة!يمكنه تحويل النقاط للاعب أخر عن طريق الإيعاز ويمكنه إحياء لاعب مات من فريقه بإستخدام !rv [name] ولكن يتطلب 30 نقطة لذلك",
  259. cap_text = "<br><VP>أنت قائد الفريق<br><br>سوف تحصل على نقاط زائدة بنسبة 50% ويمكنك نق لنقاطك للاعب أخر بإستخدام !tt name أو إحياء لاعب أخر بإستخدام !rv name يتطلب الإحياء 30 نقطة",
  260. score30 = "<R>تحتاج 30 نقطة للقيام بهذا",
  261. advanced = "<VP>وصلت للستوى ",
  262. tag_text = "<J>لا تنسى بوضع الهاشتاج على الإسم الذي تم إختياره, أو لن يعمل هذا الإيعاز",
  263. revivetext = "<J>هذا اللاعب قام بإستقبال : ",
  264. yturn = "اللاعب الحالي: ",
  265. level_error = "<R>لا تملك المستوى المطلوب لفعل هذا، لترى مستواك إكتب !p",
  266. funct = "الإيعاز غير مسموح",
  267. cmds = "إيعازات اللعبة : ",
  268. 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",
  269. 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>يمكنك إستخدام هذه الإيعازات عندما يكون إسمك باللون :.",
  270. playingmap = "Playing map",
  271. created = "created by",
  272. red_int_text = "<R>The red team requested a timeout.",
  273. blue_int_text = "<BL>The blue team requested a timeout.",
  274. }
  275. lang.es = {
  276.     win_vermelho = "<R><b>¡Ha ganado el equipo ROJO!</b><br>La próxima ronda comenzará en 15 segundos.",
  277. win_azul = "<BL><b>¡Ha ganado el equipo AZUL!</b><br>La próxima ronda comenzará en 15 segundos.",
  278.     sudden_death = "<VP><b>MUERTE SÚBITA!</b><br>El equipo que mate a alguien del otro equipo ganará esta ronda.",
  279.     empate_text = "<J><b>Hubo un empate!</b><br>La próxima ronda comenzará en 15 segundos.",
  280.     instructions = "Usa las teclas 1 al 9 para cambiar la intensidad del yunque y ESPACIO para lanzarlo.",
  281.     turn = "<VP>Es el turno de",
  282.     timeout = "<J>El tiempo ha terminado. El tirador será cambiado.",
  283.     enter_vermelho = "Unirse al equipo ROJO",
  284.     enter_azul = "Unirse al equipo AZUL",
  285.     exit = "Abandonar este equipo",
  286.     double = "usó el powerup Doble Yunque!",
  287.     triple = "usó el powerup Triple Yunque!",
  288.     bomba1 = "usó el powerup Bomba de Tiempo!",
  289.     bomba2 = "<br>Con este powerup se producirá una explosión en un lugar aleatorio del área enemigo.",
  290.     objeto1 = "usó el de powerup Tiro Aleatorio!",
  291.     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.",
  292.     exp1 = "usó el powerup Explosión!",
  293.     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.",
  294.     chuva1 = "usó el powerup Lluvia de Yunques!",
  295.     chuva2 = "<br>Con este powerup lanzarás varios yunques.",
  296.     fly1 = "used the powerup Small Mice!",
  297.     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.",
  298.     inv1 = "usó el powerup Modo Inmortal!",
  299.     inv2 = "<br>Con este powerup serás inmortal durante los próximos 4 turnos. Solo puedes usarlo 1 vez por ronda.",
  300.     inv3 = "Tu inmortalidad ha terminado.",
  301.     invi1 = "usó el powerup Múltiple Yunque!",
  302.     invi2 = "<br>Con este powerup vas a lanzar 3 yunques. Esto no puede ser usado con doble o triple yunque.",
  303.     bar = "#anvilwar - RTM 8255.080",
  304.     intensity = "Intensidad",
  305.     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.",
  306.     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)",
  307.     teamkill1 = "¡Oh no! ",
  308.     teamKill2 = "ha matado a un jugador de su equipo",
  309.     ajuda = "Ayuda",
  310.     credits = "Créditos",
  311.     mostrar = "Mostrar",
  312.     seconds = "<ROSE>¡Quedan 60 segundos!",
  313.     seconds30 = "<ROSE>¡Quedan 30 segundos!",
  314.     seconds10 = "<ROSE>¡Quedan 10 segundos!",
  315.     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",
  316.     powerups2 = "6pt<br>12pt<br>5pt<br>6pt<br>12pt<br>15pt<br>15pt<br>20pt<br>10pt",
  317.     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>",
  318.     powerups4 = "1<br>2<br>2<br>2<br>3<br>4<br>3<br>5<br>4",
  319.     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.",
  320.     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>",
  321.     powerupslist = "Lista de Powerups",
  322.     profile = "Usa el comando !p para ver tu perfil y usa !p [apodo] para ver el de otra persona.",
  323.     starting = "<VP>La ronda comenzará en unos segundos. ¡Prepárate!",
  324.     suicide = "El siguiente jugador cometió suicidio: ",
  325.     ban = " fue baneado de la sala por ",
  326.     unban = " fue desbaneado de la sala.",
  327.     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ú.",
  328.     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.",
  329.     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.",
  330.     score30 = "<R>Necesitas 30 puntos para usar esto.",
  331.     advanced = "<VP>Has alcanzado el nivel ",
  332.     tag_text = "<J>No te olvides de colocar el #tag en el apodo del objetivo, o este comando no funcionará.",
  333.     revivetext = "<J>El siguiente jugador ha sido revivido: ",
  334.     yturn = "Jugador actual: ",
  335.     level_error = "<R>No tienes el nivel para usar esto. Para ver tu nivel usa el comando !p.",
  336.     funct = "Función no permitido",
  337.     cmds = "Comandos del juego",
  338.     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.",
  339.     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.",
  340.     playingmap = "Jugando mapa",
  341.     created = "creado por",
  342.     red_int_text = "<R>The red team requested a timeout.",
  343.     blue_int_text = "<BL>The blue team requested a timeout.",
  344. }
  345. lang.de = {
  346.     win_vermelho = "<R><b>Das ROTE Team gewinnt!</b><br>Das nächste Spiel beginnt in 15 Sekunden.",
  347.     win_azul = "<BL><b>Das BLAUE Team gewinnt!</b><br>Das nächste Spiel beginnt in 15 Sekunden.",
  348.     sudden_death = "<VP><b>PLÖTZLICHER TOD!</b><br>Das Team, das jemanden aus einem anderen Team tötet, gewinnt das Spiel.",
  349.     empate_text = "<J><b>Es gab ein Unentschieden!</b><br>Das nächste Spiel beginnt in 15 Sekunden.",
  350.     instructions = "Verwenden Sie die Tasten 1 bis 9, um die Intensität des Ambosses zu ändern und die Leertaste, um einen Amboss zu werfen.",
  351.     turn = "<VP>Es ist die Wende von",
  352.     timeout = "<J>Die Zeit ist vorbei! Der Schütze wird gewechselt.",
  353.     enter_vermelho = "Betreten Sie das ROTE Team",
  354.     enter_azul = "Betreten Sie das BLAUE Team",
  355.     exit = "Dieses Team verlassen",
  356.     double = "benutzte den Powerup Double Anvil!.",
  357.     triple = "benutzte den Powerup Triple Anvil!",
  358.     bomba1 = "benutzte den Powerup Time Bomb!",
  359.     bomba2 = "<br>Bei diesem Powerup kommt es zu einer Explosion an einem beliebigen Ort im feindlichen Gebiet.",
  360.     objeto1 = "benutzte den Powerup Random Shoot!",
  361.     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.",
  362.     exp1 = "benutzte den Powerup Explosion!",
  363.     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.",
  364.     chuva1 = "benutzte den Powerup Anvil Rain!",
  365.     chuva2 = "<br>Bei diesem Powerup schießt du mehrere Ambosse.",
  366.     fly1 = "used the powerup Small Mice!",
  367.     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.",
  368.     inv1 = "benutzte den Powerup Immortal Mode!",
  369.     inv2 = "<br>Bei diesem Powerup bist du in den nächsten 4 Runden unsterblich. Dieses Powerup kann nur einmal pro Spiel verwendet werden.",
  370.     inv3 = "Deine Unsterblichkeit ist vorbei.",
  371.     invi1 = "benutzte den Powerup Multiple Anvil!",
  372.     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.",
  373.     bar = "#anvilwar - RTM 8255.080",
  374.     intensity = "Intensität",
  375.     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.",
  376.     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)",
  377.     teamkill1 = "Oh nein! ",
  378.     teamKill2 = "hat einen Spieler ihrer Mannschaft getötet.",
  379.     ajuda = "Hilfe",
  380.     credits = "Credits",
  381.     mostrar = "Zeigen",
  382.     seconds = "<ROSE>Noch 60 Sekunden!",
  383.     seconds30 = "<ROSE>Noch 30 Sekunden!",
  384.     seconds10 = "<ROSE>Noch 10 Sekunden!",
  385.     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 Anvilt",
  386.     powerups2 = "6pt<br>12pt<br>5pt<br>6pt<br>12pt<br>15pt<br>15pt<br>20pt<br>10pt",
  387.     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>",
  388.     powerups4 = "1<br>2<br>2<br>2<br>3<br>4<br>3<br>5<br>4<br>3",
  389.     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.",
  390.     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>",
  391.     powerupslist = "Powerups List",
  392.     profile = "Verwenden Sie die !p Befehl, um Ihr Profil anzusehen und zu verwenden !p [username] um das Profil eines anderen Benutzers anzuzeigen.",
  393.     starting = "<VP>Das Spiel beginnt in wenigen Sekunden. Macht euch bereit!",
  394.     suicide = "Der folgende Spieler beging Selbstmord: ",
  395.     ban = " wurde aus dem Zimmer verbannt von ",
  396.     unban = " wurde nicht aus dem Zimmer verbannt.",
  397.     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.",
  398.     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.",
  399.     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.",
  400.     score30 = "<R>Du brauchst 30 Punkte, um das zu benutzen.",
  401.     advanced = "<VP>Du hast das Level erreicht ",
  402.     tag_text = "<J>Vergiss nicht, das #Tag auf dem Ziel-Nicknamen einzufügen, sonst funktioniert dieser Befehl nicht!",
  403.     revivetext = "<J>Der folgende Spieler wurde wiederbelebt: ",
  404.     yturn = "Aktueller Spieler: ",
  405.     level_error = "<R>Du hast kein Level, um das hier zu benutzen. Um dein Level zu sehen, benutze den !p Befehl.",
  406.     funct = "Funktion nicht erlaubt",
  407.     cmds = "Spielbefehle",
  408.     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.",
  409.     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.",
  410.     playingmap = "Wiedergabekarte",
  411.     created = "erstellt von",
  412.     red_int_text = "<R>The red team requested a timeout.",
  413.     blue_int_text = "<BL>The blue team requested a timeout."
  414. }
  415.  
  416. if tfm.get.room.community == "br" then
  417.     text = lang.br
  418. elseif tfm.get.room.community == "ar" then
  419.     text = lang.ar
  420. elseif tfm.get.room.community == "es" then
  421.     text = lang.es
  422. elseif tfm.get.room.community == "de" then
  423.     text = lang.de
  424. else
  425.     text = lang.en
  426. end
  427. function changeMap()
  428.     tfm.exec.newGame(mapas[math.random(#mapas)])
  429. end
  430. function resetPowers()
  431.     ui.removeTextArea(701,nil)
  432.     powerups.double=false
  433.     powerups.objeto=false
  434.     powerups.count=2
  435.     kills=0
  436.     powerups.bomba=false
  437.     powerups.explosion=false
  438.     powerups.chuva=false
  439.     powerups.fly=false
  440.     anvil_launched=false
  441.     powerups.triple=false
  442.     powerups.r_vermelho=false
  443.     powerups.r_azul=false
  444.     powerups.multi_count=2
  445.     powerups.multiple=false
  446.     set=false
  447.     advanceLevel()
  448.     skips=0
  449. end
  450. changeMap()
  451. function split(t,s)
  452.     local a={}
  453.     for i,v in string.gmatch(t,string.format("[^%s]+",s or "%s")) do
  454.         table.insert(a,i)
  455.     end
  456.     return a
  457. end
  458. function eventRanking(name)
  459.     local sc = {}
  460.     for id, name in pairs(players_table) do
  461.         sc[#sc+1] = {n=name,s=data[name].score,f=data[name].kills,l=data[name].nivel}
  462.     end
  463.  
  464.     table.sort(sc,function(a,b) return a.s>b.s end)
  465.  
  466.     str1 = ''
  467.     str2 = ''
  468.     str3 = ''
  469.     str4 = ''
  470.     str5 = ''
  471.     for k,v in pairs(sc) do
  472.         if k < 11 then
  473.             if str ~= '' then
  474.                 str1=str1.."<br><N>"..k.."° | <VP>"..v.n..""
  475.                 str2=str2.."<br><b><N>"..v.s.."</b>"
  476.                 str3=str3.."<br><N>"..v.f..""
  477.                 str5=str5.."<br><N>"..v.l..""
  478.             else
  479.                 str1="<J>"..k.."° | <VP>"..v.n..""
  480.                 str2="<J><b>"..v.s.."</b>"
  481.                 str3="<J>"..v.f..""
  482.                 str5="<J>"..v.l..""
  483.             end
  484.         end
  485.     end
  486.     ui.addTextArea(8000,'<B><J><font size="13"><p align="center">Temporary Ranking',name,100,100,600,30,nil,0x2e424d,nil,true)
  487.     ui.addTextArea(8001,"<B><font size='13'><font face='Consolas'>#   Name                               Score     Kills               Level",name,110,110,580,20,0x0e232b,0x0e232b,nil,true)
  488.     ui.addTextArea(8002,"<B><font size='16'><font face='Consolas'>"..str1,name,110,130,580,220,0x0e232b,0x0e232b,nil,true)
  489.     ui.addTextArea(8003,"<p align='right'><font size='16'><font face='Consolas'>"..str2,name,400,130,60,220,0x0e232b,0x0e232b,nil,true)
  490.     ui.addTextArea(8004,"<p align='right'><font size='16'><font face='Consolas'>"..str3,name,485,130,60,220,0x0e232b,0x0e232b,nil,true)
  491.     ui.addTextArea(8007,"<p align='right'><font size='16'><font face='Consolas'>"..str5,name,635,130,45,220,0x0e232b,0x0e232b,nil,true)
  492.     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)
  493. end
  494. function loadPowerups(name)
  495.     ui.addTextArea(9000,"<B><J><font size='13'><p align='center'>"..text.powerupslist.."",name,100,80,600,30,nil,0x2e424d,nil,true)
  496.     ui.addTextArea(9001,"<font size='14'><font face='Consolas'>Powerup Name                       Score  Funct.   Min Level",name,110,110,580,20,0x0e232b,0x0e232b,nil,true)
  497.     ui.addTextArea(9002,"<font size='14'><font face='Consolas'>"..text.powerups1.."",name,110,135,580,175,0x0e232b,0x0e232b,nil,true)
  498.     ui.addTextArea(9003,"<font size='14'><font face='Consolas'>"..text.powerups2.."",name,420,135,60,175,0x0e232b,0x0e232b,nil,true)
  499.     ui.addTextArea(9004,"<font size='14'><font face='Consolas'>"..text.powerups3.."",name,500,135,60,175,0x0e232b,0x0e232b,nil,true)
  500.     ui.addTextArea(9005,"<font size='14'><font face='Consolas'>"..text.powerups4.."",name,570,135,60,175,0x0e232b,0x0e232b,nil,true)
  501.     ui.addTextArea(9006,"<font size='14'><R><a href='event:closep'>Close</a>",name,300,320,190,20,0x3c5063,0x3c5063,nil,true)
  502. end
  503. function eventChatCommand(name,message)
  504.     local arg = split(message, " ")
  505.     if arg[1] == "p" then
  506.         if arg[2] then
  507.             nome = arg[2]:lower():gsub('%a', string.upper, 1)
  508.         else
  509.             nome = name
  510.         end
  511.  
  512.         if tfm.get.room.playerList[nome] then
  513.             ui.addTextArea(8003,'<B><J><font size="17"><p align="center">'..nome,name,245,95,315,30,nil,0x2e424d,nil,true)
  514.             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.."",name,255,125,290,200,0x0e232b,0x0e232b,nil,true)
  515.             ui.addTextArea(8006,"",name,260,178,((data[nome].exp/data[nome].maxp)*270)+3,6,0xffffff,0x000001,nil,true)
  516.             ui.addTextArea(8005,"<R><p align='center'><B><a href='event:fechar'>Close</a>",name,255,320,290,20,0x3c5063,0x3c5063,nil,true)
  517.         else
  518.             tfm.exec.chatMessage(text.funct,name)
  519.         end
  520.     end
  521.  
  522.     if message == "rank" then
  523.         eventRanking(name)
  524.     end
  525.     if(message:sub(0,4) == "kill") then
  526.         if data[name].level >= 3 or name == "Jessiewind26#2546" or name == "Zed#9431"  then
  527.             tfm.exec.killPlayer(message:sub(6))
  528.         else
  529.             tfm.exec.chatMessage(text.funct,name)
  530.         end
  531.     end
  532.     if(message:sub(0,5) == "rodar") then
  533.         if data[name].level >= 2 or name == "Jessiewind26#2546" or name == "Zed#9431"  then
  534.             tfm.exec.newGame(message:sub(7))
  535.         else
  536.             tfm.exec.chatMessage(text.funct,name)
  537.         end
  538.     end
  539.     if(message:sub(0,3) == "ban") then
  540.         if data[name].level >= 3 or name == "Jessiewind26#2546" or name == "Zed#9431" then
  541.             if data[message:sub(5)] then
  542.                 tfm.exec.killPlayer(message:sub(5))
  543.                 data[message:sub(5)].level=-1
  544.                 tfm.exec.chatMessage(""..message:sub(5)..""..text.ban..""..name..".")
  545.             else
  546.                 tfm.exec.chatMessage(text.funct,name)
  547.             end
  548.         else
  549.             tfm.exec.chatMessage(text.funct,name)
  550.         end
  551.     end
  552.     if(message:sub(0,5) == "unban") then
  553.         if data[name].level >= 3 or name == "Jessiewind26#2546" or name == "Zed#9431" then
  554.             if data[message:sub(7)] then
  555.                 data[message:sub(7)].level=0
  556.                 tfm.exec.chatMessage(""..message:sub(7)..""..text.unban.."")
  557.             else
  558.                 tfm.exec.chatMessage(text.funct,name)
  559.             end
  560.         else
  561.             tfm.exec.chatMessage(text.funct,name)
  562.         end
  563.     end
  564.     if(message:sub(0,2) == "tc") then
  565.         local typer=name
  566.         if data[typer].team == "azul" then
  567.             for name,player in pairs(tfm.get.room.playerList) do
  568.                 if data[name].team == "azul" then
  569.                     tfm.exec.chatMessage("<font color='#0080ff'>• ["..typer.."] "..message:sub(4).."",name)
  570.                 end
  571.             end
  572.         elseif data[typer].team == "vermelho" then
  573.             for name,player in pairs(tfm.get.room.playerList) do
  574.                 if data[name].team == "vermelho" then
  575.                     tfm.exec.chatMessage("<font color='#ff8000'>• ["..typer.."] "..message:sub(4).."",name)
  576.                 end
  577.             end
  578.         else
  579.             tfm.exec.chatMessage(text.funct,name)
  580.         end
  581.     end
  582.     if message == "reset" then
  583.         if data[name].level >= 2 or name == "Jessiewind26#2546" or name == "Zed#9431"  then
  584.             changeMap()
  585.         end
  586.     end
  587.     if message == "skip" then
  588.         if ratos >= 10 then
  589.             local rato=math.ceil(ratos/2.5)
  590.             if data[name].skip == 0 and valendo == false then
  591.                 skips=skips+1
  592.                 tfm.exec.chatMessage("Your skip vote has been added. ("..skips.."/"..rato..") ["..name.."]",name)
  593.                 tfm.exec.chatMessage("Skip votes: ("..skips.."/"..rato..") ["..name.."]","Jessiewind26#2546")
  594.                 data[name].skip=1
  595.                 if skips >= rato then
  596.                     changeMap()
  597.                     tfm.exec.chatMessage("<R>The current map has been skipped.")
  598.                 end
  599.             end
  600.         else
  601.             tfm.exec.chatMessage(text.funct,name)
  602.         end
  603.     end
  604.     if(message:sub(0,2) == "pw") then
  605.         if data[name].level >= 2 or name == "Jessiewind26#2546" or name == "Zed#9431"  then
  606.             if message:sub(4) == "" then
  607.                 tfm.exec.setRoomPassword("")
  608.                 tfm.exec.chatMessage("Password cleared.",name)
  609.             else
  610.                 tfm.exec.setRoomPassword(message:sub(4))
  611.                 tfm.exec.chatMessage("Password: "..message:sub(4).."",name)
  612.             end
  613.         else
  614.             tfm.exec.chatMessage(text.funct,name)
  615.         end
  616.     end
  617.     if(message:sub(0,3) == "set") then
  618.         if data[name].level >= 4 or name == "Jessiewind26#2546" or name == "Zed#9431" then
  619.             if data[message:sub(5)] then
  620.                 set_name=message:sub(5)
  621.                 set=true
  622.             else
  623.                 tfm.exec.chatMessage(text.funct,name)
  624.             end
  625.         else
  626.             tfm.exec.chatMessage(text.funct,name)
  627.         end
  628.     end
  629.     if(message:sub(0,2) == "tt") then
  630.         if name == caps.azul or name == caps.vermelho and valendo == true and reset == false then
  631.             temp_name2=message:sub(4)
  632.             if data[temp_name2] then
  633.                 ui.addPopup(1201,2,"1 = 5pts<br>2 = 10pts<br>3 = 15pts<br>4 = 20pts<br>5 = 25pts",name,350,225,200,true)
  634.                 tfm.exec.chatMessage(text.tag_text,name)
  635.             else
  636.                 tfm.exec.chatMessage(text.funct,name)
  637.             end
  638.         else
  639.             tfm.exec.chatMessage(text.funct,name)
  640.         end
  641.     end
  642.     if(message:sub(0,2) == "rv") then
  643.         if name == caps.azul or name == caps.vermelho and valendo == true and reset == false then
  644.             temp_name3=message:sub(4)
  645.             if data[temp_name3] then
  646.                 ui.addPopup(1204,1,"Revive "..temp_name3.."?",name,350,225,200,true)
  647.                 tfm.exec.chatMessage(text.tag_text,name)
  648.             else
  649.                 tfm.exec.chatMessage(text.funct,name)
  650.             end
  651.         else
  652.             tfm.exec.chatMessage(text.funct,name)
  653.         end
  654.     end
  655.     if(message:sub(0,5) == "score") then
  656.         if data[name].level >= 3 or name == "Jessiewind26#2546" or name == "Zed#9431" then
  657.             temp_name=message:sub(7)
  658.             ui.addPopup(906,2,"Score",name,350,175,200,true)
  659.         else
  660.             tfm.exec.chatMessage(text.funct,name)
  661.         end
  662.     end
  663.     if message == "help" then
  664.         ui.addTextArea(9000,"<B><J><font size='13'><p align='center'>"..text.ajuda.."",name,100,90,600,30,nil,0x2e424d,nil,true)
  665.         ui.addTextArea(9005,"<font size='13'><font face='Consolas'>"..text.help.."",name,150,125,500,205,0x0e232b,0x0e232b,nil,true)
  666.         ui.addTextArea(9006,"<font size='13'><R><a href='event:closep'>Close</a>",name,300,337,190,20,0x3c5063,0x3c5063,nil,true)
  667.     end
  668.     if message == "cmd" then
  669.         ui.addTextArea(9000,"<B><J><font size='13'><p align='center'>"..text.cmds.."",name,100,90,600,30,nil,0x2e424d,nil,true)
  670.         ui.addTextArea(9005,"<font size='13'><font face='Consolas'>"..text.commands.."",name,150,125,500,200,0x0e232b,0x0e232b,nil,true)
  671.         ui.addTextArea(9006,"<font size='13'><R><a href='event:closep'>Close</a>",name,300,334,190,20,0x3c5063,0x3c5063,nil,true)
  672.     end
  673.     if message == "acmd" then
  674.         ui.addTextArea(9000,"<B><J><font size='13'><p align='center'>"..text.cmds.."",name,100,90,600,30,nil,0x2e424d,nil,true)
  675.         ui.addTextArea(9005,"<font size='13'><font face='Consolas'>"..text.admin_commands.."",name,150,125,500,190,0x0e232b,0x0e232b,nil,true)
  676.         ui.addTextArea(9006,"<font size='13'><R><a href='event:closep'>Close</a>",name,300,324,190,20,0x3c5063,0x3c5063,nil,true)
  677.     end
  678.     if message == "cap" then
  679.         ui.addTextArea(9000,"<B><J><font size='13'><p align='center'>"..text.cmds.."",name,100,110,600,30,nil,0x2e424d,nil,true)
  680.         ui.addTextArea(9005,"<font size='13'><font face='Consolas'>"..text.cap.."",name,150,145,500,100,0x0e232b,0x0e232b,nil,true)
  681.         ui.addTextArea(9006,"<font size='13'><R><a href='event:closep'>Close</a>",name,300,254,160,20,0x3c5063,0x3c5063,nil,true)
  682.     end
  683.     if message == "powerups" then
  684.         loadPowerups(name)
  685.     end
  686. end
  687. function eventPopupAnswer(id,name,message)
  688.     if id == 901 then
  689.         data[temp_name].score=tonumber(message)
  690.         return name
  691.     elseif id == 902 then
  692.         data[temp_name].kills=tonumber(message)
  693.         return name
  694.     elseif id == 903 then
  695.         data[temp_name].wins=tonumber(message)
  696.         return name
  697.     elseif id == 904 then
  698.         data[temp_name].matchs=tonumber(message)
  699.         return name
  700.     elseif id == 906 then
  701.         tfm.exec.setPlayerScore(temp_name,tonumber(message),true)
  702.         return name
  703.     elseif id == 1201 then
  704.         if data[temp_name2] then
  705.             if message == "1" then
  706.                 if tfm.get.room.playerList[name].score < 5 then
  707.                     tfm.exec.chatMessage(text.funct,name)
  708.                 else
  709.                     tfm.exec.setPlayerScore(temp_name2,5,true)
  710.                     tfm.exec.setPlayerScore(name,-5,true)
  711.                     return name
  712.                 end
  713.             elseif message == "2" then
  714.                 if tfm.get.room.playerList[name].score < 10 then
  715.                     tfm.exec.chatMessage(text.funct,name)
  716.                 else
  717.                     tfm.exec.setPlayerScore(temp_name2,10,true)
  718.                     tfm.exec.setPlayerScore(name,-10,true)
  719.                     return name
  720.                 end
  721.             elseif message == "3" then
  722.                 if tfm.get.room.playerList[name].score < 15 then
  723.                     tfm.exec.chatMessage(text.funct,name)
  724.                 else
  725.                     tfm.exec.setPlayerScore(temp_name2,15,true)
  726.                     tfm.exec.setPlayerScore(name,-15,true)
  727.                     return name
  728.                 end
  729.             elseif message == "4" then
  730.                 if tfm.get.room.playerList[name].score < 20 then
  731.                     tfm.exec.chatMessage(text.funct,name)
  732.                 else
  733.                     tfm.exec.setPlayerScore(temp_name2,20,true)
  734.                     tfm.exec.setPlayerScore(name,-20,true)
  735.                     return name
  736.                 end
  737.             elseif message == "5" then
  738.                 if tfm.get.room.playerList[name].score < 25 then
  739.                     tfm.exec.chatMessage(text.funct,name)
  740.                 else
  741.                     tfm.exec.setPlayerScore(temp_name2,25,true)
  742.                     tfm.exec.setPlayerScore(name,-25,true)
  743.                     return name
  744.                 end
  745.             else
  746.                 tfm.exec.chatMessage(text.funct,name)
  747.             end
  748.         else
  749.             tfm.exec.chatMessage(text.funct,name)
  750.         end
  751.     elseif id == 1204 then
  752.         if message == "yes" then
  753.             if data[temp_name3] then
  754.                 if tfm.get.room.playerList[name].score >= 30 then
  755.                     tfm.exec.respawnPlayer(temp_name3)
  756.                     if data[temp_name3].team == "azul" and powerups.r_azul == false then
  757.                         powerups.r_azul=true
  758.                         tfm.exec.movePlayer(temp_name3,math.random(850,1200),160,false,0,0,false)
  759.                         data[temp_name3].killed=0
  760.                     elseif data[temp_name3].team == "vermelho" and powerups.r_vermelho == false then
  761.                         powerups.r_vermelho=true
  762.                         tfm.exec.movePlayer(temp_name3,math.random(400,750),160,false,0,0,false)
  763.                         data[temp_name3].killed=0
  764.                     end
  765.                     tfm.exec.setPlayerScore(name,-30,true)
  766.                     tfm.exec.chatMessage(""..text.revivetext..""..temp_name3.."")
  767.                 else
  768.                     tfm.exec.chatMessage(text.score30,name)
  769.                 end
  770.             else
  771.                 tfm.exec.chatMessage(text.funct,name)
  772.             end
  773.         end
  774.     end
  775. end
  776. function showTeams(name)
  777.     if valendo == false then
  778.         if name:sub(1,1) == "*" then
  779.             tfm.exec.killPlayer(name)
  780.             tfm.exec.chatMessage("<R>You must be connected to a Transformice account to play #anvilwar.",name)
  781.         elseif data[name].level <= -1 then
  782.             tfm.exec.killPlayer(name)
  783.             tfm.exec.chatMessage("<R>This account was banned of #anvilwar room.",name)
  784.         else
  785.             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)
  786.             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)
  787.         end
  788.     end
  789. end
  790. function eventLoop(passado,faltando)
  791.     if intervalo == true then
  792.         tfm.exec.setGameTime(15)
  793.         anvil_launched=true
  794.         count_int=count_int-0.5
  795.         if count_int <= 0 then
  796.             intervalo=false
  797.             anvil_launched=false
  798.             count_int=20
  799.         end
  800.     end
  801.     if passado > 1200 and passado < 1700 then
  802.         for i=1,34 do
  803.         if mapas[i] == tfm.get.room.currentMap then
  804.             if not map_names[i] == "" then
  805.                 tfm.exec.chatMessage(""..text.playingmap.." “"..map_names[i].."” <J>"..tfm.get.room.currentMap.."<BL> "..text.created.." <J>"..tfm.get.room.xmlMapInfo.author)
  806.             else
  807.                 tfm.exec.chatMessage(""..text.playingmap.." <J>"..tfm.get.room.currentMap.."<BL> "..text.created.." <J>"..tfm.get.room.xmlMapInfo.author)
  808.             end
  809.         end
  810.         end
  811.     end
  812.     local minutos=math.floor(tempo/60)
  813.     local segundos=math.floor((minutos*60)-tempo) * -1
  814.     if valendo == true and tempo < 60 and tempo > 59 and sudden_death == false then
  815.         tfm.exec.chatMessage(text.seconds,nil)
  816.     end
  817.     if valendo == true and tempo < 30 and tempo > 29 then
  818.         tfm.exec.chatMessage(text.seconds30,nil)
  819.     end
  820.     if valendo == true and tempo < 10 and tempo > 9 then
  821.         tfm.exec.chatMessage(text.seconds10,nil)
  822.     end
  823.     if valendo == true and reset == false and intervalo == false then
  824.         tempo=tempo-0.5
  825.         if tempo < 0 then
  826.             tempo=0
  827.         end
  828.         scoreloop=scoreloop+1
  829.         if scoreloop >= 40 then
  830.             for name,player in pairs(tfm.get.room.playerList) do
  831.                 if data[name].killed == 0 then
  832.                     tfm.exec.setPlayerScore(name,2,true)
  833.                     data[name].score=data[name].score+1
  834.                     data[name].exp=data[name].exp+1
  835.                     if name == caps.vermelho or name == caps.azul then
  836.                         tfm.exec.setPlayerScore(name,2,true)
  837.                         data[name].score=data[name].score+1
  838.                     end
  839.                 end
  840.             end
  841.             scoreloop=0
  842.         end
  843.     end
  844.     if anvil_launched == false and valendo == true and intervalo == false then
  845.         ui.addTextArea(501,"<font size='40'><p align='center'>"..math.ceil(faltando/1000).."",nil,360,65,80,55,0x000001,0x000001,1.0,true)
  846.     else
  847.         ui.removeTextArea(501,nil)
  848.     end
  849.     if valendo == true and reset == false and tempo <= 0 and sudden_death == true then
  850.         if count_vermelho > count_azul then
  851.             tfm.exec.chatMessage(text.win_vermelho)
  852.         elseif count_vermelho < count_azul then
  853.             tfm.exec.chatMessage(text.win_azul)
  854.         else
  855.             tfm.exec.chatMessage(text.empate_text)
  856.         end
  857.         count_azul=0
  858.         count_vermelho=0
  859.         valendo=false
  860.         reset=true
  861.         tfm.exec.setGameTime(15)
  862.     end
  863.     if reset == true then
  864.         if faltando < 1 then
  865.             changeMap()
  866.         end
  867.     end
  868.     if valendo == true and reset == false and anvil_launched == false then
  869.         time_limit=time_limit-0.5
  870.         if time_limit == 0 then
  871.             anvil_launched=true
  872.             time_limit=15
  873.             tfm.exec.chatMessage(text.timeout)
  874.         end
  875.     end
  876.     if valendo == false and reset == false and faltando < 1888 and count_azul > 0 and count_vermelho > 0 then
  877.         for i=11,297 do
  878.             ui.removeTextArea(i,nil)
  879.         end
  880.     end
  881.     if valendo == false and reset == false and faltando <= 1 then
  882.         if count_azul > 0 and count_vermelho > 0 then
  883.             if count == 0 then
  884.                 for name,player in pairs(tfm.get.room.playerList) do
  885.                     tfm.exec.chatMessage(text.starting,name)
  886.                     if data[name].team == "azul" then
  887.                         data[name].matchs=data[name].matchs+1
  888.                         tfm.exec.respawnPlayer(name)
  889.                         tfm.exec.movePlayer(name,1000,160,false,0,0,false)
  890.                         table.insert(play_azul,name)
  891.                         tfm.exec.setPlayerScore(name,0,false)
  892.                     elseif data[name].team == "vermelho" then
  893.                         data[name].matchs=data[name].matchs+1
  894.                         tfm.exec.respawnPlayer(name)
  895.                         tfm.exec.movePlayer(name,600,160,false,0,0,false)
  896.                         table.insert(play_vermelho,name)
  897.                         tfm.exec.setPlayerScore(name,0,false)
  898.                     else
  899.                         tfm.exec.movePlayer(name,800,-2000,false,0,0,false)
  900.                         tfm.exec.setPlayerScore(name,-1,false)
  901.                         kills=0
  902.                     end
  903.                 end
  904.             end
  905.             kills=0
  906.             count=count+0.5
  907.             if count >= 10 then
  908.                 caps.azul=play_azul[math.random(#play_azul)]
  909.                 caps.vermelho=play_vermelho[math.random(#play_vermelho)]
  910.                 for name,player in pairs(tfm.get.room.playerList) do
  911.                     if data[name].team == "azul" then
  912.                         tfm.exec.chatMessage(""..caps.azul..""..text.caps.."",name)
  913.                     elseif data[name].team == "vermelho" then
  914.                         tfm.exec.chatMessage(""..caps.vermelho..""..text.caps.."",name)
  915.                     end
  916.                     if name == caps.azul or name == caps.vermelho then
  917.                         tfm.exec.chatMessage(text.cap_text,name)
  918.                         tfm.exec.setNameColor(name,0x8000ff)
  919.                     end
  920.                 end
  921.                 valendo=true
  922.                 players=count_azul+count_vermelho
  923.                 tempo=120+(players*6)
  924.                 for i=11,297 do
  925.                     ui.removeTextArea(i,nil)
  926.                 end
  927.                 if team == 2 then
  928.                     team=1
  929.                     if set == false then
  930.                         actual_player=play_vermelho[math.random(#play_vermelho)]
  931.                     else
  932.                         actual_player=set_name
  933.                     end
  934.                 else
  935.                     team=2
  936.                     if set == false then
  937.                         actual_player=play_azul[math.random(#play_azul)]
  938.                     else
  939.                         actual_player=set_name
  940.                     end
  941.                 end
  942.                 loop=10
  943.                 anvil_launched=false
  944.                 tfm.exec.setGameTime(15)
  945.                 time_limit=15
  946.                 if valendo == true and reset == false then
  947.                     tfm.exec.chatMessage(text.your_turn,actual_player)
  948.                 end
  949.             end
  950.         else
  951.             tfm.exec.setGameTime(15)
  952.         end
  953.     end
  954.     if valendo == true and anvil_launched == true and intervalo == false then
  955.         loop=loop-1
  956.         if loop == 0 then
  957.             if kills >= 3 then
  958.                 data[actual_player].mks=data[actual_player].mks+1
  959.             end
  960.             if tfm.get.room.community == "br" then
  961.                 if kills == 2 then
  962.                     tfm.exec.chatMessage("<ROSE>Double Kill de "..actual_player.."!")
  963.                 elseif kills >= 3 then
  964.                     tfm.exec.chatMessage("<ROSE>Multi Kill: "..kills.." kills de "..actual_player.."!")
  965.                 end
  966.             else
  967.                 if kills == 2 then
  968.                     tfm.exec.chatMessage("<ROSE>Double Kill of "..actual_player.."!")
  969.                 elseif kills >= 3 then
  970.                     tfm.exec.chatMessage("<ROSE>Multi Kill: "..kills.." kills of "..actual_player.."!")
  971.                 end
  972.             end
  973.             kills=0
  974.             play_azul={}
  975.             play_vermelho={}
  976.             count_azul=0
  977.             count_vermelho=0
  978.             for name,player in pairs(tfm.get.room.playerList) do
  979.                 if data[name].team == "azul" then
  980.                     if data[name].killed == 0 then
  981.                         table.insert(play_azul,name)
  982.                         count_azul=count_azul+1
  983.                     end
  984.                 end
  985.                 if data[name].team == "vermelho" then
  986.                     if data[name].killed == 0 then
  987.                         table.insert(play_vermelho,name)
  988.                         count_vermelho=count_vermelho+1
  989.                     end
  990.                 end
  991.                 if data[name].immortal == true then
  992.                     data[name].imatchs=data[name].imatchs+1
  993.                     if data[name].imatchs >= 9 then
  994.                         data[name].immortal=false
  995.                         tfm.exec.chatMessage(text.inv3,name)
  996.                         tfm.exec.setNameColor(name,0xd7d7e6)
  997.                     end
  998.                 end
  999.             end
  1000.             if team == 2 then
  1001.                 team=1
  1002.                 if set == false then
  1003.                     actual_player=play_vermelho[math.random(#play_vermelho)]
  1004.                 else
  1005.                     actual_player=set_name
  1006.                 end
  1007.             else
  1008.                 team=2
  1009.                 if set == false then
  1010.                     actual_player=play_azul[math.random(#play_azul)]
  1011.                 else
  1012.                     actual_player=set_name
  1013.                 end
  1014.             end
  1015.             loop=8
  1016.             resetPowers()
  1017.             if valendo == true and reset == false then
  1018.                 if count_azul == 0 and count_vermelho == 0 then
  1019.                     tfm.exec.chatMessage(text.empate_text)
  1020.                     valendo=false
  1021.                     reset=true
  1022.                     tfm.exec.setGameTime(15)
  1023.                 elseif count_azul == 0 then
  1024.                     winRed()
  1025.                     tfm.exec.chatMessage(text.win_vermelho)
  1026.                     valendo=false
  1027.                     reset=true
  1028.                     tfm.exec.setGameTime(15)
  1029.                 elseif count_vermelho == 0 then
  1030.                     winAzul()
  1031.                     tfm.exec.chatMessage(text.win_azul)
  1032.                     valendo=false
  1033.                     reset=true
  1034.                     tfm.exec.setGameTime(15)
  1035.                 end
  1036.             end
  1037.             tfm.exec.setGameTime(15)
  1038.             time_limit=15
  1039.             if valendo == true and reset == false then
  1040.                 tfm.exec.chatMessage(text.your_turn,actual_player)
  1041.             end
  1042.         end
  1043.     end
  1044.     if valendo == true and reset == false and tempo <= 0 and sudden_death == false and anvil_launched == false then
  1045.         if count_vermelho > count_azul then
  1046.             tfm.exec.chatMessage(text.win_vermelho)
  1047.             winRed()
  1048.             valendo=false
  1049.             reset=true
  1050.             tfm.exec.setGameTime(15)
  1051.             count_azul=0
  1052.             count_vermelho=0
  1053.         elseif count_vermelho < count_azul then
  1054.             tfm.exec.chatMessage(text.win_azul)
  1055.             winAzul()
  1056.             valendo=false
  1057.             reset=true
  1058.             tfm.exec.setGameTime(15)
  1059.             count_azul=0
  1060.             count_vermelho=0
  1061.         elseif count_vermelho == count_azul and count_vermelho >= 2 and count_azul >= 2 then
  1062.             tfm.exec.setGameTime(90)
  1063.             tempo=90
  1064.             tfm.exec.chatMessage(text.sudden_death)
  1065.             sudden_death=true
  1066.         elseif count_vermelho == count_azul and count_vermelho <= 1 and count_azul <= 1 then
  1067.             valendo=false
  1068.             reset=true
  1069.             tfm.exec.setGameTime(15)
  1070.             count_azul=0
  1071.             count_vermelho=0
  1072.             tfm.exec.chatMessage(text.empate_text)
  1073.         end
  1074.     end
  1075.     if powerups.bomba == true then
  1076.         powerups.count=powerups.count+1
  1077.         if powerups.count == 3 then
  1078.             local x_position=0
  1079.             if data[actual_player].team == "azul" then
  1080.                 x_position=math.random(100,750)
  1081.                 tfm.exec.explosion(x_position,200,30,120,true)
  1082.                 tfm.exec.displayParticle(12,x_position,200,0,0,0,0,nil)
  1083.             elseif data[actual_player].team == "vermelho" then
  1084.                 x_position=math.random(850,1500)
  1085.                 tfm.exec.explosion(x_position,200,30,120,true)
  1086.                 tfm.exec.displayParticle(12,x_position,200,0,0,0,0,nil)
  1087.             end
  1088.             powerups.count=2
  1089.             powerups.bomba=false
  1090.         end
  1091.     end
  1092.     if powerups.chuva == true and anvil_launched == true then
  1093.         if data[actual_player].team == "azul" 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)*-1,-8)
  1095.         elseif data[actual_player].team == "vermelho" then
  1096.             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)
  1097.         end
  1098.     end
  1099.     if valendo == true and reset == false and faltando > 10000 then
  1100.         if data[actual_player].team == "azul" then
  1101.             ui.addTextArea(2204,"<p align='center'><font size='14'>"..text.yturn.."<b><font color='#0197f3'>"..actual_player.."",nil,200,332,400,27,0x000001,0x000001,1.0,true)
  1102.         else
  1103.             ui.addTextArea(2204,"<p align='center'><font size='14'>"..text.yturn.."<b><font color='#f32202'>"..actual_player.."",nil,200,332,400,27,0x000001,0x000001,1.0,true)
  1104.         end
  1105.     else
  1106.         ui.removeTextArea(2204,nil)
  1107.     end
  1108.     if valendo == true and reset == false then
  1109.         if powerups.int_vermelho >= 1 then
  1110.             ui.addTextArea(6001,"",nil,20,24,32,8,0xff0000,0x000001,1.0,true)
  1111.         else
  1112.             ui.addTextArea(6001,"",nil,20,24,32,8,0x000001,0x000001,1.0,true)
  1113.         end
  1114.         if powerups.int_vermelho >= 2 then
  1115.             ui.addTextArea(6002,"",nil,70,24,32,8,0xff0000,0x000001,1.0,true)
  1116.         else
  1117.             ui.addTextArea(6002,"",nil,70,24,32,8,0x000001,0x000001,1.0,true)
  1118.         end
  1119.         if powerups.int_azul >= 1 then
  1120.             ui.addTextArea(6003,"",nil,748,24,32,8,0xff,0x000001,1.0,true)
  1121.         else
  1122.             ui.addTextArea(6003,"",nil,748,24,32,8,0x000001,0x000001,1.0,true)
  1123.         end
  1124.         if powerups.int_azul >= 2 then
  1125.             ui.addTextArea(6004,"",nil,698,24,32,8,0xff,0x000001,1.0,true)
  1126.         else
  1127.             ui.addTextArea(6004,"",nil,698,24,32,8,0x000001,0x000001,1.0,true)
  1128.         end
  1129.         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)
  1130.         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)
  1131.         if sudden_death == false then
  1132.             if segundos < 10 and tempo > 29.5 then
  1133.                 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)
  1134.             elseif segundos >= 10 and tempo > 29.5 then
  1135.                 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)
  1136.             elseif segundos < 10 and tempo <= 29.5 then
  1137.                 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)
  1138.             elseif segundos >= 10 and tempo <= 29.5 then
  1139.                 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)
  1140.             end
  1141.         else
  1142.             if segundos < 10 then
  1143.                 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)
  1144.             elseif segundos >= 10 then
  1145.                 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)
  1146.             end
  1147.         end
  1148.     else
  1149.         ui.removeTextArea(14,nil)
  1150.         ui.removeTextArea(2201,nil)
  1151.         ui.removeTextArea(2202,nil)
  1152.     end
  1153. end
  1154. function eventPlayerDied(name)
  1155.     if count < 10 then
  1156.         if data[name].team == "azul" then
  1157.             tfm.exec.respawnPlayer(name)
  1158.             tfm.exec.movePlayer(name,900,180,false,0,0,false)
  1159.         elseif data[name].team == "vermelho" then
  1160.             tfm.exec.respawnPlayer(name)
  1161.             tfm.exec.movePlayer(name,700,180,false,0,0,false)
  1162.         end
  1163.     end
  1164.     if data[name].immortal == false then
  1165.         if valendo == true and reset == false then
  1166.             tfm.exec.setPlayerScore(name,-1,false)
  1167.             tfm.exec.setPlayerScore(actual_player,2+kills,true)
  1168.             if actual_player == caps.vermelho or name == actual_player then
  1169.                 tfm.exec.setPlayerScore(actual_player,1,true)
  1170.                 data[actual_player].score=data[actual_player].score+1
  1171.                 data[actual_player].exp=data[actual_player].exp+1
  1172.             end
  1173.             data[actual_player].kills=data[actual_player].kills+1
  1174.             data[actual_player].score=data[actual_player].score+5
  1175.             loop=loop+1
  1176.             data[name].killed=1
  1177.             kills=kills+1
  1178.             data[actual_player].exp=data[actual_player].exp+4*kills
  1179.             if kills > data[actual_player].max then
  1180.                 data[actual_player].max=kills
  1181.                 data[actual_player].exp=data[actual_player].exp+6*kills
  1182.             end
  1183.             if data[name].team == data[actual_player].team and anvil_launched == true then
  1184.                 tfm.exec.chatMessage("<J>"..text.teamkill1..""..actual_player.." "..text.teamKill2..": <b>"..name.."</b>.")
  1185.                 tfm.exec.setPlayerScore(actual_player,-2,true)
  1186.                 kills=kills-1
  1187.                 data[actual_player].kills=data[actual_player].kills-1
  1188.                 data[actual_player].score=data[actual_player].score-10
  1189.                 data[actual_player].exp=data[actual_player].exp-7
  1190.             end
  1191.         end
  1192.         if name == actual_player and valendo == true and reset == false then
  1193.             tfm.exec.chatMessage(""..text.suicide..""..actual_player.."")
  1194.             tfm.exec.setPlayerScore(actual_player,-1,false)
  1195.             data[actual_player].score=data[actual_player].score-5
  1196.             data[actual_player].exp=data[actual_player].exp-4
  1197.         end
  1198.     else
  1199.         tfm.exec.respawnPlayer(name)
  1200.         tfm.exec.setNameColor(name,0x00ff00)
  1201.         if data[name].team == "azul" then
  1202.             tfm.exec.movePlayer(name,1000,160,false,0,0,false)
  1203.         elseif data[name].team == "vermelho" then
  1204.             tfm.exec.movePlayer(name,600,160,false,0,0,false)
  1205.         end
  1206.     end
  1207.     if sudden_death == true then
  1208.         if data[name].team == "azul" and data[name].immortal == false then
  1209.             winRed()
  1210.             tfm.exec.chatMessage(text.win_vermelho)
  1211.             count_azul=0
  1212.         elseif data[name].team == "vermelho" and data[name].immortal == false then
  1213.             winAzul()
  1214.             tfm.exec.chatMessage(text.win_azul)
  1215.             count_vermelho=0
  1216.         end
  1217.         valendo=false
  1218.         reset=true
  1219.         tfm.exec.setGameTime(15)
  1220.         sudden_death=false
  1221.     end
  1222.     if actual_player == name then
  1223.         anvil_launched=true
  1224.         actual_palayer=""
  1225.     end
  1226. end
  1227. function eventPlayerLeft(name)
  1228.     ratos=ratos-1
  1229.     data[name].killed=-1
  1230.     data[name].team=""
  1231. end
  1232. function showBar()
  1233.     for i=1,34 do
  1234.         if mapas[i] == tfm.get.room.currentMap then
  1235.             if map_names[i] == "" then
  1236.                 ui.setMapName(""..mapas[i].." - "..tfm.get.room.xmlMapInfo.author.." - "..text.bar.."<")
  1237.             else
  1238.                 ui.setMapName("“"..map_names[i].."” "..mapas[i].." - "..tfm.get.room.xmlMapInfo.author.." - "..text.bar.."<")
  1239.             end
  1240.         end
  1241.     end
  1242. end
  1243. function eventNewPlayer(name)
  1244.     showBar()
  1245.     ratos=ratos+1
  1246.     if not data[name] then
  1247.         table.insert(players_table,name)
  1248.         data[name]={wins=0,matchs=0,kills=0,max=0,score=0,mks=0,killed=-1,team="",immortal=false,imatchs=0,immortal2=false,level=0,nivel=1,exp=0,maxp=50}
  1249.     end
  1250.     showTeams(name)
  1251.     for name,player in pairs(tfm.get.room.playerList) do
  1252.         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)
  1253.         for i=32,123 do
  1254.             tfm.exec.bindKeyboard(name,i,true,true)
  1255.             system.bindMouse(name,true)
  1256.         end
  1257.     end
  1258.     if name:sub(1,1) == "*" then
  1259.         data[name].level=-1
  1260.     end
  1261. end
  1262. for name,player in pairs(tfm.get.room.playerList) do
  1263.     eventNewPlayer(name)
  1264.     tfm.exec.setPlayerScore(name,0,false)
  1265. end
  1266. function eventKeyboard(name,key,down,x,y)
  1267.     if anvil_launched == false then
  1268.         if actual_player == name then
  1269.             if key == 32 then
  1270.                 if valendo == true then
  1271.                     powerups.fly=false
  1272.                     set=false
  1273.                     set_name=""
  1274.                     ui.removeTextArea(4003,nil)
  1275.                     if powerups.objeto == true then
  1276.                         if data[name].team == "azul" then
  1277.                             tfm.exec.addShamanObject(objetos[math.random(#objetos)],x,y-60,0,(4+power*2)*-1,-8)
  1278.                         elseif data[name].team == "vermelho" then
  1279.                             tfm.exec.addShamanObject(objetos[math.random(#objetos)],x,y-60,0,4+power*2,-8)
  1280.                         end
  1281.                     if powerups.double == true and powerups.objeto == true then
  1282.                         if data[name].team == "azul" then
  1283.                             tfm.exec.addShamanObject(objetos[math.random(#objetos)],x+40,y-60,0,(4+power*2)*-1,-8)
  1284.                         elseif data[name].team == "vermelho" then
  1285.                             tfm.exec.addShamanObject(objetos[math.random(#objetos)],x-40,y-60,0,4+power*2,-8)
  1286.                         end
  1287.                     end
  1288.                     if powerups.triple == true and powerups.objeto == true then
  1289.                         if data[name].team == "azul" then
  1290.                             tfm.exec.addShamanObject(objetos[math.random(#objetos)],x+80,y-60,0,(4+power*2)*-1,-8)
  1291.                         elseif data[name].team == "vermelho" then
  1292.                             tfm.exec.addShamanObject(objetos[math.random(#objetos)],x-80,y-60,0,4+power*2,-8)
  1293.                         end
  1294.                     end
  1295.                     anvil_launched=true
  1296.                     else
  1297.                     if powerups.selective == false then
  1298.                         if data[name].team == "azul" then
  1299.                             tfm.exec.addShamanObject(anvils[math.random(#anvils)],x,y-60,0,(4+power*2)*-1,-8)
  1300.                         elseif data[name].team == "vermelho" then
  1301.                             tfm.exec.addShamanObject(anvils[math.random(#anvils)],x,y-60,0,4+power*2,-8)
  1302.                         end
  1303.                         if powerups.double == true then
  1304.                             if data[name].team == "azul" then
  1305.                                 tfm.exec.addShamanObject(anvils[math.random(#anvils)],x+40,y-60,0,(4+power*2)*-1,-8)
  1306.                             elseif data[name].team == "vermelho" then
  1307.                                 tfm.exec.addShamanObject(anvils[math.random(#anvils)],x-40,y-60,0,4+power*2,-8)
  1308.                             end
  1309.                         end
  1310.                         if powerups.triple == true then
  1311.                             if data[name].team == "azul" then
  1312.                                 tfm.exec.addShamanObject(anvils[math.random(#anvils)],x+80,y-60,0,(4+power*2)*-1,-8)
  1313.                             elseif data[name].team == "vermelho" then
  1314.                                 tfm.exec.addShamanObject(anvils[math.random(#anvils)],x-80,y-60,0,4+power*2,-8)
  1315.                             end
  1316.                         end
  1317.                         powerups.multi_count=powerups.multi_count+1
  1318.                         if powerups.multi_count >= 3 then
  1319.                             anvil_launched=true
  1320.                         end
  1321.                     end
  1322.                     end
  1323.                 end
  1324.             end
  1325.             if key >= 49 and key <= 57 then
  1326.                 power=key-48
  1327.                 ui.addTextArea(4003,"<font size='13'><p align='center'>"..text.intensity..": "..power.."",name,320,376,160,24,0x000001,0x000001,1.0,true)
  1328.             end
  1329.             if key == 48 then
  1330.                 power=10
  1331.                 ui.addTextArea(4003,"<font size='13'><p align='center'>"..text.intensity..": "..power.."",name,320,376,160,24,0x000001,0x000001,1.0,true)
  1332.             end
  1333.             if key == 35 and anvil_launched == false then
  1334.                 if name == caps.azul or name == caps.vermelho then
  1335.                     if name == caps.azul then
  1336.                         if powerups.int_azul > 0 then
  1337.                             tfm.exec.chatMessage(blue_int_text)
  1338.                             intervalo=true
  1339.                             powerups.int_azul=powerups.int_azul-1          
  1340.                         else
  1341.                             tfm.exec.chatMessage(text.funct,name)
  1342.                         end
  1343.                     end
  1344.                     if name == caps.vermelho then
  1345.                         if powerups.int_vermelho > 0 then
  1346.                             tfm.exec.chatMessage(red_int_text)
  1347.                             intervalo=true
  1348.                             powerups.int_vermelho=powerups.int_vermelho-1                  
  1349.                         else
  1350.                             tfm.exec.chatMessage(text.funct,name)
  1351.                         end
  1352.                     end
  1353.                 else
  1354.                     tfm.exec.chatMessage(text.funct,name)
  1355.                 end
  1356.             end
  1357.             if valendo == true and reset == false then
  1358.             if key == 112 then
  1359.                 if tfm.get.room.playerList[name].score >= 6 and powerups.double == false and powerups.triple == false then
  1360.                     if data[name].nivel >= 1 then
  1361.                         powerups.double=true
  1362.                         tfm.exec.setPlayerScore(name,-6,true)
  1363.                         tfm.exec.chatMessage("<VP>"..actual_player.." "..text.double.."")
  1364.                     else
  1365.                         tfm.exec.chatMessage(text.level_error,name)
  1366.                     end
  1367.                 end
  1368.             end
  1369.             if key == 113 then
  1370.                 if tfm.get.room.playerList[name].score >= 12 and powerups.double == false and powerups.triple == false then
  1371.                     if data[name].nivel >= 2 then
  1372.                         powerups.double=true
  1373.                         powerups.triple=true
  1374.                         tfm.exec.setPlayerScore(name,-12,true)
  1375.                         tfm.exec.chatMessage("<VP>"..actual_player.." "..text.triple.."")
  1376.                     else
  1377.                         tfm.exec.chatMessage(text.level_error,name)
  1378.                     end
  1379.                 end
  1380.             end
  1381.             if key == 114 then
  1382.                 if tfm.get.room.playerList[name].score >= 5 and powerups.bomba == false and powerups.double == false and powerups.objeto == false then
  1383.                     if data[name].nivel >= 2 then
  1384.                         powerups.bomba=true
  1385.                         tfm.exec.setPlayerScore(name,-5,true)
  1386.                         tfm.exec.chatMessage("<VP>"..actual_player.." "..text.bomba1.."")
  1387.                         tfm.exec.chatMessage(text.bomba2,name)
  1388.                         anvil_launched=true
  1389.                         loop=12
  1390.                     else
  1391.                         tfm.exec.chatMessage(text.level_error,name)
  1392.                     end
  1393.                 end
  1394.             end
  1395.             if key == 115 then
  1396.                 if tfm.get.room.playerList[name].score >= 6 and powerups.objeto == false then
  1397.                     if data[name].nivel >= 2 then
  1398.                         powerups.objeto=true
  1399.                         tfm.exec.setPlayerScore(name,-6,true)
  1400.                         tfm.exec.chatMessage("<VP>"..actual_player.." "..text.objeto1.."")
  1401.                         tfm.exec.chatMessage(text.objeto2,name)
  1402.                     else
  1403.                         tfm.exec.chatMessage(text.level_error,name)
  1404.                     end
  1405.                 end
  1406.             end
  1407.             if key == 116 then
  1408.                 if tfm.get.room.playerList[name].score >= 12 and powerups.explosion == false and powerups.bomba == false and powerups.double == false and powerups.objeto == false then
  1409.                     if data[name].nivel >= 3 then
  1410.                         powerups.explosion=true
  1411.                         tfm.exec.setPlayerScore(name,-12,true)
  1412.                         tfm.exec.chatMessage("<VP>"..actual_player.." "..text.exp1.."")
  1413.                         tfm.exec.chatMessage(text.exp2,name)
  1414.                         anvil_launched=true
  1415.                         loop=12
  1416.                     else
  1417.                         tfm.exec.chatMessage(text.level_error,name)
  1418.                     end
  1419.                 end
  1420.             end
  1421.             if key == 117 then
  1422.                 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
  1423.                     if data[name].nivel >= 4 then
  1424.                         powerups.chuva=true
  1425.                         tfm.exec.setPlayerScore(name,-15,true)
  1426.                         tfm.exec.chatMessage("<VP>"..actual_player.." "..text.chuva1.."")
  1427.                         tfm.exec.chatMessage(text.chuva2,name)
  1428.                     else
  1429.                         tfm.exec.chatMessage(text.level_error,name)
  1430.                     end
  1431.                 end
  1432.             end
  1433.             if key == 118 then
  1434.                 if tfm.get.room.playerList[name].score >= 15 then
  1435.                     if data[name].nivel >= 3 then
  1436.                         tfm.exec.setPlayerScore(name,-15,true)
  1437.                         tfm.exec.chatMessage("<VP>"..actual_player.." "..text.fly1.."")
  1438.                         tfm.exec.chatMessage(text.fly2,name)
  1439.                         tfm.exec.changePlayerSize(actual_player,0.5)
  1440.                     else
  1441.                         tfm.exec.chatMessage(text.level_error,name)
  1442.                     end
  1443.                 end
  1444.             end
  1445.             if key == 119 then
  1446.                 if tfm.get.room.playerList[name].score >= 20 and data[name].immortal2 == false then
  1447.                     if data[name].nivel >= 5 then
  1448.                         data[name].immortal=true
  1449.                         data[name].immortal2=true
  1450.                         tfm.exec.setNameColor(name, 0x00ff00)
  1451.                         tfm.exec.setPlayerScore(name,-20,true)
  1452.                         tfm.exec.chatMessage("<VP>"..actual_player.." "..text.inv1.."")
  1453.                         tfm.exec.chatMessage(text.inv2,name)
  1454.                     else
  1455.                         tfm.exec.chatMessage(text.level_error,name)
  1456.                     end
  1457.                 end
  1458.             end
  1459.             if key == 120 then
  1460.                 if tfm.get.room.playerList[name].score >= 10 and powerups.double == false and powerups.triple == false and powerups.objeto == false then
  1461.                     if data[name].nivel >= 4 then
  1462.                         powerups.multiple=true
  1463.                         powerups.multi_count=0
  1464.                         tfm.exec.setPlayerScore(name,-10,true)
  1465.                         tfm.exec.chatMessage("<VP>"..actual_player.." "..text.invi1.."")
  1466.                         tfm.exec.chatMessage(text.invi2,name)
  1467.                     else
  1468.                         tfm.exec.chatMessage(text.level_error,name)
  1469.                     end
  1470.                 end
  1471.             end
  1472.             end
  1473.         end
  1474.     end
  1475. end
  1476. function eventMouse(name,x,y)
  1477.     if powerups.explosion == true and actual_player == name then
  1478.         tfm.exec.explosion(x,y,30,120,true)
  1479.         tfm.exec.displayParticle(12,x,y,0,0,0,0,nil)
  1480.         powerups.explosion=false
  1481.     end
  1482.     if powerups.fly == true and actual_player == name and anvil_launched == false then
  1483.         if data[name].team == "vermelho" then
  1484.             if x < 790 and x > 200 then
  1485.                 tfm.exec.movePlayer(name,x,190,false,0,0,false)
  1486.             end
  1487.         end
  1488.         if data[name].team == "azul" then
  1489.             if x > 810 and x < 1400 then
  1490.                 tfm.exec.movePlayer(name,x,190,false,0,0,false)
  1491.             end
  1492.         end
  1493.     end
  1494. end
  1495. function eventNewGame()
  1496.     advanceLevel()
  1497.     ui.removeTextArea(501,nil)
  1498.     for i=11,297 do
  1499.         ui.removeTextArea(i,nil)
  1500.     end
  1501.     sudden_death=false
  1502.     if tfm.get.room.community == "br" then
  1503.         tfm.exec.chatMessage("<J>Confiram os sub-modos disponíveis da sala #anvilwar:<br><br>/sala #anvilwar0true_false = Verdadeiro ou Falso<br>/sala #anvilwar0mestre = Mestre Mandou<br>/sala #anvilwar0pistas = Jogo das 3 Pistas<br>/sala #anvilwar0perguntas = Corrida das Perguntas<br><br>Estamos recebendo os mapas de vocês!<br><VP>https://atelier801.com/topic?f=816221&t=924786<br>")
  1504.     end
  1505.     for i=6001,6004 do
  1506.         ui.removeTextArea(i,nil)
  1507.     end
  1508.     time_limit=15
  1509.     reset=false
  1510.     count_azul=0
  1511.     count_vermelho=0
  1512.     tempo=0
  1513.     power=5
  1514.     count=0
  1515.     powerups.int_azul=2
  1516.     powerups.int_vermelho=2
  1517.     kills=0
  1518.     play_azul={}
  1519.     play_vermelho={}
  1520.     valendo=false
  1521.     loop=8
  1522.     resetPowers()
  1523.     for name,player in pairs(tfm.get.room.playerList) do
  1524.         if data[name] then
  1525.             tfm.exec.changePlayerSize(name,1)
  1526.             data[name].killed=-1
  1527.             data[name].team=""
  1528.             data[name].immortal=false
  1529.             data[name].immortal2=false
  1530.             data[name].imatchs=0
  1531.             data[name].skip=0
  1532.             tfm.exec.setNameColor(name,0xd7d7e6)
  1533.             giveCargos(name,data[name].level)
  1534.             for i=32,123 do
  1535.                 tfm.exec.bindKeyboard(name,i,true,true)
  1536.             end
  1537.             showTeams(name)
  1538.             for id,name in pairs(avs_list) do
  1539.                 if data[name] then
  1540.                     giveCargos(name,2)
  1541.                 end
  1542.             end
  1543.             for id,name in pairs(mods_list) do
  1544.                 if data[name] then
  1545.                     giveCargos(name,3)
  1546.                 end
  1547.             end
  1548.             for id,name in pairs(managers_list) do
  1549.                 if data[name] then
  1550.                     giveCargos(name,4)
  1551.                 end
  1552.             end
  1553.             for id,name in pairs(level6_list) do
  1554.                 if data[name] then
  1555.                     giveCargos(name,5)
  1556.                 end
  1557.             end
  1558.             for id,name in pairs(admins_list) do
  1559.                 if data[name] then
  1560.                     giveCargos(name,6)
  1561.                 end
  1562.             end
  1563.         end
  1564.     end
  1565.     tfm.exec.setGameTime(30)
  1566.     showBar()
  1567. end
  1568. function eventTextAreaCallback(id,name,callback)
  1569.     if callback == "show_menu" then
  1570.         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)
  1571.         ui.addTextArea(298,text.menu_bar,name,200,345,400,20,0x000001,0x000001,0.80,true)
  1572.     end
  1573.     if callback == "hide_menu" then
  1574.         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)
  1575.         ui.removeTextArea(298,name)
  1576.     end
  1577.     if callback == "ranking" then
  1578.         eventChatCommand(name,"rank")
  1579.     end
  1580.     if callback == "cap" then
  1581.         eventChatCommand(name,"cap")
  1582.     end
  1583.     if callback == "cmd" then
  1584.         eventChatCommand(name,"cmd")
  1585.     end
  1586.     if callback == "powerups" then
  1587.         loadPowerups(name)
  1588.     end
  1589.     if callback == "power1" then
  1590.         tfm.exec.chatMessage(text.double2,name)
  1591.     end
  1592.     if callback == "help" then
  1593.         eventChatCommand(name,"help")
  1594.     end
  1595.     if callback == "power2" then
  1596.         tfm.exec.chatMessage(text.triple2,name)
  1597.     end
  1598.     if callback == "power3" then
  1599.         tfm.exec.chatMessage(text.bomba2,name)
  1600.     end
  1601.     if callback == "power4" then
  1602.         tfm.exec.chatMessage(text.objeto2,name)
  1603.     end
  1604.     if callback == "power5" then
  1605.         tfm.exec.chatMessage(text.exp2,name)
  1606.     end
  1607.     if callback == "power6" then
  1608.         tfm.exec.chatMessage(text.chuva2,name)
  1609.     end
  1610.     if callback == "power7" then
  1611.         tfm.exec.chatMessage(text.fly2,name)
  1612.     end
  1613.     if callback == "power8" then
  1614.         tfm.exec.chatMessage(text.inv2,name)
  1615.     end
  1616.     if callback == "power9" then
  1617.         tfm.exec.chatMessage(text.invi2,name)
  1618.     end
  1619.     if callback == "power10" then
  1620.         tfm.exec.chatMessage(text.selec2,name)
  1621.     end
  1622.     if callback == "profile" then
  1623.         tfm.exec.chatMessage(text.profile,name)
  1624.     end
  1625.     if callback == "fechar" then
  1626.         for id=8000,8010 do
  1627.             ui.removeTextArea(id,name)
  1628.         end
  1629.     end
  1630.     if callback == "close" then
  1631.         for id=8000,8010 do
  1632.             ui.removeTextArea(id,name)
  1633.             ui.removeTextArea(6969+id,name)
  1634.             ui.removeTextArea(7979+id,name)
  1635.         end
  1636.     end
  1637.     if callback == "closep" then
  1638.         for id=9000,9010 do
  1639.             ui.removeTextArea(id,name)
  1640.         end
  1641.     end
  1642.     if callback == "enter_vermelho" then
  1643.         if data[name].killed == -1 and data[name].team == "" then
  1644.             data[name].team="vermelho"
  1645.             data[name].killed=0
  1646.             tfm.exec.respawnPlayer(name)
  1647.             tfm.exec.movePlayer(name,700,180,false,0,0,false)
  1648.             count_vermelho=count_vermelho+1
  1649.             ui.removeTextArea(41,name)
  1650.             ui.removeTextArea(42,name)
  1651.             ui.addTextArea(51,"<p align='center'><a href='event:sair_vermelho'>"..text.exit.."",name,300,180,200,20,0x505050,0x323232,1.0,true)
  1652.         end
  1653.     end
  1654.     if callback == "enter_azul" then
  1655.         if data[name].killed == -1 and data[name].team == "" then
  1656.             data[name].team="azul"
  1657.             data[name].killed=0
  1658.             tfm.exec.respawnPlayer(name)
  1659.             tfm.exec.movePlayer(name,900,180,false,0,0,false)
  1660.             count_azul=count_azul+1
  1661.             ui.removeTextArea(41,name)
  1662.             ui.removeTextArea(42,name)
  1663.             ui.addTextArea(52,"<p align='center'><a href='event:sair_azul'>"..text.exit.."",name,300,180,200,20,0x505050,0x323232,1.0,true)
  1664.         end
  1665.     end
  1666.     if callback == "sair_azul" then
  1667.         data[name].team=""
  1668.         data[name].killed=-1
  1669.         tfm.exec.killPlayer(name)
  1670.         count_azul=count_azul-1
  1671.         ui.removeTextArea(52,name)
  1672.         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)
  1673.         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)
  1674.     end
  1675.     if callback == "sair_vermelho" then
  1676.         data[name].team=""
  1677.         data[name].killed=-1
  1678.         tfm.exec.killPlayer(name)
  1679.         count_vermelho=count_vermelho-1
  1680.         ui.removeTextArea(51,name)
  1681.         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)
  1682.         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)
  1683.     end
  1684. end
  1685. function winRed()
  1686.     for name,player in pairs(tfm.get.room.playerList) do
  1687.         if data[name].team == "vermelho" then
  1688.             data[name].exp=data[name].exp+20
  1689.             data[name].wins=data[name].wins+1
  1690.             data[name].score=data[name].score+15
  1691.             tfm.exec.respawnPlayer(name)
  1692.             tfm.exec.movePlayer(name,math.random(225,775),170,false,0,0,false)
  1693.             tfm.exec.playEmote(name,0)
  1694.             for i=6001,6004 do
  1695.                 ui.removeTextArea(i,nil)
  1696.             end
  1697.         end
  1698.     end
  1699.     advanceLevel()
  1700. end
  1701. function winAzul()
  1702.     for name,player in pairs(tfm.get.room.playerList) do
  1703.         if data[name].team == "azul" then
  1704.             data[name].exp=data[name].exp+20
  1705.             data[name].wins=data[name].wins+1
  1706.             data[name].score=data[name].score+15
  1707.             tfm.exec.respawnPlayer(name)
  1708.             tfm.exec.movePlayer(name,math.random(825,1375),170,false,0,0,false)
  1709.             tfm.exec.playEmote(name,0)
  1710.             for i=6001,6004 do
  1711.                 ui.removeTextArea(i,nil)
  1712.             end
  1713.         end
  1714.     end
  1715.     advanceLevel()
  1716. end
  1717. function advanceLevel()
  1718.     for name,player in pairs(tfm.get.room.playerList) do
  1719.         if data[name] then
  1720.             if data[name].exp >= data[name].maxp then
  1721.                 data[name].exp=data[name].exp-data[name].maxp
  1722.                 data[name].maxp=data[name].maxp+50
  1723.                 data[name].nivel=data[name].nivel+1
  1724.                 tfm.exec.chatMessage(""..text.advanced..""..data[name].nivel.."!",name)
  1725.             end
  1726.         end
  1727.     end
  1728. end
  1729. function giveCargos(name,type)
  1730.     if type == 2 and data[name] then
  1731.         data[name].level=2
  1732.         tfm.exec.setNameColor(name,0x0076FF)
  1733.     elseif type == 3 and data[name] then
  1734.         data[name].level=3
  1735.         tfm.exec.setNameColor(name,0xFFFB00)
  1736.     elseif type == 4 and data[name] then
  1737.         data[name].level=4
  1738.         tfm.exec.setNameColor(name,0xFF7100)
  1739.     elseif type == 5 and data[name] then
  1740.         data[name].level=5
  1741.     elseif type == 6 and data[name] then
  1742.         data[name].level=6
  1743.         tfm.exec.setNameColor(name,0xFF0000)
  1744.     end
  1745. end
  1746. end
  1747. initTrue = function()
  1748. for _,f in next,{"AutoScore","AutoNewGame","AutoTimeLeft","AllShamanSkills","PhysicalConsumables","AfkDeath"} do
  1749.     tfm.exec["disable"..f](true)
  1750. end
  1751. tfm.exec.setRoomMaxPlayers(35)
  1752. t=false;
  1753. f=false;
  1754. tempa=20   
  1755. ratos=0
  1756. loop=0
  1757. temp2=3
  1758. resposta="0"
  1759. players={}
  1760. votos=0
  1761. rcount=0
  1762. vivo=0;
  1763. min1=0
  1764. seg1=0
  1765. seg2=0
  1766. lt=0
  1767. segundos=0
  1768. lock=false;
  1769. pergunta=""
  1770. shaman=""
  1771. lock=false
  1772. minutos=6;
  1773. modo="desativado"
  1774. for _,f in next,{"admin77","admin78","limite","return"} do
  1775.     system.disableChatCommandDisplay(f)
  1776. end
  1777. mapa="@7417328"
  1778. lang = {}
  1779.  
  1780. lang.br = {
  1781.   textFalse = "A resposta era FALSO!",
  1782.   textTrue = "A resposta era VERDADEIRO!",
  1783.   textRandom = "Um shaman aleatório foi escolhido.",
  1784.   textSkip = "O shaman passou a vez.",
  1785.   textPergunta = "Insira a sua pergunta:<br><br>NÃO USE SÍMBOLOS ESPECIAIS NA PERGUNTA!",
  1786.   textTime = "Tempo esgotado!",
  1787.   textNothingWins = "Ninguém venceu esta partida. :(",
  1788.   textWinner = " venceu a partida!",
  1789.   textNothing = "Não tivemos vencedor nessa partida.",
  1790.   textTimeOut = "O tempo da partida acabou! Outro shaman será escolhido.",
  1791.   textTimeLeave = "Tempo esgotado! Outro shaman será escolhido.",
  1792.   textTrueFalse = "Envie SIM se a resposta for verdadeira ou NÃO se a resposta for falsa.",
  1793.   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.129:<br>- Os shamans não podem mais usar objetos no mapa",
  1794.   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.",
  1795.   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.",
  1796.   textLowTime = "O tempo da partida está acabando.",
  1797.   mices = "São necessários pelo menos 3 jogadores para jogar True or False",
  1798.   textArea1 = "Tempo da partida:",
  1799.   textArea2 = "Ratos vivos:",
  1800.   textArea3 = "Limite de tempo:",
  1801.   textLongQuestion = "Sua pergunta é muito longa. Tente usar uma pergunta menor.",
  1802.   textShortQuestion = "Sua pergunta é muito curta ou não é permitida.",
  1803.   textCmd = "<VP>Comandos do jogo:<br><br>!per = faz uma pergunta (quando você é shaman)<br>!skip = pula a sua vez (quando você é shaman)",
  1804.   textLt = "<J>Use o comando /ban [nome] para reportar alguém que esteja infrigindo as regras da sala.",
  1805. }
  1806. lang.en = {
  1807.   textFalse = "The answer was FALSE!",
  1808.   textTrue = "The answer was TRUE!",
  1809.   textRandom = "A random shaman has been choosed.",
  1810.   textSkip = "The shaman skipped your turn.",
  1811.   textPergunta = "Type your question here:",
  1812.   textTime = "Time is up!",
  1813.   textNothingWins = "Nothing wins the game. :(",
  1814.   textWinner = " wons the game!",
  1815.   textNothing = "Aren't winners on this game.",
  1816.   textTimeOut = "The game time is gone! Other shaman has been choosed.",
  1817.   textTimeLeave = "Time is up! Other shaman has been choosed.",
  1818.   textTrueFalse = "Send YES if the answer is TRUE or send NO if the answer is FALSE.",
  1819.   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.129:<br>- The shamans now can't use shaman objects",
  1820.   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.",
  1821.   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.",
  1822.   textLowTime = "The match time is ending.",
  1823.   mices = "Are needed at least 3 players to play True or False.",
  1824.   textArea1 = "Match time:",
  1825.   textArea2 = "Mices alive:",
  1826.   textArea3 = "Time limit:",
  1827.   textLongQuestion = "Your question is very long. Try to use a short question.",
  1828.   textShortQuestion = "Your question is very short or isn't allowed.",
  1829.   textCmd = "<VP>Game commands:<br><br>!per = make a question (only for shaman)<br>!skip = skip your shaman turn (only for shaman)",
  1830.   textLt = ""
  1831. }
  1832. if tfm.get.room.community == "br" then
  1833.     text = lang.br
  1834. else
  1835.     text = lang.en
  1836. end
  1837. function obterJogadores()
  1838.     players={}
  1839.     for name,player in pairs(tfm.get.room.playerList) do
  1840.     if not tfm.get.room.playerList[name].isDead then
  1841.         table.insert(players,name)
  1842.     end
  1843.     end
  1844. end
  1845. function eventNewPlayer(name)
  1846.     ratos=ratos+1;
  1847.     tfm.exec.chatMessage("<J>"..text.textEnter.."",name)
  1848.     obterJogadores()
  1849. end
  1850. for name,player in pairs(tfm.get.room.playerList) do
  1851.     tfm.exec.setPlayerScore(name,0,false)
  1852.     eventNewPlayer(name)
  1853. end
  1854. function eventPlayerLeft(name)
  1855.     ratos=ratos-1;
  1856.     obterJogadores()
  1857. end
  1858. function eventChatCommand(name,message)
  1859.     if tfm.get.room.currentMap == "@7417328" then
  1860.     if message == "f5" then
  1861.         if name == "Forzaldenon#0000" then
  1862.             t=true;
  1863.             tfm.exec.chatMessage("<R>"..text.textFalse.."",nil)
  1864.             modo="desativado" end
  1865.     elseif message == "skip" then
  1866.             if tfm.get.room.playerList[name].isShaman then
  1867.             obterJogadores()
  1868.             tfm.exec.chatMessage("<R>"..text.textSkip.."",nil)
  1869.             eventChatCommand("Forzaldenon#0000","admin77") end         
  1870.     elseif message == "v5" then
  1871.         if name == "Forzaldenon#0000" then
  1872.             f=true;
  1873.             tfm.exec.chatMessage("<VP>"..text.textTrue.."",nil)
  1874.             modo="desativado" end
  1875.     elseif message == "per" then
  1876.         if tfm.get.room.playerList[name].isShaman then
  1877.             if modo == "desativado" then
  1878.                 ui.removeTextArea(27,nil)
  1879.                 ui.addPopup(1,2,""..text.textPergunta.."",name,250,125,350,true)
  1880.             end
  1881.         end
  1882.     elseif message == "admin77" then
  1883.         if modo == "desativado" then
  1884.         if name == "Forzaldenon#0000" or name == "Skyrectarrow#0000" then
  1885.             changeMap()
  1886.             tfm.exec.setShaman(message:sub(50))
  1887.         end end
  1888.     elseif message == "return" then
  1889.         if modo == "pergunta" then
  1890.         if name == "Forzaldenon#0000" or name == "Skyrectarrow#0000" then
  1891.             tempa=20
  1892.             temp2=3
  1893.             modo="desativado"
  1894.             tfm.exec.setGameTime(63)
  1895.             ui.removeTextArea(27,nil)
  1896.             pergunta=""
  1897.             resposta="0"
  1898.             rcount=rcount+1
  1899.             tfm.exec.chatMessage("This question has been cancelled",nil)
  1900.             for name,player in pairs(tfm.get.room.playerList) do
  1901.                 tfm.exec.movePlayer(name,400,1,false,1,1,false)
  1902.             end
  1903.             if rcount == 3 then
  1904.                 eventChatCommand("Forzaldenon#0000","admin77")
  1905.                 rcount=0
  1906.             end
  1907.         end end
  1908.     elseif(message:sub(1,7) == "admin78") then
  1909.         if modo == "desativado" then
  1910.         if name == "Forzaldenon#0000" or name == "Skyrectarrow#0000" then
  1911.             tfm.exec.setPlayerScore(message:sub(9),8001,false)
  1912.             changeMap()
  1913.         end end
  1914.     elseif(message:sub(0,4) == "kill") then
  1915.         if name == "Forzaldenon#0000" or name == "Skyrectarrow#0000" then
  1916.             tfm.exec.killPlayer(message:sub(6))
  1917.         end
  1918.     elseif(message:sub(0,6) == "limite") then
  1919.         if name == "Forzaldenon#0000" or name == "Skyrectarrow#0000" then
  1920.             minutos=tonumber(message:sub(8))
  1921.             if minutos > 15 then
  1922.                 tfm.exec.chatMessage("Time limit: 15 minutes.",nil)
  1923.                 minutos=15
  1924.             else
  1925.                 tfm.exec.chatMessage("Time limit: "..minutos.." minutes.",nil)
  1926.             end
  1927.         end
  1928.     elseif message == "help" then
  1929.         tfm.exec.chatMessage("<N>"..text.textHelp.."",name)
  1930.     elseif message == "cmd" then
  1931.         tfm.exec.chatMessage("<N>"..text.textCmd.."",name)
  1932.     end
  1933.     end
  1934. end
  1935. function eventNewGame()
  1936.     ui.removeTextArea(27,nil)
  1937.     tfm.exec.setGameTime(63)
  1938.     vivo=0;
  1939.     modo="desativado"
  1940.     tempa=19
  1941.     votos=0;
  1942.     t=false;
  1943.     f=false;
  1944.     segundos=0;
  1945.     min1=0
  1946.     rcount=0
  1947.     min3=0
  1948.     seg1=0
  1949.     seg2=0
  1950.     for name,player in pairs(tfm.get.room.playerList) do
  1951.         if name:sub(1,1) == "*" then
  1952.             tfm.exec.killPlayer(name)
  1953.             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)
  1954.         end
  1955.         vivo=vivo+1
  1956.         if tfm.get.room.playerList[name].isShaman then
  1957.             tfm.exec.setPlayerScore(name,-2,false)
  1958.             vivo=vivo-1
  1959.         end
  1960.     end
  1961.     obterJogadores()
  1962. end
  1963. function eventSummoningEnd(name,type,x,y,angle,vx,vy,obj)
  1964.     for name,player in pairs(tfm.get.room.playerList) do
  1965.         if tfm.get.room.playerList[name].isShaman then
  1966.             tfm.exec.chatMessage("<ROSE>Don't is allowed the use of shaman objects in this module.",nil)
  1967.             eventChatCommand("Forzaldenon#0000","admin77")
  1968.         end
  1969.     end
  1970. end
  1971. function eventLoop(pass,tempo)
  1972.     local pass2=tempo/1000
  1973.     lt=lt+1
  1974.     if lt >= 1200 then
  1975.         if tfm.get.room.community == "br" then
  1976.             tfm.exec.chatMessage("<R>"..text.textLt.."",nil)
  1977.             lt=0
  1978.         end
  1979.     end
  1980.     if tfm.get.room.currentMap == "@7277839" then
  1981.         tfm.exec.setGameTime(63)
  1982.     end
  1983.     if lock == true then
  1984.         tfm.exec.setGameTime(tempo/950)
  1985.     end
  1986.     loop=loop+0.5
  1987.     if pass >= 3000 and pass <= 179995 then
  1988.         if ratos < 3 then
  1989.             if tfm.get.room.currentMap == "@7417328" then
  1990.                 tfm.exec.newGame("@7277839")
  1991.                 tfm.exec.chatMessage("<R>"..text.mices.."",nil)
  1992.             end
  1993.         end
  1994.     end
  1995.     if ratos >= 3 then
  1996.         if tfm.get.room.currentMap == "@7277839" then
  1997.             changeMap()
  1998.         end
  1999.     end
  2000.     if min1 == minutos-1 then
  2001.         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)
  2002.     else
  2003.         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)
  2004.     end
  2005.     if loop == 1 then
  2006.         segundos=segundos+1
  2007.         seg2=seg2+1
  2008.         loop=0
  2009.     if seg2 >= 10 then
  2010.         seg2=0
  2011.         seg1=seg1+1
  2012.         if seg1 >= 6 then
  2013.             min1=min1+1
  2014.             seg1=0
  2015.             seg2=0
  2016.             end
  2017.             if min1 >= minutos then
  2018.                 for name,player in pairs(tfm.get.room.playerList) do
  2019.                     if tfm.get.room.playerList[name].isShaman then
  2020.                         ui.addPopup(1,0,""..text.textTime.."",name,350,175,200,true)
  2021.                         ui.addPopup(2,0,""..text.textTime.."",name,350,175,200,true)
  2022.                     end
  2023.                 end
  2024.                 tfm.exec.chatMessage("<R>"..text.textTimeOut.."",nil)
  2025.                 eventChatCommand("Forzaldenon#0000","admin77")
  2026.             end
  2027.         end
  2028.     end
  2029.     tfm.exec.setUIMapName("True or False - RTM 1.129")
  2030.     if modo == "pergunta" then
  2031.         tempa=tempa-0.5
  2032.     end
  2033.     for name,player in pairs(tfm.get.room.playerList) do
  2034.         if tfm.get.room.playerList[name].isShaman then
  2035.             if tfm.get.room.currentMap == "@7417328" then
  2036.                 if pass > 450 and pass < 1050 then
  2037.                     tfm.exec.chatMessage("<VP>"..text.textGotShaman.."",name)
  2038.                     tfm.exec.setPlayerScore(name,-2,false)
  2039.                 end
  2040.             end
  2041.         end
  2042.     end
  2043.     if tempa < 0.1 then
  2044.         modo="resposta"
  2045.         tempa=0
  2046.         for pn, p in pairs(tfm.get.room.playerList) do
  2047.             if p.y <= 220 then
  2048.                 tfm.exec.killPlayer(pn)
  2049.             end
  2050.         end
  2051.     end
  2052.     if f == true then
  2053.         for pn, p in pairs(tfm.get.room.playerList) do
  2054.             if p.x >= 405 then
  2055.                 tfm.exec.killPlayer(pn)
  2056.                 modo="desativado"
  2057.             end
  2058.         end
  2059.         f=false;
  2060.     end
  2061.     if t == true then
  2062.         for pn, p in pairs(tfm.get.room.playerList) do
  2063.             if p.x <= 395 then
  2064.                 tfm.exec.killPlayer(pn)
  2065.                 modo="desativado"
  2066.             end
  2067.         end
  2068.         t=false;
  2069.     end
  2070.     if modo == "resposta" then
  2071.         tfm.exec.setGameTime(63)
  2072.         temp2=temp2-0.5
  2073.         if temp2 == 1 then
  2074.             modo="desativado"
  2075.             if resposta == "yes" then
  2076.                 eventChatCommand("Forzaldenon#0000","v5")
  2077.             else
  2078.                 eventChatCommand("Forzaldenon#0000","f5")
  2079.             end
  2080.             tempa=19
  2081.             temp2=3
  2082.             pergunta=""
  2083.             ui.removeTextArea(27,nil)
  2084.         end
  2085.     end
  2086.     if modo == "desativado" then
  2087.     if tempo < 60000 and tempo > 59400 then
  2088.         if pass > 10000 then
  2089.             for name,player in pairs(tfm.get.room.playerList) do
  2090.             if not tfm.get.room.playerList[name].isDead then
  2091.                 tfm.exec.setPlayerScore(name,1,true)
  2092.             end
  2093.         end
  2094.         end
  2095.     end
  2096.     if tfm.get.room.currentMap == "@7417328" then
  2097.     if vivo == 1 then
  2098.         if tempo < 59000 then
  2099.             tfm.exec.setPlayerScore(shaman,8000,false)
  2100.             changeMap()
  2101.         end
  2102.     end
  2103.     if vivo <= 0 then
  2104.         tfm.exec.setGameTime(5)
  2105.         obterJogadores()
  2106.         changeMap()
  2107.         tfm.exec.chatMessage("<R>"..text.textNothing.."",nil)
  2108.     end
  2109.     if tempo < 500 then
  2110.         tfm.exec.setPlayerScore(players[math.random(#players)],1,true)
  2111.         for name,player in pairs(tfm.get.room.playerList) do
  2112.             if tfm.get.room.playerList[name].isShaman then
  2113.                 ui.addPopup(1,0,""..text.textTime.."",name,350,175,200,true)
  2114.                 ui.addPopup(2,0,""..text.textTime.."",name,350,175,200,true)
  2115.             end
  2116.         end
  2117.         tfm.exec.chatMessage("<R>"..text.textTimeLeave.."",nil)
  2118.         changeMap()
  2119.     end
  2120.     end
  2121.     end
  2122.     if modo == "troca" then
  2123.         obterJogadores()
  2124.         if tempo < 100 then
  2125.             changeMap()
  2126.         end
  2127.     end
  2128.     if vivo == 0 then
  2129.         shaman=""
  2130.     end
  2131. end
  2132. function eventPopupAnswer(id,name,answer)
  2133.     if id == 1 then
  2134.         if tfm.get.room.playerList[name].isShaman then
  2135.             if tfm.get.room.currentMap == "@7417328" then
  2136.                 if string.len(answer) >= 180 then
  2137.                     tfm.exec.chatMessage(""..text.textLongQuestion.."",name)
  2138.                 elseif string.len(answer) <= 5 then
  2139.                     tfm.exec.chatMessage(""..text.textShortQuestion.."",name)
  2140.                 else
  2141.                     pergunta=answer
  2142.                     pcall(ui.addPopup(2,1,""..text.textTrueFalse.."",name,350,175,200,true))
  2143.                 end
  2144.             end
  2145.         end
  2146.     end
  2147.     if id == 2 then
  2148.         resposta=tostring(answer)
  2149.         modo="pergunta"
  2150.         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)
  2151.         tfm.exec.chatMessage("<CH>"..pergunta.."",nil)
  2152.         tfm.exec.chatMessage("<BL>"..answer.."","Forzaldenon#0000")
  2153.         tfm.exec.setGameTime(20)
  2154.         for name,player in pairs(tfm.get.room.playerList) do
  2155.             tfm.exec.movePlayer(name,400,102,false,1,1,false)
  2156.             if tfm.get.room.playerList[name].isShaman then
  2157.                 tfm.exec.movePlayer(name,400,885,false,1,1,false)
  2158.             end
  2159.         end
  2160.     end
  2161. end
  2162. function eventPlayerDied(name)
  2163.     if not tfm.get.room.playerList[name].isShaman then
  2164.         vivo=vivo-1
  2165.     end
  2166.     local i=0
  2167.     local n
  2168.     for pname,player in pairs(tfm.get.room.playerList) do
  2169.         if not player.isDead and not player.isShaman then
  2170.             i=i+1
  2171.             n=pname
  2172.         end
  2173.     end
  2174.     if i==0 then
  2175.         -- não faça nada
  2176.     elseif i==1 then
  2177.         shaman=n;
  2178.     end
  2179. end
  2180. function changeMap()
  2181.     tfm.exec.newGame(mapa)
  2182. end
  2183. changeMap()
  2184. end
  2185.  
  2186. initMestre = function()
  2187. tfm.exec.disableAutoNewGame(true)
  2188. tfm.exec.disableAutoShaman(true)
  2189. tfm.exec.disableAutoTimeLeft(true)
  2190. tfm.exec.disableAutoScore(true)
  2191. tfm.exec.disableAfkDeath(true)
  2192. tfm.exec.setRoomMaxPlayers(35)
  2193. mapas={6788085,6788183,6789853,6791944,6792470,6808957,6810292,6821950,6830799,6866406,6866549,6788693,6788728,6859175,6834529,6866437,6812488,6876638,6876563,6885971,6888512,6893463,6900149,6907177,6892608,6982387,5328362,5957905,7055459,7290270,7290275,7404106,7404327,7382263,7394517,7405103,7400694,7400678,7412412,7412422,7431981,7354947}
  2194. active=0 -- códigos active: -2 = número de ratos insuficiente, -1 = partida encerrada, 0 = partida não iniciada ou intervalo e 1 ou mais = comandos operando
  2195. vivo=0 -- número de ratos vivos
  2196. rato=0 -- número de ratos na sala
  2197. dificuldade=1 -- dificuldade da partida (alterada automaticamente)
  2198. rodadas=0 -- o limite de rodadas das partidas é calculado automaticamente
  2199. string="" -- variável usada no comando 33
  2200. rodada=0 -- número da rodada atual, não altere
  2201. number=0 -- variável usada no comando 11
  2202. xpos=0 -- variável usada nos comandos 21, 22 e 23
  2203. ypos=0 -- variável usada nos comandos 24 e 25
  2204. data={} -- variável que define os dados dos jogadores
  2205. lang={} -- não alterar, variável que define a linguagem dos textos
  2206. pergunta=""
  2207. tempo=10
  2208. resposta=""
  2209. unlocked=true -- bloqueia ou desbloqueia a execução do script
  2210. for _,f in next,{"help","rodar","command","limite","q","r","time"} do
  2211.     system.disableChatCommandDisplay(f)
  2212. end
  2213. lang.br = {
  2214.     welcome = "<N>Bem-vindo a sala Mestre Mandou! Nesta sala seu objetivo é fazer tudo o que o script mandar.<ROSE><br><VP>Script criado por Jessiewind26#2546 - Versão RTM Compilação 24",
  2215.     dancar = "Dance!",
  2216.     sentar = "Sente!",
  2217.     confetar = "Atire 5 confetes!",
  2218.     mouse = "Clique na tela 10 vezes!",
  2219.     beijos = "Dê 10 beijos!",
  2220.     dormir = "Vocês estão com sono. Durmam para descansar.",
  2221.     raiva = "Tigrounette é do mal! Fiquem com raiva dele!",
  2222.     chorem = "Vocês não ganharam queijo :( Chorem!",
  2223.     esquerda = "Não vá para a esquerda!",
  2224.     direita = "Não vá para a direita!",
  2225.     numero = "Digite o seguinte número: ",
  2226.     digitar = "Digite qualquer coisa e mande para mim.",
  2227.     falar = "Não falem nada!",
  2228.     pular = "Não pulem!",
  2229.     mexer = "Não se mexam!",
  2230.     bandeira = "Balance a bandeira de qualquer país!",
  2231.     ano = "Em que ano estamos?",
  2232.     vesquerda = "Fique virado para a esquerda!",
  2233.     vdireita = "Fique virado para a direita!",
  2234.     quadrado = "Fique no quadrado branco!",
  2235.     retangulo = "Fique dentro do retângulo branco!",
  2236.     nretangulo = "Não fique dentro do retângulo branco!",
  2237.     preesquerda30 = "Pressione 30 vezes a tecla para ESQUERDA!",
  2238.     predireita30 = "Pressione 30 vezes a tecla para DIREITA!",
  2239.     preesquerda60 = "Pressione 60 vezes a tecla para ESQUERDA!",
  2240.     predireita60 = "Pressione 60 vezes a tecla para DIREITA!",
  2241.     preesquerda150 = "Pressione 150 vezes a tecla para ESQUERDA!",
  2242.     predireita150 = "Pressione 150 vezes a tecla para DIREITA!",
  2243.     espaco = "Pressione a barra de espaço 20 vezes!",
  2244.     nome = "Digite o seu nome no jogo (com #número).",
  2245.     ndance = "Não dance!",
  2246.     mestre = "Mestre Mandou",
  2247.     map = "Mapa",
  2248.     time = "Tempo",
  2249.     mice = "Ratos",
  2250.     round = "Rodada",
  2251.     mices = "Esta sala requer pelo menos 4 ratos.",
  2252.     difficulty = "Dificuldade",
  2253.     creator = "Module criado por Jessiewind26#2546",
  2254.     segundos = "segundos.",
  2255.     fim = "Partida encerrada! Próxima partida iniciando em ",
  2256.     playingmap = "Rodando mapa",
  2257.     created = "criado por"
  2258. }
  2259. lang.en = {
  2260.     welcome = "<N>Welcome to script Master Says! On this module you have to do everything that the master says.<ROSE><br><VP>Module created by Jessiewind26#2546 - Version RTM Compilation 24",
  2261.     dancar = "Dance!",
  2262.     sentar = "Sit!",
  2263.     confetar = "Throw 5 confetti!",
  2264.     mouse = "Click on screen 10 times!",
  2265.     beijos = "Give 10 kisses!",
  2266.     dormir = "They are sleepy. Sleep to rest.",
  2267.     raiva = "Tigrounette is evil! Get angry with him!",
  2268.     chorem = "No cheese for you. Cry!",
  2269.     esquerda = "Don't go to the LEFT!",
  2270.     direita = "Don't go to the RIGHT!",
  2271.     numero = "Type this number: ",
  2272.     digitar = "Type anything and send to me.",
  2273.     falar = "Don't speak nothing!",
  2274.     pular = "Don't jump!",
  2275.     mexer = "Don't move!",
  2276.     bandeira = "Balance the flag of anything country!",
  2277.     ano = "What year are we?",
  2278.     vesquerda = "Stay facing LEFT!",
  2279.     vdireita = "Stay facing RIGHT!",
  2280.     quadrado = "Stay on the white square!",
  2281.     retangulo = "Stay on the white rectangle!",
  2282.     nretangulo = "Don't stay on the white rectangle!",
  2283.     preesquerda30 = "Press 30 times the LEFT key!",
  2284.     predireita30 = "Press 30 times the RIGHT key!",
  2285.     preesquerda60 = "Press 60 times the LEFT key!",
  2286.     predireita60 = "Press 60 times the RIGHT key!",
  2287.     preesquerda150 = "Press 150 times the LEFT key!",
  2288.     predireita150 = "Press 150 times the RIGHT key!",
  2289.     espaco = "Press 20 times the SPACEBAR!",
  2290.     nome = "Type your nickname (with #number)!",
  2291.     ndance = "Don't dance!",
  2292.     mestre = "Master Says",
  2293.     map = "Map",
  2294.     time = "Time",
  2295.     mice = "Mice",
  2296.     round = "Round",
  2297.     mices = "This room requires at least 4 players.",
  2298.     difficulty = "Difficulty",
  2299.     creator = "Module created by Jessiewind26#2546",
  2300.     segundos = "seconds.",
  2301.     fim = "End of match! The next match will start on ",
  2302.     playingmap = "Playing map",
  2303.     created = "created by"
  2304. }
  2305. lang.ar = {
  2306. welcome = "<N>مرحبآ في نمط الرئيس! في هذا النمط يجب عليك فعل كل مايقوله الرئيس . <ROSE><br>لو أردت المساعدة قم بِكتابة الامر !help<br><VP>تم صنع النمط عن طريق Jessiewind26#2546 - الإصدار RTM Compilation24",
  2307. dancar = "أرقص!",
  2308. sentar = "إجلس!",
  2309. confetar = "قُم برمي 5 أوراق!",
  2310. mouse = "قم بالضغط على الشاشة 10 مرات!",
  2311. beijos = "قم بالتقبيل 10 مرات!",
  2312. dormir = "إنهم يشعرون بالنعاس، نام لتستريح!",
  2313. raiva = "تايغرونيت شرير! قم بالغَضبِ مِنه!",
  2314. chorem = "لم تلتقط أي قطعة من الجبن، إبكي!",
  2315. esquerda = "لا تذهب لليسار!",
  2316. direita = "لا تذهب لليَمين!",
  2317. numero = "أكتب هذا الرقم : ",
  2318. digitar = "أكتب اي شيء وأرسله لي",
  2319. falar = "لا تتكلم أو تقل أي شيء!",
  2320. pular = "لا تقفز!",
  2321. mexer = "لا تتَحرك!",
  2322. bandeira = "إرفع علم أي دولة!",
  2323. ano = "في أي عام نحن؟",
  2324. vesquerda = "إبقى مواجهآ للإتجاه الأيسر",
  2325. vdireita = "إبقى مواجهآ للإتجاه الأيمن!",
  2326. quadrado = "إبقى في المربع الأبيض",
  2327. retangulo = "إبقى في المستطيل الأبيض",
  2328. nretangulo = "لا تبقى في المستطيل الأبيض!",
  2329. preesquerda30 = "إضغط 30 مرة على زر السهم الأيسر",
  2330. predireita30 = "إضغط 30 مرة على زر السهم الأيمن",
  2331. preesquerda60 = "إضغط 60 مرة على زر السهم الأيسر",
  2332. predireita60 = "إضغط 60 مرة على زر السهم الأيمن",
  2333. preesquerda150 = "إضغط 150 مرة على زر السهم الأيسر",
  2334. predireita150 = "إضغط 150 مرة على زر السهم الأيمن",
  2335. espaco = "إضغط 20 مرة على زر المسافة",
  2336. nome = "إكتب إسمك (مع رقم الهاشتاج #)ـ",
  2337. abracar = "أعطِ حُضن لأي فأر!",
  2338. beijar = "قُم بتقبيل اي فأر",
  2339. ndance = "لا ترقص!",
  2340. mestre = "الرئيس يقول",
  2341. map = "خريطة",
  2342. time = "الوقت",
  2343. mice = "الفئران",
  2344. round = "الجولة",
  2345. mices = "هذه الغرفة تتطلب على الأقل 4 أشخاص.",
  2346. difficulty = "الصعوبة",
  2347. creator = "صُنع النمط عن طريق اللاعب : Jessiewind26#2546",
  2348. segundos = "ثوانٍ",
  2349. fim = "إنتهت الجولة، الجولة الجديدة سوف تَبدأ قريبًا! ",
  2350. playingmap = "Playing map",
  2351. created = "created by"
  2352. }
  2353. if tfm.get.room.community == "br" then
  2354.     text = lang.br
  2355. elseif tfm.get.room.community == "ar" then
  2356.     text = lang.ar
  2357. else
  2358.     text = lang.en
  2359. end
  2360. function eventNewPlayer(name)
  2361.     rato=rato+1
  2362.     for k=32, 87 do
  2363.         tfm.exec.bindKeyboard(name,k,false,true)
  2364.     end
  2365.     system.bindMouse(name,true)
  2366.     newData={
  2367.             ["c"]=0;
  2368.             ["s"]=0;
  2369.             };     
  2370.     data[name] = newData;
  2371.     tfm.exec.chatMessage(""..text.welcome.."",name)
  2372. end
  2373. for name,player in pairs(tfm.get.room.playerList) do
  2374.     eventNewPlayer(name)
  2375. end
  2376. function eventPlayerDied(name)
  2377.     if active >= 0 then
  2378.         vivo=vivo-1
  2379.         local i=0
  2380.         local name
  2381.         for pname,player in pairs(tfm.get.room.playerList) do
  2382.             if not player.isDead then
  2383.                 i=i+1
  2384.                 name=pname
  2385.             end
  2386.         end
  2387.         if i==0 then
  2388.             active=-1
  2389.         elseif i==1 then
  2390.             active=-1
  2391.             tfm.exec.giveCheese(name)
  2392.             tfm.exec.playerVictory(name)
  2393.             tfm.exec.setGameTime(10)
  2394.         end
  2395.     end
  2396. end
  2397. function eventNewGame()
  2398.     ui.removeTextArea(0,nil)
  2399.     rodada=0
  2400.     active=0
  2401.     vivo=0
  2402.     rato=0
  2403.     dificuldade=1
  2404.     if unlocked == true then
  2405.         tfm.exec.setGameTime(24)
  2406.     else
  2407.         tfm.exec.setGameTime(36000)
  2408.     end
  2409.     for name,player in pairs(tfm.get.room.playerList) do
  2410.         vivo=vivo+1
  2411.         rato=rato+1
  2412.         if data[name] then
  2413.             data[name].c=0
  2414.         end
  2415.     end
  2416.     rodadas=math.floor(10+(rato/2))
  2417. end
  2418. function eventPlayerLeft()
  2419.     rato=rato-1
  2420. end
  2421. function sortearComandos()
  2422.     active=math.random(1,33)
  2423.     getCommand()
  2424. end
  2425. function eventChatCommand(name,message)
  2426.     if name == "Jessiewind26#2546" or name == "Linkventusx5#0000" then
  2427.         if(message:sub(0,7) == "command") then
  2428.                 active=tonumber(message:sub(9))
  2429.                 getCommand()
  2430.         end
  2431.     end
  2432.     if name == "Jessiewind26#2546" or name == "Linkventusx5#0000"  then
  2433.         if(message:sub(0,2) == "pw") then
  2434.             if message:sub(4) == "" then
  2435.                 tfm.exec.setRoomPassword("")
  2436.                 tfm.exec.chatMessage("Password cleared.",name)
  2437.             else
  2438.                 tfm.exec.setRoomPassword(message:sub(4))
  2439.                 tfm.exec.chatMessage("Password: "..message:sub(4).."",name)
  2440.             end
  2441.         end
  2442.     end
  2443.     if name == "Jessiewind26#2546" or name == "Linkventusx5#0000" then
  2444.         if(message:sub(0,1) == "q") then
  2445.             pergunta=message:sub(3)
  2446.         end
  2447.     end
  2448.     if name == "Jessiewind26#2546" or name == "Linkventusx5#0000" then
  2449.         if(message:sub(0,1) == "r") then
  2450.             resposta=message:sub(3)
  2451.         end
  2452.     end
  2453.     if name == "Jessiewind26#2546" or name == "Linkventusx5#0000" then
  2454.         if(message:sub(0,4) == "time") then
  2455.             tempo=message:sub(6)
  2456.         end
  2457.     end
  2458. end
  2459. function getCommand()
  2460.     rodada=rodada+1
  2461.     for name,player in pairs(tfm.get.room.playerList) do
  2462.         data[name].c=0
  2463.         data[name].s=0
  2464.     end
  2465.     if active == 1 then
  2466.         ui.addTextArea(0,"<font face='Segoe UI'><font color='#29CC06'><font size='25'><p align='center'>"..text.dancar.."",nil,25,20,750,40,0x0C2301,0x5DD872,0.96,true)
  2467.         tfm.exec.setGameTime(5)
  2468.     end
  2469.     if active == 2 then
  2470.         ui.addTextArea(0,"<font face='Segoe UI'><font color='#29CC06'><font size='25'><p align='center'>"..text.sentar.."",nil,25,20,750,40,0x0C2301,0x5DD872,0.96,true)
  2471.         tfm.exec.setGameTime(5)
  2472.     end
  2473.     if active == 3 then
  2474.         ui.addTextArea(0,"<font face='Segoe UI'><font color='#29CC06'><font size='25'><p align='center'>"..text.confetar.."",nil,25,20,750,40,0x0C2301,0x5DD872,0.96,true)
  2475.         tfm.exec.setGameTime(6)
  2476.     end
  2477.     if active == 4 then
  2478.         ui.addTextArea(0,"<font face='Segoe UI'><font color='#29CC06'><font size='25'><p align='center'>"..text.mouse.."",nil,25,20,750,40,0x0C2301,0x5DD872,0.96,true)
  2479.         tfm.exec.setGameTime(6)
  2480.     end
  2481.     if active == 5 then
  2482.         ui.addTextArea(0,"<font face='Segoe UI'><font color='#29CC06'><font size='25'><p align='center'>"..text.beijos.."",nil,25,20,750,40,0x0C2301,0x5DD872,0.96,true)
  2483.         tfm.exec.setGameTime(15)
  2484.     end
  2485.     if active == 6 then
  2486.         ui.addTextArea(0,"<font face='Segoe UI'><font color='#29CC06'><font size='25'><p align='center'>"..text.dormir.."",nil,25,20,750,40,0x0C2301,0x5DD872,0.96,true)
  2487.         tfm.exec.setGameTime(5)
  2488.     end
  2489.     if active == 7 then
  2490.         ui.addTextArea(0,"<font face='Segoe UI'><font color='#29CC06'><font size='25'><p align='center'>"..text.raiva.."",nil,25,20,750,40,0x0C2301,0x5DD872,0.96,true)
  2491.         tfm.exec.setGameTime(5)
  2492.     end
  2493.     if active == 8 then
  2494.         ui.addTextArea(0,"<font face='Segoe UI'><font color='#29CC06'><font size='25'><p align='center'>"..text.chorem.."",nil,25,20,750,40,0x0C2301,0x5DD872,0.96,true)
  2495.         tfm.exec.setGameTime(5)
  2496.     end
  2497.     if active == 9 then
  2498.         ui.addTextArea(0,"<font face='Segoe UI'><font color='#29CC06'><font size='25'><p align='center'>"..text.esquerda.."",nil,25,20,750,40,0x0C2301,0x5DD872,0.96,true)
  2499.         tfm.exec.setGameTime(8)
  2500.         for name,player in pairs(tfm.get.room.playerList) do
  2501.             data[name].c=1 -- isto indica que todos permanecerão vivos
  2502.         end
  2503.     end
  2504.     if active == 10 then
  2505.         ui.addTextArea(0,"<font face='Segoe UI'><font color='#29CC06'><font size='25'><p align='center'>"..text.direita.."",nil,25,20,750,40,0x0C2301,0x5DD872,0.96,true)
  2506.         tfm.exec.setGameTime(8)
  2507.         for name,player in pairs(tfm.get.room.playerList) do
  2508.             data[name].c=1
  2509.         end
  2510.     end
  2511.     if active == 11 then
  2512.         number=math.random(1000000,9999999)
  2513.         ui.addTextArea(0,"<font face='Segoe UI'><font color='#29CC06'><font size='25'><p align='center'>"..text.numero..""..number.."",nil,25,20,750,40,0x0C2301,0x5DD872,0.96,true)
  2514.         tfm.exec.setGameTime(10)
  2515.     end
  2516.     if active == 12 then
  2517.         ui.addTextArea(0,"<font face='Segoe UI'><font color='#29CC06'><font size='25'><p align='center'>"..text.digitar.."",nil,25,20,750,40,0x0C2301,0x5DD872,0.96,true)
  2518.         tfm.exec.setGameTime(7)
  2519.     end
  2520.     if active == 13 then
  2521.         number=math.random(100000000,999999999)
  2522.         ui.addTextArea(0,"<font face='Segoe UI'><font color='#29CC06'><font size='25'><p align='center'>"..text.numero..""..number.."",nil,25,20,750,40,0x0C2301,0x5DD872,0.96,true)
  2523.         tfm.exec.setGameTime(11)
  2524.     end
  2525.     if active == 14 then
  2526.         ui.addTextArea(0,"<font face='Segoe UI'><font color='#29CC06'><font size='25'><p align='center'>"..text.falar.."",nil,25,20,750,40,0x0C2301,0x5DD872,0.96,true)
  2527.         tfm.exec.setGameTime(5)
  2528.         for name,player in pairs(tfm.get.room.playerList) do
  2529.             data[name].c=1
  2530.         end
  2531.     end
  2532.     if active == 15 then
  2533.         ui.addTextArea(0,"<font face='Segoe UI'><font color='#29CC06'><font size='25'><p align='center'>"..text.pular.."",nil,25,20,750,40,0x0C2301,0x5DD872,0.96,true)
  2534.         tfm.exec.setGameTime(5)
  2535.         for name,player in pairs(tfm.get.room.playerList) do
  2536.             data[name].c=1
  2537.         end
  2538.     end
  2539.     if active == 16 then
  2540.         ui.addTextArea(0,"<font face='Segoe UI'><font color='#29CC06'><font size='25'><p align='center'>"..text.mexer.."",nil,25,20,750,40,0x0C2301,0x5DD872,0.96,true)
  2541.         tfm.exec.setGameTime(5)
  2542.         for name,player in pairs(tfm.get.room.playerList) do
  2543.             data[name].c=1
  2544.         end
  2545.     end
  2546.     if active == 17 then
  2547.         ui.addTextArea(0,"<font face='Segoe UI'><font color='#29CC06'><font size='25'><p align='center'>"..text.bandeira.."",nil,25,20,750,40,0x0C2301,0x5DD872,0.96,true)
  2548.         tfm.exec.setGameTime(8)
  2549.     end
  2550.     if active == 18 then
  2551.         ui.addTextArea(0,"<font face='Segoe UI'><font color='#29CC06'><font size='25'><p align='center'>"..text.ano.."",nil,25,20,750,40,0x0C2301,0x5DD872,0.96,true)
  2552.         tfm.exec.setGameTime(5)
  2553.     end
  2554.     if active == 19 then
  2555.         ui.addTextArea(0,"<font face='Segoe UI'><font color='#29CC06'><font size='25'><p align='center'>"..text.vesquerda.."",nil,25,20,750,40,0x0C2301,0x5DD872,0.96,true)
  2556.         tfm.exec.setGameTime(5)
  2557.         for name,player in pairs(tfm.get.room.playerList) do
  2558.             data[name].c=1
  2559.         end
  2560.     end
  2561.     if active == 20 then
  2562.         ui.addTextArea(0,"<font face='Segoe UI'><font color='#29CC06'><font size='25'><p align='center'>"..text.vdireita.."",nil,25,20,750,40,0x0C2301,0x5DD872,0.96,true)
  2563.         tfm.exec.setGameTime(5)
  2564.         for name,player in pairs(tfm.get.room.playerList) do
  2565.             data[name].c=1
  2566.         end
  2567.     end
  2568.     if active == 21 then
  2569.         xpos=math.random(60,650) -- calcula aleatoriamente a posição do quadrado branco
  2570.         ui.addTextArea(0,"<font face='Segoe UI'><font color='#29CC06'><font size='25'><p align='center'>"..text.quadrado.."",nil,25,20,750,40,0x0C2301,0x5DD872,0.96,true)
  2571.         tfm.exec.setGameTime(5)
  2572.         for name,player in pairs(tfm.get.room.playerList) do
  2573.             data[name].c=1
  2574.         end
  2575.         ui.addTextArea(1,"",nil,xpos,320,80,65,0xffffff,0xffffff,0.68,false)
  2576.     end
  2577.     if active == 22 then
  2578.         xpos=math.random(60,650) -- calcula aleatoriamente a posição do retângulo branco
  2579.         ui.addTextArea(0,"<font face='Segoe UI'><font color='#29CC06'><font size='25'><p align='center'>"..text.retangulo.."",nil,25,20,750,40,0x0C2301,0x5DD872,0.96,true)
  2580.         tfm.exec.setGameTime(5)
  2581.         for name,player in pairs(tfm.get.room.playerList) do
  2582.             data[name].c=1
  2583.         end
  2584.         ui.addTextArea(1,"",nil,xpos,0,80,400,0xffffff,0xffffff,0.68,false)
  2585.     end
  2586.     if active == 23 then
  2587.         xpos=math.random(60,650) -- calcula aleatoriamente a posição do retângulo branco
  2588.         ui.addTextArea(0,"<font face='Segoe UI'><font color='#29CC06'><font size='25'><p align='center'>"..text.nretangulo.."",nil,25,20,750,40,0x0C2301,0x5DD872,0.96,true)
  2589.         tfm.exec.setGameTime(5)
  2590.         for name,player in pairs(tfm.get.room.playerList) do
  2591.             data[name].c=1
  2592.         end
  2593.         ui.addTextArea(1,"",nil,xpos,0,80,400,0xffffff,0xffffff,0.68,false)
  2594.     end
  2595.     if active == 24 then
  2596.         ypos=math.random(40,300) -- calcula aleatoriamente a posição do retângulo branco
  2597.         ui.addTextArea(0,"<font face='Segoe UI'><font color='#29CC06'><font size='25'><p align='center'>"..text.retangulo.."",nil,25,20,750,40,0x0C2301,0x5DD872,0.96,true)
  2598.         tfm.exec.setGameTime(5)
  2599.         for name,player in pairs(tfm.get.room.playerList) do
  2600.             data[name].c=1
  2601.         end
  2602.         ui.addTextArea(1,"",nil,0,ypos,1600,60,0xffffff,0xffffff,0.68,false)
  2603.     end
  2604.     if active == 25 then
  2605.         ypos=math.random(40,300) -- calcula aleatoriamente a posição do retângulo branco
  2606.         ui.addTextArea(0,"<font face='Segoe UI'><font color='#29CC06'><font size='25'><p align='center'>"..text.nretangulo.."",nil,25,20,750,40,0x0C2301,0x5DD872,0.96,true)
  2607.         tfm.exec.setGameTime(5)
  2608.         for name,player in pairs(tfm.get.room.playerList) do
  2609.             data[name].c=1
  2610.         end
  2611.         ui.addTextArea(1,"",nil,0,ypos,1600,60,0xffffff,0xffffff,0.68,false)
  2612.     end
  2613.     if active == 26 then
  2614.         ui.addTextArea(0,"<font face='Segoe UI'><font color='#29CC06'><font size='25'><p align='center'>"..text.preesquerda30.."",nil,25,20,750,40,0x0C2301,0x5DD872,0.96,true)
  2615.         tfm.exec.setGameTime(9)
  2616.     end
  2617.     if active == 27 then
  2618.         ui.addTextArea(0,"<font face='Segoe UI'><font color='#29CC06'><font size='25'><p align='center'>"..text.predireita30.."",nil,25,20,750,40,0x0C2301,0x5DD872,0.96,true)
  2619.         tfm.exec.setGameTime(9)
  2620.     end
  2621.     if active == 28 then
  2622.         ui.addTextArea(0,"<font face='Segoe UI'><font color='#29CC06'><font size='25'><p align='center'>"..text.preesquerda60.."",nil,25,20,750,40,0x0C2301,0x5DD872,0.96,true)
  2623.         tfm.exec.setGameTime(15)
  2624.     end
  2625.     if active == 29 then
  2626.         ui.addTextArea(0,"<font face='Segoe UI'><font color='#29CC06'><font size='25'><p align='center'>"..text.predireita60.."",nil,25,20,750,40,0x0C2301,0x5DD872,0.96,true)
  2627.         tfm.exec.setGameTime(15)
  2628.     end
  2629.     if active == 30 then
  2630.         ui.addTextArea(0,"<font face='Segoe UI'><font color='#29CC06'><font size='25'><p align='center'>"..text.espaco.."",nil,25,20,750,40,0x0C2301,0x5DD872,0.96,true)
  2631.         tfm.exec.setGameTime(7)
  2632.     end
  2633.     if active == 31 then
  2634.         ui.addTextArea(0,"<font face='Segoe UI'><font color='#29CC06'><font size='25'><p align='center'>"..text.nome.."",nil,25,20,750,40,0x0C2301,0x5DD872,0.96,true)
  2635.         tfm.exec.setGameTime(12)
  2636.     end
  2637.     if active == 32 then
  2638.         ui.addTextArea(0,"<font face='Segoe UI'><font color='#29CC06'><font size='25'><p align='center'>"..text.ndance.."",nil,25,20,750,40,0x0C2301,0x5DD872,0.96,true)
  2639.         tfm.exec.setGameTime(6)
  2640.         for name,player in pairs(tfm.get.room.playerList) do
  2641.             data[name].c=1
  2642.         end
  2643.     end
  2644.     if active == 33 then
  2645.         local number1=math.random(1000000,9999999)
  2646.         local number2=math.random(1000000,9999999)
  2647.         string=tostring(number1..number2)
  2648.         ui.addTextArea(0,"<font face='Segoe UI'><font color='#29CC06'><font size='25'><p align='center'>"..text.numero..""..string.."",nil,25,20,750,40,0x0C2301,0x5DD872,0.96,true)
  2649.         tfm.exec.setGameTime(15)
  2650.     end
  2651.     if active == 34 then
  2652.         ui.addTextArea(0,"<font face='Segoe UI'><font color='#29CC06'><font size='25'><p align='center'>"..pergunta.."",nil,25,20,750,40,0x0C2301,0x5DD872,0.96,true)
  2653.         tfm.exec.setGameTime(tempo)
  2654.     end
  2655.     if active == 35 then
  2656.         ui.addTextArea(0,"<font face='Segoe UI'><font color='#29CC06'><font size='25'><p align='center'>"..text.preesquerda150.."",nil,25,20,750,40,0x0C2301,0x5DD872,0.96,true)
  2657.         tfm.exec.setGameTime(21)
  2658.     end
  2659.     if active == 36 then
  2660.         ui.addTextArea(0,"<font face='Segoe UI'><font color='#29CC06'><font size='25'><p align='center'>"..text.predireita150.."",nil,25,20,750,40,0x0C2301,0x5DD872,0.96,true)
  2661.         tfm.exec.setGameTime(21)
  2662.     end
  2663. end
  2664. function eventChatMessage(name,message)
  2665.     if active == 11 or active == 13 or active == 33 then
  2666.         if message == tostring(number) or message == string then
  2667.             data[name].c=1
  2668.         end
  2669.     end
  2670.     if active == 12 then
  2671.         data[name].c=1
  2672.     end
  2673.     if active == 14 then
  2674.         tfm.exec.killPlayer(name)
  2675.     end
  2676.     if active == 18 then
  2677.         if message == "2018" or message == "2019" then
  2678.             data[name].c=1
  2679.         end
  2680.     end
  2681.     if active == 31 then
  2682.         if string.upper(message) == string.upper(name) then
  2683.             data[name].c=1
  2684.         end
  2685.     end
  2686.     if active == 34 then
  2687.         if string.upper(message) == string.upper(resposta) then
  2688.             data[name].c=1
  2689.         end
  2690.     end
  2691. end
  2692. function eventEmotePlayed(name,id)
  2693.     if active == 1 then
  2694.         if id == 0 or id == 10 then
  2695.             data[name].c=1
  2696.         end
  2697.     end
  2698.     if active == 2 then
  2699.         if id == 8 then
  2700.             data[name].c=1
  2701.         end
  2702.     end
  2703.     if active == 3 then
  2704.         if id == 9 then
  2705.             data[name].s=data[name].s+1
  2706.             if data[name].s >= 5 then
  2707.                 data[name].c=1
  2708.             end
  2709.         end
  2710.     end
  2711.     if active == 5 then
  2712.         if id == 3 then
  2713.             data[name].s=data[name].s+1
  2714.             if data[name].s >= 10 then
  2715.                 data[name].c=1
  2716.             end
  2717.         end
  2718.     end
  2719.     if active == 6 then
  2720.         if id == 6 then
  2721.             data[name].c=1
  2722.         end
  2723.     end
  2724.     if active == 7 then
  2725.         if id == 4 then
  2726.             data[name].c=1
  2727.         end
  2728.     end
  2729.     if active == 8 then
  2730.         if id == 2 then
  2731.             data[name].c=1
  2732.         end
  2733.     end
  2734.     if active == 16 then
  2735.         tfm.exec.killPlayer(name)
  2736.     end
  2737.     if active == 17 then
  2738.         if id == 10 then
  2739.             data[name].c=1
  2740.         end
  2741.     end
  2742.     if active == 32 then
  2743.         if id == 0 or id == 10 then
  2744.             tfm.exec.killPlayer(name)
  2745.         end
  2746.     end
  2747. end
  2748. function eventMouse(name,x,y)
  2749.     if active == 4 then
  2750.         data[name].s=data[name].s+1
  2751.         if data[name].s >= 10 then
  2752.             data[name].c=1
  2753.         end
  2754.     end
  2755. end
  2756. function eventKeyboard(name,id,down,x,y)
  2757.     if active == 9 then
  2758.         if id == 37 or id == 65 then
  2759.             tfm.exec.killPlayer(name)
  2760.         end
  2761.     end
  2762.     if active == 10 then
  2763.         if id == 39 or id == 68 then
  2764.             tfm.exec.killPlayer(name)
  2765.         end
  2766.     end
  2767.     if active == 15 then
  2768.         if id == 38 or id == 87 then
  2769.             tfm.exec.killPlayer(name)
  2770.         end
  2771.     end
  2772.     if active == 16 then
  2773.         if id == 38 or id == 87 or id == 37 or id == 65 or id == 39 or id == 68 or id == 40 or id == 83 then
  2774.             tfm.exec.killPlayer(name)
  2775.         end
  2776.     end
  2777.     if active == 26 then
  2778.         if id == 37 or id == 65 then
  2779.             data[name].s=data[name].s+1
  2780.             if data[name].s >= 30 then
  2781.                 data[name].c=1
  2782.             end
  2783.         end
  2784.     end
  2785.     if active == 27 then
  2786.         if id == 39 or id == 68 then
  2787.             data[name].s=data[name].s+1
  2788.             if data[name].s >= 30 then
  2789.                 data[name].c=1
  2790.             end
  2791.         end
  2792.     end
  2793.     if active == 28 then
  2794.         if id == 37 or id == 65 then
  2795.             data[name].s=data[name].s+1
  2796.             if data[name].s >= 60 then
  2797.                 data[name].c=1
  2798.             end
  2799.         end
  2800.     end
  2801.     if active == 29 then
  2802.         if id == 39 or id == 68 then
  2803.             data[name].s=data[name].s+1
  2804.             if data[name].s >= 60 then
  2805.                 data[name].c=1
  2806.             end
  2807.         end
  2808.     end
  2809.     if active == 35 then
  2810.         if id == 37 or id == 65 then
  2811.             data[name].s=data[name].s+1
  2812.             if data[name].s >= 150 then
  2813.                 data[name].c=1
  2814.             end
  2815.         end
  2816.     end
  2817.     if active == 36 then
  2818.         if id == 39 or id == 68 then
  2819.             data[name].s=data[name].s+1
  2820.             if data[name].s >= 150 then
  2821.                 data[name].c=1
  2822.             end
  2823.         end
  2824.     end
  2825.     if active == 30 then
  2826.         if id == 32 then
  2827.             data[name].s=data[name].s+1
  2828.             if data[name].s >= 15 then
  2829.                 data[name].c=1
  2830.             end
  2831.         end
  2832.     end
  2833. end
  2834. function eventLoop(passado,faltando)
  2835.     local tempo=math.floor(faltando/1000)
  2836.     if active == -2 then
  2837.         ui.setMapName("<N>"..text.mices.."<")
  2838.     elseif active == -1 then
  2839.         ui.setMapName("<VP>"..text.fim.."<b>"..tempo.."</b> "..text.segundos.."<")
  2840.     else
  2841.         ui.setMapName("<J>"..tfm.get.room.currentMap.."   <G>|  <N>"..text.time.." : <V>"..tempo.."s   <G>|  <N>"..text.mice.." : <VP>"..vivo.." <N>/ <V>"..rato.."   <G>|   <N>"..text.round.." : <V>"..rodada.."/"..rodadas.."<")
  2842.     end
  2843.     if active >= 0 then
  2844.         if passado > 1200 and passado < 1700 and unlocked == true then
  2845.             tfm.exec.chatMessage(""..text.playingmap.." <J>"..tfm.get.room.currentMap.."<BL> "..text.created.." <J>"..tfm.get.room.xmlMapInfo.author)
  2846.         end
  2847.     end
  2848.     if rato < 4 then
  2849.         if tfm.get.room.currentMap == "@7277839" and unlocked == true then
  2850.             active=-2
  2851.             tfm.exec.setGameTime(8000)
  2852.         else
  2853.             if passado > 3000 and unlocked == true then
  2854.                 tfm.exec.newGame("@7277839")
  2855.                 tfm.exec.setGameTime(8000)
  2856.                 tfm.exec.chatMessage("<R>"..text.mices.."",nil)
  2857.             end
  2858.         end
  2859.     end
  2860.     if rato >= 4 then
  2861.         if tfm.get.room.currentMap == "@7277839" and unlocked == true then
  2862.             tfm.exec.newGame(mapas[math.random(#mapas)])
  2863.             active=0
  2864.         end
  2865.     end
  2866.     if active < 0 and faltando < 1 and unlocked == true then
  2867.         tfm.exec.newGame(mapas[math.random(#mapas)])
  2868.     end
  2869.     if active == 0 and faltando < 1000 then
  2870.         if rodada < rodadas then
  2871.             sortearComandos()
  2872.         else
  2873.             active=-1
  2874.             tfm.exec.setGameTime(10)
  2875.             for name,player in pairs(tfm.get.room.playerList) do
  2876.                 tfm.exec.giveCheese(true)
  2877.                 tfm.exec.playerVictory(true)
  2878.             end
  2879.         end
  2880.     end
  2881.     if active > 0 and faltando < 1 and rato > 1 then
  2882.         if active == 19 then
  2883.             for name,player in pairs(tfm.get.room.playerList) do
  2884.                 if tfm.get.room.playerList[name].isFacingRight == true then
  2885.                     tfm.exec.killPlayer(name)
  2886.                 end
  2887.             end
  2888.         end
  2889.         if active == 20 then
  2890.             for name,player in pairs(tfm.get.room.playerList) do
  2891.                 if tfm.get.room.playerList[name].isFacingRight == false then
  2892.                     tfm.exec.killPlayer(name)
  2893.                 end
  2894.             end
  2895.         end
  2896.         if active == 21 then
  2897.             for name,player in pairs(tfm.get.room.playerList) do
  2898.                 if player.y < 300 then
  2899.                     tfm.exec.killPlayer(name)
  2900.                 else
  2901.                     if player.x < xpos-20 or player.x > xpos+100 then
  2902.                         tfm.exec.killPlayer(name)
  2903.                     end
  2904.                 end
  2905.             end
  2906.         end
  2907.         if active == 22 then
  2908.             for name,player in pairs(tfm.get.room.playerList) do
  2909.                 if player.x < xpos or player.x > xpos+80 then
  2910.                     tfm.exec.killPlayer(name)
  2911.                 end
  2912.             end
  2913.         end
  2914.         if active == 23 then
  2915.             for name,player in pairs(tfm.get.room.playerList) do
  2916.                 if player.x > xpos and player.x < xpos+80 then
  2917.                     tfm.exec.killPlayer(name)
  2918.                 end
  2919.             end
  2920.         end
  2921.         if active == 24 then
  2922.             for name,player in pairs(tfm.get.room.playerList) do
  2923.                 if player.y < ypos-10 or player.y > ypos+70 then
  2924.                     tfm.exec.killPlayer(name)
  2925.                 end
  2926.             end
  2927.         end
  2928.         if active == 25 then
  2929.             for name,player in pairs(tfm.get.room.playerList) do
  2930.                 if player.y > ypos-10 and player.y < ypos+70 then
  2931.                     tfm.exec.killPlayer(name)
  2932.                 end
  2933.             end
  2934.         end
  2935.         ui.removeTextArea(0,nil)
  2936.         ui.removeTextArea(1,nil)
  2937.         active=0
  2938.         if rodada == 8 or rodada == 10 or rodada == 12 or rodada == 14 then
  2939.             dificuldade=dificuldade+1
  2940.         end
  2941.         for name,player in pairs(tfm.get.room.playerList) do
  2942.             if data[name].c == 0 then
  2943.                 tfm.exec.killPlayer(name)
  2944.             end
  2945.         end
  2946.         if vivo > 4 then
  2947.             tfm.exec.setGameTime(6-dificuldade)
  2948.         else
  2949.             tfm.exec.setGameTime(9-dificuldade)
  2950.         end
  2951.     end
  2952.     for name,player in pairs(tfm.get.room.playerList) do
  2953.         if data[name].c == 1 then
  2954.             tfm.exec.setNameColor(name,0x00ff00)
  2955.         else
  2956.             tfm.exec.setNameColor(name,0xc2c2da)
  2957.         end
  2958.     end
  2959. end
  2960. tfm.exec.newGame("@7277839")
  2961. end
  2962.  
  2963. initPistas = function()
  2964. tfm.exec.disableAllShamanSkills(true)
  2965. tfm.exec.disableAutoNewGame(true)
  2966. tfm.exec.disableAfkDeath(true)
  2967. tfm.exec.disableAutoTimeLeft(true)
  2968. tfm.exec.disablePhysicalConsumables(true)
  2969. tfm.exec.disableMortCommand(true)
  2970. pergunta=0
  2971. valendo=false
  2972. limite=6 -- Variável usada para armazenar o limite de partidas
  2973. dica10="" -- Variável usada para armazenar a dica valendo 10 pontos
  2974. dica9="" -- Variável usada para armazenar a dica valendo 9 pontos
  2975. dica8="" -- Variável usada para armazenar a dica valendo 8 pontos
  2976. resposta="" -- Variável usada para armazenar a resposta da pergunta
  2977. data={}
  2978. tempo=999 -- NÃO ALTERAR!
  2979. loop=0
  2980. system.disableChatCommandDisplay("help")
  2981. system.disableChatCommandDisplay("ratos")
  2982. system.disableChatCommandDisplay("skip")
  2983. system.disableChatCommandDisplay("shaman")
  2984. mapa="@4677521" -- Variável usada para armazenar o mapa do module
  2985. lang = {}
  2986. lang.br = {
  2987.     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 Miss_fortune#9548",
  2988.     time = "<R>Tempo esgotado! A resposta era ",
  2989.     fim = "<R>Partida encerrada! O jogador com melhor pontuação será o shaman!",
  2990.     shaman = "<R>Acabou o tempo! Outro shaman será escolhido.",
  2991.     c10p = "Dica valendo 10 pontos:",
  2992.     c9p = "Dica valendo 9 pontos:",
  2993.     c8p = "Dica valendo 8 pontos:",
  2994.     module = "Jogo das 3 Pistas",
  2995.     cancel = "<R>Rodada cancelada.",
  2996.     question = "<VP>Pressione G para fazer uma pergunta.",
  2997.     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.",
  2998.     win = "acertou a resposta! A resposta era",
  2999.     cancelled = "<R>Rodada cancelada! O shaman falou a resposta.",
  3000. }
  3001. lang.en = {
  3002.     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 Miss_fortune#9548",
  3003.     time = "<R>End of time! The answer was",
  3004.     fim = "<R>The match ended! The best player will be the shaman.",
  3005.     shaman = "<R>Time is gone! Other shaman will be selected.",
  3006.     c10p = "Tip for 10 points:",
  3007.     c9p = "Tip for 9 points:",
  3008.     c8p = "Tip for 8 points:",
  3009.     module = "3 Tips Game",
  3010.     cancel = "<R>Cancelled match.",
  3011.     question = "<VP>Press G to make a question.",
  3012.     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.",
  3013.     win = "discovered the answer! The answer was",
  3014.     cancelled = "<R>The shaman typed the answer! The question will be cancelled.",
  3015. }
  3016. if tfm.get.room.community == "br" then
  3017.     text = lang.br
  3018. else
  3019.     text = lang.en
  3020. end
  3021. tfm.exec.setPlayerScore(admin,999,true)
  3022. tfm.exec.newGame(mapa)
  3023. rato=0
  3024. function eventNewPlayer(name)
  3025.     newData={
  3026.         ["played"]=0;
  3027.             }
  3028.     data[name]=newData;
  3029.     tfm.exec.bindKeyboard(name,71,true,true)
  3030.     tfm.exec.respawnPlayer(name)
  3031.     tfm.exec.chatMessage(text.welcome,name)
  3032. end
  3033. for name,player in pairs(tfm.get.room.playerList) do
  3034.     eventNewPlayer(name)
  3035. end
  3036. function eventSummoningEnd(name,type,x,y,angle,vx,vy,obj)
  3037.     for name,player in pairs(tfm.get.room.playerList) do
  3038.         if tfm.get.room.playerList[name].isShaman then
  3039.             tfm.exec.chatMessage("<ROSE>Don't is allowed the use of shaman objects in this module.",nil)
  3040.             tfm.exec.newGame(mapa)
  3041.         end
  3042.     end
  3043. end
  3044. function eventLoop(p,f)
  3045.     loop=loop+1
  3046.     tempo=math.ceil(f/1000)
  3047.     if f < 2000 and valendo == true then
  3048.         tfm.exec.chatMessage(""..text.time..""..resposta.."",nil)
  3049.         ui.removeTextArea(1,nil)
  3050.         ui.removeTextArea(2,nil)
  3051.         ui.removeTextArea(3,nil)
  3052.         valendo=false
  3053.         tfm.exec.setGameTime(60)
  3054.     end
  3055.     if pergunta == limite and valendo == false then
  3056.         tfm.exec.chatMessage(text.fim,nil)
  3057.         tfm.exec.newGame(mapa)
  3058.     end
  3059.     if f <= 100 then
  3060.         tfm.exec.chatMessage(text.shaman,nil)
  3061.         tfm.exec.newGame(mapa)
  3062.     end
  3063.     if loop == 10 then
  3064.         for name,player in pairs(tfm.get.room.playerList) do
  3065.             tfm.exec.setPlayerScore(name,0,false)
  3066.         end
  3067.     end
  3068.     if valendo == true and f <= 59000 then
  3069.         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)
  3070.     end
  3071.     if valendo == true and f <= 49000 then
  3072.         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)
  3073.     end
  3074.     if valendo == true and f <= 39000 then
  3075.         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)
  3076.     end
  3077.     ui.setMapName("<J>"..text.module.."   <G>|   <N>Question : <V>"..pergunta.."/"..limite.."   <G>|   <N>Time : <V>"..tempo.."s   <G>|   <N>Compilation RTM 4<")
  3078. end
  3079. function eventChatCommand(name,message)
  3080.     if message == "skip" then
  3081.         if name == "Jessiewind26#2546" or name == "Hecarimjhenx#0000" or name == "Miss_fortune#9548"  then
  3082.             tfm.exec.chatMessage(text.cancel,nil)
  3083.             tfm.exec.newGame(mapa)
  3084.         end
  3085.     end
  3086.     if(message:sub(1,6) == "limite") then
  3087.         if name == "Jessiewind26#2546" or name == "Hecarimjhenx#0000" or name == "Miss_fortune#9548"  then
  3088.             limite=tonumber(message:sub(8))
  3089.         end
  3090.     end
  3091.     if(message:sub(1,5) == "ratos") then
  3092.         if name == "Jessiewind26#2546" or name == "Hecarimjhenx#0000" or name == "Miss_fortune#9548"  then
  3093.             tfm.exec.setRoomMaxPlayers(message:sub(7))
  3094.         end
  3095.     end
  3096.     if(message:sub(1,6) == "shaman") then
  3097.         if name == "Jessiewind26#2546" or name == "Hecarimjhenx#0000" or name == "Miss_fortune#9548"  then
  3098.             tfm.exec.setPlayerScore(message:sub(8),9999,false)
  3099.             tfm.exec.newGame(mapa)
  3100.         end
  3101.     end
  3102.     if(message:sub(1,2) == "pw") then
  3103.         if name == "Jessiewind26#2546" or name == "Hecarimjhenx#0000" or name == "Miss_fortune#9548"  then
  3104.             if message:sub(4) == "" then
  3105.                 tfm.exec.setRoomPassword("")
  3106.                 tfm.exec.chatMessage("Password cleared.",name)
  3107.             else
  3108.                 tfm.exec.setRoomPassword(message:sub(4))
  3109.                 tfm.exec.chatMessage("Password: "..message:sub(4).."",name)
  3110.             end
  3111.         end
  3112.     end
  3113.     if message == "help" then
  3114.         tfm.exec.chatMessage(text.help,name)
  3115.     end
  3116. end
  3117. function eventNewGame()
  3118.     loop=0
  3119.     ui.removeTextArea(1,nil)
  3120.     ui.removeTextArea(2,nil)
  3121.     ui.removeTextArea(3,nil)
  3122.     pistas={p10="",p9="",p8=""}
  3123.     valendo=false
  3124.     pergunta=0
  3125.     tfm.exec.setGameTime(60)
  3126.     rato=0
  3127.     for name,player in pairs(tfm.get.room.playerList) do
  3128.         if tfm.get.room.playerList[name].isShaman then
  3129.             data[name].played=1
  3130.             tfm.exec.chatMessage(text.question,name)
  3131.         end
  3132.         tfm.exec.bindKeyboard(name,71,true,true)
  3133.         rato=rato+1
  3134.         tfm.exec.setPlayerScore(name,0,false)
  3135.     end
  3136. end
  3137. function eventChatMessage(name,message)
  3138.      if string.upper(message) == string.upper(resposta) and valendo == true then
  3139.         if tfm.get.room.playerList[name].isShaman == false then
  3140.             if tempo >= 50 then
  3141.                 tfm.exec.setPlayerScore(name,10,true)
  3142.             elseif tempo >= 40 and tempo < 50 then
  3143.                 tfm.exec.setPlayerScore(name,9,true)
  3144.             elseif tempo < 40 then
  3145.                 tfm.exec.setPlayerScore(name,8,true)
  3146.             end
  3147.             valendo=false
  3148.             tfm.exec.setGameTime(59)
  3149.             tfm.exec.chatMessage("<VP>"..name.." "..text.win.." "..string.upper(resposta).."",nil)
  3150.             resposta=""
  3151.             ui.removeTextArea(1,nil)
  3152.             ui.removeTextArea(2,nil)
  3153.             ui.removeTextArea(3,nil)
  3154.         else
  3155.             tfm.exec.chatMessage(text.cancelled,nil)
  3156.             ui.removeTextArea(1,nil)
  3157.             ui.removeTextArea(2,nil)
  3158.             ui.removeTextArea(3,nil)
  3159.             valendo=false
  3160.             tfm.exec.setGameTime(59)
  3161.         end
  3162.     end
  3163. end
  3164. function eventKeyboard(name,key)
  3165.     if tfm.get.room.playerList[name].isShaman then
  3166.         ui.addPopup(0,2,text.c10p,name,350,125,200,true)
  3167.     end
  3168. end
  3169. function eventPopupAnswer(id,name,answer)
  3170.     if tfm.get.room.playerList[name].isShaman then
  3171.     if id == 0 then
  3172.         dica10=answer
  3173.         ui.addPopup(1,2,text.c9p,name,350,125,200,true)
  3174.     end
  3175.     if id == 1 then
  3176.         dica9=answer
  3177.         ui.addPopup(2,2,text.c8p,name,350,125,200,true)
  3178.     end
  3179.     if id == 2 then
  3180.         dica8=answer
  3181.         ui.addPopup(3,2,"Insert the ANSWER:",name,350,125,200,true)
  3182.     end
  3183.     if id == 3 then
  3184.         if string.len(answer) >= 2 and string.len(answer) <= 32 then
  3185.             pergunta=pergunta+1
  3186.             resposta=string.upper(answer)
  3187.             tfm.exec.setGameTime(60)
  3188.             valendo=true
  3189.         else
  3190.             ui.addPopup(3,2,"Insert the ANSWER:",name,350,125,200,true)
  3191.         end
  3192.     end
  3193.     end
  3194. end
  3195. function eventPlayerDied(name)
  3196.     if tfm.get.room.playerList[name].isShaman then
  3197.         tfm.exec.newGame(mapa)
  3198.     end
  3199. end
  3200. end
  3201. initPerguntas = function()
  3202. casas=5
  3203. tfm.exec.disableAutoNewGame(true)
  3204. tfm.exec.disablePhysicalConsumables(true)
  3205. tfm.exec.disableAutoTimeLeft(true)
  3206. tfm.exec.setRoomMaxPlayers(30)
  3207. tfm.exec.disableAfkDeath(true)
  3208. mapa3='<C><P L="900" /><Z><S><S P="0,0,0.3,0.2,0,0,0,0" L="900" o="ffffff" X="450" N="" Y="386" T="12" H="28" /><S L="20" o="ffffff" X="300" H="400" Y="200" T="12" P="0,0,0,0,0,0,0,0" /><S P="0,0,0,0,0,0,0,0" L="20" o="ffffff" H="400" Y="200" T="12" X="10" /><S P="0,0,0,0,90,0,0,0" L="20" o="ffffff" H="150" Y="269" T="12" X="385" /><S L="20" o="ffffff" H="150" X="470" Y="334" T="12" P="0,0,0,0,180,0,0,0" /><S P="0,0,0,0,180,0,0,0" L="20" o="ffffff" X="640" Y="319" T="12" H="150" /><S P="0,0,0,0,270,0,0,0" L="20" o="ffffff" X="555" Y="254" T="12" H="150" /><S L="20" o="ffffff" X="825" H="150" Y="239" T="12" P="0,0,0,0,90,0,0,0" /><S L="20" o="ffffff" X="725" H="150" Y="239" T="12" P="0,0,0,0,270,0,0,0" /><S P="0,0,0,0,0,0,0,0" L="20" o="ffffff" H="400" Y="200" T="12" X="890" /><S L="900" o="ffffff" H="40" X="450" Y="20" T="12" P="0,0,0,0,0,0,0,0" /></S><D><T Y="382" D="" X="843" /><F Y="368" D="" X="841" /><DS Y="360" X="149" /><DC Y="231" X="559" /><P P="0,0" C="0" Y="0" T="34" X="0" /><P C="0" Y="0" T="34" X="90" P="0,0" /><P P="0,0" Y="374" T="37" X="379" /><P P="0,0" Y="374" T="37" X="535" /><P P="0,0" Y="374" T="37" X="575" /><P P="0,0" Y="375" T="37" X="682" /><P P="0,0" Y="373" T="37" X="717" /><P P="0,0" Y="375" T="37" X="751" /><P P="0,0" Y="73" T="35" X="439" /><P P="0,0" Y="65" T="35" X="763" /><P P="0,0" Y="125" T="36" X="602" /><P P="0,0" Y="82" T="38" X="781" /><P P="0,0" Y="258" T="33" X="384" /><P P="0,0" Y="218" T="31" X="382" /><P P="0,0" Y="375" T="26" X="237" /><P P="0,0" Y="375" T="22" X="66" /></D><O /></Z></C>'
  3209. mapa5='<C><P L="1240" /><Z><S><S L="1240" o="ffffff" X="620" H="28" N="" Y="386" T="12" P="0,0,0.3,0.2,0,0,0,0" /><S P="0,0,0,0,0,0,0,0" L="20" o="ffffff" H="400" Y="200" T="12" X="300" /><S L="20" o="ffffff" H="400" X="10" Y="200" T="12" P="0,0,0,0,0,0,0,0" /><S L="20" o="ffffff" H="150" X="385" Y="269" T="12" P="0,0,0,0,90,0,0,0" /><S P="0,0,0,0,180,0,0,0" L="20" o="ffffff" X="470" Y="334" T="12" H="150" /><S L="20" o="ffffff" X="640" H="150" Y="319" T="12" P="0,0,0,0,180,0,0,0" /><S L="20" o="ffffff" X="555" H="150" Y="254" T="12" P="0,0,0,0,270,0,0,0" /><S P="0,0,0,0,90,0,0,0" L="20" o="ffffff" H="150" Y="239" T="12" X="725" /><S L="20" o="ffffff" H="400" X="1230" Y="200" T="12" P="0,0,0,0,0,0,0,0" /><S P="0,0,0,0,0,0,0,0" L="1240" o="ffffff" X="640" Y="20" T="12" H="40" /><S P="0,0,0,0,180,0,0,0" L="20" o="ffffff" H="150" Y="304" T="12" X="810" /><S L="20" o="ffffff" H="200" X="980" Y="312" T="12" P="0,0,0,0,180,0,0,0" /><S L="20" o="ffffff" H="150" X="895" Y="222" T="12" P="0,0,0,0,90,0,0,0" /><S P="0,0,0,0,180,0,0,0" L="240" o="ffffff" X="1110" Y="205" T="12" H="20" /></S><D><T Y="378" D="" X="1190" /><F Y="368" D="" X="1189" /><DS Y="360" X="149" /><DC Y="231" X="559" /><P C="0" Y="0" T="34" X="0" P="0,0" /><P C="0" Y="0" T="34" P="0,0" X="422" /><P X="379" Y="374" T="37" P="0,0" /><P X="535" Y="374" T="37" P="0,0" /><P X="575" Y="374" T="37" P="0,0" /><P X="682" Y="375" T="37" P="0,0" /><P X="717" Y="373" T="37" P="0,0" /><P X="751" Y="375" T="37" P="0,0" /><P X="439" Y="73" T="35" P="0,0" /><P X="763" Y="65" T="35" P="0,0" /><P X="602" Y="125" T="36" P="0,0" /><P X="781" Y="82" T="38" P="0,0" /><P X="384" Y="258" T="33" P="0,0" /><P X="382" Y="218" T="31" P="0,0" /><P X="237" Y="375" T="26" P="0,0" /><P X="66" Y="375" T="22" P="0,0" /><P P="0,0" Y="376" T="37" X="845" /><P P="0,0" Y="374" T="37" X="876" /><P P="0,0" Y="375" T="37" X="906" /><P P="0,0" Y="374" T="37" X="939" /><P P="0,0" Y="374" T="37" X="1013" /><P P="0,0" Y="379" T="37" X="1044" /><P P="0,0" Y="377" T="37" X="1077" /><P P="0,0" Y="380" T="37" X="1115" /><P P="0,0" Y="378" T="37" X="1147" /></D><O /></Z></C>'
  3210. mapa7='<C><P L="1580" /><Z><S><S L="1580" o="ffffff" H="28" X="790" N="" Y="386" T="12" P="0,0,0.3,0.2,0,0,0,0" /><S P="0,0,0,0,0,0,0,0" L="20" o="ffffff" X="300" Y="200" T="12" H="400" /><S L="20" o="ffffff" X="10" H="400" Y="200" T="12" P="0,0,0,0,0,0,0,0" /><S L="20" o="ffffff" X="385" H="150" Y="269" T="12" P="0,0,0,0,90,0,0,0" /><S P="0,0,0,0,180,0,0,0" L="20" o="ffffff" H="150" Y="334" T="12" X="470" /><S L="20" o="ffffff" H="150" X="640" Y="319" T="12" P="0,0,0,0,180,0,0,0" /><S L="20" o="ffffff" H="150" X="555" Y="254" T="12" P="0,0,0,0,270,0,0,0" /><S P="0,0,0,0,90,0,0,0" L="20" o="ffffff" X="725" Y="239" T="12" H="150" /><S L="20" o="ffffff" X="1570" H="400" Y="200" T="12" P="0,0,0,0,0,0,0,0" /><S P="0,0,0,0,0,0,0,0" L="1580" o="ffffff" H="40" Y="20" T="12" X="790" /><S P="0,0,0,0,180,0,0,0" L="20" o="ffffff" X="810" Y="304" T="12" H="150" /><S L="20" o="ffffff" X="980" H="200" Y="312" T="12" P="0,0,0,0,180,0,0,0" /><S L="20" o="ffffff" X="895" H="150" Y="222" T="12" P="0,0,0,0,90,0,0,0" /><S P="0,0,0,0,180,0,0,0" L="20" o="ffffff" H="200" Y="295" T="12" X="1150" /><S P="0,0,0,0,90,0,0,0" L="20" o="ffffff" H="150" Y="205" T="12" X="1065" /><S L="20" o="ffffff" H="200" X="1320" Y="278" T="12" P="0,0,0,0,180,0,0,0" /><S L="20" o="ffffff" H="150" X="1235" Y="188" T="12" P="0,0,0,0,90,0,0,0" /><S P="0,0,0,0,90,0,0,0" L="20" o="ffffff" X="1455" Y="171" T="12" H="250" /></S><D><T Y="379" D="" X="1534" /><F Y="368" D="" X="1532" /><DS Y="360" X="149" /><DC Y="231" X="559" /><P C="0" Y="0" T="34" X="0" P="0,0" /><P C="0" Y="0" T="34" P="0,0" X="765" /><P X="379" Y="374" T="37" P="0,0" /><P X="535" Y="374" T="37" P="0,0" /><P X="575" Y="374" T="37" P="0,0" /><P X="682" Y="375" T="37" P="0,0" /><P X="717" Y="373" T="37" P="0,0" /><P X="751" Y="375" T="37" P="0,0" /><P X="439" Y="73" T="35" P="0,0" /><P X="763" Y="65" T="35" P="0,0" /><P X="781" Y="82" T="38" P="0,0" /><P X="384" Y="258" T="33" P="0,0" /><P X="237" Y="375" T="26" P="0,0" /><P X="66" Y="375" T="22" P="0,0" /><P P="0,0" Y="376" T="37" X="845" /><P P="0,0" Y="374" T="37" X="876" /><P P="0,0" Y="375" T="37" X="906" /><P P="0,0" Y="374" T="37" X="939" /><P P="0,0" Y="374" T="37" X="1013" /><P P="0,0" Y="375" T="37" X="1038" /><P P="0,0" Y="376" T="37" X="1063" /><P P="0,0" Y="377" T="37" X="1113" /><P P="0,0" Y="375" T="37" X="1089" /><P P="0,0" Y="376" T="37" X="1174" /><P P="0,0" Y="375" T="37" X="1194" /><P P="0,0" Y="375" T="37" X="1215" /><P P="0,0" Y="373" T="37" X="1239" /><P P="0,0" Y="373" T="37" X="1263" /><P P="0,0" Y="376" T="37" X="1288" /><P P="0,0" Y="373" T="37" X="1347" /><P P="0,0" Y="372" T="37" X="1372" /><P P="0,0" Y="372" T="37" X="1398" /><P P="0,0" Y="372" T="37" X="1421" /><P P="0,0" Y="373" T="37" X="1445" /><P P="0,0" Y="374" T="37" X="1468" /><P P="0,0" Y="372" T="37" X="1493" /></D><O /></Z></C>'
  3211. function trocarMapa()
  3212.     if casas == 3 then
  3213.         tfm.exec.newGame(mapa3)
  3214.     elseif casas == 5 then
  3215.         tfm.exec.newGame(mapa5)
  3216.     elseif casas == 7 then
  3217.         tfm.exec.newGame(mapa7)
  3218.     end
  3219. end
  3220. tfm.exec.setGameTime(60)
  3221. palavra=""
  3222. pergunta=""
  3223. data={}
  3224. players_table={}
  3225. system.disableChatCommandDisplay("setxa")
  3226. system.disableChatCommandDisplay("rounds")
  3227. system.disableChatCommandDisplay("q")
  3228. for name,player in pairs(tfm.get.room.playerList) do
  3229.     newData={
  3230.     ["p"]=0;
  3231.     }
  3232.     data[name] = newData;
  3233. end
  3234. function eventChatCommand(name,message)
  3235.     if message == "q" then
  3236.         if tfm.get.room.playerList[name].isShaman then
  3237.             ui.addPopup(0,2,"Type the question:",name,350,175,200,true)
  3238.         end
  3239.     end
  3240.     if(message:sub(0,5) == "setxa") then
  3241.         tfm.exec.setPlayerScore(message:sub(7),10,false)
  3242.         trocarMapa()
  3243.     end
  3244.     if(message:sub(0,6) == "rounds") then
  3245.         if message:sub(8) == "3" or message:sub(8) == "5" or message:sub(8) == "7" then
  3246.             casas=tonumber(message:sub(8))
  3247.         end
  3248.     end
  3249. end
  3250. function eventChatMessage(name,message)
  3251.     if string.upper(message) == string.upper(palavra) and not tfm.get.room.playerList[name].isShaman then
  3252.             data[name].p=data[name].p+1
  3253.             palavra=""
  3254.             pergunta=""
  3255.             ui.addPopup(2,0,"",nil,6000,6000,0,false)
  3256.             tfm.exec.setGameTime(60)
  3257.             tfm.exec.setPlayerScore(name,1,true)
  3258.             if data[name].p == 1 then
  3259.                 tfm.exec.movePlayer(name,380,360,false,1,1,false)
  3260.             elseif data[name].p == 2 then
  3261.                 tfm.exec.movePlayer(name,550,360,false,1,1,false)
  3262.             elseif data[name].p == 3 then
  3263.                 tfm.exec.movePlayer(name,720,360,false,1,1,false)
  3264.             elseif data[name].p == 4 then
  3265.                 tfm.exec.movePlayer(name,890,360,false,1,1,false)
  3266.             elseif data[name].p == 5 then
  3267.                 tfm.exec.movePlayer(name,1060,360,false,1,1,false)
  3268.             elseif data[name].p == 6 then
  3269.                 tfm.exec.movePlayer(name,1230,360,false,1,1,false)
  3270.             elseif data[name].p == 7 then
  3271.                 tfm.exec.movePlayer(name,1400,360,false,1,1,false)
  3272.             end
  3273.         end
  3274. end
  3275. function eventPopupAnswer(id,name,answer)
  3276.     if id == 0 then
  3277.         pergunta=answer;
  3278.         ui.addPopup(1,2,"Type the answer:",name,350,275,200,true)
  3279.     end
  3280.     if id == 1 then
  3281.         ui.addPopup(2,0,"<font size='16'>"..pergunta.."",NIL,0,60,800,true)
  3282.         tfm.exec.setGameTime(60)
  3283.         palavra=answer;
  3284.     end
  3285. end
  3286. function eventNewPlayer(name)
  3287.     tfm.exec.setUIMapName("Corrida das perguntas versão 9.0 (versão de 16/32 bits)")
  3288.     tfm.exec.respawnPlayer(name)
  3289.     if not data[name] then
  3290.         table.insert(players_table,name)
  3291.         data[name]={p=0}
  3292.     else
  3293.         if data[name].p == 1 then
  3294.             tfm.exec.movePlayer(name,380,360,false,1,1,false)
  3295.         elseif data[name].p == 2 then
  3296.             tfm.exec.movePlayer(name,550,360,false,1,1,false)
  3297.         elseif data[name].p == 3 then
  3298.             tfm.exec.movePlayer(name,720,360,false,1,1,false)
  3299.         elseif data[name].p == 4 then
  3300.             tfm.exec.movePlayer(name,890,360,false,1,1,false)
  3301.         elseif data[name].p == 5 then
  3302.             tfm.exec.movePlayer(name,1060,360,false,1,1,false)
  3303.         elseif data[name].p == 6 then
  3304.             tfm.exec.movePlayer(name,1230,360,false,1,1,false)
  3305.         elseif data[name].p == 7 then
  3306.             tfm.exec.movePlayer(name,1400,360,false,1,1,false)
  3307.         end
  3308.         tfm.exec.setGameTime(60)
  3309.         tfm.exec.setPlayerScore(name,1,true)
  3310.     end
  3311. end
  3312. function eventLoop(p,f)
  3313.     if f <= 1 then
  3314.         trocarMapa()
  3315.     end
  3316. end
  3317. function eventNewGame()
  3318.     ui.addPopup(2,0,"",nil,6000,6000,0,false)
  3319.     tfm.exec.setUIMapName("Corrida das perguntas versão 9.1 (versão de 16/32 bits)")
  3320.     for id,name in pairs(players_table) do
  3321.         data[name].p=0
  3322.     end
  3323.     for name,player in pairs(tfm.get.room.playerList) do
  3324.         tfm.exec.setPlayerScore(name,1,false)
  3325.         if tfm.get.room.playerList[name].isShaman then
  3326.             tfm.exec.setPlayerScore(name,-2,false)
  3327.         end
  3328.     end
  3329.     tfm.exec.setGameTime(60)
  3330. end
  3331. function eventPlayerWon(name)
  3332.     tfm.exec.setGameTime(5)
  3333. end
  3334. function eventSummoningEnd(name,type,x,y,angle,vx,vy,obj)
  3335.     for name,player in pairs(tfm.get.room.playerList) do
  3336.         if tfm.get.room.playerList[name].isShaman then
  3337.             tfm.exec.chatMessage("<ROSE>Não é permitido o uso de objetos de shaman.",nil)
  3338.             trocarMapa()
  3339.         end
  3340.     end
  3341. end
  3342. trocarMapa()
  3343. end
  3344.  
  3345. tfm.exec.chatMessage("#anvilwar Universal Mode Loader version 1.26<br>by Jessiewind26#2546<br><br>The requested room is loading or updating. Please wait...",nil)
  3346.  
  3347. if string.find(tfm.get.room.name,"true_false") then
  3348.     active = "true_false"
  3349.     initTrue()
  3350. elseif string.find(tfm.get.room.name,"mestre") then
  3351.     active = "mestre"
  3352.     initMestre()
  3353. elseif string.find(tfm.get.room.name,"pistas") then
  3354.     active = "fall"
  3355.     initPistas()
  3356. elseif string.find(tfm.get.room.name,"perguntas") then
  3357.     active = "perguntas"
  3358.     initPerguntas()
  3359. else
  3360.     active = "anvilwar"
  3361.     initAnvilwar()
  3362. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement