Boeing747-8

Untitled

Jun 26th, 2018
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 52.10 KB | None | 0 0
  1. v=0
  2. o=0
  3. tfm.exec.setRoomMaxPlayers(15)
  4. dp={}
  5.  
  6.  
  7.  
  8. lag=0
  9. Lives2=1000
  10. icedMouseCost=400
  11. cakeCost=200
  12. companionCost=900
  13. shamanCannonCost=1000
  14. watermelonCost=500
  15. mechAnvilCost=800
  16. rockCost=400
  17. ultraCannonCost=900
  18. nyanCost=400
  19. local toDespawn = {}
  20.  
  21. do
  22. local addShamanObject = tfm.exec.addShamanObject
  23. tfm.exec.addShamanObject = function(...)
  24. toDespawn[#toDespawn + 1] = {
  25. addShamanObject(...),
  26. os.time() + 3000
  27. }
  28.  
  29. return toDespawn[#toDespawn][1]
  30. end
  31. end
  32.  
  33. tfm.exec.disableAllShamanSkills(true)
  34. tfm.exec.disableMortCommand(true)
  35. wonCountDown=1
  36.  
  37. scores={0,0,0,0,0,0,0,0}
  38. maps={7455943,7458404,7459068,6238915,6321696,6321733,6335123}
  39. powery=320
  40. powerx=math.random(1600)
  41.  
  42. mice=0
  43.  
  44.  
  45.  
  46. Down=string.byte("S")
  47.  
  48. tfm.exec.disableAutoShaman(true)
  49. tfm.exec.disableAutoNewGame(true)
  50.  
  51.  
  52. tfm.exec.disableAutoShaman(true)
  53. tfm.exec.disableAutoTimeLeft(true)
  54. tfm.exec.disableAutoScore(true)
  55. data={}
  56. text={}
  57. lang={}
  58. lang.br={
  59. boughtNyan="<J>Você comprou Nyan Cat!",
  60. nyanInv="<p align='left'>Nyan Cat <J><a href='event:equipNyan'>[Equipar]</a></J>",
  61. nyan="Nyan Cat<N> - Nyan Cat aparecerá como seu objeto de ataque quando você é o assassino. <VP>Worth %s points.<J><a href='event:buyNyan'> [Compra]",
  62. boughtUltraCannon="<J>Você comprou o ultra canhão!",
  63. ultraCannonInv="<p align='left'>Ultra Cannon <J><a href='event:equipUltraCannon'>[Equipar]</a></J>",
  64. ultraCannon="Ultra Cannon<N> - Dois ultra canhões brilhantes aparecerão com oseu objeto de ataque quando você é o assassino. <VP>Worth %s points.<J><a href='event:buyUltraCannon'> [Compra]",
  65. boughtRock="<J>Você comprou a bigorna de pedra!",
  66. rock="Rock Anvil<N> - A bigorna de pedra aparece como seu objeto de ataque quando você é o assassino. <VP>Worth %s points.<J><a href='event:buyRock'> [Compra]",
  67. rockInv="<p align='left'>Rock Anvil <J><a href='event:equipRock'>[Equipar]</a></J>",
  68. mechAnvilInv="<p align='left'>Mechanical Anvil <J><a href='event:equipMechAnvil'>[Equipar]</a></J>",
  69. boughtMechAnvil="<J>Você comprou a bigorna mecânica!",
  70. watermelonInv="<p align='left'>Watermelon Cannon <J><a href='event:equipWatermelon'>[Equipar]</a></J>",
  71. boughtWatermelon="<J>Você comprou o canhão de melancia!",
  72. mechAnvil="Mechanical Anvil<N> - Duas bigornas mecânicas aparecerãocomo seu objeto de ataque quando você é o assassino. <VP>Worth %s points.<J><a href='event:buyMechAnvil'> [Compra]",
  73. watermelon="Watermelon Cannon<N> - Um canhão de melancia aparecerá como seu objeto de ataque quando você é o assassino. <VP>Worth %s points.<J><a href='event:buyWatermelon'> [Compra]",
  74. boughtShamanCannon="<J>Você comprou o canhão de shaman!",
  75. shamanCannonInv="<p align='left'>Shaman Cannon <J><a href='event:equipShamanCannon'>[Equipar]</a></J>",
  76. shamanCannon="Shaman Cannon<N> - Três canhões de shaman aparecerão como seu objeto de ataque quando você é o assassino. <VP>Worth %s points.<J><a href='event:buyShamanCannon'> [Compra]",
  77. equip="Equip",
  78. need2People="São necessários dois jogadores para jogar",
  79. nowHave2Lives="<J>Você agora tem duas vidas em cada rodada!",
  80. boughtIcedMouse="<J>Você comprou o objeto rato congelado!",
  81. boughtCake="<J>Você comprou o objeto bolo!",
  82. boughtCompanion="<J>Você comprou a caixa de companheiro!",
  83. companionInv="<p align='left'>Companion Crate <J><a href='event:equipCompanion'>[Equipar]</a></J>",
  84. companion="Companion Crate<N> - A caixa de companheiro aparecerá como seu objeto de ataquequando você é o assassino. <VP>Worth %s points.<J><a href='event:buyCompanion'> [Compra]",
  85. inventory2="Inventário",
  86. inventory="<p align='center'><font size='20'>INVENTORY</font><br><br><font size='12'><p align='left'>Default Box <a href='event:equipDefault'><J>[Equipar]</J></a>",
  87. icedMouseInv="<p align='left'>Iced mouse <J><a href='event:equipIcedMouse'>[Equipar]</a></J>",
  88. cakeInv="<p align='left'>Cake <J><a href='event:equipCake'>[Equipar]</a></J>",
  89. shop2="Aloja",
  90. cake="Cake Object<N> - Um bolo aparecerá como seu objeto de ataque quando você é o assassino. <VP>Worth %s points.<J><a href='event:buyCake'> [Compra]",
  91. icedMouse="Iced Mouse Object<N> - Um rato congelado aparecerá como seu objeto de ataque quando você é o assassino. <VP>Worth %s points.<J><a href='event:buyIcedMouse'> [Compra]",
  92. lives2="2 Lives<N> - Após você morrer pela primeira vez em uma rodada, receberá outra vida apenas uma vez. <VP>Worth %s points. <J><a href='event:buy2Lives'>[Compra]",
  93. description="Descrição",
  94. points="Pontos",
  95. winsAsRunner="Vitórias como fugitivo",
  96. winsAsDeath="Vitória como assassino",
  97. profile2="Perfil",
  98. rules="Regras</font></font></u><font size='12'>\n\n• Não é permitido o uso de truques para bugar o jogo \n\n• O uso de hack não é permitido, assim como qualquer outro jogo.",
  99. rules2="Regras",
  100. commands="Poderes\n\n<font size='11'>Click - Spawna um objeto de shaman aleatório quando vocçe é um <J>Assassino</J>.\n\nBarra de espaço - Faz um pulo grande seguido de um canhão invisível quando você é um<J>Fugitivo</J>. \n\nSeta para baixo/ Tecla S - Te dá um boost de velocidade (Tanto para fugitivos quanto para assassinos)",
  101. commands2="Poderes",
  102. credits="Créditos</font></font><font face='verdana'><font size='11'>\n\n<N>Programação - Fuzzyfirsdog#0000\n\nIdeia do Module - Reddeathnick#3204\n\nTradução para árabe - Bodykudo#0000\n\nTradução para FR - Tortuegreen#0000\n\nTradução para BR - Pratton#0000\n\nPowerup Sugestões - Reddeathnick#3204, Seaqueen2003#0000, Mugiwaraloffy#9866\n\nAchando maneiras de remover hacks - Mariluiss#0000 \n\n<VP>Obrigado ^^",
  103. credits2="Créditos",
  104. killer="[Assassino] ",
  105. youCanAttack="<R>Assassino: <N>Você pode atacar",
  106. youCanNotAttack="<R>Assassino: <N>Voce não pode atacar",
  107. youCanUsePowerups="<VP>Fugitivo: <N>Você pode usar poderes",
  108. youCanNotUsePowerups="<VP>Fugitivo: <N>Você não pode usar poderes",
  109. attacked="ATACADO",
  110. youAreARunner="Você é um fugitivo",
  111. youAreADeath="Você é um assasino",
  112. help="No #deathrun existem <J>Assassinos</J> e <J>Fugitivos</J>. Assassinos devem tentar matar os ratos spawnando objetos. Se nenhum fugitivo entra na toca, os assassinos ganham! Os fugitivos devem usar os poderes dados a eles para escapar dos assassinos e chegar a toca. Se um fugitivo entra na toca, a vitória é dos fugitivos.",
  113. close="Fechar",
  114. help2="Ajuda",
  115. superJump="SUPER PULO",
  116. speed="VELOCIDADE",
  117. deathsWin="Vitória dos assassinos!",
  118. runnersWin="Vitória dos fugitivos!"
  119. }
  120. lang.fr={
  121. boughtNyan="<J>Vous avez acheté nyan cat !",
  122. nyanInv="<p align='left'>Nyan Cat <J><a href='event:equipNyan'>[Équiper]</a></J>",
  123. nyan="Nyan Cat<N> - Nyan cat sera utilisé pour attaquer lorsque vous serez le tueur. <VP>Coûte %s points.<J><a href='event:buyNyan'> [Acheter]",
  124. boughtUltraCannon="<J>Vous avez acheté le super boulet !",
  125. ultraCannonInv="<p align='left'>Super Boulet <J><a href='event:equipUltraCannon'>[Équiper]</a></J>",
  126. ultraCannon="Super Boulet<N> - 2 magnifiques super boulets seront utilisés pour attaquer lorsque vous serez le tueur. <VP>Coûte %s points.<J><a href='event:buyUltraCannon'> [Acheter]",
  127. boughtRock="<J>Vous avez acheté l'enclume rocher !",
  128. rock="Emclume Rocher<N> - Un rocher sera utilisé pour attaquer lorsuqe vous serez le tueur. <VP>Coûte %s points.<J><a href='event:buyRock'> [Acheter]",
  129. rockInv="<p align='left'>Enclume Rocher <J><a href='event:equipRock'>[Équiper]</a></J>",
  130. mechAnvilInv="<p align='left'>Enclume Mécanique <J><a href='event:equipMechAnvil'>[Équiper]</a></J>",
  131. boughtMechAnvil="<J>Vous avez acheté l'enclume mécanique !",
  132. watermelonInv="<p align='left'>Boulet Pastèque <J><a href='event:equipWatermelon'>[Équiper]</a></J>",
  133. boughtWatermelon="<J>Vous avez acheté le boulet pastèque !",
  134. mechAnvil="Emclume Mécanique<N> - 2 enclumes mécaniques seront utilisées pour attaquer lorsque vous serez le tueur. <VP>Coûte %s points.<J><a href='event:buyMechAnvil'> [Acheter]",
  135. watermelon="Watermelon Cannon<N> - Un boulet pastèque sera utilisé pour attaquer lorsque vous serez le tueur. <VP>Coûte %s points.<J><a href='event:buyWatermelon'> [Acheter]",
  136. boughtShamanCannon="<J>Vous avez acheté le boulet chamane !",
  137. shamanCannonInv="<p align='left'>Boulet Chamane <J><a href='event:equipShamanCannon'>[Équiper]</a></J>",
  138. shamanCannon="Shaman Cannon<N> - 3 boulets chamane seront utilisés pour attaquer lorsque vous serez le tueur. <VP>Coûte %s points.<J><a href='event:buyShamanCannon'> [Acheter]",
  139. equip="Équiper",
  140. need2People="Vous devez être 2 pour jouer",
  141. nowHave2Lives="<J>Vous avez maintenant 2 vies à chaque tour !",
  142. boughtIcedMouse="<J>Vous venez d'acheter l'objet Souris gelée !",
  143. boughtCake="<J>Vous venez d'acheter l'objet Gâteau !",
  144. boughtCompanion="<J>Vous venez d'acheter la Caisse compagnon !",
  145. companionInv="<p align='left'>Caisse Compagnon <J><a href='event:equipCompanion'>[Équiper]</a></J>",
  146. companion="Caisse Compagnon<N> - Une caisse compagnon sera utilisée pour attaquer lorsque vous serez le tueur. <VP>Coûte %s points.<J><a href='event:buyCompanion'> [Acheter]",
  147. inventory2="Inventaire",
  148. inventory="<p align='center'><font size='20'>INVENTAIRE</font><br><br><font size='12'><p align='left'>Caisse par défaut <a href='event:equipDefault'><J>[Équiper]</J></a>",
  149. icedMouseInv="<p align='left'>Souris glacée <J><a href='event:equipIcedMouse'>[Équiper]</a></J>",
  150. cakeInv="<p align='left'>Gâteau <J><a href='event:equipCake'>[Équiper]</a></J>",
  151. shop2="Magasin",
  152. cake="Objet Gâteau<N> - Un gâteau sera utilisé pour attaquer lorsque vous serez le tueur. <VP>Coûte %s points.<J><a href='event:buyCake'> [Acheter]",
  153. icedMouse="Objet Souris glacée<N> - Une souris glacée sera utilisé pour attaquer lorsque vous serez le tueur. <VP>Coûte %s points.<J><a href='event:buyIcedMouse'> [Acheter]",
  154. lives2="2 Vies<N> - Lorsque vous mourrez pour la première fois durant un tour, vous obtiendrez une nouvelle vie. <VP>Coûte %s points. <J><a href='event:buy2Lives'>[Acheter]",
  155. description="Description",
  156. points="Points",
  157. winsAsRunner="Gaggne en étant un Coureur",
  158. winsAsDeath="Gagne en étant le tueur",
  159. profile2="Profil",
  160. rules="Règles</font></font></u><font size='12'>\n\n• Utiliser des techniques pour faire buguer le jeu n'est pas autorisé\n\n• Vous n'avez pas le droit de tricher, comme dans tout autre jeu.",
  161. rules2="Règles",
  162. commands="Boosters\n\n<font size='11'><b>Cliquer</b> - Fait apparaître un objet chamane aléatoire lorsque vous le rôle de <J>le tueur<J>.\n\n<b>Barre d'espace</b> - Fait un grand saut suivi d'un boulet invisible lorsque vous êtes un <J>Coureur</J>. \n\n<b>Flèche du basw / touche S</b> - Vous donne un bonus de vitesse. (Fonctione pour tueurs et les Coureurs)",
  163. commands2="Boosters",
  164. credits="Crédits</font></font><font face='verdana'><font size='11'>\n\n<N>Code - Fuzzyfirsdog#0000\n\Idée du module - Reddeathnick#3204\n\nTraductions Arabe - Bodykudo#0000\n\nTraduction française - Tortuegreen#0000\n\nTraductions en Portugais - Pratton#0000\n\nSuggestions des boosters - Reddeathnick#3204, Seaqueen2003#0000, Mugiwaraloffy#9866\n\nAnti-triche - Mariluiss#0000 \n\n<VP>Merci ^^",
  165. credits2="Crédits",
  166. killer="[Tueur] ",
  167. youCanAttack="<R>Tueur: <N>Vous pouvez attaquer",
  168. youCanNotAttack="<R>Tueur: <N>Vous ne pouvez pas attaquer",
  169. youCanUsePowerups="<VP>Coureur: <N>Vous pouvez utiliser des boosters",
  170. youCanNotUsePowerups="<VP>Coureur: <N>Vous ne pouvez pas utiliser de boosters",
  171. attacked="ATTAQUÉ",
  172. youAreARunner="Vous êtes un Coureur",
  173. youAreADeath="Vous êtes le tueur",
  174. help="Dans #deathrun, il y a <J>tueurs</J> et <J>les Coureurs</J>. le tueur doit tuer les souris en cliquant pour faire apparaître des objets. Si aucun Coureur ne rentre dans le trou avec le fromage, tueurs gagnent! Les Coureurs peuvent utiliser des boosters à leur disposition pour rentrer dans le trou et échaper aux tueurs. Si un Coureur réussit à rentrer dans le trou, les Coureurs gagnent.",
  175. close="Fermer",
  176. help2="Aide",
  177. superJump="SUPER SAUT",
  178. speed="VITESSE",
  179. deathsWin="Tueurs ont gagné !",
  180. runnersWin="Les Coureurs ont gagné !"
  181. }
  182. lang.en={boughtNyan="<J>You bought nyan cat!",nyanInv="<p align='left'>Nyan Cat <J><a href='event:equipNyan'>[Equip]</a></J>",nyan="Nyan Cat<N> - Nyan cat will appear as your attack object when you are the Killer. <VP>Worth %s points.<J><a href='event:buyNyan'> [Buy]",boughtUltraCannon="<J>You bought the ultra cannon!",ultraCannonInv="<p align='left'>Ultra Cannon <J><a href='event:equipUltraCannon'>[Equip]</a></J>",ultraCannon="Ultra Cannon<N> - 2 glowing ultra cannons will appear as your attack object when you are the Killer. <VP>Worth %s points.<J><a href='event:buyUltraCannon'> [Buy]",boughtRock="<J>You bought the rock anvil!",rock="Rock Anvil<N> - A rock anvil appear as your attack object when you are the Killer. <VP>Worth %s points.<J><a href='event:buyRock'> [Buy]",rockInv="<p align='left'>Rock Anvil <J><a href='event:equipRock'>[Equip]</a></J>",mechAnvilInv="<p align='left'>Mechanical Anvil <J><a href='event:equipMechAnvil'>[Equip]</a></J>",boughtMechAnvil="<J>You bought the mechanical anvil!",watermelonInv="<p align='left'>Watermelon Cannon <J><a href='event:equipWatermelon'>[Equip]</a></J>",boughtWatermelon="<J>You bought the watermelon cannon!",mechAnvil="Mechanical Anvil<N> - 2 mechanical anvils will appear as your attack object when you are the Killer. <VP>Worth %s points.<J><a href='event:buyMechAnvil'> [Buy]",watermelon="Watermelon Cannon<N> - A watermelon cannon will appear as your attack object when you are the Killer. <VP>Worth %s points.<J><a href='event:buyWatermelon'> [Buy]",boughtShamanCannon="<J>You bought the shaman cannon!",shamanCannonInv="<p align='left'>Shaman Cannon <J><a href='event:equipShamanCannon'>[Equip]</a></J>",shamanCannon="Shaman Cannon<N> - 3 shaman cannons will appear as your attack object when you are the Killer. <VP>Worth %s points.<J><a href='event:buyShamanCannon'> [Buy]",equip="Equip",need2People="You need 2 people to play",nowHave2Lives="<J>You now have 2 lives on each round!",boughtIcedMouse="<J>You just bought the iced mouse object!",boughtCake="<J>You just bought the cake object!",boughtCompanion="<J>You just bought the companion crate!",companionInv="<p align='left'>Companion Crate <J><a href='event:equipCompanion'>[Equip]</a></J>",companion="Companion Crate<N> - A companion crate will appear as your attack object when you are the Killer. <VP>Worth %s points.<J><a href='event:buyCompanion'> [Buy]",inventory2="Inventory",inventory="<p align='center'><font size='20'>INVENTORY</font><br><br><font size='12'><p align='left'>Default Box <a href='event:equipDefault'><J>[Equip]</J></a>",icedMouseInv="<p align='left'>Iced mouse <J><a href='event:equipIcedMouse'>[Equip]</a></J>",cakeInv="<p align='left'>Cake <J><a href='event:equipCake'>[Equip]</a></J>",shop2="Shop",cake="Cake Object<N> - A cake will appear as your attack object when you are the Killer. <VP>Worth %s points.<J><a href='event:buyCake'> [Buy]",icedMouse="Iced Mouse Object<N> - An iced mouse will appear as your attack object when you are the Killer. <VP>Worth %s points.<J><a href='event:buyIcedMouse'> [Buy]",lives2="2 Lives<N> - After you die your first time on a round, you'll be given another live once. <VP>Worth %s points. <J><a href='event:buy2Lives'>[Buy]",description="Description",points="Points",winsAsRunner="Wins as runner",winsAsDeath="Wins as Killer",profile2="Profile",rules="Rules</font></font></u><font size='12'>\n\n• Using tricks to glitch the game is not allowed\n\n• You are not allowed to hack just like in any other game.",rules2="Rules",commands="Powerups\n\n<font size='11'><b>Click</b> - Spawns a random shaman object when you have the role of being a <J>Killer</J>.\n\n<b>Spacebar</b> - Makes a large jump followed with an invisible cannon when you have the role of being a <J>Runner</J>. \n\n<b>Down Arrow / S key</b> - Gives you a boost of speed. (Works for both Killers and Runners)",commands2="Powerups",credits="Credits</font></font><font face='verdana'><font size='11'>\n\n<N>Programming - Fuzzyfirsdog#0000\n\nModule Idea - Reddeathnick#3204\n\nArabic Translations - Bodykudo#0000\n\nFrench Translations - Tortuegreen#0000\n\nPortuguese Translations - Pratton#0000\n\nPowerup Suggestions - Reddeathnick#3204, Seaqueen2003#0000, Mugiwaraloffy#9866\n\nFinding Ways To Remove Hacks - Mariluiss#0000 \n\n<VP>Thank you ^^",credits2="Credits",youCanAttack="<R>Killer: <N>You can attack",youCanNotAttack="<R>Killer: <N>You can not attack",youCanUsePowerups="<VP>Runner: <N>You can use powerups",youCanNotUsePowerups="<VP>Runner: <N>You can not use powerups",attacked="ATTACKED",youAreARunner="You are a runner",youAreADeath="You are a Killer",help="In #deathrun there are <J>Killers</J> and <J>Runners</J>. Killers should try to kill the mice by clicking to spawn objects, if no runners get into the hole then Killers win! Runners are supposed to use the powerups they are given to get into the hole and escape Killers. If one runner gets into the hole, runners win.",close="Close",help2="Help",superJump="SUPER JUMP",speed="SPEED",deathsWin="Killers win!",runnersWin="Runners win!",killer="[Killer] "}
  183. lang.ar={
  184. boughtNyan="<J>لقد اشتريت القطة نيان!",
  185. nyanInv="<p align='left'>القطة نيان <J><a href='event:equipNyan'>[ارتداء]</a></J>",
  186. nyan="القطة نيان<N> - القطة نيان سوف تظهر كأداة هجومك عندما تكون القاتل. <VP>تستحق %s نقطة.<J><a href='event:buyNyan'> [شراء]",
  187. boughtUltraCannon="<J>لقد اشتريت القذيفة الفائقة!",
  188. ultraCannonInv="<p align='left'>القذيفة الفائقة <J><a href='event:equipUltraCannon'>[ارتداء]</a></J>",
  189. ultraCannon="القذيفة الفائقة<N> - كُرتان فائقتان متوهجتان سوف يظهران كهجومك عندما تكون القاتل <VP>تستحق %s نقطة.<J><a href='event:buyUltraCannon'> [شراء]",
  190. boughtRock="<J>لقد اشتريت السندان الصخري!",
  191. rock="السندان الصخري<N> - السندان الصخري سوف يظهر كهجومك عندما تكون القاتل. <VP>يستحق %s نقطة.<J><a href='event:buyRock'> [شراء]",
  192. rockInv="<p align='left'>السندان الصخري <J><a href='event:equipRock'>[ارتداء]</a></J>",
  193. mechAnvilInv="<p align='left'>السندان الميكانيكي <J><a href='event:equipMechAnvil'>[ارتداء]</a></J>",
  194. boughtMechAnvil="<J>لقد اشتريت السندان الميكانيكي!",
  195. watermelonInv="<p align='left'>كرة البطيخ <J><a href='event:equipWatermelon'>[ارتداء]</a></J>",
  196. boughtWatermelon="<J>لقد اشتريت كرة البطيخ!",
  197. mechAnvil="السندان الميكانيكي<N> - سندانان ميكانيكيان سوف يظهران كهجوم عندما تكون القاتل. <VP>يستحق %s نقطة.<J><a href='event:buyMechAnvil'> [شراء]",
  198. watermelon="كرة البطيخ<N> - كرة البطيخ سوف تظهر كهجومك عندما تكون القاتل. <VP>تستحق %s نقطة.<J><a href='event:buyWatermelon'> [شراء]",
  199. boughtShamanCannon="<J>لقد اشتريت كرة الشامان!",
  200. shamanCannonInv="<p align='left'>كرة الشامان <J><a href='event:equipShamanCannon'>[ارتداء]</a></J>",
  201. shamanCannon="كرة الشامان<N> - 3 كرات شامان سوف تظهر كهجومك عندما تكون القاتل. <VP>تستحق %s نقاط.<J><a href='event:buyShamanCannon'> [شراء]",
  202. equip="ارتداء",
  203. need2People="أنت تحتاج لاعبيّن لكي تلعب",
  204. nowHave2Lives="<J>أنت الآن لديك حيواتان كل جولة",
  205. boughtIcedMouse="<J>لقد اشتريت الفأر المجمَد!",
  206. boughtCake="<J>لقد اشتريت صندوق الكعك!",
  207. boughtCompanion="<J>لقد اشتريت القفص!",
  208. companionInv="<p align='left'>القفص <J><a href='event:equipCompanion'>[ارتداء]</a></J>",
  209. companion="القفص<N> - القفص سوف يظهر كهجومك عندما تكون القاتل.<VP>يستحق %s نقطة.<J><a href='event:buyCompanion'> [شراء]",
  210. inventory2="المخزن",
  211. inventory="<p align='center'><font size='20'>المخزن</font><br><br><font size='12'><p align='left'>الصندوق العادي <a href='event:equipDefault'><J>[ارتداء]</J></a>",
  212. icedMouseInv="<p align='left'>الفأر المجمَد <J><a href='event:equipIcedMouse'>[ارتداء]</a></J>",
  213. cakeInv="<p align='left'>الكعكة <J><a href='event:equipCake'>[ارتداء]</a></J>",
  214. shop2="المتجر",
  215. cake="الكعكة<N> - الكعكة سوف تظهر كهجومك عندما تكون القاتل.<VP>تستحق %s نقطة.<J><a href='event:buyCake'> [شراء]",
  216. icedMouse="الفأر المجمَد<N> - الفأر المجمَد سوف يظهر كهجومك عندما تكون القاتل. <VP>يستحق %s نقطة.<J><a href='event:buyIcedMouse'> [شراء]",
  217. lives2="حياتان<N> - بعدما تموت لأول مرة في الجولة, سوف يتم إعطائك حياة أخرى فورًا. <VP>تستحق %s نقطة. <J><a href='event:buy2Lives'>[شراء]",
  218. description="الوصف",
  219. points="نقاط",
  220. winsAsRunner="مرات الفوز كراكض",
  221. winsAsDeath="مرات الفوز كقاتل",
  222. profile2="الملف الشخصي",
  223. rules="القواعد</font></font></u><font size='12'>\n\n• استخدام طرق لتخريب اللعبة ليس مسموحًا\n\n• ليس مسموحًا لك استخدام الهكر كباقي الألعاب.",
  224. rules2="القواعد",
  225. commands="المقويات\n\n<font size='11'>اضغط - Sلكي تطلق صندوقًا للهجوم عندما تكون <J>القاتل</J>.\n\nالمسافة - تجعلك تقفز طويلًا بالإضافة إلى قذيفة مخفية عندما تكون <J>راكضًا</J>. \n\nزر أسفل / زر S - تعطيك سرعة إضافية. (تعمل لدى القاتل والراكضين)",
  226. commands2="المقويِات",
  227. credits="ائتمان</font></font><font face='verdana'><font size='11'>\n\n<N>البرمجة - Fuzzyfirsdog#0000\n\n الترجمة العربية - Bodykudo#0000\n\nترجمة فرنسية - Tortuegreen#0000\n\nترجمات البرتغالية\n\nفكرة النمط - Reddeathnick#3204\n\nاقتراح المقويِّات - Reddeathnick#3204, Seaqueen2003#0000, Mugiwaraloffy#9866\n\nإيجاد طريق لمنع الهكرز - Mariluiss#0000 \n\n<VP>شكرًا لكم ^^",
  228. credits2="الائتمان",
  229. killer="[القاتل] ",
  230. youCanAttack="<R>القاتل: <N>يمكنك الهجوم",
  231. youCanNotAttack="<R>القاتل: <N>لا يمكنك الهجوم",
  232. youCanUsePowerups="<VP>الراكض: <N>يمكنك استعمال المقويِّات",
  233. youCanNotUsePowerups="<VP>الراكض: <N>لا يمكنك استعمال المقويِّات",
  234. attacked="هجم",
  235. youAreARunner="أنت راكض",
  236. youAreADeath="أنت قاتل",
  237. help="في #deathrun يوجد <J>قاتلين</J> و <J>الراكضين</J>. القاتلين يجب أن يحاولوا قتل الراكضين عبر إطلاق أدوات عبر الضغط على الشاشة, إذا لم يفز أي راكض سيفوز القاتل! الراكضين يمكنهم استعمال المقويِّات. إذا وصل راكض واحد للجحر, يفوز الراكضين.",
  238. close="إغلاق",
  239. help2="المساعدة",
  240. superJump="القفزة الخارقة",
  241. speed="السرعة",
  242. deathsWin="فاز القاتل!",
  243. runnersWin="فاز الراكضين!"
  244. }
  245.  
  246. roles={"Death","Runner"}
  247.  
  248.  
  249. death=0
  250. runner=0
  251. miceInHole=0
  252.  
  253. function setLang(n)
  254.  
  255. text[n]=lang[tfm.get.room.playerList[n].community] or lang.en
  256.  
  257. end
  258.  
  259. P=string.byte("P")
  260.  
  261. function bindMouse()
  262. for n,player in pairs(tfm.get.room.playerList) do
  263.  
  264. tfm.exec.bindKeyboard(n, 0, true, true)
  265.  
  266. tfm.exec.bindKeyboard(n, 1, true, true)
  267.  
  268. tfm.exec.bindKeyboard(n, 2, true, true)
  269.  
  270. tfm.exec.bindKeyboard(n, 3, true, true)
  271.  
  272. tfm.exec.bindKeyboard(n, 32, true, true)
  273.  
  274. tfm.exec.bindKeyboard(n, P, true, true)
  275.  
  276. system.bindMouse(n,true)
  277. end
  278. end
  279. bindMouse()
  280.  
  281. tfm.exec.newGame(maps[math.random(#maps)])
  282. names={}
  283.  
  284. theRole=1
  285. currentRole=roles[math.floor(theRole)]
  286.  
  287. function changeCurrentRole()
  288.  
  289. end
  290. numbs={1,2}
  291.  
  292. function showTabs(n)
  293. ui.addTextArea(130, "", n, -432, -865, 3625, 953, 0xffffff, 0xffffff, 0.008, true)
  294.  
  295. ui.addTextArea(15, "<VP><a href='event:help'><font size='12'>"..text[n].help2.."</a> | <a href='event:credits'>"..text[n].credits2.." </a>|<a href='event:commands'> "..text[n].commands2.." </a>|<a href='event:rules'> "..text[n].rules2, n, 30, 30, 264, 26, 0x00aaff, 0x00eeff, 0, true)
  296. ui.addTextArea(155, "<font size='12'><VP><a href='event:inventory'>"..text[n].inventory2.."</a> | <a href='event:shop'>"..text[n].shop2.." | <a href='event:profile'>"..text[n].profile2, n, 600, 30, 264, 26, 0x00aaff, 0x00eeff, 0, true)
  297.  
  298. end
  299. function setData(n)
  300. data[n]=
  301. {
  302. def=2,
  303. idTime=6,
  304. afk=true,
  305. description="",
  306. p=0,
  307. nyan=false,
  308. ultraCannon=false,
  309. rock=false,
  310. mechAnvil=false,
  311. watermelon=false,
  312. shamanCannon=false,
  313. companion=false,
  314. isInRoom=true,
  315. cake=false,
  316. objects=2,
  317. lives2=false,
  318. normalLives=1,
  319. lives=1,
  320. icedMouse=false,
  321. winsAsRunner=0,
  322. winsAsDeath=0,
  323. facingx=85,
  324. name=n,
  325. role="Runner",
  326. points=9000,
  327. spawnLimit=-1,
  328. ableToShoot=0,
  329. ableToShoot2=0,
  330. pointsAndScore="",
  331. inventory=text[n].inventory
  332. }
  333. data[n].objects=data[n].def
  334. end
  335. function inventory(n)
  336.  
  337. ui.addTextArea(152, "", n, 510, 96, 286, 290, 0x00ff6a, 0x047529, 1, true)
  338. ui.addTextArea(92, "<p align='center'><font size='20'>"..text[n].inventory.."</font>\n", n, 515, 101, 276, 279, 0x034511, 0x005219, 1, true)
  339. ui.addTextArea(222, "<p align='center'><font size='13'><a href='event:close'><font color='#808080'>"..text[n].close, n, 515, 343, 276, 36, 0x034511, 0x005219, 1, true)
  340.  
  341. end
  342. for n,player in pairs(tfm.get.room.playerList) do
  343. setLang(n)
  344. changeCurrentRole()
  345. mice=mice+1
  346. table.insert(names,n)
  347.  
  348. showTabs(n)
  349. setData(n)
  350.  
  351. if n=="Fuzzyfirsdog#0000" or n=="Bodykudo#0000" or n=="Tortuegreen#0000" then
  352. data[n].points=9000
  353. data[n].def=214
  354. data[n].objects=data[n].def
  355.  
  356. elseif n=="Readdeathnick#3204" or n=="Mariluiss#0000" or n=="Mugiwaraloffy#9866" or n=="Pratton#0000" or n=="Seaqueen2003#0000" then
  357. data[n].def=214
  358. data[n].objects=data[n].def
  359. end
  360.  
  361.  
  362. data[n].pointsAndScore=data[n].name.." "..data[n].points
  363. table.insert(scores,data[n].points)
  364. showTabs(n)
  365. tfm.exec.lowerSyncDelay(n)
  366. table.insert(dp,n)
  367. end
  368.  
  369. function Dp(name)
  370. name = name:sub(1,1):upper()..name:sub(2):lower()
  371. for i,dp in ipairs(dp) do
  372. if name==dp then
  373. return true
  374. end
  375. end
  376. return false
  377. end
  378.  
  379. function shopPage1(n)
  380. ui.addTextArea(18, "", n, 494, 117, 282, 178, 0x59442c, 0x59442c, 1, true)
  381. ui.addTextArea(25, "<CE>"..text[n].killer..string.format(text[n].lives2,Lives2), n, 500, 123, 270, 46, 0x302315, 0x59442c, 1, true)
  382. ui.addTextArea(19, "<CE>"..text[n].killer..string.format(text[n].icedMouse,icedMouseCost), n, 500, 182, 270, 46, 0x302315, 0x59442c, 1, true)
  383. ui.addTextArea(110, "<CE>"..text[n].killer..string.format(text[n].cake,cakeCost), n, 500, 241, 270, 47, 0x302315, 0x59442c, 1, true)
  384. ui.addTextArea(222, "<p align='center'>\n<font size='13'><a href='event:close'><font color='#808080'>"..text[n].close, n, 494, 296, 282, 36, 0x59442c, 0x59442c, 1, true)
  385. ui.addTextArea(92, "<G><p align='center'>«", n, 498, 310, 19, 18, 0x324650, 0x000000, 1, true)
  386. ui.addTextArea(152, "<a href='event:nextTo2'><p align='center'>»", n, 752, 310, 19, 18, 0x324650, 0x000000, 1, true)
  387.  
  388.  
  389. end
  390.  
  391. function shopPage2(n)
  392. ui.addTextArea(18, "", n, 494, 117, 282, 178, 0x59442c, 0x59442c, 1, true)
  393. ui.addTextArea(25, "<CE>"..text[n].killer..string.format(text[n].companion,companionCost), n, 500, 123, 270, 46, 0x302315, 0x59442c, 1, true)
  394. ui.addTextArea(19, "<CE>"..text[n].killer..string.format(text[n].shamanCannon,shamanCannonCost), n, 500, 182, 270, 46, 0x302315, 0x59442c, 1, true)
  395. ui.addTextArea(110, "<CE>"..text[n].killer..string.format(text[n].watermelon,watermelonCost), n, 500, 241, 270, 47, 0x302315, 0x59442c, 1, true)
  396. ui.addTextArea(222, "<p align='center'>\n<font size='13'><a href='event:close'><font color='#808080'>"..text[n].close, n, 494, 296, 282, 36, 0x59442c, 0x59442c, 1, true)
  397. ui.addTextArea(92, "<a href='event:backTo1'><p align='center'>«", n, 498, 310, 19, 18, 0x324650, 0x000000, 1, true)
  398. ui.addTextArea(152, "<a href='event:nextTo3'><p align='center'>»", n, 752, 310, 19, 18, 0x324650, 0x000000, 1, true)
  399.  
  400.  
  401. end
  402.  
  403.  
  404. function shopPage3(n)
  405. ui.addTextArea(18, "", n, 494, 117, 282, 178, 0x59442c, 0x59442c, 1, true)
  406. ui.addTextArea(25, "<CE>"..text[n].killer..string.format(text[n].mechAnvil,mechAnvilCost), n, 500, 123, 270, 46, 0x302315, 0x59442c, 1, true)
  407. ui.addTextArea(19, "<CE>"..text[n].killer..string.format(text[n].rock,rockCost), n, 500, 182, 270, 46, 0x302315, 0x59442c, 1, true)
  408. ui.addTextArea(110, "<CE>"..text[n].killer..string.format(text[n].ultraCannon,ultraCannonCost), n, 500, 241, 270, 47, 0x302315, 0x59442c, 1, true)
  409. ui.addTextArea(222, "<p align='center'>\n<font size='13'><a href='event:close'><font color='#808080'>"..text[n].close, n, 494, 296, 282, 36, 0x59442c, 0x59442c, 1, true)
  410. ui.addTextArea(92, "<a href='event:backTo2'><p align='center'>«", n, 498, 310, 19, 18, 0x324650, 0x000000, 1, true)
  411. ui.addTextArea(152, "<a href='event:nextTo4'><p align='center'>»", n, 752, 310, 19, 18, 0x324650, 0x000000, 1, true)
  412.  
  413.  
  414. end
  415.  
  416. function shopPage4(n)
  417. ui.addTextArea(18, "", n, 494, 117, 282, 178, 0x59442c, 0x59442c, 1, true)
  418. ui.addTextArea(25, "<CE>"..text[n].killer..string.format(text[n].nyan,nyanCost), n, 500, 123, 270, 46, 0x302315, 0x59442c, 1, true)
  419. ui.addTextArea(19, "<CE>", n, 500, 182, 270, 46, 0x302315, 0x59442c, 1, true)
  420. ui.addTextArea(110, "<CE>", n, 500, 241, 270, 47, 0x302315, 0x59442c, 1, true)
  421. ui.addTextArea(222, "<p align='center'>\n<font size='13'><a href='event:close'><font color='#808080'>"..text[n].close, n, 494, 296, 282, 36, 0x59442c, 0x59442c, 1, true)
  422. ui.addTextArea(92, "<a href='event:backTo3'><p align='center'>«", n, 498, 310, 19, 18, 0x324650, 0x000000, 1, true)
  423. ui.addTextArea(152, "<G><p align='center'>»", n, 752, 310, 19, 18, 0x324650, 0x000000, 1, true)
  424.  
  425.  
  426. end
  427.  
  428.  
  429. n1=scores[math.floor(1)]
  430. n2=scores[math.floor(2)]
  431. n3=scores[math.floor(3)]
  432. print(n1)
  433. print(n2)
  434. print(n3)
  435.  
  436. function findRoles(n)
  437. for n,player in pairs(tfm.get.room.playerList) do
  438. if data[n].role=="Death" then
  439.  
  440. tfm.exec.movePlayer(n,150,30,false,0,0,false)
  441.  
  442. elseif data[n].role=="Runner" then
  443.  
  444. tfm.exec.movePlayer(n,150,300,false,0,0,false)
  445.  
  446. end
  447. end
  448. end
  449.  
  450. function findRolesNewPlayer(n)
  451. if data[n].role=="Death" then
  452. tfm.exec.movePlayer(n,150,30,false,0,0,false)
  453.  
  454. elseif data[n].role=="Runner" then
  455.  
  456. tfm.exec.movePlayer(n,150,300,false,0,0,false)
  457.  
  458.  
  459.  
  460. end
  461. end
  462.  
  463.  
  464.  
  465. a={}
  466.  
  467. function eventNewPlayer(n)
  468. id=tfm.exec.addImage("1642e105967.png","&0",190,146,n)
  469.  
  470. setLang(n)
  471. print("yooy")
  472. bindMouse()
  473.  
  474. mice=mice+1
  475. if not data[n] then
  476. tfm.exec.respawnPlayer(n)
  477. table.insert(dp,n)
  478. setData(n)
  479. if n=="Fuzzyfirsdog#0000" or n=="Bodykudo#0000" or n=="Tortuegreen#0000" then
  480. data[n].points=9000
  481. data[n].def=214
  482. data[n].objects=data[n].def
  483.  
  484. elseif n=="Readdeathnick#3204" or n=="Mariluiss#0000" or n=="Mugiwaraloffy#9866" or n=="Pratton#0000" or n=="Seaqueen2003#0000" then
  485. data[n].def=214
  486. data[n].objects=data[n].def
  487. end
  488. end
  489.  
  490. data[n].idTime=0
  491.  
  492. data[n].isInRoom=true
  493.  
  494. showTabs(n)
  495. table.insert(names,n)
  496. findRolesNewPlayer(n)
  497. if mice<2 then
  498. tfm.exec.chatMessage("<R>"..text[n].need2People,n)
  499. end
  500.  
  501. end
  502.  
  503.  
  504.  
  505.  
  506.  
  507. function addToRoleNumber()
  508. for n,player in pairs(tfm.get.room.playerList) do
  509. if data[n].role=="Death" then
  510. death=death+1
  511. end
  512. if data[n].role=="Runner" then
  513. runner=runner+1
  514.  
  515.  
  516. end
  517. findRoles(n)
  518.  
  519.  
  520. end
  521. end
  522.  
  523.  
  524.  
  525. tfm.exec.newGame(maps[math.random(#maps)])
  526. amountInA=0
  527.  
  528. function punishGlitchers()
  529. if a then
  530. for i=1,amountInA do
  531. data[a[math.floor(amountInA)]].role="Runner"
  532. end
  533. end
  534. end
  535.  
  536. randomDeath=names[math.floor(math.random(mice))]
  537. data[randomDeath].role="Death"
  538. lastDeath=""
  539. function eventNewGame()
  540. lag=0
  541. v=0
  542.  
  543. local toDespawn = {}
  544.  
  545. do
  546. local addShamanObject = tfm.exec.addShamanObject
  547. tfm.exec.addShamanObject = function(...)
  548. toDespawn[#toDespawn + 1] = {
  549. addShamanObject(...),
  550. os.time() + 3000
  551. }
  552.  
  553. return toDespawn[#toDespawn][1]
  554. end
  555. end
  556. time=0
  557. theRole=1
  558. powerx=math.random(1600)
  559. runner=0
  560. death=0
  561. mice=0
  562.  
  563. for n,player in pairs(tfm.get.room.playerList) do
  564.  
  565. data[n].lives=data[n].normalLives
  566. mice=mice+1
  567. changeCurrentRole()
  568. data[n].role="Runner"
  569. data[n].ableToShoot=0
  570. data[n].ableToShoot2=0
  571. data[n].spawnLimit=-1
  572. data[n].afk=true
  573. if mice<2 then
  574. tfm.exec.chatMessage("<R>"..text[n].need2People,n)
  575. end
  576. end
  577. mice=mice
  578. if lastDeath==randomDeath then
  579. randomDeath=names[math.random(math.floor(mice))]
  580. end
  581.  
  582. if data[randomDeath].isInRoom==true then
  583. data[randomDeath].role="Death"
  584. elseif data[randomDeath].isInRoom==false then
  585. randomDeath=names[math.random(math.floor(mice))]
  586. end
  587.  
  588. lastDeath=randomDeath
  589.  
  590. addToRoleNumber()
  591. findRoles(n)
  592. print("Last death: "..lastDeath)
  593.  
  594. end
  595.  
  596.  
  597.  
  598.  
  599.  
  600.  
  601.  
  602. locationx=0
  603. locationy=0
  604.  
  605.  
  606. objects={54}
  607.  
  608. function eventMouse(n,x,y)
  609. if x>200 then
  610.  
  611.  
  612. if data[n].role=="Death" and (math.floor(time)>3) and lag<2 and data[n].spawnLimit<1 and mice>1 then
  613. lag=lag+1
  614. if lag>3 then
  615. randomDeath=names[math.floor(math.random(mice))]
  616. data[randomDeath].role="Death"
  617. local toDespawn = {}
  618. table.insert(a,n)
  619. amountInA=amountInA+1
  620. do
  621. local addShamanObject = tfm.exec.addShamanObject
  622. tfm.exec.addShamanObject = function(...)
  623. toDespawn[#toDespawn + 1] = {
  624. addShamanObject(...),
  625. os.time() + 0000
  626. }
  627.  
  628. return toDespawn[#toDespawn][1]
  629. end
  630. end
  631.  
  632.  
  633. ui.addTextArea(133, "<R><font size='17'><b>USING LAG TRICKS OR HACKS ARE NOT ALLOWED IN THIS ROOM", n, 143, 150, 534, 91, 0x324650, 0x000000, 1, true)
  634. time=-0.5
  635.  
  636. tfm.exec.newGame(maps[math.random(#maps)])
  637. eventNewGame()
  638. end
  639.  
  640.  
  641. data[n].spawnLimit=3
  642. attacked=0
  643. attacked=n
  644. for n,player in pairs(tfm.get.room.playerList) do
  645. ui.addTextArea(2, "<font color='#FF9000'><font size='30'><b>"..attacked.." "..text[n].attacked, n, x, y, 425, 100, 0x324650, 0x000000, 0, false)
  646. end
  647. locationx=x
  648. locationy=y
  649.  
  650.  
  651. if not (data[n].objects==1704) and not (data[n].objects==1002) and not (data[n].objects==1706) and not (data[n].objects==1709) then
  652. tfm.exec.addShamanObject(data[n].objects,locationx,locationy,0,0,20,false)
  653. end
  654. if data[n].objects==1704 then
  655. tfm.exec.addShamanObject(data[n].objects,locationx,locationy,180,0,20,false)
  656.  
  657. tfm.exec.addShamanObject(data[n].objects,locationx-20,locationy,180,0,20,false)
  658. tfm.exec.addShamanObject(data[n].objects,locationx+20,locationy,180,0,20,false)
  659. elseif data[n].objects==1706 then
  660. tfm.exec.addShamanObject(data[n].objects,locationx,locationy,180,0,20,false)
  661. elseif data[n].objects==1709 then
  662. tfm.exec.addShamanObject(data[n].objects,locationx+5,locationy,170,10,120,false)
  663. tfm.exec.addShamanObject(data[n].objects,locationx-5,locationy,-170,10,20,false)
  664. elseif data[n].objects==1002 then
  665. tfm.exec.addShamanObject(data[n].objects,locationx-5,locationy,0,0,20,false)
  666. tfm.exec.addShamanObject(data[n].objects,locationx+5,locationy,0,0,20,false)
  667. end
  668. tfm.exec.displayParticle(3,locationx,locationy,0,0,0,0,nil)
  669. canShoot()
  670. end
  671. end
  672. end
  673.  
  674.  
  675. time=0
  676.  
  677. number1=0
  678. number2=0
  679. number3=0
  680.  
  681.  
  682. function eventPlayerGetCheese(n)
  683. randomDeath=n
  684. v=v+1
  685. print(n)
  686. if data[n].role=="Runner" and mice>1 and v==1 and data[n].afk==false and o>0 then
  687.  
  688. tfm.exec.chatMessage(text[n].runnersWin,n)
  689. time=119.5
  690. data[n].points=data[n].points+50
  691.  
  692. for n,player in pairs(tfm.get.room.playerList) do
  693. if data[n].role=="Runner" and data[n].afk==false and o>0 then
  694. data[n].points=data[n].points+15
  695. data[n].winsAsRunner=data[n].winsAsRunner+1
  696. wonCountDown=-5
  697. end
  698. table.insert(scores,data[n].points)
  699. ui.addTextArea(133, "<b><font size='40'><font color='#0ff164'>"..text[n].runnersWin, n, 296, 282, 351, 189, 0xd41717, 0x000000, 0, true)
  700.  
  701.  
  702.  
  703. end
  704. end
  705.  
  706.  
  707. function eventPlayerWon(n)
  708. print("yo")
  709. randomDeath=n
  710. if data[n].role=="Death" then
  711. time=117
  712. end
  713.  
  714. for n,player in pairs(tfm.get.room.playerList) do
  715. ui.addTextArea(133, "<b><font size='40'><font color='#d40000'>"..text[n].deathsWin, n, 296, 282, 351, 189, 0xd41717, 0x000000, 0, true)
  716. tfm.exec.chatMessage("<J>"..text[n].deathsWin,n)
  717. if data[n].role=="Death" and data[n].afk==false and o>0 then
  718. data[n].winsAsDeath=data[n].winsAsDeath+1
  719. data[n].points=data[n].points+40
  720. end
  721. randomDeath=names[math.floor(math.random(mice))]
  722. end
  723.  
  724.  
  725.  
  726.  
  727. tfm.exec.newGame(maps[math.random(#maps)])
  728. print("Runners win!")
  729. end
  730. end
  731.  
  732.  
  733.  
  734. function explosions()
  735. tfm.exec.displayParticle(0,locationx,locationy,0.5,0.5,0.5,0.5,nil)
  736. tfm.exec.displayParticle(0,locationx,locationy,-0.5,-0.5,-0.5,-0.5,nil)
  737. tfm.exec.displayParticle(2,locationx,locationy,3,-3,3,-3,nil)
  738. tfm.exec.displayParticle(2,locationx,locationy,-3,3,-3,3,nil)
  739.  
  740. tfm.exec.displayParticle(0,locationx,locationy,-0.5,0.5,-0.5,0.5,nil)
  741. tfm.exec.displayParticle(0,locationx,locationy,0.5,-0.5,0.5,-0.5,nil)
  742. tfm.exec.displayParticle(2,locationx,locationy,1,-3,1,-3,nil)
  743. tfm.exec.displayParticle(2,locationx,locationy,1,1,3,1,nil)
  744. tfm.exec.displayParticle(2,locationx,locationy,-1,3,-1,3,nil)
  745. tfm.exec.displayParticle(2,locationx,locationy,-1,-1,-3,-1,nil)
  746. tfm.exec.displayParticle(5,locationx,locationy,0.5,0.5,0.5,0.5,nil)
  747. tfm.exec.displayParticle(5,locationx,locationy,-0.5,-0.5,-0.5,-0.5,nil)
  748.  
  749. tfm.exec.displayParticle(5,locationx,locationy,-0.5,0.5,-0.5,0.5,nil)
  750. tfm.exec.displayParticle(5,locationx,locationy,0.5,-0.5,0.5,-0.5,nil)
  751. tfm.exec.explosion(locationx, locationy, 40, 40, false)
  752. end
  753.  
  754.  
  755. function canShoot()
  756. for n,player in pairs(tfm.get.room.playerList) do
  757. if data[n].spawnLimit<1 and data[n].role=="Death" then
  758. ui.addTextArea(12, "\n<p align='center'>"..text[n].youCanAttack, n, 270, 23, 240, 46, 0x00a611, 0x338500, 1, true)
  759.  
  760. end
  761. if not (data[n].spawnLimit<1) and data[n].role=="Death" then
  762. ui.addTextArea(12, "\n<p align='center'>"..text[n].youCanNotAttack, n, 270, 23, 240, 46, 0x802c2c, 0x6e0000, 1, true)
  763.  
  764. end
  765. if data[n].spawnLimit<1 and data[n].role=="Runner" then
  766. ui.addTextArea(12, "\n<p align='center'>"..text[n].youCanUsePowerups, n, 270, 23, 240, 46, 0x00a611, 0x338500, 1, true)
  767.  
  768. end
  769. if not (data[n].spawnLimit<1) and data[n].role=="Runner" then
  770. ui.addTextArea(12, "\n<p align='center'>"..text[n].youCanNotUsePowerups, n, 270, 23, 240, 46, 0x802c2c, 0x6e0000, 1, true)
  771.  
  772. end
  773. end
  774. end
  775.  
  776. function removeObjectAfterTime()
  777. for k, v in ipairs(toDespawn) do
  778. if os.time() > v[2] then
  779. tfm.exec.removeObject(v[1])
  780. table.remove(toDespawn, k)
  781. end
  782. end
  783. end
  784.  
  785. function eventLoop()
  786. for n,player in pairs(tfm.get.room.playerList) do
  787. data[n].idTime=data[n].idTime+0.5
  788. if data[n].idTime==5 then
  789. tfm.exec.removeImage(id)
  790. end
  791. end
  792. lag=0
  793. removeObjectAfterTime()
  794.  
  795. if mice>1 then
  796. ui.removeTextArea(202,nil)
  797.  
  798. wonCoundown=wonCountDown+0.5
  799.  
  800.  
  801.  
  802. canShoot()
  803. for n,player in pairs(tfm.get.room.playerList) do
  804.  
  805. data[n].spawnLimit=data[n].spawnLimit-0.5
  806.  
  807. if tfm.get.room.playerList[n].y>100 and data[n].role=="Death" then
  808.  
  809. tfm.exec.movePlayer(n,150,30,false,0,0,false)
  810.  
  811. elseif tfm.get.room.playerList[n].y<100 and data[n].role=="Runner" then
  812. tfm.exec.movePlayer(n,70,300,false,0,0,false)
  813. elseif tfm.get.room.playerList[n].x>600 and time<5 then
  814. tfm.exec.killPlayer(n)
  815. tfm.exec.movePlayer(n,150,tfm.get.room.playerList[n].y,false,0,0,false)
  816. tfm.exec.respawnPlayer(n)
  817. end
  818.  
  819.  
  820.  
  821.  
  822. if data[n].spawnLimit==0 then
  823. ui.removeTextArea(2,nil)
  824. system.bindMouse(n, true)
  825. ui.removeTextArea(11,n)
  826. end
  827. end
  828. time=time+.5
  829. if time==120 then
  830. tfm.exec.newGame(maps[math.random(#maps)])
  831. for n,player in pairs(tfm.get.room.playerList) do
  832. if data[n].role=="Death" and data[n].afk==false and o>0 then
  833. data[n].points=data[n].points+15
  834. end
  835. ui.addTextArea(133, "<b><font size='40'><font color='#d40000'>"..text[n].deathsWin, n, 296, 282, 351, 189, 0xd41717, 0x000000, 0, true)
  836. tfm.exec.chatMessage("<J>"..text[n].deathsWin,n)
  837. end
  838. print("Deaths win!")
  839. time=-0.5
  840. elseif time==0 then
  841. for n,player in pairs(tfm.get.room.playerList) do
  842. findRoles(n)
  843. end
  844. elseif time==5 then
  845. for n,player in pairs(tfm.get.room.playerList) do
  846. ui.removeTextArea(0,nil)
  847. ui.removeTextArea(2,nil)
  848. system.bindMouse(n, true)
  849. ui.removeTextArea(133,n)
  850.  
  851. end
  852. end
  853. end
  854. end
  855.  
  856. function profile(n)
  857. ui.addTextArea(110, "<p align='center'><font size='12'><font color='#000000'><font face='calibri'>"..n, n, 551, 89, 233, 278, 0xffd900, 0x075214, 1, true)
  858. ui.addTextArea(18, "<p align='left'><font size='13'><font face='calibri'><font color='#FFFFFF'>"..text[n].points..": <br>"..data[n].points.." <br><br>"..text[n].winsAsDeath..": <br>"..data[n].winsAsDeath.."<br><br>"..text[n].winsAsRunner..": <br>"..data[n].winsAsRunner, n, 557, 136, 105, 226, 0x966a03, 0x294d12, 1, true)
  859. ui.addTextArea(19, "<p align='left'><font size='13'><font face='calibri'><font color='#FFFFFF'><a href='event:description'>"..text[n].description.."</a> : "..data[n].description, n, 675, 136, 104, 226, 0x966a03, 0x294d12, 1, true)
  860. ui.addTextArea(25, "<p align='center'><font size='13'><a href='event:close'><font color='#505050'>"..text[n].close, n, 551, 368, 233, 36, 0xffd900, 0x075214, 1, true)
  861. end
  862.  
  863. function removeTextAreas(n)
  864. ui.removeTextArea(18,n)
  865. ui.removeTextArea(19,n)
  866. ui.removeTextArea(110,n)
  867. ui.removeTextArea(222,n)
  868. ui.removeTextArea(25,n)
  869. ui.removeTextArea(152,n)
  870. ui.removeTextArea(92,n)
  871. ui.addPopup(0, 2, text[n].description, n, 8565, 290, 200, true)
  872. end
  873.  
  874. function eventKeyboard(n, key, down, x,y)
  875. data[n].afk=false
  876. --FACING
  877. if tfm.get.room.playerList[n].isDead==false then
  878. o=o+1
  879. end
  880.  
  881. if key==0 then
  882. data[n].facing=-85
  883. elseif key==2 then
  884. data[n].facing=85
  885. print(-data[n].facing)
  886. elseif key==P and data[n].p==0 then
  887. removeTextAreas(n)
  888. profile(n)
  889. data[n].p=1
  890. elseif key==P and data[n].p==1 then
  891. removeTextAreas(n)
  892. data[n].p=0
  893.  
  894. end
  895. if time>3 and mice>1 then
  896.  
  897. --AUTOMATIC POWERUPS
  898.  
  899. if key==32 and data[n].role=="Runner" and data[n].spawnLimit<0 then
  900. ui.addTextArea(11, "<b><font size='30'><font color='#F0F000'>"..text[n].superJump, n, x-50, y-50, 379, 67, 0x324650, 0x000000, 0, false)
  901.  
  902. tfm.exec.movePlayer(n,x,y,false,0,-80,false)
  903.  
  904.  
  905.  
  906.  
  907.  
  908. tfm.exec.displayParticle(10,x,y,3,-3,3,-3,nil)
  909. tfm.exec.displayParticle(10,x,y,-3,3,-3,3,nil)
  910.  
  911. tfm.exec.displayParticle(10,x,y,-3,-3,-3,-3,nil)
  912. tfm.exec.displayParticle(10,x,y,3,3,3,3,nil)
  913.  
  914.  
  915.  
  916. tfm.exec.bindKeyboard(n, 32, false, false)
  917. tfm.exec.addShamanObject(17,x,y,60,50,-10,true)
  918. data[n].spawnLimit=3.5
  919. data[n].ableToShoot=0
  920. canShoot()
  921. elseif (key==3) then
  922. if data[n].role=="Death" then
  923. if data[n].facing==-85 then
  924. tfm.exec.movePlayer(n,x,y,false,-50,0,true)
  925. elseif data[n].facing==85 then
  926. tfm.exec.movePlayer(n,x,y,false,50,0,true)
  927. end
  928. elseif data[n].spawnLimit<0 and data[n].role=="Runner" then
  929. tfm.exec.movePlayer(n,x,y,false,data[n].facing,0,true)
  930. ui.addTextArea(11, "<b><font size='30'><font color='#F0F000'>"..text[n].speed, n, x-50, y-50, 379, 67, 0x324650, 0x000000, 0, false)
  931.  
  932.  
  933.  
  934.  
  935. tfm.exec.displayParticle(10,x,y,3,-3,3,-3,nil)
  936. tfm.exec.displayParticle(10,x,y,-3,3,-3,3,nil)
  937.  
  938. tfm.exec.displayParticle(10,x,y,-3,-3,-3,-3,nil)
  939. tfm.exec.displayParticle(10,x,y,3,3,3,3,nil)
  940.  
  941.  
  942.  
  943. data[n].spawnLimit=3.5
  944. data[n].ableToShoot=0
  945. canShoot()
  946. end
  947. end
  948. end
  949. end
  950.  
  951.  
  952. n=0
  953. system.disableChatCommandDisplay("profile",true)
  954. function eventTextAreaCallback(id,p,a)
  955. n=p
  956. if a=="close" then
  957. data[n].p=0
  958. removeTextAreas(n)
  959. elseif a=="help" then
  960. data[n].p=0
  961. removeTextAreas(n)
  962. --TABS
  963.  
  964. ui.addTextArea(110, "", n, 498, 165, 266, 217, 0x324650, 0x000000, 1, true)
  965. ui.addTextArea(18, "<font size='14'><font face='calibri'>"..text[n].help, n, 504, 172, 254, 179, 0x000000, 0x000000, 1, true)
  966. ui.addTextArea(19, "<p align='center'><font size='13'><a href='event:close'>"..text[n].close, n, 504, 338, 254, 36, 0x000000, 0xffffff, 1, true)
  967. elseif a=="credits" then
  968. data[n].p=0
  969. removeTextAreas(n)
  970. ui.addTextArea(18, "<p align='center'><font size='16'><font face='verdana'><J>"..text[n].credits, n, 504, 72, 254, 304, 0x4f4132, 0x695743, 1, true)
  971. ui.addTextArea(19, "<p align='center'><font size='13'><a href='event:close'>"..text[n].close, n, 504, 343, 254, 36, 0x4f4132, 0x30291a, 1, true)
  972. elseif a=="commands" then
  973. data[n].p=0
  974. removeTextAreas(n)
  975. ui.addTextArea(18, "<p align='center'><font size='14'><font face='verdana'>"..text[n].commands, n, 545, 111, 220, 238, 0x50498c, 0x05014f, 1, true)
  976. ui.addTextArea(19, "<p align='center'><font size='13'><a href='event:close'>"..text[n].close, n, 545, 346, 220, 36, 0x284391, 0x0f0759, 1, true)
  977. elseif a=="rules" then
  978. data[n].p=0
  979. removeTextAreas(n)
  980. ui.addTextArea(18, "<p align='center'><u><font size='17'><font face='calibri'>"..text[n].rules, n, 562, 132, 201, 230, 0xab0000, 0xff4545, 1, true)
  981. ui.addTextArea(19, "<p align='center'><font size='13'><a href='event:close'>"..text[n].close, n, 562, 329, 201, 36, 0xa60000, 0xff0000, 1, true)
  982. elseif a=="profile" then
  983. removeTextAreas(n)
  984. profile(n)
  985. elseif a=="description" then
  986. ui.addPopup(0, 2, text[n].description, n, 565, 290, 200, true)
  987.  
  988. end
  989. if a=="inventory" then
  990. data[n].p=0
  991. removeTextAreas(n)
  992. ui.addTextArea(152, "", n, 510, 96, 286, 290, 0x00ff6a, 0x047529, 1, true)
  993. ui.addTextArea(92, "<p align='center'><font size='20'>"..data[n].inventory, n, 515, 101, 276, 279, 0x034511, 0x005219, 1, true)
  994. ui.addTextArea(222, "<p align='center'><font size='13'><a href='event:close'><font color='#808080'>"..text[n].close, n, 515, 343, 276, 36, 0x034511, 0x005219, 1, true)
  995. end
  996.  
  997. if a=="equipDefault" then
  998. data[n].objects=data[n].def
  999. elseif a=="equipNyan" then
  1000. data[n].objects=212
  1001. elseif a=="equipUltraCannon" then
  1002. data[n].objects=1709
  1003. elseif a=="equipCompanion" then
  1004. data[n].objects=61
  1005. elseif a=="equipShamanCannon" then
  1006. data[n].objects=1704
  1007. elseif a=="equipWatermelon" then
  1008. data[n].objects=1706
  1009. elseif a=="equipIcedMouse" then
  1010. data[n].objects=54
  1011. elseif a=="equipCake" then
  1012. data[n].objects=207
  1013. elseif a=="equipMechAnvil" then
  1014. data[n].objects=1002
  1015. elseif a=="equipRock" then
  1016. data[n].objects=1003
  1017.  
  1018. elseif a=="shop" then
  1019. shopPage1(n)
  1020. data[n].p=0
  1021. elseif a=="backTo1" then
  1022. shopPage1(n)
  1023. elseif a=="nextTo2" then
  1024.  
  1025. shopPage2(n)
  1026. elseif a=="backTo2" then
  1027. shopPage2(n)
  1028. elseif a=="nextTo3" then
  1029. shopPage3(n)
  1030. elseif a=="backTo3" then
  1031. shopPage3(n)
  1032. elseif a=="nextTo4" then
  1033. shopPage4(n)
  1034. end
  1035. --SHOP ITEMS
  1036.  
  1037. if a=="buyIcedMouse" and (data[n].points>icedMouseCost or data[n].points==icedMouseCost) and data[n].icedMouse==false then
  1038. data[n].inventory = data[n].inventory.."\n"..text[n].icedMouseInv
  1039. data[n].objects=54
  1040. tfm.exec.chatMessage(text[n].boughtIcedMouse,n)
  1041.  
  1042. data[n].icedMouse=true
  1043. data[n].points=data[n].points-icedMouseCost
  1044. elseif a=="buyNyan" and (data[n].points>nyanCost or data[n].points==nyanCost) and data[n].nyan==false then
  1045. data[n].inventory = data[n].inventory.."\n"..text[n].nyanInv
  1046. data[n].objects=212
  1047. tfm.exec.chatMessage(text[n].boughtNyan,n)
  1048.  
  1049. data[n].nyan=true
  1050. data[n].points=data[n].points-nyanCost
  1051.  
  1052. elseif a=="buyUltraCannon" and (data[n].points>ultraCannonCost or data[n].points==ultraCannonCost) and data[n].ultraCannon==false then
  1053. data[n].inventory = data[n].inventory.."\n"..text[n].ultraCannonInv
  1054. data[n].objects=1709
  1055. tfm.exec.chatMessage(text[n].boughtUltraCannon,n)
  1056.  
  1057. data[n].ultraCannon=true
  1058. data[n].points=data[n].points-ultraCannonCost
  1059. elseif a=="buyCake" and (data[n].points>cakeCost or data[n].points==cakeCost) and data[n].cake==false then
  1060. data[n].inventory=data[n].inventory.."\n"..text[n].cakeInv
  1061.  
  1062. data[n].objects=207
  1063. tfm.exec.chatMessage(text[n].boughtCake,n)
  1064. data[n].cake=true
  1065. data[n].points=data[n].points-cakeCost
  1066. elseif a=="buyMechAnvil" and (data[n].points>mechAnvilCost or data[n].points==mechAnvilCost) and data[n].mechAnvil==false then
  1067. data[n].inventory=data[n].inventory.."\n"..text[n].mechAnvilInv
  1068.  
  1069. data[n].objects=1002
  1070. tfm.exec.chatMessage(text[n].boughtMechAnvil,n)
  1071. data[n].mechAnvil=true
  1072. data[n].points=data[n].points-mechAnvilCost
  1073. elseif a=="buyRock" and (data[n].points>rockCost or data[n].points==rockCost) and data[n].rock==false then
  1074. data[n].inventory=data[n].inventory.."\n"..text[n].rockInv
  1075.  
  1076. data[n].objects=1003
  1077. tfm.exec.chatMessage(text[n].boughtRock,n)
  1078. data[n].rock=true
  1079. data[n].points=data[n].points-rockCost
  1080.  
  1081. elseif a=="buy2Lives" and (data[n].points>Lives2 or data[n].points==Lives2) and data[n].lives2==false then
  1082. data[n].normalLives=2
  1083. tfm.exec.chatMessage(text[n].nowHave2Lives,n)
  1084. print(data[n].lives)
  1085. data[n].points=data[n].points-Lives2
  1086. data[n].lives2=true
  1087. elseif a=="buyCompanion" and (data[n].points>companionCost or data[n].points==companionCost) and data[n].companion==false then
  1088. data[n].objects=61
  1089. data[n].inventory = data[n].inventory.."\n"..text[n].companionInv
  1090. data[n].companion=true
  1091.  
  1092. data[n].points=data[n].points-companionCost
  1093. tfm.exec.chatMessage(text[n].boughtCompanion,n)
  1094. elseif a=="buyShamanCannon" and (data[n].points>shamanCannonCost or data[n].points==shamanCannonCost) and data[n].shamanCannon==false then
  1095. data[n].objects=1704
  1096. data[n].inventory = data[n].inventory.."\n"..text[n].shamanCannonInv
  1097. data[n].shamanCannon=true
  1098.  
  1099. data[n].points=data[n].points-shamanCannonCost
  1100. tfm.exec.chatMessage(text[n].boughtshamanCannon,n)
  1101. elseif a=="buyWatermelon" and (data[n].points>watermelonCost or data[n].points==watermelonCost) and data[n].watermelon==false then
  1102. data[n].objects=1706
  1103. data[n].inventory = data[n].inventory.."\n"..text[n].watermelonInv
  1104. data[n].watermelon=true
  1105.  
  1106. data[n].points=data[n].points-watermelonCost
  1107. tfm.exec.chatMessage(text[n].boughtWatermelon,n)
  1108.  
  1109. end
  1110. end
  1111.  
  1112. function eventPlayerDied(n)
  1113.  
  1114. if data[n].role=="Death" and data[n].afk==false then
  1115.  
  1116. tfm.exec.respawnPlayer(n)
  1117. tfm.exec.movePlayer(n,200,30,false,0,0,false)
  1118. end
  1119. if data[n].role=="Death" and data[n].afk==true then
  1120.  
  1121. tfm.exec.newGame(maps[math.random(#maps)])
  1122. end
  1123. data[n].lives=data[n].lives-1
  1124. if data[n].role=="Runner" and data[n].lives==1 then
  1125. tfm.exec.respawnPlayer(n)
  1126. end
  1127. if data[n].role=="Runner" and data[n].lives==0 then
  1128. runner=runner-1
  1129. print(runner)
  1130.  
  1131. end
  1132. if runner<1 and mice>1 then
  1133. tfm.exec.newGame(maps[math.random(#maps)])
  1134. for n,player in pairs(tfm.get.room.playerList) do
  1135. ui.addTextArea(133, "<b><font size='40'><font color='#d40000'>"..text[n].deathsWin, n, 296, 282, 351, 189, 0xd41717, 0x000000, 0, true)
  1136. tfm.exec.chatMessage(text[n].deathsWin,n)
  1137. if data[n].role=="Death" and data[n].afk==false and o>0 then
  1138. data[n].points=data[n].points+30
  1139. data[n].winsAsDeath=data[n].winsAsDeath+1
  1140. end
  1141. end
  1142. wonCountDown=-5
  1143. print("hi")
  1144. end
  1145. if death<1 then
  1146. tfm.exec.newGame(maps[math.random(#maps)])
  1147. tfm.exec.disableAutoShaman(true)
  1148.  
  1149. time=0
  1150.  
  1151.  
  1152. for n,player in pairs(tfm.get.room.playerList) do
  1153.  
  1154.  
  1155. wonCountdown=-5
  1156. changeCurrentRole()
  1157. data[n].role="Runner"
  1158. end
  1159. data[names[math.floor(math.random(mice))]].role="Death"
  1160. end
  1161. end
  1162.  
  1163.  
  1164.  
  1165.  
  1166. print(death)
  1167. print(runner)
  1168.  
  1169. print(mice)
  1170.  
  1171. function eventPlayerLeft(n)
  1172. names={}
  1173. for n in pairs(tfm.get.room.playerList) do
  1174. table.insert(names,n)
  1175. end
  1176.  
  1177. data[n].isInRoom=false
  1178. mice=mice-1
  1179. if mice<2 then
  1180. for n,player in pairs(tfm.get.room.playerList) do
  1181. tfm.exec.chatMessage("<R>"..text[n].need2People,n)
  1182. end
  1183. end
  1184. if n==randomDeath then
  1185. randomDeath=names[math.random(math.floor(mice))]
  1186. end
  1187. if data[n].role=="Runner" then
  1188. runner=runner-1
  1189. elseif data[n].role=="Death" then
  1190. death=death-1
  1191. end
  1192. end
  1193.  
  1194.  
  1195.  
  1196.  
  1197. for n,player in pairs(tfm.get.room.playerList) do
  1198. data[n].pointsAndScore=data[n].points.." "..data[n].name
  1199. end
  1200.  
  1201. function eventSummoningEnd(n,id,x,y,angle,t)
  1202. print(id)
  1203. tfm.exec.removeObject(t.id)
  1204. end
  1205.  
  1206. system.disableChatCommandDisplay("p",true)
  1207. function eventChatCommand(n, c)
  1208. if c=="profile" then
  1209. profile(n)
  1210. end
  1211. if c:sub(0,7)=="profile" and Dp(c:sub(9)) then
  1212.  
  1213. l = c:sub(9,9):upper()..c:sub(10):lower()
  1214.  
  1215. removeTextAreas(n)
  1216. ui.addTextArea(110, "<p align='center'><font size='12'><font color='#000000'><font face='calibri'>"..l, n, 551, 89, 233, 278, 0xffd900, 0x075214, 1, true)
  1217. ui.addTextArea(18, "<p align='left'><font size='13'><font face='calibri'><font color='#FFFFFF'>"..text[n].points..": <br>"..data[l].points.." <br><br>"..text[n].winsAsDeath..": <br>"..data[l].winsAsDeath.."<br><br>"..text[n].winsAsRunner..": <br>"..data[l].winsAsRunner, n, 557, 136, 105, 226, 0x966a03, 0x294d12, 1, true)
  1218. ui.addTextArea(19, "<p align='left'><font size='13'><font face='calibri'><font color='#FFFFFF'>"..text[n].description..": "..data[l].description, n, 675, 136, 104, 226, 0x966a03, 0x294d12, 1, true)
  1219. ui.addTextArea(25, "<p align='center'><font size='13'><a href='event:close'><font color='#505050'>"..text[n].close, n, 551, 368, 233, 36, 0xffd900, 0x075214, 1, true)
  1220.  
  1221. end
  1222. end
  1223.  
  1224. function eventPopupAnswer(id, n, a)
  1225. local click=a:match("<a href='")
  1226. if not click then
  1227. data[n].description = a
  1228.  
  1229. profile(n)
  1230. data[n].p=1
  1231. end
  1232. end
Advertisement
Add Comment
Please, Sign In to add comment