Advertisement
Boeing747-8

Untitled

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