daily pastebin goal
61%
SHARE
TWEET

Untitled

tacfop Aug 10th, 2018 71 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. --8/9
  2. function deathrun()
  3.     tfm.exec.disableAfkDeath(false)
  4.     v=0
  5.     tfm.exec.setRoomMaxPlayers(15)
  6.     dp={}
  7.     function count()
  8.         if runner<1 then
  9.             tfm.exec.newGame(maps[math.random(#maps)])
  10.         end
  11.     end
  12.     function vip(n)
  13.         if n=="Fuzzyfirsdog#0000" or n=="Bodykudo#0000" or n=="Tortuegreen#0000" or n=="Bolodefchoco#0000" then
  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.     function add(n)
  25.         if data[n].role=="Runner" then
  26.             runner=runner+1
  27.         elseif data[n].role=="Death" then
  28.             death=death+1
  29.         end
  30.     end
  31.     lag=0
  32.     Lives2=1000
  33.     icedMouseCost=400
  34.     cakeCost=200
  35.     companionCost=900
  36.     shamanCannonCost=1000
  37.     watermelonCost=500
  38.     mechAnvilCost=800
  39.     rockCost=400
  40.     ultraCannonCost=900
  41.     nyanCost=400
  42.     local toDespawn = {}
  43.     do
  44.         local addShamanObject = tfm.exec.addShamanObject
  45.             tfm.exec.addShamanObject = function(...)
  46.             toDespawn[#toDespawn + 1] = {
  47.             addShamanObject(...),
  48.             os.time() + 3000
  49.     }
  50.  
  51.         return toDespawn[#toDespawn][1]
  52.         end
  53.     end
  54.  
  55.     tfm.exec.disableAllShamanSkills(true)
  56.     tfm.exec.disableMortCommand(true)
  57.     wonCountDown=1
  58.  
  59.  
  60.     maps={7455943,7458404,7459068,6238915,6321696,6321733,6335123}
  61.     powery=320
  62.     powerx=math.random(1600)
  63.  
  64.     mice=0
  65.  
  66.     function countMice()
  67.         for n,player in pairs(tfm.get.room.playerList) do
  68.             mice=mice+1
  69.         end
  70.     end
  71.  
  72.     Down=string.byte("S")
  73.  
  74.     tfm.exec.disableAutoShaman(true)
  75.     tfm.exec.disableAutoNewGame(true)
  76.  
  77.  
  78.     tfm.exec.disableAutoShaman(true)
  79.     tfm.exec.disableAutoTimeLeft(true)
  80.     tfm.exec.disableAutoScore(true)
  81.     data={}
  82.     text={}
  83.     lang={}
  84.     lang.he={boughtNyan="<J>!קנית את קופסת ניאן החתול",
  85.     nyanInv="<p align='left'>השתמש <J><a href='event:equipNyan'>[השתמש]</a></J>",
  86.     nyan="קופסת ניאן החתול<N> - .קופסת ניאן החתול תופיע כחפץ ההתקפה שלך <VP>מחיר %s נקודות.<J><a href='event:buyNyan'> [קנה]",
  87.     boughtUltraCannon="<J>!קנית את הכדור תותח המיוחד",
  88.     ultraCannonInv="<p align='left'>כדור תותח מיוחד <J><a href='event:equipUltraCannon'>[השתמש]</a></J>",
  89.     ultraCannon="כדור תותח מיוחד<N> - .שני כדורי תותח זוהרים יופיעו כחפץ ההתקפה שלך <VP>מחיר %s נקודות.<J><a href='event:buyUltraCannon'> [קנה]",
  90.     boughtRock="<J>!קנית את סדן הסלע",
  91.     rock="סדן סלע<N> - .סדן סלע יופיע כחפץ ההתקפה שלך <VP>מחיר %s נקודות.<J><a href='event:buyRock'> [קנה]",
  92.     rockInv="<p align='left'>Rock Anvil <J><a href='event:equipRock'>[Equip]</a></J>",
  93.     mechAnvilInv="<p align='left'>סדן מכני <J><a href='event:equipMechAnvil'>[השתמש]</a></J>",
  94.     boughtMechAnvil="<J>!קנית את הסדן המכני",
  95.     watermelonInv="<p align='left'>כדור תותח אבטיח <J><a href='event:equipWatermelon'>[השתמש]</a></J>",
  96.     boughtWatermelon="<J>!קנית את הכדור תותח האבטיח",
  97.     mechAnvil="סדן מכני<N> - .שני סדנים מכניים יופיעו כחפץ ההתקפה שלך <VP>מחיר %s נקודות.<J><a href='event:buyMechAnvil'> [קנה]",
  98.     watermelon="כדור תותח האבטיח<N> - .כדור התותח האבטיח יופיע כחפץ ההתקפה שלך <VP>Worth %s points.<J><a href='event:buyWatermelon'> [Buy]",
  99.     boughtShamanCannon="<J>!קנית את כדור תותח של השאמאן",
  100.     shamanCannonInv="<p align='left'>כדור תותח של השאמאן <J><a href='event:equipShamanCannon'>[השתמש]</a></J>",
  101.     shamanCannon="כדור תותח של השאמאן<N> - .שלושה כדורי תותח יופיעו כחפץ ההתקפה שלך <VP>מחיר %s נקודות.<J><a href='event:buyShamanCannon'> [קנה]",
  102.     equip="השתמש",
  103.     need2People="דרושים שני אנשים בשביל לשחק",
  104.     nowHave2Lives="<J>!עכשיו יהיו לך שני חיים בכל סיבוב",
  105.     boughtIcedMouse="<J>!קנית את קוביית העכבר הקפוא",
  106.     boughtCake="<J>!קנית את קופסת העוגה",
  107.     boughtCompanion="<J>!קנית את קופסת החברות",
  108.     companionInv="<p align='left'>קופסת חברות <J><a href='event:equipCompanion'>[השתמש]</a></J>",
  109.     companion="קופסת החברות<N> - .קופסת חברות תופיע כחפץ ההתקפה שלך <VP>מחיר %s נקודות.<J><a href='event:buyCompanion'> [קנה]",
  110.     inventory2="מלאי חפצים",
  111.     inventory="<p align='center'><font size='20'>מלאי חפצים</font><br><br><font size='12'><p align='left'>קופסה רגילה <a href='event:equipDefault'><J>[השתמש]</J></a>",
  112.     icedMouseInv="<p align='left'>קוביית עכבר הקפוא <J><a href='event:equipIcedMouse'>[השתמש]</a></J>",
  113.     cakeInv="<p align='left'>קופסת עוגה <J><a href='event:equipCake'>[השתמש]</a></J>",
  114.     shop2="חנות",
  115.     cake="קופסת עוגה<N> - .קופסת עוגה תופיע כחפץ ההתקפה שלך <VP>מחיר %s נקודות.<J><a href='event:buyCake'> [קנה]",
  116.     icedMouse="קוביית עכבר קפוא<N> - .קוביית עכבר קפוא תופיע כחפץ ההתקפה שלך <VP>מחיר %s נקודות.<J><a href='event:buyIcedMouse'> [קנה]",
  117.     lives2="שני חיים<N> - .לאחר שתמות בפעם הראשונה שלך בסיבוב, תקבל פעם נוספת לחיות <VP>מחיר %s נקודות. <J><a href='event:buy2Lives'>[קנה]",
  118.     description="תיאור",
  119.     points="נקודות",
  120.     winsAsRunner="ניצחונות כאצן",
  121.     winsAsDeath="ניצחונות כהורג",
  122.     profile2="פרופיל",
  123.     rules="חוקים</font></font></u><font size='12'>\n\n .שימוש בשיטות ליצור לאג אינן מורשות • \n\n .השימוש ברמאויות אסור, כמו בכל משחק אחר• ",
  124.     rules2="חוקים",
  125.     commands="יכולות\n\n<font size='11'><b>לחיצה</b> - משגר חפץ שאמאן אקראי כאשר תקפידך הוא <J>הורג</J>.\n\n<b>רווח</b> - עושה קפיצה גבוהה כשלאחריה יש כדור תותח שקוף כאשר אתה <J>אצן</J>. \n\n<b>חץ תחתון / S key</b> - .נותן לך תנופת מהירות",
  126.     commands2="יכולות",
  127.     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>^^ תודה רבה",
  128.     credits2="זכויות",
  129.     youCanAttack="<R>הורג: <N>אתה יכול לתקוף",
  130.     youCanNotAttack="<R>הורג: <N>אתה לא יכול לתקוף",
  131.     youCanUsePowerups="<VP>אצן: <N>אתה יכול להשתמש ביכולות",
  132.     youCanNotUsePowerups="<VP>אצן: <N>אתה לא יכול להשתמש ביכולות",
  133.     attacked="!תקף",
  134.     youAreARunner="אתה אצן",
  135.     youAreADeath="אתה הורג",
  136.     help='במשחק זה ישנם <J>הורג</J> ו <J>אצנים</J>. !הורג חייב לנסות להרוג את האצנים ע"י לחיצה על מקום בכדי לשגר חפ. אם שום אצן אינו נכנס למחילה אז ההורג ניצח האצנים אמורים להשתמש ביכולות שלהם בכדי להגיע למחילה ע"י בריחה מההורג. אם אצן אחד נכנס למחילה אז האצנים ניצחו!',
  137.     close="סגור",
  138.     help2="עזרה",
  139.     superJump="קפיצה גבוהה",
  140.     speed="מהירות",
  141.     deathsWin="!ההורג ניצח",
  142.     runnersWin="!האצנים ניצחו",
  143.     killer="[הורג] ",
  144.     runner="[הורג]"}
  145.     lang.br={
  146.         boughtNyan="<J>Você comprou Nyan Cat!",
  147.         nyanInv="<p align='left'>Nyan Cat <J><a href='event:equipNyan'>[Equipar]</a></J>",
  148.         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]",
  149.         boughtUltraCannon="<J>Você comprou o ultra canhão!",
  150.         ultraCannonInv="<p align='left'>Ultra Cannon <J><a href='event:equipUltraCannon'>[Equipar]</a></J>",
  151.         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]",
  152.         boughtRock="<J>Você comprou a bigorna de pedra!",
  153.         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]",
  154.         rockInv="<p align='left'>Rock Anvil <J><a href='event:equipRock'>[Equipar]</a></J>",
  155.         mechAnvilInv="<p align='left'>Mechanical Anvil <J><a href='event:equipMechAnvil'>[Equipar]</a></J>",
  156.         boughtMechAnvil="<J>Você comprou a bigorna mecânica!",
  157.         watermelonInv="<p align='left'>Watermelon Cannon <J><a href='event:equipWatermelon'>[Equipar]</a></J>",
  158.         boughtWatermelon="<J>Você comprou o canhão de melancia!",
  159.         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]",
  160.         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]",
  161.         boughtShamanCannon="<J>Você comprou o canhão de shaman!",
  162.         shamanCannonInv="<p align='left'>Shaman Cannon <J><a href='event:equipShamanCannon'>[Equipar]</a></J>",
  163.         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]",
  164.         equip="Equip",
  165.         need2People="São necessários dois jogadores para jogar",
  166.         nowHave2Lives="<J>Você agora tem duas vidas em cada rodada!",
  167.         boughtIcedMouse="<J>Você comprou o objeto rato congelado!",
  168.         boughtCake="<J>Você comprou o objeto bolo!",
  169.         boughtCompanion="<J>Você comprou a caixa de companheiro!",
  170.         companionInv="<p align='left'>Companion Crate <J><a href='event:equipCompanion'>[Equipar]</a></J>",
  171.         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]",
  172.         inventory2="Inventário",
  173.         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>",
  174.         icedMouseInv="<p align='left'>Iced mouse <J><a href='event:equipIcedMouse'>[Equipar]</a></J>",
  175.         cakeInv="<p align='left'>Cake <J><a href='event:equipCake'>[Equipar]</a></J>",
  176.         shop2="Loja",
  177.         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]",
  178.         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]",
  179.         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]",
  180.         description="Descrição",
  181.         points="Pontos",
  182.         winsAsRunner="Vitórias como fugitivo",
  183.         winsAsDeath="Vitória como assassino",
  184.         profile2="Perfil",
  185.         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.",
  186.         rules2="Regras",
  187.         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)",
  188.         commands2="Poderes",
  189.         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 ^^",
  190.         credits2="Créditos",
  191.         killer="[Assassino] ",
  192.         runner="[Fugitivo]",
  193.         youCanAttack="<R>Assassino: <N>Você pode atacou",
  194.         youCanNotAttack="<R>Assassino: <N>Voce não pode atacar",
  195.         youCanUsePowerups="<VP>Fugitivo: <N>Você pode usar poderes",
  196.         youCanNotUsePowerups="<VP>Fugitivo: <N>Você não pode usar poderes",
  197.         attacked="ATACADO",
  198.         youAreARunner="Você é um fugitivo",
  199.         youAreADeath="Você é um assasino",
  200.         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.",
  201.         close="Fechar",
  202.         help2="Ajuda",
  203.         superJump="SUPER PULO",
  204.         speed="VELOCIDADE",
  205.         deathsWin="Vitória dos assassinos!",
  206.         runnersWin="Vitória dos fugitivos!"
  207.     }
  208.     lang.fr={
  209.         boughtNyan="<J>Vous avez acheté nyan cat !",
  210.         nyanInv="<p align='left'>Nyan Cat <J><a href='event:equipNyan'>[Équiper]</a></J>",
  211.         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]",
  212.         boughtUltraCannon="<J>Vous avez acheté le super boulet !",
  213.         ultraCannonInv="<p align='left'>Super Boulet <J><a href='event:equipUltraCannon'>[Équiper]</a></J>",
  214.         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]",
  215.         boughtRock="<J>Vous avez acheté l'enclume rocher !",
  216.         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]",
  217.         rockInv="<p align='left'>Enclume Rocher <J><a href='event:equipRock'>[Équiper]</a></J>",
  218.         mechAnvilInv="<p align='left'>Enclume Mécanique <J><a href='event:equipMechAnvil'>[Équiper]</a></J>",
  219.         boughtMechAnvil="<J>Vous avez acheté l'enclume mécanique !",
  220.         watermelonInv="<p align='left'>Boulet Pastèque <J><a href='event:equipWatermelon'>[Équiper]</a></J>",
  221.         boughtWatermelon="<J>Vous avez acheté le boulet pastèque !",
  222.         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]",
  223.         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]",
  224.         boughtShamanCannon="<J>Vous avez acheté le boulet chamane !",
  225.         shamanCannonInv="<p align='left'>Boulet Chamane <J><a href='event:equipShamanCannon'>[Équiper]</a></J>",
  226.         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]",
  227.         equip="Équiper",
  228.         need2People="Vous devez être 2 pour jouer",
  229.         nowHave2Lives="<J>Vous avez maintenant 2 vies à chaque tour !",
  230.         boughtIcedMouse="<J>Vous venez d'acheter l'objet Souris gelée !",
  231.         boughtCake="<J>Vous venez d'acheter l'objet Gâteau !",
  232.         boughtCompanion="<J>Vous venez d'acheter la Caisse compagnon !",
  233.         companionInv="<p align='left'>Caisse Compagnon <J><a href='event:equipCompanion'>[Équiper]</a></J>",
  234.         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]",
  235.         inventory2="Inventaire",
  236.         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>",
  237.         icedMouseInv="<p align='left'>Souris glacée <J><a href='event:equipIcedMouse'>[Équiper]</a></J>",
  238.         cakeInv="<p align='left'>Gâteau <J><a href='event:equipCake'>[Équiper]</a></J>",
  239.         shop2="Magasin",
  240.         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]",
  241.         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]",
  242.         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]",
  243.         description="Description",
  244.         points="Points",
  245.         winsAsRunner="Gaggne en étant un Coureur",
  246.         winsAsDeath="Gagne en étant le tueur",
  247.         profile2="Profil",
  248.         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.",
  249.         rules2="Règles",
  250.         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)",
  251.         commands2="Boosters",
  252.         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 ^^",
  253.         credits2="Crédits",
  254.         killer="[Tueur] ",
  255.         runner="[Coureur]",
  256.         youCanAttack="<R>Tueur: <N>Vous pouvez attaquer",
  257.         youCanNotAttack="<R>Tueur: <N>Vous ne pouvez pas attaquer",
  258.         youCanUsePowerups="<VP>Coureur: <N>Vous pouvez utiliser des boosters",
  259.         youCanNotUsePowerups="<VP>Coureur: <N>Vous ne pouvez pas utiliser de boosters",
  260.         attacked="ATTAQUÉ",
  261.         youAreARunner="Vous êtes un Coureur",
  262.         youAreADeath="Vous êtes le tueur",
  263.         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.",
  264.         close="Fermer",
  265.         help2="Aide",
  266.         superJump="SUPER SAUT",
  267.         speed="VITESSE",
  268.         deathsWin="Tueurs ont gagné !",
  269.         runnersWin="Les Coureurs ont gagné !"
  270.     }
  271.     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]"}
  272.     lang.ar={
  273.         boughtNyan="<J>لقد اشتريت القطة نيان!",
  274.         nyanInv="<p align='left'>القطة نيان <J><a href='event:equipNyan'>[ارتداء]</a></J>",
  275.         nyan="القطة نيان<N> - القطة نيان سوف تظهر كأداة هجومك عندما تكون القاتل. <VP>تستحق %s نقطة.<J><a href='event:buyNyan'> [شراء]",
  276.         boughtUltraCannon="<J>لقد اشتريت القذيفة الفائقة!",
  277.         ultraCannonInv="<p align='left'>القذيفة الفائقة <J><a href='event:equipUltraCannon'>[ارتداء]</a></J>",
  278.         ultraCannon="القذيفة الفائقة<N> - كُرتان فائقتان متوهجتان سوف يظهران كهجومك عندما تكون القاتل <VP>تستحق %s نقطة.<J><a href='event:buyUltraCannon'> [شراء]",
  279.         boughtRock="<J>لقد اشتريت السندان الصخري!",
  280.         rock="السندان الصخري<N> - السندان الصخري سوف يظهر كهجومك عندما تكون القاتل. <VP>يستحق %s نقطة.<J><a href='event:buyRock'> [شراء]",
  281.         rockInv="<p align='left'>السندان الصخري <J><a href='event:equipRock'>[ارتداء]</a></J>",
  282.         mechAnvilInv="<p align='left'>السندان الميكانيكي <J><a href='event:equipMechAnvil'>[ارتداء]</a></J>",
  283.         boughtMechAnvil="<J>لقد اشتريت السندان الميكانيكي!",
  284.         watermelonInv="<p align='left'>كرة البطيخ <J><a href='event:equipWatermelon'>[ارتداء]</a></J>",
  285.         boughtWatermelon="<J>لقد اشتريت كرة البطيخ!",
  286.         mechAnvil="السندان الميكانيكي<N> - سندانان ميكانيكيان سوف يظهران كهجوم عندما تكون القاتل. <VP>يستحق %s نقطة.<J><a href='event:buyMechAnvil'> [شراء]",
  287.         watermelon="كرة البطيخ<N> - كرة البطيخ سوف تظهر كهجومك عندما تكون القاتل. <VP>تستحق %s نقطة.<J><a href='event:buyWatermelon'> [شراء]",
  288.         boughtShamanCannon="<J>لقد اشتريت كرة الشامان!",
  289.         shamanCannonInv="<p align='left'>كرة الشامان <J><a href='event:equipShamanCannon'>[ارتداء]</a></J>",
  290.         shamanCannon="كرة الشامان<N> - 3 كرات شامان سوف تظهر كهجومك عندما تكون القاتل. <VP>تستحق %s نقاط.<J><a href='event:buyShamanCannon'> [شراء]",
  291.         equip="ارتداء",
  292.         need2People="أنت تحتاج لاعبيّن لكي تلعب",
  293.         nowHave2Lives="<J>أنت الآن لديك حيواتان كل جولة",
  294.         boughtIcedMouse="<J>لقد اشتريت الفأر المجمَد!",
  295.         boughtCake="<J>لقد اشتريت صندوق الكعك!",
  296.         boughtCompanion="<J>لقد اشتريت القفص!",
  297.         companionInv="<p align='left'>القفص <J><a href='event:equipCompanion'>[ارتداء]</a></J>",
  298.         companion="القفص<N> - القفص سوف يظهر كهجومك عندما تكون القاتل.<VP>يستحق %s نقطة.<J><a href='event:buyCompanion'> [شراء]",
  299.         inventory2="المخزن",
  300.         inventory="<p align='center'><font size='20'>المخزن</font><br><br><font size='12'><p align='left'>الصندوق العادي <a href='event:equipDefault'><J>[ارتداء]</J></a>",
  301.         icedMouseInv="<p align='left'>الفأر المجمَد <J><a href='event:equipIcedMouse'>[ارتداء]</a></J>",
  302.         cakeInv="<p align='left'>الكعكة <J><a href='event:equipCake'>[ارتداء]</a></J>",
  303.         shop2="المتجر",
  304.         cake="الكعكة<N> - الكعكة سوف تظهر كهجومك عندما تكون القاتل.<VP>تستحق %s نقطة.<J><a href='event:buyCake'> [شراء]",
  305.         icedMouse="الفأر المجمَد<N> - الفأر المجمَد سوف يظهر كهجومك عندما تكون القاتل. <VP>يستحق %s نقطة.<J><a href='event:buyIcedMouse'> [شراء]",
  306.         lives2="حياتان<N> - بعدما تموت لأول مرة في الجولة, سوف يتم إعطائك حياة أخرى فورًا. <VP>تستحق %s نقطة. <J><a href='event:buy2Lives'>[شراء]",
  307.         description="الوصف",
  308.         points="نقاط",
  309.         winsAsRunner="مرات الفوز كراكض",
  310.         winsAsDeath="مرات الفوز كقاتل",
  311.         profile2="الملف الشخصي",
  312.         rules="القواعد</font></font></u><font size='12'>\n\n• استخدام طرق لتخريب اللعبة ليس مسموحًا\n\n• ليس مسموحًا لك استخدام الهكر كباقي الألعاب.",
  313.         rules2="القواعد",
  314.         commands="المقويات\n\n<font size='11'>اضغط - Sلكي تطلق صندوقًا للهجوم عندما تكون <J>القاتل</J>.\n\nالمسافة - تجعلك تقفز طويلًا بالإضافة إلى قذيفة مخفية عندما تكون <J>راكضًا</J>. \n\nزر أسفل / زر S - تعطيك سرعة إضافية. (تعمل لدى القاتل والراكضين)",
  315.         commands2="المقويِات",
  316.         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>شكرًا لكم ^^",
  317.         credits2="الائتمان",
  318.         killer="[القاتل] ",
  319.         runner="[الراكضين]",
  320.         youCanAttack="<R>القاتل: <N>يمكنك الهجوم",
  321.         youCanNotAttack="<R>القاتل: <N>لا يمكنك الهجوم",
  322.         youCanUsePowerups="<VP>الراكض: <N>يمكنك استعمال المقويِّات",
  323.         youCanNotUsePowerups="<VP>الراكض: <N>لا يمكنك استعمال المقويِّات",
  324.         attacked="هجم",
  325.         youAreARunner="أنت راكض",
  326.         youAreADeath="أنت قاتل",
  327.         help="في #deathrun يوجد <J>قاتلين</J> و <J>الراكضين</J>. القاتلين يجب أن يحاولوا قتل الراكضين عبر إطلاق أدوات عبر الضغط على الشاشة, إذا لم يفز أي راكض سيفوز القاتل! الراكضين يمكنهم استعمال المقويِّات. إذا وصل راكض واحد للجحر, يفوز الراكضين.",
  328.         close="إغلاق",
  329.         help2="المساعدة",
  330.         superJump="القفزة الخارقة",
  331.         speed="السرعة",
  332.         deathsWin="فاز القاتل!",
  333.         runnersWin="فاز الراكضين!"
  334.     }
  335.     roles={"Death","Runner"}
  336.     death=0
  337.     runner=0
  338.     miceInHole=0
  339.     function setLang(n)
  340.         text[n]=lang[tfm.get.room.playerList[n].community] or lang.en
  341.     end
  342.     P=string.byte("P")
  343.     H=string.byte("H")
  344.     O=string.byte("O")
  345.     function bindMouse()
  346.         for n,player in pairs(tfm.get.room.playerList) do
  347.             tfm.exec.bindKeyboard(n, 0, true, true)
  348.             tfm.exec.bindKeyboard(n, 1, true, true)
  349.             tfm.exec.bindKeyboard(n, 2, true, true)
  350.             tfm.exec.bindKeyboard(n, 3, true, true)
  351.             tfm.exec.bindKeyboard(n, 32, true, true)
  352.             tfm.exec.bindKeyboard(n, P, true, true)
  353.             tfm.exec.bindKeyboard(n, O, true, true)
  354.             tfm.exec.bindKeyboard(n, H, true, true)
  355.             system.bindMouse(n,true)
  356.         end
  357.     end
  358.     bindMouse()
  359.     names={}
  360.     theRole=1
  361.     currentRole=roles[math.floor(theRole)]
  362.     function showTabs(n)
  363.         ui.addTextArea(130, "", n, -432, -865, 3625, 953, 0xffffff, 0xffffff, 0.008, true)
  364.         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)
  365.         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)
  366.     end
  367.     function setData(n)
  368.         data[n] = {
  369.             def=2,
  370.             idTime=6,
  371.             afk=true,
  372.             description="",
  373.             p=0,
  374.             nyan=false,
  375.             ultraCannon=false,
  376.             rock=false,
  377.             mechAnvil=false,
  378.             watermelon=false,
  379.             shamanCannon=false,
  380.             ompanion=false,
  381.             isInRoom=true,
  382.             cake=false,
  383.             objects=2,
  384.             lives2=false,
  385.             normalLives=1,
  386.             lives=1,
  387.             icedMouse=false,
  388.             winsAsRunner=0,
  389.             winsAsDeath=0,
  390.             facingx=85,
  391.             name=n,
  392.             role="Runner",
  393.             points=0,
  394.             spawnLimit=-1,
  395.             ableToShoot=0,
  396.             ableToShoot2=0,
  397.             pointsAndScore="",
  398.             inventory=text[n].inventory
  399.         }
  400.         data[n].objects=data[n].def
  401.     end
  402.     function inventory(n)
  403.         ui.addTextArea(152, "", n, 510, 96, 286, 290, 0x00ff6a, 0x047529, 1, true)
  404.         ui.addTextArea(92, "<p align='center'><font size='20'>"..text[n].inventory.."</font>\n", n, 515, 101, 276, 279, 0x034511, 0x005219, 1, true)
  405.         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)
  406.     end
  407.     for n,player in pairs(tfm.get.room.playerList) do
  408.         setLang(n)
  409.         table.insert(names,n)
  410.         showTabs(n)
  411.         setData(n)
  412.         add(n)
  413.         vip(n)
  414.         data[n].pointsAndScore=data[n].name.." "..data[n].points
  415.         showTabs(n)
  416.         tfm.exec.lowerSyncDelay(n)
  417.         table.insert(dp,n)
  418.     end
  419.  
  420.     function Dp(name)
  421.         name = name:sub(1,1):upper()..name:sub(2):lower()
  422.         for i,dp in ipairs(dp) do
  423.             if name==dp then
  424.                 return true
  425.             end
  426.         end
  427.         return false
  428.     end
  429.  
  430.     function shopPage1(n)
  431.         ui.addTextArea(18, "", n, 494, 117, 282, 178, 0x59442c, 0x59442c, 1, true)
  432.         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)
  433.         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)
  434.         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)
  435.         ui.addTextArea(222, "<p align='center'><font size='13'><a href='event:close'><font color='#909090'><VP>"..text[n].close, n, 494, 300, 282, 26, 0x59442c, 0x302315, 1, true)
  436.         ui.addTextArea(92, "<G><p align='center'>«", n, 498, 305, 19, 18, 0x324650, 0x000000, 1, true)
  437.         ui.addTextArea(152, "<a href='event:nextTo2'><p align='center'>»", n, 752, 305, 19, 18, 0x324650, 0x000000, 1, true)
  438.     end
  439.  
  440.     function shopPage2(n)
  441.         ui.addTextArea(18, "", n, 494, 117, 282, 178, 0x59442c, 0x59442c, 1, true)
  442.         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)
  443.         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)
  444.         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)
  445.         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)
  446.         ui.addTextArea(92, "<a href='event:backTo1'><p align='center'>«", n, 498, 305, 19, 18, 0x324650, 0x000000, 1, true)
  447.         ui.addTextArea(152, "<a href='event:nextTo3'><p align='center'>»", n, 752, 305, 19, 18, 0x324650, 0x000000, 1, true)
  448.     end
  449.  
  450.  
  451.     function shopPage3(n)
  452.         ui.addTextArea(18, "", n, 494, 117, 282, 178, 0x59442c, 0x59442c, 1, true)
  453.         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)
  454.         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)
  455.         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)
  456.         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)
  457.         ui.addTextArea(92, "<a href='event:backTo2'><p align='center'>«", n, 498, 305, 19, 18, 0x324650, 0x000000, 1, true)
  458.         ui.addTextArea(152, "<a href='event:nextTo4'><p align='center'>»", n, 752, 305, 19, 18, 0x324650, 0x000000, 1, true)
  459.     end
  460.  
  461.     function shopPage4(n)
  462.         ui.addTextArea(18, "", n, 494, 117, 282, 178, 0x59442c, 0x59442c, 1, true)
  463.         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)
  464.         ui.addTextArea(19, "<font size='10'><CE>", n, 500, 182, 270, 46, 0x302315, 0x59442c, 1, true)
  465.         ui.addTextArea(110, "<font size='10'><CE>", n, 500, 241, 270, 47, 0x302315, 0x59442c, 1, true)
  466.         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)
  467.         ui.addTextArea(92, "<a href='event:backTo3'><p align='center'>«", n, 498, 305, 19, 18, 0x324650, 0x000000, 1, true)
  468.         ui.addTextArea(152, "<G><p align='center'>»", n, 752, 305, 19, 18, 0x324650, 0x000000, 1, true)
  469.     end
  470.  
  471.  
  472.  
  473.  
  474.  
  475.     function findRoles(n)
  476.         for n,player in pairs(tfm.get.room.playerList) do
  477.             if data[n].role=="Death" then
  478.                 tfm.exec.movePlayer(n,150,30,false,0,0,false)
  479.             elseif data[n].role=="Runner" then
  480.                 tfm.exec.movePlayer(n,150,300,false,0,0,false)
  481.             end
  482.         end
  483.     end
  484.  
  485.     function findRolesNewPlayer(n)
  486.         if data[n].role=="Death" then
  487.             tfm.exec.movePlayer(n,150,30,false,0,0,false)
  488.         elseif data[n].role=="Runner" then
  489.             tfm.exec.movePlayer(n,150,300,false,0,0,false)
  490.         end
  491.     end
  492.     a={}
  493.     function eventNewPlayer(n)
  494.         mice=0
  495.         countMice()
  496.         id=tfm.exec.addImage("1642e105967.png","&0",190,146,n)
  497.         setLang(n)
  498.         if not data[n] then
  499.                 tfm.exec.respawnPlayer(n)
  500.                 setData(n)
  501.             end
  502.       showTabs(n)
  503.         bindMouse()
  504.         countMice()
  505.         table.insert(dp,n)
  506.         vip(n)
  507.         add(n)
  508.         data[n].idTime=0
  509.         data[n].isInRoom=true
  510.             if mice==1 then
  511.                 randomDeath=names[math.floor(math.random(mice))]
  512.                 data[randomDeath].role="Death"
  513.                 lastDeath=""
  514.             end
  515.         findRolesNewPlayer(n)
  516.             if mice<2 then
  517.                 tfm.exec.newGame(7489132)
  518.                 tfm.exec.chatMessage("<R>"..text[n].need2People,n)
  519.             end
  520.             if mice>1 and curMap=="@7489132" then
  521.                 tfm.exec.newGame(maps[math.random(#maps)])
  522.             end
  523.     end
  524.  
  525.  
  526.  
  527.  
  528.  
  529.     function addToRoleNumber()
  530.         for n,player in pairs(tfm.get.room.playerList) do
  531.             if data[n].role=="Death" then
  532.                 death=death+1
  533.             end
  534.             if data[n].role=="Runner" then
  535.                 runner=runner+1
  536.             end
  537.             findRoles(n)
  538.         end
  539.     end
  540.     tfm.exec.newGame(maps[math.random(#maps)])
  541.     amountInA=0
  542.     function punishGlitchers()
  543.         if a then
  544.             for i=1,amountInA do
  545.                 data[a[math.floor(amountInA)]].role="Runner"
  546.             end
  547.         end
  548.     end
  549.  
  550.     curMap=0
  551.     function eventNewGame()
  552.         curMap=tfm.get.room.currentMap
  553.         lag=0
  554.         v=0
  555.         mice=0
  556.         countMice()
  557.             local toDespawn = {}
  558.             do
  559.                 local addShamanObject = tfm.exec.addShamanObject
  560.                     tfm.exec.addShamanObject = function(...)
  561.                     toDespawn[#toDespawn + 1] = {
  562.                     addShamanObject(...),
  563.                     os.time() + 3000
  564.                                                 }
  565.                 return toDespawn[#toDespawn][1]
  566.             end
  567.         end
  568.         time=0
  569.         theRole=1
  570.         powerx=math.random(1600)
  571.         runner=0
  572.         death=0
  573.             for n,player in pairs(tfm.get.room.playerList) do
  574.                 data[n].lives=data[n].normalLives
  575.                 data[n].role="Runner"
  576.                 data[n].ableToShoot=0
  577.                 data[n].ableToShoot2=0
  578.                 data[n].spawnLimit=-1
  579.                 data[n].afk=true
  580.                     if mice<2 then
  581.                         tfm.exec.newGame(7489132)
  582.                         tfm.exec.chatMessage("<R>"..text[n].need2People,n)
  583.                     end
  584.             end
  585.         mice=mice
  586.             if lastDeath==randomDeath then
  587.                 randomDeath=names[math.random(math.floor(mice))]
  588.             end
  589.  
  590.             if data[randomDeath].isInRoom==true then
  591.                 data[randomDeath].role="Death"
  592.             elseif data[randomDeath].isInRoom==false then
  593.                 randomDeath=names[math.random(math.floor(mice))]
  594.             end
  595.  
  596.         lastDeath=randomDeath
  597.         addToRoleNumber()
  598.         findRoles(n)
  599.     end
  600.     locationx=0
  601.     locationy=0
  602.     function eventMouse(n,x,y)
  603.             if x>200 then
  604.                 if data[n].role=="Death" and (math.floor(time)>3) and lag<2 and data[n].spawnLimit<1 and mice>1 then
  605.                     lag=lag+1
  606.                         if lag>3 then
  607.                             randomDeath=names[math.floor(math.random(mice))]
  608.                             data[randomDeath].role="Death"
  609.                                 local toDespawn = {}
  610.                                     table.insert(a,n)
  611.                                     amountInA=amountInA+1
  612.                                 do
  613.                                     local addShamanObject = tfm.exec.addShamanObject
  614.                                         tfm.exec.addShamanObject = function(...)
  615.                                         toDespawn[#toDespawn + 1] = {
  616.                                         addShamanObject(...),
  617.                                             os.time() + 0000
  618.                                                                     }
  619.                                         return toDespawn[#toDespawn][1]
  620.                                     end
  621.                                 end
  622.  
  623.  
  624.                             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)
  625.                             time=-0.5
  626.                             tfm.exec.newGame(maps[math.random(#maps)])
  627.                             eventNewGame()
  628.                         end
  629.  
  630.  
  631.                     data[n].spawnLimit=3
  632.                     attacked=0
  633.                 attacked=n
  634.                     for n,player in pairs(tfm.get.room.playerList) do
  635.                         ui.addTextArea(2, "<font color='#FF9000'><font size='30'><b>"..attacked.." "..text[n].attacked, n, x, y, 425, 100, 0x324650, 0x000000, 0, false)
  636.                     end
  637.                 locationx=x
  638.                 locationy=y
  639.  
  640.  
  641.                     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
  642.                         tfm.exec.addShamanObject(data[n].objects,locationx,locationy,0,0,20,false)
  643.                     end
  644.                     if data[n].objects==1704 then
  645.                         tfm.exec.addShamanObject(data[n].objects,locationx,locationy,180,0,20,false)
  646.                         tfm.exec.addShamanObject(data[n].objects,locationx-20,locationy,180,0,20,false)
  647.                         tfm.exec.addShamanObject(data[n].objects,locationx+20,locationy,180,0,20,false)
  648.                     elseif data[n].objects==1706 then
  649.                         tfm.exec.addShamanObject(data[n].objects,locationx,locationy,180,0,20,false)
  650.                     elseif data[n].objects==1709 then
  651.                         tfm.exec.addShamanObject(data[n].objects,locationx+5,locationy,170,10,120,false)
  652.                         tfm.exec.addShamanObject(data[n].objects,locationx-5,locationy,-170,10,20,false)
  653.                     elseif data[n].objects==1002 then
  654.                         tfm.exec.addShamanObject(data[n].objects,locationx-5,locationy,0,0,20,false)
  655.                         tfm.exec.addShamanObject(data[n].objects,locationx+5,locationy,0,0,20,false)
  656.                     end
  657.                 tfm.exec.displayParticle(3,locationx,locationy,0,0,0,0,nil)
  658.                 canShoot()
  659.             end
  660.         end
  661.     end
  662.     time=0
  663.     function eventPlayerGetCheese(n)
  664.         v=v+1
  665.             if data[n].role=="Runner" and mice>1 and v==1 and data[n].afk==false then
  666.                 randomDeath=n
  667.                 time=119.5
  668.                 data[n].points=data[n].points+50
  669.                     for n,player in pairs(tfm.get.room.playerList) do
  670.                         ui.addTextArea(133, "<b><font size='40'><font color='#0ff164'>"..text[n].runnersWin, n, 296, 282, 351, 189, 0xd41717, 0x000000, 0, true)
  671.                             if data[n].role=="Runner" and data[n].afk==false then
  672.                                 data[n].points=data[n].points+15
  673.                                 data[n].winsAsRunner=data[n].winsAsRunner+1
  674.                                 wonCountDown=-5
  675.                             end
  676.                     end
  677.             end
  678.     end
  679.  
  680.  
  681.  
  682.  
  683.  
  684.  
  685.     function explosions()
  686.         tfm.exec.displayParticle(0,locationx,locationy,0.5,0.5,0.5,0.5,nil)
  687.         tfm.exec.displayParticle(0,locationx,locationy,-0.5,-0.5,-0.5,-0.5,nil)
  688.         tfm.exec.displayParticle(2,locationx,locationy,3,-3,3,-3,nil)
  689.         tfm.exec.displayParticle(2,locationx,locationy,-3,3,-3,3,nil)
  690.         tfm.exec.displayParticle(0,locationx,locationy,-0.5,0.5,-0.5,0.5,nil)
  691.         tfm.exec.displayParticle(0,locationx,locationy,0.5,-0.5,0.5,-0.5,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(2,locationx,locationy,-1,3,-1,3,nil)
  695.         tfm.exec.displayParticle(2,locationx,locationy,-1,-1,-3,-1,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.displayParticle(5,locationx,locationy,-0.5,0.5,-0.5,0.5,nil)
  699.         tfm.exec.displayParticle(5,locationx,locationy,0.5,-0.5,0.5,-0.5,nil)
  700.         tfm.exec.explosion(locationx, locationy, 40, 40, false)
  701.     end
  702.  
  703.  
  704.     function canShoot()
  705.         for n,player in pairs(tfm.get.room.playerList) do
  706.             if data[n].spawnLimit<1 and data[n].role=="Death" then
  707.                 ui.addTextArea(12, "\n<p align='center'>"..text[n].youCanAttack, n, 270, 23, 240, 46, 0x00a611, 0x338500, 1, true)
  708.             end
  709.             if not (data[n].spawnLimit<1) and data[n].role=="Death" then
  710.                 ui.addTextArea(12, "\n<p align='center'>"..text[n].youCanNotAttack, n, 270, 23, 240, 46, 0x802c2c, 0x6e0000, 1, true)
  711.             end
  712.             if data[n].spawnLimit<1 and data[n].role=="Runner" then
  713.                 ui.addTextArea(12, "\n<p align='center'>"..text[n].youCanUsePowerups, n, 270, 23, 240, 46, 0x00a611, 0x338500, 1, true)
  714.             end
  715.             if not (data[n].spawnLimit<1) and data[n].role=="Runner" then
  716.                 ui.addTextArea(12, "\n<p align='center'>"..text[n].youCanNotUsePowerups, n, 270, 23, 240, 46, 0x802c2c, 0x6e0000, 1, true)
  717.             end
  718.         end
  719.     end
  720.     function removeObjectAfterTime()
  721.         for k, v in ipairs(toDespawn) do
  722.             if os.time() > v[2] then
  723.                 tfm.exec.removeObject(v[1])
  724.                 table.remove(toDespawn, k)
  725.             end
  726.         end
  727.     end
  728.  
  729.     function eventLoop()
  730.         names={}
  731.             for n,player in pairs(tfm.get.room.playerList) do
  732.                 table.insert(names,n)
  733.             end
  734.         mice=0
  735.         countMice()
  736.             if mice>1 and curMap=="@7489132" then
  737.                 tfm.exec.newGame(maps[math.random(#maps)])
  738.             end
  739.             for n,player in pairs(tfm.get.room.playerList) do
  740.                 data[n].idTime=data[n].idTime+0.5
  741.                     if data[n].idTime==5 then
  742.                         tfm.exec.removeImage(id)
  743.                     end
  744.             end
  745.         lag=0
  746.         removeObjectAfterTime()
  747.             if mice>1 then
  748.                 ui.removeTextArea(202,nil)
  749.                 wonCoundown=wonCountDown+0.5
  750.                 canShoot()
  751.                     for n,player in pairs(tfm.get.room.playerList) do
  752.                         data[n].spawnLimit=data[n].spawnLimit-0.5
  753.                             if tfm.get.room.playerList[n].y>100 and data[n].role=="Death" then
  754.                                 tfm.exec.movePlayer(n,150,30,false,0,0,false)
  755.                             elseif tfm.get.room.playerList[n].y<100 and data[n].role=="Runner" then
  756.                                 tfm.exec.movePlayer(n,70,300,false,0,0,false)
  757.                             elseif tfm.get.room.playerList[n].x>600 and time<5 then
  758.                                 tfm.exec.killPlayer(n)
  759.                                 tfm.exec.movePlayer(n,150,tfm.get.room.playerList[n].y,false,0,0,false)
  760.                                 tfm.exec.respawnPlayer(n)
  761.                             end
  762.  
  763.                         if data[n].spawnLimit==0 then
  764.                             ui.removeTextArea(2,nil)
  765.                             system.bindMouse(n, true)
  766.                             ui.removeTextArea(11,n)
  767.                         end
  768.                     end
  769.                 time=time+.5
  770.                     if time==120 then
  771.                         time=119.6
  772.                     end
  773.                     if time==120.1 then
  774.                         tfm.exec.newGame(maps[math.random(#maps)])
  775.                             for n,player in pairs(tfm.get.room.playerList) do
  776.                                 if data[n].role=="Death" and data[n].afk==false then
  777.                                     data[n].points=data[n].points+15
  778.                                     ui.addTextArea(133, "<b><font size='40'><font color='#d40000'>"..text[n].deathsWin, n, 296, 282, 351, 189, 0xd41717, 0x000000, 0, true)
  779.                                 end
  780.                             end
  781.                         time=-0.5
  782.                     elseif time==0 then
  783.                         for n,player in pairs(tfm.get.room.playerList) do
  784.                             findRoles(n)
  785.                         end
  786.                     elseif time==5 then
  787.                         for n,player in pairs(tfm.get.room.playerList) do
  788.                             ui.removeTextArea(0,nil)
  789.                             ui.removeTextArea(2,nil)
  790.                             system.bindMouse(n, true)
  791.                             ui.removeTextArea(133,n)
  792.  
  793.                         end
  794.                     end
  795.             end
  796.     end
  797.  
  798.     function profile(n)
  799.         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)
  800.         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)
  801.         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)
  802.         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)
  803.     end
  804.  
  805.     function removeTextAreas(n)
  806.         ui.removeTextArea(18,n)
  807.         ui.removeTextArea(19,n)
  808.         ui.removeTextArea(110,n)
  809.         ui.removeTextArea(222,n)
  810.         ui.removeTextArea(25,n)
  811.         ui.removeTextArea(152,n)
  812.         ui.removeTextArea(92,n)
  813.         ui.addPopup(0, 2, text[n].description, n, 8565, 290, 200, true)
  814.     end
  815.     function help(n)
  816.         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)
  817.         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)
  818.     end
  819.     function eventKeyboard(n, key, down, x,y)
  820.         if tfm.get.room.playerList[n].isDead==false then
  821.             data[n].afk=false
  822.         end
  823.     --FACING
  824.         if tfm.get.room.playerList[n].isDead==false and data[n].role=="Runner" then
  825.         end
  826.         if key==0 then
  827.             data[n].facing=-85
  828.         elseif key==2 then
  829.             data[n].facing=85
  830.         elseif key==P and data[n].p==0 then
  831.             removeTextAreas(n)
  832.             profile(n)
  833.             data[n].p=1
  834.         elseif key==P and data[n].p==1 then
  835.             removeTextAreas(n)
  836.             data[n].p=0
  837.         elseif key==H and data[n].p==0 then
  838.             removeTextAreas(n)
  839.             data[n].p=1
  840.         elseif key==H and data[n].p==1 then
  841.             removeTextAreas(n)
  842.             help(n)
  843.             data[n].p=0
  844.         elseif key==O and data[n].p==0 then
  845.             removeTextAreas(n)
  846.             data[n].p=1
  847.         elseif key==O and data[n].p==1 then
  848.             removeTextAreas(n)
  849.             shopPage1(n)
  850.             data[n].p=0
  851.         end
  852.         if time>3 and mice>1 then
  853.  
  854.     --AUTOMATIC POWERUPS
  855.  
  856.             if key==32 and data[n].role=="Runner" and data[n].spawnLimit<0 then
  857.                 ui.addTextArea(11, "<b><font size='30'><font color='#F0F000'>"..text[n].superJump, n, x-50, y-50, 379, 67, 0x324650, 0x000000, 0, false)
  858.                 tfm.exec.movePlayer(n,0,0,false,0,-80,false)
  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.displayParticle(10,x,y,-3,-3,-3,-3,nil)
  862.                 tfm.exec.displayParticle(10,x,y,3,3,3,3,nil)
  863.                 tfm.exec.bindKeyboard(n, 32, false, false)
  864.                 tfm.exec.addShamanObject(17,x,y,60,50,-10,true)
  865.                 data[n].spawnLimit=3.5
  866.                 data[n].ableToShoot=0
  867.                 canShoot()
  868.             elseif (key==3) then
  869.                 if data[n].role=="Death" then
  870.                     if data[n].facing==-85 then
  871.                         tfm.exec.movePlayer(n,0,0,false,-50,0,true)
  872.                     elseif data[n].facing==85 then
  873.                         tfm.exec.movePlayer(n,0,0,false,50,0,true)
  874.                     end
  875.                 elseif data[n].spawnLimit<0 and data[n].role=="Runner" then
  876.                     tfm.exec.movePlayer(n,0,0,false,data[n].facing,0,true)
  877.                     ui.addTextArea(11, "<b><font size='30'><font color='#F0F000'>"..text[n].speed, n, x-50, y-50, 379, 67, 0x324650, 0x000000, 0, false)
  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.                     tfm.exec.displayParticle(10,x,y,-3,-3,-3,-3,nil)
  881.                     tfm.exec.displayParticle(10,x,y,3,3,3,3,nil)
  882.                     data[n].spawnLimit=3.5
  883.                     data[n].ableToShoot=0
  884.                     canShoot()
  885.                 end
  886.             end
  887.         end
  888.     end
  889.     n=0
  890.     system.disableChatCommandDisplay("profile",true)
  891.     function eventTextAreaCallback(id,p,a)
  892.         n=p
  893.             if a=="close" then
  894.                 data[n].p=0
  895.                 removeTextAreas(n)
  896.             elseif a=="help" then
  897.                 data[n].p=0
  898.                 removeTextAreas(n)
  899.                 --TABS
  900.                 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)
  901.                 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)
  902.             elseif a=="credits" then
  903.                 data[n].p=0
  904.                 removeTextAreas(n)
  905.                 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)
  906.                 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)
  907.             elseif a=="commands" then
  908.                 data[n].p=0
  909.                 removeTextAreas(n)
  910.                 ui.addTextArea(18, "<p align='center'><font size='14'><font face='verdana'>"..text[n].commands, n, 545, 111, 220, 238, 0x4f4132, 0x695743, 1, true)
  911.                 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)
  912.             elseif a=="rules" then
  913.                 data[n].p=0
  914.                 removeTextAreas(n)
  915.                 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)
  916.                 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)
  917.             elseif a=="profile" then
  918.                 removeTextAreas(n)
  919.                 profile(n)
  920.             elseif a=="description" then
  921.                 ui.addPopup(0, 2, text[n].description, n, 565, 290, 200, true)
  922.             end
  923.             if a=="inventory" then
  924.                 data[n].p=0
  925.                 removeTextAreas(n)
  926.                 ui.addTextArea(92, "<p align='center'><font size='20'>"..data[n].inventory, n, 515, 101, 276, 279, 0x4f4132, 0x695743, 1, true)
  927.                 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)
  928.             end
  929.             if a=="equipDefault" then
  930.                 data[n].objects=data[n].def
  931.             elseif a=="equipNyan" then
  932.                 data[n].objects=212
  933.             elseif a=="equipUltraCannon" then
  934.                 data[n].objects=1709
  935.             elseif a=="equipCompanion" then
  936.                 data[n].objects=61
  937.             elseif a=="equipShamanCannon" then
  938.                 data[n].objects=1704
  939.             elseif a=="equipWatermelon" then
  940.                 data[n].objects=1706
  941.             elseif a=="equipIcedMouse" then
  942.                 data[n].objects=54
  943.             elseif a=="equipCake" then
  944.                 data[n].objects=207
  945.             elseif a=="equipMechAnvil" then
  946.                 data[n].objects=1002
  947.             elseif a=="equipRock" then
  948.                 data[n].objects=1003
  949.             elseif a=="shop" then
  950.                 shopPage1(n)
  951.                 data[n].p=0
  952.             elseif a=="backTo1" then
  953.                 shopPage1(n)
  954.             elseif a=="nextTo2" then
  955.                 shopPage2(n)
  956.             elseif a=="backTo2" then
  957.                 shopPage2(n)
  958.             elseif a=="nextTo3" then
  959.                 shopPage3(n)
  960.             elseif a=="backTo3" then
  961.                 shopPage3(n)
  962.             elseif a=="nextTo4" then
  963.                 shopPage4(n)
  964.             end
  965.     --SHOP ITEMS
  966.             if a=="buyIcedMouse" and (data[n].points>icedMouseCost or data[n].points==icedMouseCost) and data[n].icedMouse==false then
  967.                 data[n].inventory = data[n].inventory.."\n"..text[n].icedMouseInv
  968.                 data[n].objects=54
  969.                 tfm.exec.chatMessage(text[n].boughtIcedMouse,n)
  970.  
  971.                 data[n].icedMouse=true
  972.                 data[n].points=data[n].points-icedMouseCost
  973.             elseif a=="buyNyan" and (data[n].points>nyanCost or data[n].points==nyanCost) and data[n].nyan==false then
  974.                 data[n].inventory = data[n].inventory.."\n"..text[n].nyanInv
  975.                 data[n].objects=212
  976.                 tfm.exec.chatMessage(text[n].boughtNyan,n)
  977.                 data[n].nyan=true
  978.                 data[n].points=data[n].points-nyanCost
  979.             elseif a=="buyUltraCannon" and (data[n].points>ultraCannonCost or data[n].points==ultraCannonCost) and data[n].ultraCannon==false then
  980.                 data[n].inventory = data[n].inventory.."\n"..text[n].ultraCannonInv
  981.                 data[n].objects=1709
  982.                 tfm.exec.chatMessage(text[n].boughtUltraCannon,n)
  983.                 data[n].ultraCannon=true
  984.                 data[n].points=data[n].points-ultraCannonCost
  985.             elseif a=="buyCake" and (data[n].points>cakeCost or data[n].points==cakeCost) and data[n].cake==false then
  986.                 data[n].inventory=data[n].inventory.."\n"..text[n].cakeInv
  987.  
  988.                 data[n].objects=207
  989.                 tfm.exec.chatMessage(text[n].boughtCake,n)
  990.                 data[n].cake=true
  991.                 data[n].points=data[n].points-cakeCost
  992.             elseif a=="buyMechAnvil" and (data[n].points>mechAnvilCost or data[n].points==mechAnvilCost) and data[n].mechAnvil==false then
  993.                 data[n].inventory=data[n].inventory.."\n"..text[n].mechAnvilInv
  994.  
  995.                 data[n].objects=1002
  996.                 tfm.exec.chatMessage(text[n].boughtMechAnvil,n)
  997.                 data[n].mechAnvil=true
  998.                 data[n].points=data[n].points-mechAnvilCost
  999.             elseif a=="buyRock" and (data[n].points>rockCost or data[n].points==rockCost) and data[n].rock==false then
  1000.                 data[n].inventory=data[n].inventory.."\n"..text[n].rockInv
  1001.  
  1002.                 data[n].objects=1003
  1003.                 tfm.exec.chatMessage(text[n].boughtRock,n)
  1004.                 data[n].rock=true
  1005.                 data[n].points=data[n].points-rockCost
  1006.  
  1007.             elseif a=="buy2Lives" and (data[n].points>Lives2 or data[n].points==Lives2) and data[n].lives2==false then
  1008.                 data[n].normalLives=2
  1009.                 tfm.exec.chatMessage(text[n].nowHave2Lives,n)
  1010.  
  1011.                 data[n].points=data[n].points-Lives2
  1012.                 data[n].lives2=true
  1013.             elseif a=="buyCompanion" and (data[n].points>companionCost or data[n].points==companionCost) and data[n].companion==false then
  1014.                 data[n].objects=61
  1015.                 data[n].inventory = data[n].inventory.."\n"..text[n].companionInv
  1016.                 data[n].companion=true
  1017.  
  1018.                 data[n].points=data[n].points-companionCost
  1019.                 tfm.exec.chatMessage(text[n].boughtCompanion,n)
  1020.             elseif a=="buyShamanCannon" and (data[n].points>shamanCannonCost or data[n].points==shamanCannonCost) and data[n].shamanCannon==false then
  1021.                 data[n].objects=1704
  1022.                 data[n].inventory = data[n].inventory.."\n"..text[n].shamanCannonInv
  1023.                 data[n].shamanCannon=true
  1024.  
  1025.                 data[n].points=data[n].points-shamanCannonCost
  1026.                 tfm.exec.chatMessage(text[n].boughtshamanCannon,n)
  1027.             elseif a=="buyWatermelon" and (data[n].points>watermelonCost or data[n].points==watermelonCost) and data[n].watermelon==false then
  1028.                 data[n].objects=1706
  1029.                 data[n].inventory = data[n].inventory.."\n"..text[n].watermelonInv
  1030.                 data[n].watermelon=true
  1031.  
  1032.                 data[n].points=data[n].points-watermelonCost
  1033.                 tfm.exec.chatMessage(text[n].boughtWatermelon,n)
  1034.  
  1035.             end
  1036.     end
  1037.  
  1038.     function eventPlayerDied(n)
  1039.         wonCountDown=-5
  1040.             if data[n].role=="Death" and data[n].afk==false then
  1041.                 tfm.exec.respawnPlayer(n)
  1042.                 tfm.exec.movePlayer(n,200,30,false,0,0,false)
  1043.             end
  1044.             if data[n].role=="Death" and data[n].afk==true or runner==0 then
  1045.                 tfm.exec.newGame(maps[math.random(#maps)])
  1046.             end
  1047.                 data[n].lives=data[n].lives-1
  1048.             if data[n].role=="Runner" and data[n].lives==1 then
  1049.                 tfm.exec.respawnPlayer(n)
  1050.             end
  1051.             if data[n].role=="Runner" and data[n].lives==0 then
  1052.                 runner=runner-1
  1053.                 count()
  1054.             end
  1055.     end
  1056.     function eventPlayerLeft(n)
  1057.         mice=0
  1058.         countMice()
  1059.         names={}
  1060.             for n in pairs(tfm.get.room.playerList) do
  1061.                 table.insert(names,n)
  1062.             end
  1063.         data[n].isInRoom=false
  1064.         mice=mice-1
  1065.             if mice<2 then
  1066.                 tfm.exec.newGame(7489132)
  1067.                     for n,player in pairs(tfm.get.room.playerList) do
  1068.                         tfm.exec.chatMessage("<R>"..text[n].need2People,n)
  1069.                     end
  1070.             end
  1071.             if n==randomDeath then
  1072.                 randomDeath=names[math.random(math.floor(mice))]
  1073.             end
  1074.             if data[n].role=="Runner" then
  1075.                 runner=runner-1
  1076.             elseif data[n].role=="Death" then
  1077.                 death=death-1
  1078.             end
  1079.     end
  1080.     function eventSummoningEnd(n,id,x,y,angle,t)
  1081.         tfm.exec.removeObject(t.id)
  1082.     end
  1083.  
  1084.     system.disableChatCommandDisplay("p",true)
  1085.     function eventChatCommand(l,c)
  1086.         if c=="profile" then
  1087.             profile(n)
  1088.         end
  1089.         if c=="mice" then
  1090.             print(runner)
  1091.         end
  1092.         if c:sub(0,7)=="profile" and Dp(c:sub(9)) then
  1093.             n = c:sub(9,9):upper()..c:sub(10):lower()
  1094.             removeTextAreas(l)
  1095.             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)
  1096.             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)
  1097.             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)
  1098.             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)
  1099.         end
  1100.     end
  1101.  
  1102.  
  1103.  
  1104.     function eventPopupAnswer(id, n, a)
  1105.         local click=a:match("<a href='")
  1106.             if not click then
  1107.                 data[n].description = a
  1108.                 profile(n)
  1109.                 data[n].p=1
  1110.             end
  1111.     end
  1112. end
  1113.  
  1114. function kidnapper()
  1115.   --300,80,150,200
  1116.   tfm.exec.setGameTime(3,true)
  1117.   dp={}
  1118.   roles={0,1}
  1119.   maps={7489629}
  1120.   data={}
  1121.   text={}
  1122.   lang={}
  1123.   players={}
  1124.   ids={
  1125.     0,
  1126.     0,
  1127.     0,
  1128.     0
  1129.   }
  1130.   alive=0
  1131.   lang.en={
  1132.     menu="Menu",
  1133.     profile2="Profile",
  1134.     help2="Help",
  1135.     help="In #kidnapper the goal of the game is for protectors to catch the kidnapper of the mouse before the kidnapper gets to the hole. The kidnapper can use attacks to shield off protectors.",
  1136.     wins="Total Wins",
  1137.     wins_Bomber="Wins As Kidnapper",
  1138.     wins_Protector="Wins As Protector",
  1139.     close="Close",
  1140.     health=100,
  1141.     bomber_Wins="Kidnapper Wins!",
  1142.     protector_Wins="Protectors Win!",
  1143.     powerups2="Powerups",
  1144.     powerup1="[Normal Attack]</J> Is activated by pressing space. Only works for Protectors when they are near the bomber.",
  1145.     powerup2="[Mega Jump]</J> Is activated by the down arrow.",
  1146.     mouseStolen="kidnapped the mouse!",
  1147.     buy="Buy",
  1148.     bought="Equip",
  1149.     unequip="Unequip",
  1150.     shop="Shop",
  1151.     points="Points",
  1152.     notEnough="Not enough points!"
  1153.   }
  1154.   lastKidnapper=""
  1155.   for _, s in next, {'AutoTimeLeft', 'PhysicalConsumables', 'AfkDeath', 'AutoShaman', 'AutoNewGame'} do
  1156.       tfm.exec['disable' .. s]()
  1157.   end
  1158.   function Dp(name)
  1159.       name = name:sub(1,1):upper()..name:sub(2):lower()
  1160.       for i,dp in ipairs(dp) do
  1161.           if name==dp then
  1162.               return true
  1163.           end
  1164.       end
  1165.       return false
  1166.   end
  1167.   function stolen(n)
  1168.     data[n].p=player
  1169.     data[n].stolen="<R>"..data[n].p.."<J> "..text[n].mouseStolen
  1170.     tfm.exec.chatMessage(data[n].stolen,n)
  1171.   end
  1172.   function particles(x,y)
  1173.     tfm.exec.displayParticle(9,x,y+10,-0.4,0.1,0.2,0.3,nil)
  1174.     tfm.exec.displayParticle(9,x,y+10,-0.6,0.2,0.6,0.2,nil)
  1175.     tfm.exec.displayParticle(9,x,y+10,-0.8,0.3,0.8,0.1,nil)
  1176.     tfm.exec.displayParticle(9,x,y+10,0.4,0.4,-0.4,0.3,nil)
  1177.     tfm.exec.displayParticle(9,x,y+10,0.6,0.5,-0.6,0.2,nil)
  1178.     tfm.exec.displayParticle(9,x,y+10,0.8,0.6,-0.8,0.1,nil)
  1179.   end
  1180.   function bigJump(n,x,y)
  1181.     tfm.exec.movePlayer(n,0,0,false,0,-80,true)
  1182.     tfm.exec.displayParticle(3,x-5,y+10,-0.8,0,0,0,n)
  1183.     tfm.exec.displayParticle(3,x+5,y+10,0.8,0,0,0,n)
  1184.     tfm.exec.displayParticle(3,x-10,y+10,-1.7,0,0,0,n)
  1185.     tfm.exec.displayParticle(3,x+10,y+10,1.7,0,0,0,n)
  1186.     particles(x,y)
  1187.   end
  1188.   function identifyBomber(n)
  1189.     if data[n].role==0 then
  1190.       tfm.exec.setNameColor(n,0x00FF00)
  1191.       tfm.exec.movePlayer(n,1023,432,false,0,50,false)
  1192.     elseif data[n].role==1 then
  1193.       tfm.exec.setNameColor(n,0xFF0000)
  1194.     end
  1195.   end
  1196.   function countAlive()
  1197.     alive=0
  1198.     for n,player in pairs(tfm.get.room.playerList) do
  1199.       if tfm.get.room.playerList[n].isDead==false then
  1200.         alive=alive+1
  1201.       end
  1202.     end
  1203.   end
  1204.   function removeWinner()
  1205.     ui.removeTextArea(20,nil)
  1206.     ui.removeTextArea(30,nil)
  1207.     ui.removeTextArea(40,nil)
  1208.     ui.removeTextArea(50,nil)
  1209.     ui.removeTextArea(60,nil)
  1210.     ui.removeTextArea(19,nil)
  1211.   end
  1212.  
  1213.   function win(n)
  1214.     if tfm.get.room.playerList[n].isDead==false and data[n].role==0 then
  1215.       data[n].wins=data[n].wins+1
  1216.       data[n].points=data[n].points+7
  1217.       data[n].wins_Protector=data[n].wins_Protector+1
  1218.     end
  1219.   end
  1220.   function insertName(n)
  1221.     table.insert(players,n)
  1222.   end
  1223.   function setLang(n)
  1224.     text[n]=lang[tfm.get.room.playerList[n].community] or lang.en
  1225.   end
  1226.   function setData(n)
  1227.     data[n]=
  1228.     {
  1229.       wins=0,
  1230.       role=0,
  1231.       health=100,
  1232.       spawn=1,
  1233.       wins_Protector=0,
  1234.       wins_Bomber=0,
  1235.       p="",
  1236.       stolen="",
  1237.       shopItems={propellerMouse=0,greenMouse=0,lightningMouse=0,tigerMouse=0},
  1238.       buy1=text[n].buy,
  1239.       buy2=text[n].buy,
  1240.       buy3=text[n].buy,
  1241.       buy4=text[n].buy,
  1242.       using="1651b5bc86d.png",
  1243.       points=0
  1244.     }
  1245.   end
  1246.   function chooseRole()
  1247.     mouse=0
  1248.     for n,player in pairs(tfm.get.room.playerList) do
  1249.      mouse=mouse+1
  1250.       data[n].role=0
  1251.     end
  1252.       player=players[math.random(#players)]
  1253.         if mouse>1 then
  1254.         while player==lastKidnapper do
  1255.           player=players[math.random(#players)]
  1256.         end
  1257.       end
  1258.       lastKidnapper=player
  1259.       data[player].role=1
  1260.       player=""..player
  1261.   end
  1262.   function bindKeyboard(n)
  1263.     for i=0,150 do
  1264.       tfm.exec.bindKeyboard(n,i,true,true)
  1265.     end
  1266.   end
  1267.   function showMenu(n)
  1268.     ui.addTextArea(0, "<p align='center'><font face='calibri'><a href='event:menu2'>"..text[n].menu, n, 10, 30, 42, 20, 0x000001, 0xFFFFFF, 1, true)
  1269.   end
  1270.   function showMenu2(n)
  1271.     ui.addTextArea(0, "<p align='center'><font face='calibri'><a href='event:Menu'>"..text[n].menu.." </a>| <a href='event:Help'>"..text[n].help2.."</a> | <a href='event:Profile'>"..text[n].profile2.."</a> | <a href='event:Powerups'>"..text[n].powerups2.."</a> | <a href='event:Shop'>"..text[n].shop, n, 10, 30, 210, 20, 0x000001, 0xffffff, 1, true)
  1272.   end
  1273.   function removeImage(n)
  1274.     tfm.exec.removeImage(id1,n)
  1275.     tfm.exec.removeImage(id2,n)
  1276.     tfm.exec.removeImage(id3,n)
  1277.     tfm.exec.removeImage(id4,n)
  1278.   end
  1279.   function removeShop(n)
  1280.     for i=1020,1050 do
  1281.       ui.removeTextArea(i,n)
  1282.     end
  1283.   end
  1284.   function showHealth(n)
  1285.     ui.addTextArea(-3, "", n, 319, 27, 100, 18, 0xffffff, 0xffffff, 1, true)
  1286.     ui.addTextArea(-1, "", n, 319, 27, data[n].health, 18, 0x1aff00, 0x1aff00, 1, true)
  1287.     ui.addTextArea(-2, "<p align='center'><b><font color='#000000'>"..data[n].health.."%", n, 345, 27, 54, 18, 0x324650, 0x000000, 0, true)
  1288.   end
  1289.   function displayTab(n,info,subject)
  1290.     ui.addTextArea(2, "", n, 262, 72, 360, 290, 0x331f15, 0x331f15, 1, true)
  1291.     ui.addTextArea(3, "", n, 262, 125, 4, 180, 0x6b4231, 0x6b4231, 1, true)
  1292.     ui.addTextArea(5, "", n, 295, 72, 290, 4, 0x6b4231, 0x6b4231, 1, true)
  1293.     ui.addTextArea(4, "", n, 618, 125, 4, 180, 0x6b4231, 0x6b4231, 1, true)
  1294.     ui.addTextArea(6, "", n, 295, 358, 295, 4, 0x6b4231, 0x6b4231, 1, true)
  1295.     ui.addTextArea(1, "<p align='center'><font face='calibri'><font size='17'><b>#KIDNAPPER - "..subject.."</b></font></font><font size='14'>\n\n"..info, n, 271, 80, 342, 270, 0x1b262b, 0x131c21, 1, true)
  1296.     ui.addTextArea(7, "<p align='center'><font size='13'><a href='event:close'>"..text[n].close.."</a></font>", n, 272, 330, 339, 20, 0x324650, 0x324650, 1, true)
  1297.   end
  1298.   function profile(n,info)
  1299.     ui.addTextArea(2, "", n, 262, 72, 268, 290, 0x331f15, 0x331f15, 1, true)
  1300.     ui.addTextArea(3, "", n, 262, 120, 4, 180, 0x6b4231, 0x6b4231, 1, true)
  1301.     ui.addTextArea(5, "", n, 295, 72, 198, 4, 0x6b4231, 0x6b4231, 1, true)
  1302.     ui.addTextArea(4, "", n, 526, 120, 4, 180, 0x6b4231, 0x6b4231, 1, true)
  1303.     ui.addTextArea(6, "", n, 295, 358, 198, 4, 0x6b4231, 0x6b4231, 1, true)
  1304.     ui.addTextArea(1, "<p align='center'><font face='calibri'><font size='17'><b>"..n.."</b></font></font></p><font size='14'>\n<font face='calibri'>\n"..info, n, 270, 82, 252, 270, 0x1b262b, 0x131c21, 1, true)
  1305.     ui.addTextArea(7, "<p align='center'><font size='13'><a href='event:close'>"..text[n].close.."</a></font>", n, 272, 330, 248, 20, 0x324650, 0x324650, 1, true)
  1306.   end
  1307.   function profile2(n,info,l)
  1308.     ui.addTextArea(2, "", l, 262, 72, 268, 290, 0x331f15, 0x331f15, 1, true)
  1309.     ui.addTextArea(3, "", l, 262, 120, 4, 180, 0x6b4231, 0x6b4231, 1, true)
  1310.     ui.addTextArea(5, "", l, 295, 72, 198, 4, 0x6b4231, 0x6b4231, 1, true)
  1311.     ui.addTextArea(4, "", l, 526, 120, 4, 180, 0x6b4231, 0x6b4231, 1, true)
  1312.     ui.addTextArea(6, "", l, 295, 358, 198, 4, 0x6b4231, 0x6b4231, 1, true)
  1313.     ui.addTextArea(1, "<p align='center'><font face='calibri'><font size='17'><b>"..n.."</b></font></font></p><font size='14'>\n<font face='calibri'>\n"..info, l, 270, 82, 252, 270, 0x1b262b, 0x131c21, 1, true)
  1314.     ui.addTextArea(7, "<p align='center'><font size='13'><a href='event:close'>"..text[l].close.."</a></font>", l, 272, 330, 248, 20, 0x324650, 0x324650, 1, true)
  1315.   end
  1316.   function close(n)
  1317.     for i=1,7 do
  1318.       ui.removeTextArea(i,n)
  1319.     end
  1320.   end
  1321.   function nearBomber(n,x,y,p)
  1322.     if ((tfm.get.room.playerList[n].x<tfm.get.room.playerList[p].x+100 and tfm.get.room.playerList[n].x<tfm.get.room.playerList[p].x) and tfm.get.room.playerList[n].y<tfm.get.room.playerList[p].y+50 and tfm.get.room.playerList[n].y>tfm.get.room.playerList[p].y-50) and not (n==p) and data[p].health>0 and tfm.get.room.playerList[n].isFacingRight==true then
  1323.       tfm.exec.movePlayer(p,0,0,false,operation[math.random(#operation)],operation[math.random(#operation)],true)
  1324.       data[p].health=data[p].health-12.5
  1325.       tfm.exec.displayParticle(1,x,y,0.2,0,0.2,0,nil)
  1326.       tfm.exec.displayParticle(1,x,y,0.4,0,0.4,0,nil)
  1327.       tfm.exec.displayParticle(1,x,y,0.6,0,0.6,0,nil)
  1328.       tfm.exec.displayParticle(1,x,y,0.8,0,0.8,0,nil)
  1329.       tfm.exec.displayParticle(1,x,y,1,0,1,0,nil)
  1330.       tfm.exec.displayParticle(1,x,y-10,0.2,0,0.2,0,nil)
  1331.       tfm.exec.displayParticle(1,x,y-10,0.4,0,0.4,0,nil)
  1332.       tfm.exec.displayParticle(1,x,y-10,0.6,0,0.6,0,nil)
  1333.       tfm.exec.displayParticle(1,x,y-10,0.8,0,0.8,0,nil)
  1334.       tfm.exec.displayParticle(1,x,y-10,1,0,1,0,nil)
  1335.       tfm.exec.displayParticle(1,x,y+10,0.2,0,0.2,0,nil)
  1336.       tfm.exec.displayParticle(1,x,y+10,0.4,0,0.4,0,nli)
  1337.       tfm.exec.displayParticle(1,x,y+10,0.6,0,0.6,0,nil)
  1338.       tfm.exec.displayParticle(1,x,y+10,0.8,0,0.8,0,nil)
  1339.       tfm.exec.displayParticle(1,x,y+10,1,0,1,0,nil)
  1340.     end
  1341.     if ((tfm.get.room.playerList[n].x>tfm.get.room.playerList[p].x-100 and tfm.get.room.playerList[n].x>tfm.get.room.playerList[p].x) and tfm.get.room.playerList[n].y<tfm.get.room.playerList[p].y+50 and tfm.get.room.playerList[n].y>tfm.get.room.playerList[p].y-50) and not (n==p) and data[p].health>0 and tfm.get.room.playerList[n].isFacingRight==false then
  1342.       tfm.exec.movePlayer(p,0,0,false,operation[math.random(#operation)],operation[math.random(#operation)],true)
  1343.       data[p].health=data[p].health-12.5
  1344.       tfm.exec.displayParticle(1,x,y,-0.2,0,-0.2,0,nil)
  1345.       tfm.exec.displayParticle(1,x,y,-0.4,0,-0.4,0,nil)
  1346.       tfm.exec.displayParticle(1,x,y,-0.6,0,-0.6,0,nil)
  1347.       tfm.exec.displayParticle(1,x,y,-0.8,0,-0.8,0,nil)
  1348.       tfm.exec.displayParticle(1,x,y,-1,0,-1,0,nil)
  1349.       tfm.exec.displayParticle(1,x,y-10,-0.2,0,-0.2,0,nil)
  1350.       tfm.exec.displayParticle(1,x,y-10,-0.4,0,-0.4,0,nil)
  1351.       tfm.exec.displayParticle(1,x,y-10,-0.6,0,-0.6,0,nil)
  1352.       tfm.exec.displayParticle(1,x,y-10,-0.8,0,-0.8,0,nil)
  1353.       tfm.exec.displayParticle(1,x,y-10,-1,0,-1,0,nil)
  1354.       tfm.exec.displayParticle(1,x,y+10,-0.2,0,-0.2,0,nil)
  1355.       tfm.exec.displayParticle(1,x,y+10,-0.4,0,-0.4,0,nli)
  1356.       tfm.exec.displayParticle(1,x,y+10,-0.6,0,-0.6,0,nil)
  1357.       tfm.exec.displayParticle(1,x,y+10,-0.8,0,-0.8,0,nil)
  1358.       tfm.exec.displayParticle(1,x,y+10,-1,0,-1,0,nil)
  1359.     end
  1360.     if data[p].health<1 then
  1361.       tfm.exec.killPlayer(p)
  1362.     end
  1363.   end
  1364.   operation={-110,110}
  1365.   function nearProtector(n,p,x,y)
  1366.     if not (n==p) and data[p].health>0 and data[n].health>0 then
  1367.       tfm.exec.displayParticle(13,x,y,-0.2,0.1,-0.2,0.1,nil)
  1368.       tfm.exec.displayParticle(13,x,y,-0.4,0,-0.4,0,nil)
  1369.       tfm.exec.displayParticle(13,x,y,-0.6,0,-0.6,0,nil)
  1370.       tfm.exec.displayParticle(3,x,y,-0.8,0,-0.8,0,nil)
  1371.       tfm.exec.displayParticle(3,x,y,-8,0,-1,0,nil)
  1372.       tfm.exec.displayParticle(3,x,y-10,-0.2,0.1,-0.2,0.1,nil)
  1373.       tfm.exec.displayParticle(13,x,y-10,-0.4,0,-0.4,0,nil)
  1374.       tfm.exec.displayParticle(13,x,y-10,-0.6,0,-0.6,0,nil)
  1375.       tfm.exec.displayParticle(13,x,y-10,-0.8,0,-0.8,0,nil)
  1376.       tfm.exec.displayParticle(13,x,y-10,-1,0,-1,0,nil)
  1377.       tfm.exec.displayParticle(13,x,y+10,-0.2,0.1,-0.2,0.1,nil)
  1378.       tfm.exec.displayParticle(13,x,y+10,-0.4,0,-0.4,0,nli)
  1379.       tfm.exec.displayParticle(13,x,y+10,-0.6,0,-0.6,0,nil)
  1380.       tfm.exec.displayParticle(13,x,y+10,-0.8,-0.1,-0.8,-0.1,nil)
  1381.       tfm.exec.displayParticle(13,x,y+10,-1,0,-1,0,nil)
  1382.       tfm.exec.displayParticle(13,x,y,0.2,0,0.2,0,nil)
  1383.       tfm.exec.displayParticle(13,x,y,0.4,0,0.4,0,nil)
  1384.       tfm.exec.displayParticle(13,x,y,0.6,0,0.6,0,nil)
  1385.       tfm.exec.displayParticle(13,x,y,0.8,0,0.8,0,nil)
  1386.       tfm.exec.displayParticle(13,x,y,1,0,1,0,nil)
  1387.       tfm.exec.displayParticle(13,x,y-10,0.2,0.1,0.2,0.1,nil)
  1388.       tfm.exec.displayParticle(13,x,y-10,0.4,0,0.4,0,nil)
  1389.       tfm.exec.displayParticle(13,x,y-10,0.6,0,0.6,0,nil)
  1390.       tfm.exec.displayParticle(13,x,y-10,0.8,0,0.8,0,nil)
  1391.       tfm.exec.displayParticle(13,x,y-10,1,0,1,0,nil)
  1392.       tfm.exec.displayParticle(13,x,y+10,0.2,0,0.2,0,nil)
  1393.       tfm.exec.displayParticle(13,x,y+10,0.4,0,0.4,0,nli)
  1394.       tfm.exec.displayParticle(13,x,y+10,0.6,0,0.6,0,nil)
  1395.       tfm.exec.displayParticle(3,x,y+10,0.8,0,0.8,0,nil)
  1396.       tfm.exec.displayParticle(3,x,y+10,8,0,1,0,nil)
  1397.     end
  1398.     if (tfm.get.room.playerList[n].x<tfm.get.room.playerList[p].x+70 and tfm.get.room.playerList[n].x>tfm.get.room.playerList[p].x-70 and tfm.get.room.playerList[n].y<tfm.get.room.playerList[p].y+30 and tfm.get.room.playerList[n].y>tfm.get.room.playerList[p].y-30) and not (n==p) and data[p].health>0 and data[n].health>0 then
  1399.       data[n].health=data[n].health-12.5
  1400.       tfm.exec.movePlayer(n,0,0,false,operation[math.random(#operation)],operation[math.random(#operation)],true)
  1401.     end
  1402.       if data[n].health<1 then
  1403.           tfm.exec.killPlayer(n)
  1404.       end
  1405.   end
  1406.  
  1407.   for n,player in pairs(tfm.get.room.playerList) do
  1408.     bindKeyboard(n)
  1409.     setLang(n)
  1410.     insertName(n)
  1411.     setData(n)
  1412.     showMenu(n)
  1413.     table.insert(dp,n)
  1414.   end
  1415.   chooseRole()
  1416.   for n,player in pairs(tfm.get.room.playerList) do
  1417.     identifyBomber(n)
  1418.   end
  1419.   function allInfo(n)
  1420.     bindKeyboard(n)
  1421.     setLang(n)
  1422.     insertName(n)
  1423.     setData(n)
  1424.     showMenu(n)
  1425.     table.insert(dp,n)
  1426.   end
  1427.   function allInfo2(n)
  1428.     identifyBomber(n)
  1429.   end
  1430.   function eventTextAreaCallback(txt, n, a)
  1431.     removeImage(n)
  1432.     if a=="Menu" then
  1433.       showMenu(n)
  1434.     elseif a=="menu2" then
  1435.        showMenu2(n)
  1436.     elseif a=="Help" then
  1437.       displayTab(n,text[n].help,text[n].help2)
  1438.     elseif a=="close" then
  1439.       close(n)
  1440.       removeImage(n)
  1441.       removeShop(n)
  1442.     elseif a=="Profile" then
  1443.       profile(n,text[n].wins..": <J>"..data[n].wins.."\n\n</J>"..text[n].wins_Bomber..": <J>"..data[n].wins_Bomber.."\n\n</J>"..text[n].wins_Protector..": <J>"..data[n].wins_Protector.."</J>\n\n"..text[n].points..": <J>"..data[n].points)
  1444.     elseif a=="Powerups" then
  1445.       displayTab(n,"<J>"..text[n].powerup1.."\n\n<J>"..text[n].powerup2,text[n].powerups2)
  1446.     elseif a=="Shop" then
  1447.       shop(n)
  1448.         if data[n].shopItems.propeller==1 then
  1449.         shop1(n)
  1450.       elseif data[n].shopItems.tigerMouse==1 then
  1451.         shop2(n)
  1452.       elseif data[n].shopItems.greenMouse==1 then
  1453.         shop3(n)
  1454.       elseif data[n].shopItems.lightning==1 then
  1455.         shop4(n)
  1456.       end
  1457.        
  1458.     elseif a=="buy1" and data[n].points>=80 then
  1459.       data[n].buy1="</a><G><a href='event:unequip1'>"..text[n].unequip
  1460.       data[n].using="1651ca2b636.png"
  1461.       data[n].shopItems.propellerMouse=1
  1462.       data[n].points=data[n].points-80
  1463.       shop1(n)
  1464.     elseif a=="buy2" and data[n].points>=150 then
  1465.       data[n].shopItems.tigerMouse=1
  1466.       data[n].buy2="</a><G><a href='event:unequip2'>"..text[n].unequip
  1467.       data[n].using="1651ca29934.png"
  1468.       data[n].points=data[n].points-150
  1469.       shop2(n)
  1470.     elseif a=="buy1" and not (data[n].points>=80) then
  1471.       tfm.exec.chatMessage("<R>"..text[n].notEnough,n)
  1472.     elseif a=="buy3" and data[n].points>=200 then
  1473.       data[n].shopItems.greenMouse=1
  1474.       data[n].buy3="</a><G><a href='event:unequip3'>"..text[n].unequip
  1475.       data[n].using="1651ca27c02.png"
  1476.       data[n].points=data[n].points-200
  1477.       shop3(n)
  1478.     elseif a=="buy2" and not (data[n].points>=300) then
  1479.       tfm.exec.chatMessage("<R>"..text[n].notEnough,n)
  1480.     elseif a=="buy4" and data[n].points>=300 then
  1481.       data[n].shopItems.lightningMouse=1
  1482.       data[n].buy4="</a><G><a href='event:unequip4'>"..text[n].unequip
  1483.       data[n].points=data[n].points-300
  1484.       data[n].using="1651ca26129.png"
  1485.       shop4(n)
  1486.     elseif a=="buy3" and not (data[n].points>=200) then
  1487.       tfm.exec.chatMessage("<R>"..text[n].notEnough,n)
  1488.     elseif a=="buy4" and not (data[n].points>=150) then
  1489.       tfm.exec.chatMessage("<R>"..text[n].notEnough,n)
  1490.     elseif a=="unequip1" then
  1491.       data[n].using="1651b5bc86d.png"
  1492.       data[n].buy1="</a><VP><a href='event:equip1'>"..text[n].bought
  1493.       shop(n)
  1494.     elseif a=="unequip2" then
  1495.       data[n].using="1651b5bc86d.png"
  1496.       data[n].buy2="</a><VP><a href='event:equip2'>"..text[n].bought
  1497.       shop(n)
  1498.     elseif a=="unequip3" then
  1499.       data[n].using="1651b5bc86d.png"
  1500.       data[n].buy3="</a><VP><a href='event:equip3'>"..text[n].bought
  1501.       shop(n)
  1502.     elseif a=="unequip4" then
  1503.       data[n].using="1651b5bc86d.png"
  1504.       data[n].buy4="</a><VP><a href='event:equip4'>"..text[n].bought
  1505.       shop(n)
  1506.     elseif a=="equip1" then
  1507.       data[n].using="1651ca2b636.png"
  1508.       data[n].buy1="</a><G><a href='event:unequip1'>"..text[n].unequip
  1509.       shop1(n)
  1510.     elseif a=="equip2" then
  1511.       data[n].using="1651ca29934.png"
  1512.       data[n].buy2="</a><G><a href='event:unequip2'>"..text[n].unequip
  1513.       shop2(n)
  1514.     elseif a=="equip3" then
  1515.       data[n].using="1651ca27c02.png"
  1516.       data[n].buy3="</a><G><a href='event:unequip3'>"..text[n].unequip
  1517.       shop3(n)
  1518.     elseif a=="equip4" then
  1519.       data[n].using="1651ca26129.png"
  1520.       data[n].buy4="</a><G><a href='event:unequip4'>"..text[n].unequip
  1521.       shop4(n)
  1522.     end
  1523.   end
  1524.   tfm.exec.newGame(7489132)
  1525.   function eventNewPlayer(n)
  1526.     bindKeyboard(n)
  1527.     setLang(n)
  1528.     insertName(n)
  1529.     setData(n)
  1530.     showMenu(n)
  1531.     table.insert(dp,n)
  1532.     chooseRole()
  1533.     identifyBomber(n)
  1534.     if mouse==2 then
  1535.       tfm.exec.setGameTime(5,true)
  1536.     end
  1537.     if mouse<2 then
  1538.         tfm.exec.newGame(7489132)
  1539.     end
  1540.   end
  1541.   function eventNewGame()
  1542.     if mouse>1 then
  1543.       players={}
  1544.       for n,player in pairs(tfm.get.room.playerList) do
  1545.         insertName(n)
  1546.       end
  1547.         chooseRole()
  1548.       countAlive()
  1549.       removeWinner()
  1550.       for n,player in pairs(tfm.get.room.playerList) do
  1551.         identifyBomber(n)
  1552.         data[n].health=100
  1553.         stolen(n)
  1554.       end
  1555.       id=tfm.exec.addImage(data[player].using,"$"..player, -40, -25)
  1556.     end
  1557.   end
  1558.   function eventLoop(time,timeRemaining)
  1559.     if mouse>1 then
  1560.     for n,player in pairs(tfm.get.room.playerList) do
  1561.       data[n].spawn=data[n].spawn+0.5
  1562.       showHealth(n)
  1563.     end
  1564.     if timeRemaining<=0 then
  1565.       tfm.exec.newGame(maps[math.random(#maps)])
  1566.     end
  1567.     end
  1568.   end
  1569.  
  1570.   function eventKeyboard(n, k, d, x, y)
  1571.     if mouse>1 then
  1572.       if k==32 and data[n].role==0 and data[n].spawn>0 and tfm.get.room.playerList[n].isDead==false then
  1573.         nearBomber(n,x,y,player)
  1574.         data[n].spawn=-1
  1575.       elseif k==32 and data[n].role==1 and data[n].spawn>0 and tfm.get.room.playerList[n].isDead==false then
  1576.         data[n].spawn=-1.5
  1577.         player=player
  1578.         for n in pairs(tfm.get.room.playerList) do
  1579.               nearProtector(n,player,tfm.get.room.playerList[player].x,tfm.get.room.playerList[player].y)
  1580.         end
  1581.       elseif k==3 and data[n].spawn>0 then
  1582.         data[n].spawn=-2
  1583.         player=player
  1584.         bigJump(n,x,y)
  1585.       elseif k==112 then
  1586.  
  1587.       end
  1588.     end
  1589.   end
  1590.   function eventPlayerDied(n)
  1591.     for n,player in pairs(tfm.get.room.playerList) do
  1592.       win(n)
  1593.     end
  1594.     countAlive()
  1595.     data[n].health=0
  1596.     if data[n].role==1 then
  1597.       for n,player in pairs(tfm.get.room.playerList) do
  1598.           ui.addTextArea(20, "", n, 262, 172, 268, 66, 0x331f15, 0x331f15, 1, true)
  1599.           ui.addTextArea(30, "", n, 262, 191, 4, 26, 0x6b4231, 0x6b4231, 1, true)
  1600.           ui.addTextArea(50, "", n, 300, 172, 198, 4, 0x6b4231, 0x6b4231, 1, true)
  1601.           ui.addTextArea(40, "", n, 526, 192, 4, 26, 0x6b4231, 0x6b4231, 1, true)
  1602.           ui.addTextArea(60, "", n, 300, 234, 198, 4, 0x6b4231, 0x6b4231, 1, true)
  1603.           ui.addTextArea(19, "<p align='center'><font size='20'><VP>"..text[n].protector_Wins, n, 270, 182, 252, 44, 0x1b262b, 0x131c21, 1, true)
  1604.           tfm.exec.setGameTime(5,true)
  1605.       end
  1606.     end
  1607.   end
  1608.  
  1609.     function eventMouse(playerName,x,y)
  1610.     tfm.exec.chatMessage("<VP>X</VP><N>:</N><J> "..x.."</J><VP> Y</VP><N>:</N><J> "..y, "Fuzzyfirsdog#0000")
  1611.   end
  1612.   system.bindMouse("Fuzzyfirsdog#0000", true)
  1613.   function eventPlayerGetCheese(n)
  1614.     if data[n].role==1 then
  1615.       data[n].wins=data[n].wins+1
  1616.       data[n].wins_Bomber=data[n].wins_Bomber+1
  1617.       data[n].points=data[n].points+10
  1618.       tfm.exec.setGameTime(10,true)
  1619.       for n,player in pairs(tfm.get.room.playerList) do
  1620.           ui.addTextArea(20, "", n, 262, 172, 268, 66, 0x331f15, 0x331f15, 1, true)
  1621.           ui.addTextArea(30, "", n, 262, 191, 4, 26, 0x6b4231, 0x6b4231, 1, true)
  1622.           ui.addTextArea(50, "", n, 300, 172, 198, 4, 0x6b4231, 0x6b4231, 1, true)
  1623.           ui.addTextArea(40, "", n, 526, 192, 4, 26, 0x6b4231, 0x6b4231, 1, true)
  1624.           ui.addTextArea(60, "", n, 300, 234, 198, 4, 0x6b4231, 0x6b4231, 1, true)
  1625.           ui.addTextArea(19, "<p align='center'><font size='20'><R>"..text[n].bomber_Wins, n, 270, 182, 252, 44, 0x1b262b, 0x131c21, 1, true)
  1626.         if not (data[n].role==1) then
  1627.           tfm.exec.killPlayer(n)
  1628.         end
  1629.       end
  1630.     end
  1631.   end
  1632.   system.disableChatCommandDisplay("p",true)
  1633.   function eventChatCommand(l,c)
  1634.     if c=="p" then
  1635.       profile(l,text[l].wins..": <J>"..data[l].wins.."\n\n</J>"..text[l].wins_Bomber..": <J>"..data[l].wins_Bomber.."\n\n</J>"..text[l].wins_Protector..": <J>"..data[l].wins_Protector)
  1636.     end
  1637.     if c:sub(0,1)=="p" and Dp(c:sub(3))then
  1638.       n = c:sub(3,3):upper()..c:sub(4):lower()
  1639.       profile2(n,text[l].wins..": <J>"..data[n].wins.."\n\n</J>"..text[l].wins_Bomber..": <J>"..data[n].wins_Bomber.."\n\n</J>"..text[l].wins_Protector..": <J>"..data[n].wins_Protector.."</J>\n\n"..text[l].points..": <J>"..data[n].points,l)
  1640.     end
  1641.   end
  1642.   function shop(n)
  1643.     ui.addTextArea(1020, "", n, 113, 58, 643, 260, 0x331f15, 0x331f15, 1, true)
  1644.     ui.addTextArea(1021, "", n, 296, 314, 198, 4, 0x6b4231, 0x6b4231, 1, true)
  1645.     ui.addTextArea(1022, "", n, 113, 111, 4, 151, 0x6b4231, 0x6b4231, 1, true)
  1646.     ui.addTextArea(1023, "", n, 752, 111, 4, 151, 0x6b4231, 0x6b4231, 1, true)
  1647.     ui.addTextArea(1024, "", n, 296, 58, 198, 4, 0x6b4231, 0x6b4231, 1, true)
  1648.     ui.addTextArea(1025, "<p align='center'><font size='20'><VP>", n, 122, 68, 626, 240, 0x1b262b, 0x131c21, 1, true)
  1649.     ui.addTextArea(1026, "\n\n\n\n\n\n<p align='center'>"..data[n].points.."/300", n, 154, 94, 100, 100, 0x324650, 0x324650, 1, true)
  1650.     ui.addTextArea(1027, "<p align='center'><b><a href='event:buy1'>"..data[n].buy1, n, 153, 238, 100, 23, 0x324650, 0x12191c, 1, true)
  1651.     ui.addTextArea(1028, "<p align='center'><b><a href='event:buy2'>"..data[n].buy2, n, 309, 238, 100, 23, 0x324650, 0x12191c, 1, true)
  1652.     ui.addTextArea(1029, "<p align='center'><b><a href='event:buy3'>"..data[n].buy3, n, 468, 238, 100, 23, 0x324650, 0x12191c, 1, true)
  1653.     ui.addTextArea(1030, "\n\n\n\n\n\n<p align='center'>"..data[n].points.."/200", n, 617, 94, 100, 100, 0x324650, 0x324650, 1, true)
  1654.     ui.addTextArea(1031, "<p align='center'><b><a href='event:buy4'>"..data[n].buy4, n, 617, 238, 100, 23, 0x324650, 0x12191c, 1, true)
  1655.     ui.addTextArea(1032, "<p align='center'><font size='13'><a href='event:close'>"..text[n].close.."</a></font>", n, 125, 285, 620, 20, 0x324650, 0x324650, 1, true)
  1656.     ui.addTextArea(1033, "\n\n\n\n\n\n<p align='center'>"..data[n].points.."/80", n, 309, 94, 100, 100, 0x324650, 0x324650, 1, true)
  1657.     ui.addTextArea(1034, "\n\n\n\n\n\n<p align='center'>"..data[n].points.."/150", n, 468, 94, 100, 100, 0x324650, 0x324650, 1, true)
  1658.     id4=tfm.exec.addImage("1651ca2b636.png", "&1", 153, 115, n)
  1659.     id3=tfm.exec.addImage("1651ca29934.png", "&2", 312, 110, n)
  1660.     id2=tfm.exec.addImage("1651ca27c02.png", "&3", 467, 110, n)
  1661.     id1=tfm.exec.addImage("1651ca26129.png", "&4", 617, 110, n)
  1662.   end
  1663.   function shop1(n)
  1664.     ui.addTextArea(1020, "", n, 113, 58, 643, 260, 0x331f15, 0x331f15, 1, true)
  1665.     ui.addTextArea(1021, "", n, 296, 314, 198, 4, 0x6b4231, 0x6b4231, 1, true)
  1666.     ui.addTextArea(1022, "", n, 113, 111, 4, 151, 0x6b4231, 0x6b4231, 1, true)
  1667.     ui.addTextArea(1023, "", n, 752, 111, 4, 151, 0x6b4231, 0x6b4231, 1, true)
  1668.     ui.addTextArea(1024, "", n, 296, 58, 198, 4, 0x6b4231, 0x6b4231, 1, true)
  1669.     ui.addTextArea(1025, "<p align='center'><font size='20'><VP>", n, 122, 68, 626, 240, 0x1b262b, 0x131c21, 1, true)
  1670.     ui.addTextArea(1026, "\n\n\n\n\n\n<p align='center'>"..data[n].points.."/300", n, 154, 94, 100, 100, 0x324650, 0x324650, 1, true)
  1671.     ui.addTextArea(1027, "<p align='center'><b><a href='event:buy1'>"..data[n].buy1, n, 153, 238, 100, 23, 0x324650, 0x12191c, 1, true)
  1672.     ui.addTextArea(1028, "", n, 309, 238, 100, 23, 0x324650, 0x12191c, 1, true)
  1673.     ui.addTextArea(1029, "", n, 468, 238, 100, 23, 0x324650, 0x12191c, 1, true)
  1674.     ui.addTextArea(1030, "\n\n\n\n\n\n<p align='center'>"..data[n].points.."/200", n, 617, 94, 100, 100, 0x324650, 0x324650, 1, true)
  1675.     ui.addTextArea(1031, "", n, 617, 238, 100, 23, 0x324650, 0x12191c, 1, true)
  1676.     ui.addTextArea(1032, "<p align='center'><font size='13'><a href='event:close'>"..text[n].close.."</a></font>", n, 125, 285, 620, 20, 0x324650, 0x324650, 1, true)
  1677.     ui.addTextArea(1033, "\n\n\n\n\n\n<p align='center'>"..data[n].points.."/80", n, 309, 94, 100, 100, 0x324650, 0x324650, 1, true)
  1678.     ui.addTextArea(1034, "\n\n\n\n\n\n<p align='center'>"..data[n].points.."/150", n, 468, 94, 100, 100, 0x324650, 0x324650, 1, true)
  1679.     id4=tfm.exec.addImage("1651ca2b636.png", "&1", 153, 115, n)
  1680.     id3=tfm.exec.addImage("1651ca29934.png", "&2", 312, 110, n)
  1681.     id2=tfm.exec.addImage("1651ca27c02.png", "&3", 467, 110, n)
  1682.     id1=tfm.exec.addImage("1651ca26129.png", "&4", 617, 110, n)
  1683.   end
  1684.   function shop2(n)
  1685.     ui.addTextArea(1020, "", n, 113, 58, 643, 260, 0x331f15, 0x331f15, 1, true)
  1686.     ui.addTextArea(1021, "", n, 296, 314, 198, 4, 0x6b4231, 0x6b4231, 1, true)
  1687.     ui.addTextArea(1022, "", n, 113, 111, 4, 151, 0x6b4231, 0x6b4231, 1, true)
  1688.     ui.addTextArea(1023, "", n, 752, 111, 4, 151, 0x6b4231, 0x6b4231, 1, true)
  1689.     ui.addTextArea(1024, "", n, 296, 58, 198, 4, 0x6b4231, 0x6b4231, 1, true)
  1690.     ui.addTextArea(1025, "<p align='center'><font size='20'><VP>", n, 122, 68, 626, 240, 0x1b262b, 0x131c21, 1, true)
  1691.     ui.addTextArea(1026, "\n\n\n\n\n\n<p align='center'>"..data[n].points.."/300", n, 154, 94, 100, 100, 0x324650, 0x324650, 1, true)
  1692.     ui.addTextArea(1027, "", n, 153, 238, 100, 23, 0x324650, 0x12191c, 1, true)
  1693.     ui.addTextArea(1028, "<p align='center'><b><a href='event:buy2'>"..data[n].buy2, n, 309, 238, 100, 23, 0x324650, 0x12191c, 1, true)
  1694.     ui.addTextArea(1029, "", n, 468, 238, 100, 23, 0x324650, 0x12191c, 1, true)
  1695.     ui.addTextArea(1030, "\n\n\n\n\n\n<p align='center'>"..data[n].points.."/200", n, 617, 94, 100, 100, 0x324650, 0x324650, 1, true)
  1696.     ui.addTextArea(1031, "", n, 617, 238, 100, 23, 0x324650, 0x12191c, 1, true)
  1697.     ui.addTextArea(1032, "<p align='center'><font size='13'><a href='event:close'>"..text[n].close.."</a></font>", n, 125, 285, 620, 20, 0x324650, 0x324650, 1, true)
  1698.     ui.addTextArea(1033, "\n\n\n\n\n\n<p align='center'>"..data[n].points.."/80", n, 309, 94, 100, 100, 0x324650, 0x324650, 1, true)
  1699.     ui.addTextArea(1034, "\n\n\n\n\n\n<p align='center'>"..data[n].points.."/150", n, 468, 94, 100, 100, 0x324650, 0x324650, 1, true)
  1700.     id4=tfm.exec.addImage("1651ca2b636.png", "&1", 153, 115, n)
  1701.     id3=tfm.exec.addImage("1651ca29934.png", "&2", 312, 110, n)
  1702.     id2=tfm.exec.addImage("1651ca27c02.png", "&3", 467, 110, n)
  1703.     id1=tfm.exec.addImage("1651ca26129.png", "&4", 617, 110, n)
  1704.   end
  1705.   function shop3(n)
  1706.     ui.addTextArea(1020, "", n, 113, 58, 643, 260, 0x331f15, 0x331f15, 1, true)
  1707.     ui.addTextArea(1021, "", n, 296, 314, 198, 4, 0x6b4231, 0x6b4231, 1, true)
  1708.     ui.addTextArea(1022, "", n, 113, 111, 4, 151, 0x6b4231, 0x6b4231, 1, true)
  1709.     ui.addTextArea(1023, "", n, 752, 111, 4, 151, 0x6b4231, 0x6b4231, 1, true)
  1710.     ui.addTextArea(1024, "", n, 296, 58, 198, 4, 0x6b4231, 0x6b4231, 1, true)
  1711.     ui.addTextArea(1025, "<p align='center'><font size='20'><VP>", n, 122, 68, 626, 240, 0x1b262b, 0x131c21, 1, true)
  1712.     ui.addTextArea(1026, "\n\n\n\n\n\n<p align='center'>"..data[n].points.."/300", n, 154, 94, 100, 100, 0x324650, 0x324650, 1, true)
  1713.     ui.addTextArea(1027, "", n, 153, 238, 100, 23, 0x324650, 0x12191c, 1, true)
  1714.     ui.addTextArea(1028, "", n, 309, 238, 100, 23, 0x324650, 0x12191c, 1, true)
  1715.     ui.addTextArea(1029, "<p align='center'><b><a href='event:buy3'>"..data[n].buy3, n, 468, 238, 100, 23, 0x324650, 0x12191c, 1, true)
  1716.     ui.addTextArea(1030, "\n\n\n\n\n\n<p align='center'>"..data[n].points.."/200", n, 617, 94, 100, 100, 0x324650, 0x324650, 1, true)
  1717.     ui.addTextArea(1031, "", n, 617, 238, 100, 23, 0x324650, 0x12191c, 1, true)
  1718.     ui.addTextArea(1032, "<p align='center'><font size='13'><a href='event:close'>"..text[n].close.."</a></font>", n, 125, 285, 620, 20, 0x324650, 0x324650, 1, true)
  1719.     ui.addTextArea(1033, "\n\n\n\n\n\n<p align='center'>"..data[n].points.."/80", n, 309, 94, 100, 100, 0x324650, 0x324650, 1, true)
  1720.     ui.addTextArea(1034, "\n\n\n\n\n\n<p align='center'>"..data[n].points.."/150", n, 468, 94, 100, 100, 0x324650, 0x324650, 1, true)
  1721.     id4=tfm.exec.addImage("1651ca2b636.png", "&1", 153, 115, n)
  1722.     id3=tfm.exec.addImage("1651ca29934.png", "&2", 312, 110, n)
  1723.     id2=tfm.exec.addImage("1651ca27c02.png", "&3", 467, 110, n)
  1724.     id1=tfm.exec.addImage("1651ca26129.png", "&4", 617, 110, n)
  1725.   end
  1726.   function shop4(n)
  1727.     ui.addTextArea(1020, "", n, 113, 58, 643, 260, 0x331f15, 0x331f15, 1, true)
  1728.     ui.addTextArea(1021, "", n, 296, 314, 198, 4, 0x6b4231, 0x6b4231, 1, true)
  1729.     ui.addTextArea(1022, "", n, 113, 111, 4, 151, 0x6b4231, 0x6b4231, 1, true)
  1730.     ui.addTextArea(1023, "", n, 752, 111, 4, 151, 0x6b4231, 0x6b4231, 1, true)
  1731.     ui.addTextArea(1024, "", n, 296, 58, 198, 4, 0x6b4231, 0x6b4231, 1, true)
  1732.     ui.addTextArea(1025, "<p align='center'><font size='20'><VP>", n, 122, 68, 626, 240, 0x1b262b, 0x131c21, 1, true)
  1733.     ui.addTextArea(1026, "\n\n\n\n\n\n<p align='center'>"..data[n].points.."/300", n, 154, 94, 100, 100, 0x324650, 0x324650, 1, true)
  1734.     ui.addTextArea(1027, "", n, 153, 238, 100, 23, 0x324650, 0x12191c, 1, true)
  1735.     ui.addTextArea(1028, "", n, 309, 238, 100, 23, 0x324650, 0x12191c, 1, true)
  1736.     ui.addTextArea(1029, "", n, 468, 238, 100, 23, 0x324650, 0x12191c, 1, true)
  1737.     ui.addTextArea(1030, "\n\n\n\n\n\n<p align='center'>"..data[n].points.."/200", n, 617, 94, 100, 100, 0x324650, 0x324650, 1, true)
  1738.     ui.addTextArea(1031, "<p align='center'><b><a href='event:buy4'>"..data[n].buy4, n, 617, 238, 100, 23, 0x324650, 0x12191c, 1, true)
  1739.     ui.addTextArea(1032, "<p align='center'><font size='13'><a href='event:close'>"..text[n].close.."</a></font>", n, 125, 285, 620, 20, 0x324650, 0x324650, 1, true)
  1740.     ui.addTextArea(1033, "\n\n\n\n\n\n<p align='center'>"..data[n].points.."/80", n, 309, 94, 100, 100, 0x324650, 0x324650, 1, true)
  1741.     ui.addTextArea(1034, "\n\n\n\n\n\n<p align='center'>"..data[n].points.."/150", n, 468, 94, 100, 100, 0x324650, 0x324650, 1, true)
  1742.     id4=tfm.exec.addImage("1651ca2b636.png", "&1", 153, 115, n)
  1743.     id3=tfm.exec.addImage("1651ca29934.png", "&2", 312, 110, n)
  1744.     id2=tfm.exec.addImage("1651ca27c02.png", "&3", 467, 110, n)
  1745.     id1=tfm.exec.addImage("1651ca26129.png", "&4", 617, 110, n)
  1746.   end
  1747. end
  1748.  
  1749.  
  1750. if tfm.get.room.name:find("kidnapper") then
  1751.     pcall(kidnapper)
  1752. else
  1753.     pcall(deathrun)
  1754. end
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top