Advertisement
Camilledrain_LUA

mestre legacy

Jul 10th, 2018
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 32.41 KB | None | 0 0
  1. admin="Jessiewind26#2546"
  2. admin1="Rakan_raster#0000"
  3. admin2="Linkventusx5#0000"
  4. admin3="Skyrectarrow#0000"
  5. admin4="Ashearcher#0000"
  6. admin6="Arenaut2000#0000"
  7. admin7="Darakdarkus7#0000"
  8. admin8="Spectra_phantom#6089"
  9. admin9="Fosfus7heads#0000"
  10. shaman="Jessiewind26#2546"
  11. comandos0={"5","8","11","12","14","15","17","18","20","22","23","24","25","26","27","29","31","32","34","35","38","39","42"}
  12. comandos1={"1","2","5","6","7","11","12","14","15","17","18","20","21","22","23","24","25","26","27","29","30","31","32","33","34","35","36","38","39","42"}
  13. comandos2={"1","2","3","4","5","6","7","8","9","10","11","12","14","15","17","18","19","20","21","23","24","25","26","27","28","30","31","32","33","34","35","36","37","38","39","40","41","42"}
  14. num=3
  15. ui.addPopup(0,0,"<font size='14'>É recomendável você descarregar o script em execução para não ocorrerem bugs no jogo.<br><br><b>Caso você já tenha descarregado e deseja continuar, feche esta janela. Caso contrário digite: /module stop e carregue o script novamente.",shaman,270,125,300,true)
  16. data={}
  17. rato=0
  18. n=""
  19. x1 = 150
  20. x2 = 400
  21. x3 = 650
  22. x4 = 228
  23. x5 = 532
  24. tempo2=10;
  25. limite=25;
  26. rodada=0;
  27. dance=false;
  28. tecla=false;
  29. jogo=false;
  30. vira=false;
  31. sent=false;
  32. contagem=false;
  33. contagem2=false;
  34. conf=false;
  35. esqu=false;
  36. logo=true;
  37. dire=false;
  38. wolf=false;
  39. pule=false;
  40. pule2=false;
  41. palm=false;
  42. nome=false;
  43. nome2=false;
  44. nome3=false;
  45. clic=false;
  46. naop=false;
  47. chor=false;
  48. raiv=false;
  49. equa1=false;
  50. coma=false;
  51. topo=false;
  52. beij=false;
  53. segu=false;
  54. dorm=false;
  55. kill=false;
  56. rir1=false;
  57. topo2=false;
  58. rir2=false;
  59. noob=false;
  60. jog0=false;
  61. face=false;
  62. bigo=false;
  63. digi=false;
  64. espa=false;
  65. luga1=false;
  66. luga2=false;
  67. luga3=false;
  68. luga4=false;
  69. luga5=false;
  70. luga6=false;
  71. luga7=false;
  72. digi2=false;
  73. tempo=10;
  74. mapacont=0;
  75. cmd=false;
  76. valendo=true;
  77. players={}
  78. tfm.exec.disableAutoNewGame(true)
  79. tfm.exec.disableAutoShaman(true)
  80. tfm.exec.disableAutoTimeLeft(true)
  81. tfm.exec.setRoomMaxPlayers(50)
  82. system.disableChatCommandDisplay("limite")
  83. system.disableChatCommandDisplay("rodar")
  84. system.disableChatCommandDisplay("1")
  85. system.disableChatCommandDisplay("2")
  86. system.disableChatCommandDisplay("3")
  87. system.disableChatCommandDisplay("4")
  88. system.disableChatCommandDisplay("5")
  89. system.disableChatCommandDisplay("6")
  90. system.disableChatCommandDisplay("7")
  91. system.disableChatCommandDisplay("8")
  92. system.disableChatCommandDisplay("9")
  93. system.disableChatCommandDisplay("10")
  94. system.disableChatCommandDisplay("11")
  95. system.disableChatCommandDisplay("12")
  96. system.disableChatCommandDisplay("13")
  97. system.disableChatCommandDisplay("14")
  98. system.disableChatCommandDisplay("15")
  99. system.disableChatCommandDisplay("16")
  100. system.disableChatCommandDisplay("17")
  101. system.disableChatCommandDisplay("18")
  102. system.disableChatCommandDisplay("19")
  103. system.disableChatCommandDisplay("20")
  104. system.disableChatCommandDisplay("21")
  105. system.disableChatCommandDisplay("22")
  106. system.disableChatCommandDisplay("23")
  107. system.disableChatCommandDisplay("24")
  108. system.disableChatCommandDisplay("25")
  109. system.disableChatCommandDisplay("26")
  110. system.disableChatCommandDisplay("27")
  111. system.disableChatCommandDisplay("28")
  112. system.disableChatCommandDisplay("29")
  113. system.disableChatCommandDisplay("30")
  114. system.disableChatCommandDisplay("31")
  115. system.disableChatCommandDisplay("32")
  116. system.disableChatCommandDisplay("33")
  117. system.disableChatCommandDisplay("34")
  118. system.disableChatCommandDisplay("35")
  119. system.disableChatCommandDisplay("36")
  120. system.disableChatCommandDisplay("37")
  121. system.disableChatCommandDisplay("38")
  122. system.disableChatCommandDisplay("39")
  123. system.disableChatCommandDisplay("40")
  124. system.disableChatCommandDisplay("41")
  125. system.disableChatCommandDisplay("42")
  126. system.disableChatCommandDisplay("mapa")
  127. system.disableChatCommandDisplay("cafofo")
  128. system.disableChatCommandDisplay("run")
  129. system.disableChatCommandDisplay("r2")
  130. system.disableChatCommandDisplay("r3")
  131. system.disableChatCommandDisplay("r8")
  132. system.disableChatCommandDisplay("r11")
  133. system.disableChatCommandDisplay("c1")
  134. system.disableChatCommandDisplay("c2")
  135. system.disableChatCommandDisplay("c3")
  136. system.disableChatCommandDisplay("c4")
  137. vivo=0;
  138. tfm.exec.disableAfkDeath(true)
  139. 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,6784965,6788695,6788715,6788861,6789235,6789249,6789263,6789271,6789260,6789280,6789334,6790484,6790385,6790527,6790895,6790903,6791854,6792509,6792518,6792523,6794050,6789272,6798615,6799998,6801706,6799997,6804482,6789356,6789324,6789358,6802377,6806109,6803018,6803128,6809464,6809498,6811934,6822331,6823914,6823930,6823972,6825340,6823882,6829373}
  140. tfm.exec.newGame(mapas[math.random(#mapas)])
  141. tfm.exec.setGameTime(36000)
  142. function resetar()
  143.     dance=false;
  144.     sent=false;
  145.     esqu=false;
  146.     dire=false;
  147.     clic=false;
  148.     conf=false;
  149.     coma=false;
  150.     palm=false;
  151.     segu=false;
  152.     dorm=false;
  153.     beij=false;
  154.     kill=false;
  155.     raiv=false;
  156.     pule2=false;
  157.     nome=false;
  158.     nome2=false;
  159.     nome3=false;
  160.     chor=false;
  161.     pule=false;
  162.     noob=false;
  163.     sham=false;
  164.     rir1=false;
  165.     rir2=false;
  166.     face=false;
  167.     bigo=false;
  168.     topo2=false;
  169.     digi2=false;
  170.     digi=false;
  171.     vira=false;
  172.     espa=false;
  173.     luga1=false;
  174.     luga2=false;
  175.     luga3=false;
  176.     luga4=false;
  177.     luga5=false;
  178.     luga6=false;
  179.     luga7=false;
  180.     equa1=false;
  181.     jog0=false;
  182.     equa2=false;
  183.     equa3=false;
  184.     tecla=false;
  185.     spin=false;
  186.     topo=false;
  187.     naop=false;
  188.     naos=false;
  189.     wolf=false;
  190.     cmd=false;
  191.     tfm.exec.setGameTime(13)
  192.     ui.removeTextArea(0,nil)
  193.     num=3 end
  194. function eventNewPlayer(name)
  195.     tfm.exec.bindKeyboard(name,38,true,true)
  196.     tfm.exec.bindKeyboard(name,37,true,true)
  197.     tfm.exec.bindKeyboard(name,65,true,true)
  198.     tfm.exec.bindKeyboard(name,39,true,true)
  199.     tfm.exec.bindKeyboard(name,68,true,true)
  200.     tfm.exec.bindKeyboard(name,87,true,true)
  201.     tfm.exec.bindKeyboard(name,32,true,true)
  202.     tfm.exec.bindKeyboard(name,40,true,true)
  203.     tfm.exec.bindKeyboard(name,83,true,true)
  204.     tfm.exec.bindKeyboard(name,18,true,true)
  205.     tfm.exec.bindKeyboard(name,115,true,true)
  206.     rato=rato+1
  207.     system.bindMouse(name,true)
  208.     newData={
  209.             ["v"]=0;
  210.             ["c"]=0;
  211.             ["m"]=0;
  212.             ["t"]=0;
  213.             };
  214.     data[name] = newData;
  215.     tfm.exec.chatMessage("<N>Sejam bem-vindos ao module <b>O Mestre Mandou!</b><br><VP>Neste script vocês terão que fazer tudo o que o module pedir, independente do que seja.<br>Versão de 22/08/2016<br><br><VI>Quer saber como jogar? Digite !help<br><R>Script criado por Jessiewind26#2546, Arenaut2000#0000, Linkventusx5#0000 e Fosfus7heads#0000",name)
  216. end
  217. for name,player in pairs(tfm.get.room.playerList) do
  218.     eventNewPlayer(name)
  219.     tfm.exec.setPlayerScore(name,0,false) end
  220. function eventPlayerDied(name)
  221.     vivo=vivo-1
  222.     tfm.exec.setPlayerScore(name,-1,false)
  223.     local i=0
  224.     local n
  225.     for pname,player in pairs(tfm.get.room.playerList) do
  226.         if not player.isDead then
  227.             i=i+1
  228.             n=pname end end
  229.     if i==0 then
  230.         -- não faça nada
  231.     elseif i==1 then
  232.         tempo2=1000
  233.         tfm.exec.giveCheese(n)
  234.         tfm.exec.playerVictory(n)
  235.         tfm.exec.setGameTime(13)
  236.         contagem=true;
  237.         shaman=n;
  238.         resetar()
  239.         tfm.exec.setPlayerScore(shaman,20,false) end end
  240. function eventNewGame()
  241.     valendo=true;
  242.     rodada=0
  243.     rato=0
  244.     tfm.exec.setGameTime(22)
  245.     tempo2=21
  246.     contagem=false;
  247.     contagem2=false;
  248.     vivo=0
  249.     for name,player in pairs(tfm.get.room.playerList) do
  250.         vivo=vivo+1
  251.         rato=rato+1
  252.         tfm.exec.setPlayerScore(name,0,false) end end
  253. function eventPlayerLeft(name)
  254.     rato=rato-1 end
  255. function eventMouse(name,x,y)
  256.     if clic == true then
  257.         data[name].m=data[name].m+1
  258.         if data[name].m >= 10 then
  259.             tfm.exec.setPlayerScore(name,1,false) end end end
  260. function eventChatCommand(n,m)
  261.     if m == "help" then
  262.         ui.addPopup(1,0,"<font align='center'><font size='30'>O Mestre Mandou<br><br><font align='left'><font size='13'>Neste script você deverá fazer o que o shaman te mandar, seja sentar, dar um beijo ou até mesmo mandar você dizer que é noob. Quem não fazer o que o shaman diz vai morrer automaticamente e o último que sobrar ganha o jogo.<br><br>Créditos:<br>Montagem: Jessiewind26#2546<br>Sugestões de comandos: Spectra_phantom#6089 e Fosfus7heads#0000<br>Testes: Rakan_raster#0000, Linkventusx5#0000 e Arenaut2000#0000",n,112,88,537,true) end
  263.     if n == admin or n == admin1 or n == admin2 or n == admin3 or n == admin4 or n == admin6 or n == admin7 or n == admin8 or n == admin9 then
  264.         if m == "mapa" then
  265.             tfm.exec.chatMessage("<VI>Quer ver seu mapa aparecendo? Mande-o para<br><b>atelier801.com/topic?f=686054&t=884139</b>",nil) end
  266.         if m == "cafofo" then
  267.             tfm.exec.chatMessage("<VP>NOVIDADE! Agora o Mestre Mandou está disponível para cafofo da tribo!<br><br>Link do script: <b>http://pastebin.com/raw/dC3f5njJ</b>",nil) end
  268.         if cmd == false then
  269.         for n,player in pairs(tfm.get.room.playerList) do
  270.             tfm.exec.setPlayerScore(n,0,false)
  271.             data[n].v=0
  272.             data[n].c=0
  273.             data[n].m=0 end
  274.         rodada=rodada+1
  275.         if m == "1" then
  276.             cmd=true;
  277.             tfm.exec.setGameTime(8)
  278.             dance=true;
  279.             ui.addTextArea(0,"<font size='20'><font color='#000001'>Dance!",nil,0,100,800,40,0xdedede,0x808080,0.9,true)
  280.         elseif m == "2" then
  281.             tfm.exec.setGameTime(5)
  282.             sent=true;
  283.             ui.addTextArea(0,"<font size='20'><font color='#000001'>Sente!",nil,0,100,800,40,0xdedede,0x808080,0.9,true)
  284.             cmd=true;
  285.         elseif m == "3" then
  286.             tfm.exec.setGameTime(7)
  287.             conf=true;
  288.             ui.addTextArea(0,"<font size='20'><font color='#000001'>Taque 5 confetes!",nil,0,100,800,40,0xdedede,0x808080,0.9,true)
  289.             cmd=true;
  290.         elseif m == "4" then
  291.             tfm.exec.setGameTime(10)
  292.             clic=true;
  293.             ui.addTextArea(0,"<font size='20'><font color='#000001'>Clique na tela 10 vezes!",nil,0,100,800,40,0xdedede,0x808080,0.9,true)
  294.             cmd=true;
  295.         elseif m == "5" then
  296.             tfm.exec.setGameTime(10)
  297.             coma=true;
  298.             ui.addTextArea(0,"<font size='20'><font color='#000001'>Digite o comando !omestremandou",nil,0,100,800,40,0xdedede,0x808080,0.9,true)
  299.             cmd=true;
  300.         elseif m == "6" then
  301.             tfm.exec.setGameTime(10)
  302.             beij=true;
  303.             ui.addTextArea(0,"<font size='20'><font color='#000001'>Dê 5 beijos!",nil,0,100,800,40,0xdedede,0x808080,0.9,true)
  304.             cmd=true;
  305.         elseif m == "7" then
  306.             tfm.exec.setGameTime(10)
  307.             palm=true;
  308.             ui.addTextArea(0,"<font size='20'><font color='#000001'>Bata palmas 5 vezes!",nil,0,100,800,40,0xdedede,0x808080,0.9,true)
  309.             cmd=true;
  310.         elseif m == "8" then
  311.             tfm.exec.setGameTime(8)
  312.             dorm=true;
  313.             ui.addTextArea(0,"<font size='20'><font color='#000001'>Vocês estão com sono. Durmam para descansar.",nil,0,100,800,40,0xdedede,0x808080,0.9,true)
  314.             cmd=true;
  315.         elseif m == "9" then
  316.             tfm.exec.setGameTime(8)
  317.             raiv=true;
  318.             ui.addTextArea(0,"<font size='20'><font color='#000001'>Jessiewind26#2546 é do mal! FIQUEM COM RAIVA DELE!",nil,0,100,800,40,0xdedede,0x808080,0.9,true)
  319.             cmd=true;
  320.         elseif m == "10" then
  321.             tfm.exec.setGameTime(8)
  322.             chor=true;
  323.             ui.addTextArea(0,"<font size='20'><font color='#000001'>Vocês não ganharam queijo :( Chorem!",nil,0,100,800,40,0xdedede,0x808080,0.9,true)
  324.             cmd=true;
  325.         elseif m == "rodar" then
  326.             tfm.exec.newGame(mapas[math.random(#mapas)])
  327.         elseif(m:sub(0,6) == "limite") then
  328.             tfm.exec.setRoomMaxPlayers(m:sub(8))
  329.         elseif m == "11" then
  330.             tfm.exec.setGameTime(8)
  331.             pule=true;
  332.             ui.addTextArea(0,"<font size='20'><font color='#000001'>Pulem 5 vezes!",nil,0,100,800,40,0xdedede,0x808080,0.9,true)
  333.             cmd=true;
  334.         elseif m == "12" then
  335.             tfm.exec.setGameTime(5)
  336.             nome3=true;
  337.             ui.addTextArea(0,"<font size='18'><font color='#000001'>Em que ano estamos?",nil,0,100,800,40,0xdedede,0x808080,0.9,true)
  338.             cmd=true;
  339.         elseif m == "13" then
  340.             tfm.exec.setGameTime(10)
  341.             nome2=true;
  342.             ui.addTextArea(0,"<font size='20'><font color='#000001'>Responda sem ! na frente: Quem criou esse script? ",nil,0,100,800,40,0xdedede,0x808080,0.9,true)
  343.             cmd=true;
  344.         elseif m == "14" then
  345.             tfm.exec.setGameTime(7)
  346.             kill=true;
  347.             ui.addTextArea(0,"<font size='20'><font color='#000001'>Abaixem!",nil,0,100,800,40,0xdedede,0x808080,0.9,true)
  348.             cmd=true;
  349.         elseif m == "15" then
  350.             tfm.exec.setGameTime(10)
  351.             segu=true;
  352.             ui.addTextArea(0,"<font size='20'><font color='#000001'>Pressione 35 vezes a tecla para DIREITA!",nil,0,100,800,40,0xdedede,0x808080,0.9,true)
  353.             cmd=true;
  354.         elseif m == "16" then
  355.             tfm.exec.setGameTime(10)
  356.             nome=true;
  357.             ui.addTextArea(0,"<font size='20'><font color='#000001'>Responda com ! na frente: Quem criou esse script?",nil,0,100,800,40,0xdedede,0x808080,0.9,true)
  358.             cmd=true;
  359.         elseif m == "17" then
  360.             tfm.exec.setGameTime(8)
  361.             noob=true;
  362.             ui.addTextArea(0,"<font size='20'><font color='#000001'>Digite: EU SOU NOOB",nil,0,100,800,40,0xdedede,0x808080,0.9,true)
  363.             cmd=true;
  364.         elseif m == "18" then
  365.             tfm.exec.setGameTime(8)
  366.             sham=true;
  367.             ui.addTextArea(0,"<font size='20'><font color='#000001'>Não falem nada!",nil,0,100,800,40,0xdedede,0x808080,0.9,true)
  368.             cmd=true;
  369.             for n,player in pairs(tfm.get.room.playerList) do
  370.                 tfm.exec.setPlayerScore(n,1,false) end
  371.         elseif m == "19" then
  372.             tfm.exec.setGameTime(9)
  373.             rir1=true;
  374.             ui.addTextArea(0,"<font size='20'><font color='#000001'>Agora RIAM!",nil,0,100,800,40,0xdedede,0x808080,0.9,true)
  375.             cmd=true;
  376.         elseif m == "20" then
  377.             tfm.exec.setGameTime(5)
  378.             rir2=true;
  379.             ui.addTextArea(0,"<font size='20'><font color='#000001'>QUEM RIR AGORA VAI MORRER",nil,0,100,800,40,0xdedede,0x808080,0.9,true)
  380.             for n,player in pairs(tfm.get.room.playerList) do
  381.                 tfm.exec.setPlayerScore(n,1,false) end
  382.             cmd=true;
  383.         elseif m == "21" then
  384.             tfm.exec.setGameTime(8)
  385.             face=true;
  386.             ui.addTextArea(0,"<font size='20'><font color='#000001'>Coloque a mão no rosto (facepalm) 3 vezes!",nil,0,100,800,40,0xdedede,0x808080,0.9,true)
  387.             cmd=true;
  388.         elseif m == "22" then
  389.             tfm.exec.setGameTime(12)
  390.             bigo=true;
  391.             ui.addTextArea(0,"<font size='20'><font color='#000001'>Balance a bandeira de qualquer país!",nil,0,100,800,40,0xdedede,0x808080,0.9,true)
  392.             cmd=true;
  393.         elseif m == "23" then
  394.             tfm.exec.setGameTime(7)
  395.             digi=true;
  396.             ui.addTextArea(0,"<font size='20'><font color='#000001'>Digite qualquer coisa e mande para mim.",nil,0,100,800,40,0xdedede,0x808080,0.9,true)
  397.             cmd=true;
  398.         elseif m == "24" then
  399.             tfm.exec.setGameTime(9)
  400.             espa=true;
  401.             ui.addTextArea(0,"<font size='20'><font color='#000001'>Pressione BARRA DE ESPAÇO 15 vezes (cuidado pra n quebrar o teclado)",nil,0,100,800,40,0xdedede,0x808080,0.9,true)
  402.             cmd=true;
  403.         elseif m == "25" then
  404.             tfm.exec.setGameTime(5)
  405.             luga1=true;
  406.             ui.addTextArea(0,"<font size='20'><font color='#000001'>Fique dentro do quadrado branco!",nil,0,100,800,40,0xdedede,0x808080,0.9,true)
  407.             ui.addTextArea(100,"",nil,x1,310,80,60,0xfffffe,0xfffffe,0.7,false)
  408.             for n,player in pairs(tfm.get.room.playerList) do
  409.                 tfm.exec.setPlayerScore(n,1,false) end
  410.             cmd=true;
  411.         elseif m == "26" then
  412.             tfm.exec.setGameTime(5)
  413.             luga2=true;
  414.             ui.addTextArea(0,"<font size='20'><font color='#000001'>Fique dentro do quadrado branco!",nil,0,100,800,40,0xdedede,0x808080,0.9,true)
  415.             ui.addTextArea(100,"",nil,x2,310,80,60,0xfffffe,0xfffffe,0.7,false)
  416.             for n,player in pairs(tfm.get.room.playerList) do
  417.                 tfm.exec.setPlayerScore(n,1,false)
  418.             end
  419.             cmd=true;
  420.         elseif m == "27" then
  421.             tfm.exec.setGameTime(5)
  422.             luga3=true;
  423.             ui.addTextArea(0,"<font size='20'><font color='#000001'>Fique dentro do quadrado branco!",nil,0,100,800,40,0xdedede,0x808080,0.9,true)
  424.             ui.addTextArea(100,"",nil,x3,310,80,60,0xfffffe,0xfffffe,0.7,false)
  425.             for n,player in pairs(tfm.get.room.playerList) do
  426.                 tfm.exec.setPlayerScore(n,1,false) end
  427.             cmd=true;
  428.         elseif m == "28" then
  429.             tfm.exec.setGameTime(7)
  430.             equa1=true;
  431.             ui.addTextArea(0,"<font size='20'><font color='#000001'>Quanto é 123 + 123?",nil,0,100,800,40,0xdedede,0x808080,0.9,true)
  432.             cmd=true;
  433.         elseif m == "29" then
  434.             tfm.exec.setGameTime(10)
  435.             spin=true;
  436.             ui.addTextArea(0,"<font size='20'><font color='#000001'>Quem criou o Transformice?",nil,0,100,800,40,0xdedede,0x808080,0.9,true)
  437.             cmd=true;
  438.         elseif m == "30" then
  439.             tfm.exec.setGameTime(10)
  440.             topo=true;
  441.             ui.addTextArea(0,"<font size='20'><font color='#000001'>Fique na parte de cima do mapa! (acima da linha branca)",nil,0,100,800,40,0xdedede,0x808080,0.9,true)
  442.             ui.addTextArea(100,"",nil,0,150,800,5,0xfffffe,0xfffffe,1,true)
  443.             for n,player in pairs(tfm.get.room.playerList) do
  444.                 tfm.exec.setPlayerScore(n,1,false) end
  445.             cmd=true;
  446.         elseif m == "31" then
  447.             tfm.exec.setGameTime(5)
  448.             wolf=true;
  449.             ui.addTextArea(0,"<font size='20'><font color='#000001'>Digite: Oi",nil,0,100,800,40,0xdedede,0x808080,0.9,true)
  450.             cmd=true;
  451.         elseif m == "32" then
  452.             tfm.exec.setGameTime(5)
  453.             naop=true;
  454.             ui.addTextArea(0,"<font size='20'><font color='#000001'>NÃO PULEM",nil,0,100,800,40,0xdedede,0x808080,0.9,true)
  455.             cmd=true;
  456.             for n,player in pairs(tfm.get.room.playerList) do
  457.                 tfm.exec.setPlayerScore(n,1,false) end
  458.         elseif m == "33" then
  459.             tfm.exec.setGameTime(5)
  460.             naos=true;
  461.             ui.addTextArea(0,"<font size='20'><font color='#000001'>Não se mexam!",nil,0,100,800,40,0xdedede,0x808080,0.9,true)
  462.             cmd=true;
  463.             for n,player in pairs(tfm.get.room.playerList) do
  464.                 tfm.exec.setPlayerScore(n,1,false) end
  465.         elseif m == "34" then
  466.             tfm.exec.setGameTime(5)
  467.             luga4=true;
  468.             ui.addTextArea(0,"<font size='20'><font color='#000001'>Fique dentro do quadrado branco!",nil,0,100,800,40,0xdedede,0x808080,0.9,true)
  469.             ui.addTextArea(100,"",nil,x4,310,80,60,0xfffffe,0xfffffe,0.7,false)
  470.             for n,player in pairs(tfm.get.room.playerList) do
  471.                 tfm.exec.setPlayerScore(n,1,false) end
  472.             cmd=true;
  473.         elseif m == "35" then
  474.             tfm.exec.setGameTime(5)
  475.             luga5=true;
  476.             ui.addTextArea(0,"<font size='20'><font color='#000001'>Fique dentro do quadrado branco!",nil,0,100,800,40,0xdedede,0x808080,0.9,true)
  477.             ui.addTextArea(100,"",nil,x5,310,80,60,0xfffffe,0xfffffe,0.7,false)
  478.             for n,player in pairs(tfm.get.room.playerList) do
  479.                 tfm.exec.setPlayerScore(n,1,false) end
  480.             cmd=true;
  481.         elseif m == "36" then
  482.             tfm.exec.setGameTime(7)
  483.             jogo=true;
  484.             ui.addTextArea(0,"<font size='20'><font color='#000001'>Quem aqui joga LOL?",nil,0,100,800,40,0xdedede,0x808080,0.9,true)
  485.             cmd=true;
  486.         elseif m == "37" then
  487.             tfm.exec.setGameTime(5)
  488.             vira=true;
  489.             ui.addTextArea(0,"<font size='20'><font color='#000001'>Fique virado para a direita!",nil,0,100,800,40,0xdedede,0x808080,0.9,true)
  490.             cmd=true;
  491.         elseif m == "38" then
  492.             tfm.exec.setGameTime(5)
  493.             luga6=true;
  494.             ui.addTextArea(100,"",nil,x1,310,80,60,0xfffffe,0xfffffe,0.7,false)
  495.             ui.addTextArea(200,"",nil,x5,310,80,60,0xaa0000,0xaa0000,0.7,false)
  496.             ui.addTextArea(0,"<font size='20'><font color='#000001'>Fique dentro do quadrado branco!",nil,0,100,800,40,0xdedede,0x808080,0.9,true)
  497.             for n,player in pairs(tfm.get.room.playerList) do
  498.                 tfm.exec.setPlayerScore(n,1,false) end
  499.             cmd=true;
  500.         elseif m == "39" then
  501.             tfm.exec.setGameTime(5)
  502.             luga7=true;
  503.             ui.addTextArea(100,"",nil,x1,310,80,60,0xfffffe,0xfffffe,0.7,false)
  504.             ui.addTextArea(200,"",nil,x5,310,80,60,0xaa0000,0xaa0000,0.7,false)
  505.             ui.addTextArea(0,"<font size='20'><font color='#000001'>Fique dentro do quadrado vermelho!",nil,0,100,800,40,0xdedede,0x808080,0.9,true)
  506.             for n,player in pairs(tfm.get.room.playerList) do
  507.                 tfm.exec.setPlayerScore(n,1,false) end
  508.             cmd=true;
  509.         elseif m == "40" then
  510.             tfm.exec.setGameTime(5)
  511.             equa2=true;
  512.             ui.addTextArea(0,"<font size='20'><font color='#000001'>Digite 0",nil,0,100,800,40,0xdedede,0x808080,0.9,true)
  513.             cmd=true;
  514.         elseif m == "41" then
  515.             tfm.exec.setGameTime(5)
  516.             equa3=true;
  517.             ui.addTextArea(0,"<font size='20'><font color='#000001'>Digite 1",nil,0,100,800,40,0xdedede,0x808080,0.9,true)
  518.             cmd=true;
  519.         elseif m == "42" then
  520.             tfm.exec.setGameTime(7)
  521.             tecla=true;
  522.             ui.addTextArea(0,"<font size='20'><font color='#000001'>Pressione F4!",nil,0,100,800,40,0xdedede,0x808080,0.9,true)
  523.             cmd=true;
  524.         elseif m == "r2" then
  525.             tfm.exec.setGameTime(15)
  526.             ui.addTextArea(0,"<font size='20'><font color='#010319'>Eu quero saber... completem",nil,0,100,800,40,0x0060ff,0x000080,1.0,true)
  527.             for n,player in pairs(tfm.get.room.playerList) do
  528.                 tfm.exec.setPlayerScore(n,1,false) end
  529.         elseif m == "r3" then
  530.             tfm.exec.setGameTime(5)
  531.             ui.addTextArea(0,"<font size='20'><font color='#010319'>Digite: Eu sou um lixo (sqs)",nil,0,100,800,40,0x0060ff,0x000080,1.0,true)
  532.             for n,player in pairs(tfm.get.room.playerList) do
  533.                 tfm.exec.setPlayerScore(n,1,false) end
  534.         elseif m == "r8" then
  535.             tfm.exec.setGameTime(10)
  536.             ui.addTextArea(0,"<font size='20'><font color='#010319'>Digite qualquer coisa e mande para mim.",nil,0,100,800,40,0x0060ff,0x000080,1.0,true)
  537.             for n,player in pairs(tfm.get.room.playerList) do
  538.                 tfm.exec.setPlayerScore(n,1,false) end
  539.         elseif m == "r11" then
  540.             tfm.exec.setGameTime(5)
  541.             ui.addTextArea(0,"<font size='20'><font color='#010319'>Bota a mão na cabeça que vai começaaaaaaaaaaa",nil,0,100,800,40,0x0060ff,0x000080,1.0,true)
  542.             for n,player in pairs(tfm.get.room.playerList) do
  543.                 tfm.exec.setPlayerScore(n,1,false) end
  544.         elseif m == "c1" then
  545.             tfm.exec.setGameTime(10)
  546.             topo2=true;
  547.             ui.addTextArea(0,"<font size='20'><font color='#000001'>Fique na parte de cima do mapa! (acima da linha branca)",nil,0,100,800,40,0xdedede,0x808080,0.9,true)
  548.             ui.addTextArea(100,"",nil,0,150,800,5,0xfffffe,0xfffffe,1,true)
  549.             for n,player in pairs(tfm.get.room.playerList) do
  550.                 tfm.exec.setPlayerScore(n,1,false) end
  551.             cmd=true;
  552.         elseif m == "c2" then
  553.             tfm.exec.setGameTime(8)
  554.             pule2=true;
  555.             ui.addTextArea(0,"<font size='20'><font color='#000001'>Pulem 5 vezes!",nil,0,100,800,40,0xdedede,0x808080,0.9,true)
  556.             cmd=true;
  557.         elseif m == "c3" then
  558.             tfm.exec.setGameTime(7)
  559.             jog0=true;
  560.             ui.addTextArea(0,"<font size='20'><font color='#000001'>Quem aqui joga LOL?",nil,0,100,800,40,0xdedede,0x808080,0.9,true)
  561.             cmd=true;
  562.         elseif m == "c4" then
  563.             tfm.exec.setGameTime(7)
  564.             digi2=true;
  565.             ui.addTextArea(0,"<font size='20'><font color='#000001'>Digite qualquer coisa e mande para mim.",nil,0,100,800,40,0xdedede,0x808080,0.9,true)
  566.             cmd=true; end end end
  567.     if m == "omestremandou" then
  568.         if coma == true then
  569.             tfm.exec.setPlayerScore(n,1,false) end end
  570.     if m == "Jessiewind26#2546" or m == "Jessiewind26#2546" or m == "Jessiewind26#2546" then
  571.         if nome == true then
  572.             tfm.exec.setPlayerScore(n,1,false) end end end
  573. function eventChatMessage(name,message)
  574.     if noob == true then
  575.         if message == "EU SOU NOOB" or message == "eu sou noob" or message == "Eu sou noob" or message == "Eu Sou noob" or message == "Eu Sou Noob" then
  576.             tfm.exec.setPlayerScore(name,1,false) end end
  577.     if message == "Jessiewind26#2546" or message == "jessiewind26#2546" or message == "JESSIEWIND26#2546" then
  578.         if nome2 == true then
  579.             tfm.exec.setPlayerScore(name,1,false) end end
  580.     if message == "2018" then
  581.         if nome3 == true then
  582.             tfm.exec.setPlayerScore(name,1,false) end
  583.     elseif message == "EU" or message == "eu" or message == "Eu" or message == "eU" then
  584.         if nome3 == true then
  585.             tfm.exec.killPlayer(name) end end
  586.     if digi == true then
  587.         tfm.exec.setPlayerScore(name,1,false) end
  588.     if equa1 == true then
  589.         if message == "246" then
  590.             tfm.exec.setPlayerScore(name,1,false) end end
  591.     if equa2 == true then
  592.         if message == "0" then
  593.             tfm.exec.setPlayerScore(name,1,false) end end
  594.     if equa3 == true then
  595.         if message == "1" then
  596.             tfm.exec.setPlayerScore(name,1,false) end end
  597.     if message == "oi" or message == "OI" or message == "Oi" or message == "oI" then
  598.         if wolf == true then
  599.             tfm.exec.setPlayerScore(name,1,false) end end
  600.     if sham == true then
  601.         tfm.exec.killPlayer(name) end
  602.     if spin == true then
  603.         if message == "Tigrounette" or message == "tigrounette" or message == "TIGROUNETTE" then
  604.             tfm.exec.setPlayerScore(name,1,false)
  605.         elseif message == "EU" or message == "eu" or message == "Eu" or message == "eU" then
  606.             tfm.exec.killPlayer(name) end end
  607.     if jogo == true then
  608.         if message == "EU" or message == "eu" or message == "Eu" or message == "eU" then
  609.             tfm.exec.setPlayerScore(name,1,false) end end end
  610. function eventLoop(p,f)
  611.     tempo2=tempo2-0.5
  612.     if f <= 5000 and topo2 == true then
  613.         cmd=false;
  614.         eventChatCommand(admin,"33")
  615.         ui.removeTextArea(100,nil)
  616.         topo2=false; end
  617.     if f <= 6500 and pule2 == true then
  618.         cmd=false;
  619.         eventChatCommand(admin,"32")
  620.         pule2=false; end
  621.     if f <= 5500 and jog0 == true then
  622.         cmd=false;
  623.         eventChatCommand(admin,"29")
  624.         jog0=false; end
  625.     if f <= 5000 and digi2 == true then
  626.         cmd=false;
  627.         eventChatCommand(admin,"18")
  628.         digi2=false;    end
  629.     if tempo2 == num then
  630.         if rodada < limite and valendo == true then
  631.             if vivo >= 10 then
  632.                 eventChatCommand(admin, comandos0[math.random(#comandos0)])
  633.             elseif vivo < 10 and vivo >= 0 then
  634.                 eventChatCommand(admin, comandos1[math.random(#comandos1)])
  635.             elseif vivo < 5 then
  636.                 eventChatCommand(admin, comandos2[math.random(#comandos2)]) end
  637.         else
  638.             valendo=false;
  639.             for name,player in pairs(tfm.get.room.playerList) do
  640.                 tfm.exec.giveCheese(name)
  641.                 tfm.exec.playerVictory(name)
  642.                 tfm.exec.setPlayerScore(name,1,false) end
  643.             tfm.exec.setGameTime(10)
  644.             contagem2=true; end end
  645.     if contagem == true and vivo > 0 then
  646.         tfm.exec.setUIMapName("<b>"..shaman.."</b> <N>venceu a partida! Próxima rodada em "..math.floor(f/1000).." segundos.                                                                                            ")
  647.         if f <= 1000 then
  648.             tfm.exec.newGame(mapas[math.random(#mapas)]) end
  649.     elseif contagem == true and vivo == 0 then
  650.         tfm.exec.setUIMapName("<b>Ninguém ganhou...</b> Próxima rodada em "..math.floor(f/1000).." segundos.                                                                                            ")
  651.         if f <= 1000 then
  652.             tfm.exec.newGame(mapas[math.random(#mapas)]) end end
  653.     if contagem2 == true then
  654.         tfm.exec.setUIMapName("<R>Tempo limite atingido. Os jogadores restantes venceram! <N>Próxima rodada em "..math.floor(f/1000).." segundos.                                                                                            ")    end
  655.     if contagem == false and tempo2 < 10 and cmd == true then
  656.         tfm.exec.setUIMapName("Mestre Mandou <BL>|  <N>Ratos: <VP>Vivos "..vivo.." <V>/ <J>Na sala "..rato.." <V>/ <R>Limite "..tfm.get.room.maxPlayers.."  <BL>|  <N>Tempo: <J>"..math.floor(f/1000).." seg  <BL>|  <N>Rodada: <R>"..rodada.." de "..limite.."  <BL>|  <VP>By Jessiewind26#2546          ")
  657.     elseif contagem == false and tempo2 < 10 and cmd == false and valendo == true then
  658.         tfm.exec.setUIMapName("Mestre Mandou <BL>|  <N>Ratos: <VP>Vivos "..vivo.." <V>/ <J>Na sala "..rato.." <V>/ <R>Limite "..tfm.get.room.maxPlayers.."  <BL>|  <N>Rodada atual: <VP>"..rodada.."/"..limite.."  <BL>|  <N>Aguardem um novo comando!                                             ")
  659.     elseif contagem == false and tempo2 > 10 then
  660.         tfm.exec.setUIMapName("<BL>Atenção: Os comandos em <b>azul</b> vocês não são obrigados a seguir, façam se vocês quiserem.                                                                                                  ") end
  661.     if f <= 1500 and valendo == false then
  662.         tfm.exec.newGame(mapas[math.random(#mapas)]) end
  663.     if vira == true then
  664.         for name,player in pairs(tfm.get.room.playerList) do
  665.             if tfm.get.room.playerList[name].isFacingRight then
  666.                 tfm.exec.setPlayerScore(name,1,false)
  667.             else
  668.                 tfm.exec.setPlayerScore(name,0,false) end end end
  669.     if f <= 1 then
  670.         for pn, player in pairs(tfm.get.room.playerList) do
  671.             if luga1 == true or luga6 == true then
  672.                 if player.x < 150 or player.x > 230 or player.y < 285 then
  673.                     tfm.exec.killPlayer(pn) end end
  674.             if luga2 == true then
  675.                 if player.x < 400 or player.x > 480 or player.y < 285 then
  676.                     tfm.exec.killPlayer(pn) end end
  677.             if luga3 == true then
  678.                 if player.x < 650 or player.x > 730 or player.y < 285 then
  679.                     tfm.exec.killPlayer(pn) end end
  680.             if luga4 == true then
  681.                 if player.x < 228 or player.x > 308 or player.y < 285 then
  682.                     tfm.exec.killPlayer(pn) end end
  683.             if luga5 == true or luga7 == true then
  684.                 if player.x < 532 or player.x > 612 or player.y < 285 then
  685.                     tfm.exec.killPlayer(pn) end end
  686.             if topo == true then
  687.                 if player.y > 150 then
  688.                     tfm.exec.killPlayer(pn) end end end end
  689.     if f <= 1 then
  690.         ui.removeTextArea(0,nil)
  691.         ui.removeTextArea(100,nil)
  692.         ui.removeTextArea(200,nil)
  693.         for name,player in pairs(tfm.get.room.playerList) do
  694.             if tfm.get.room.playerList[name].score == 0 then
  695.                 tfm.exec.killPlayer(name) end end
  696.         resetar()
  697.         if vivo > 1 then
  698.             tempo2=10
  699.         else
  700.             tempo2=9999 end end
  701.     for name,player in pairs(tfm.get.room.playerList) do
  702.         if cmd == true and conf == true then
  703.             ui.addTextArea(1000,"<font size='16'>Você tacou "..data[name].c.." confetes.",name,0,160,400,32)
  704.         elseif cmd == true and clic == true then
  705.             ui.addTextArea(1000,"<font size='16'>Você clicou na tela "..data[name].m.." vezes.",name,0,160,400,32)
  706.         elseif cmd == true and beij == true then
  707.             ui.addTextArea(1000,"<font size='16'>Você deu "..data[name].c.." beijos.",name,0,160,400,32)
  708.         elseif cmd == true and palm == true then
  709.             ui.addTextArea(1000,"<font size='16'>Você bateu palmas "..data[name].c.." vezes.",name,0,160,400,32)
  710.         elseif cmd == true and pule == true then
  711.             ui.addTextArea(1000,"<font size='16'>Você pulou "..data[name].c.." vezes.",name,0,160,400,32)
  712.         elseif cmd == true and segu == true then
  713.             ui.addTextArea(1000,"<font size='16'>Você pressionou direita "..data[name].c.." vezes.",name,0,160,400,32)
  714.         elseif cmd == true and face == true then
  715.             ui.addTextArea(1000,"<font size='16'>Você colocou mão no rosto "..data[name].c.." vezes.",name,0,160,400,32)
  716.         elseif cmd == true and espa == true then
  717.             ui.addTextArea(1000,"<font size='16'>Você pressionou espaço "..data[name].c.." vezes.",name,0,160,400,32)
  718.         else
  719.             ui.removeTextArea(1000,nil) end end end
  720. function eventKeyboard(name,id,down,x,y)
  721.     if pule == true then
  722.         if id == 38 or id == 87 then
  723.             data[name].c=data[name].c+1
  724.             if data[name].c == 5 then
  725.                 tfm.exec.setPlayerScore(name,1,false) end end end
  726.     if tecla == true then
  727.         if id == 115 then
  728.             tfm.exec.setPlayerScore(name,1,false) end end
  729.     if naop == true then
  730.         if id == 38 or id == 87 then
  731.             tfm.exec.killPlayer(name) end end
  732.     if naos == true then
  733.         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
  734.             tfm.exec.killPlayer(name) end end
  735.     if espa == true then
  736.         if id == 32 then
  737.             data[name].c=data[name].c+1
  738.             if data[name].c == 15 then
  739.                 tfm.exec.setPlayerScore(name,1,false) end end end
  740.     if esqu == true then
  741.         for name,player in pairs(tfm.get.room.playerList) do   
  742.             tfm.exec.setPlayerScore(name,1,false) end
  743.         if id == 37 or id == 65 then
  744.             tfm.exec.killPlayer(name) end end
  745.     if dire == true then
  746.         for name,player in pairs(tfm.get.room.playerList) do   
  747.             tfm.exec.setPlayerScore(name,1,false) end
  748.         if id == 39 or id == 68 then
  749.             tfm.exec.killPlayer(name) end end
  750.     if kill == true then
  751.         if id == 40 or id == 83 then
  752.             tfm.exec.setPlayerScore(name,1,false) end end
  753.     if segu == true then
  754.         if id == 39 or id == 68 then
  755.             data[name].c=data[name].c+1
  756.             if data[name].c == 35 then
  757.                 tfm.exec.setPlayerScore(name,1,false) end end end end
  758. function eventEmotePlayed(name,id)
  759.     if dance == true then
  760.         if id == 0 then
  761.             tfm.exec.setPlayerScore(name,1,false) end end
  762.     if rir1 == true then
  763.         if id == 1 then
  764.             tfm.exec.setPlayerScore(name,1,false) end end
  765.     if rir2 == true then
  766.         if id == 1 then
  767.             tfm.exec.killPlayer(name) end end
  768.     if sent == true then
  769.         if id == 8 then
  770.             tfm.exec.setPlayerScore(name,1,false) end end
  771.     if dorm == true then
  772.         if id == 6 then
  773.             tfm.exec.setPlayerScore(name,1,false) end end
  774.     if raiv == true then
  775.         if id == 4 then
  776.             tfm.exec.setPlayerScore(name,1,false) end end
  777.     if chor == true then
  778.         if id == 2 then
  779.             tfm.exec.setPlayerScore(name,1,false) end end
  780.     if face == true then
  781.         if id == 7 then
  782.             data[name].c=data[name].c+1
  783.             if data[name].c == 3 then
  784.                 tfm.exec.setPlayerScore(name,1,false) end end end
  785.     if conf == true then
  786.         if id == 9 then
  787.             data[name].c=data[name].c+1
  788.             if data[name].c == 4 then
  789.                 tfm.exec.setPlayerScore(name,1,false) end end end
  790.     if beij == true then
  791.         if id == 3 then
  792.             data[name].c=data[name].c+1
  793.             if data[name].c == 5 then
  794.                 tfm.exec.setPlayerScore(name,1,false) end end end
  795.     if palm == true then
  796.         if id == 5 then
  797.             data[name].c=data[name].c+1
  798.             if data[name].c == 5 then
  799.                 tfm.exec.setPlayerScore(name,1,false) end end end
  800.     if bigo == true then
  801.         if id == 10 then
  802.             tfm.exec.setPlayerScore(name,1,false) end end end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement