Advertisement
Boeing747-8

Untitled

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