Advertisement
Boeing747-8

Untitled

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