Boeing747-8

Untitled

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