Boeing747-8

#Messageseeker

Jun 9th, 2018
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 39.87 KB | None | 0 0
  1.  
  2. --#messageseeker by Fuzzyfirsdog 5/26/18
  3.  
  4. show = 0
  5.  
  6. function showMessageLocation()
  7.         if show==1 then
  8.        tfm.exec.displayParticle(0,locationx,locationy,0.5,0.5,0.5,0.5,n)
  9.        tfm.exec.displayParticle(0,locationx,locationy,-0.5,-0.5,-0.5,-0.5,n)
  10.        tfm.exec.displayParticle(2,locationx,locationy,3,-3,3,-3,n)
  11.        tfm.exec.displayParticle(2,locationx,locationy,-3,3,-3,3,n)
  12.  
  13.        tfm.exec.displayParticle(0,locationx,locationy,-0.5,0.5,-0.5,0.5,n)
  14.        tfm.exec.displayParticle(0,locationx,locationy,0.5,-0.5,0.5,-0.5,n)
  15.        tfm.exec.displayParticle(2,locationx,locationy,1,-3,1,-3,n)
  16.        tfm.exec.displayParticle(2,locationx,locationy,1,1,3,1,n)
  17.        tfm.exec.displayParticle(2,locationx,locationy,-1,3,-1,3,n)
  18.        tfm.exec.displayParticle(2,locationx,locationy,-1,-1,-3,-1,n)
  19.        tfm.exec.displayParticle(5,locationx,locationy,0.5,0.5,0.5,0.5,n)
  20.        tfm.exec.displayParticle(5,locationx,locationy,-0.5,-0.5,-0.5,-0.5,n)
  21.  
  22.        tfm.exec.displayParticle(5,locationx,locationy,-0.5,0.5,-0.5,0.5,n)
  23.        tfm.exec.displayParticle(5,locationx,locationy,0.5,-0.5,0.5,-0.5,n)
  24.         end
  25. end
  26.  
  27.  
  28. tfm.exec.disableAutoTimeLeft(true)
  29.  
  30. --FR translations
  31.  
  32. noOneFR="Personne"
  33.  
  34. hiddenFR = "<J>Le message est à nouveau caché! Trouve le avant que les 2 minutes ne s’écoulent."
  35.  
  36.  
  37. messageRehiddenFR = "<J>Le message a été de nouveau caché parce que personne ne l’a trouvé!"
  38.  
  39. successfulSeekersFR = "Demandeur réputé"
  40.  
  41. nearTheMessageFR = "<VP><font size='20'>Tu es : à côté du message"
  42.  
  43. notNearTheMessageFR = "<R><font size='20'>Tu n’es : pas à côté du message"
  44.  
  45. leftFR = "gauche"
  46.  
  47. lastRoundWinnersFR = "Dernière partie des gagnants"
  48.  
  49. timeLeftFR = "Temps restant"
  50.  
  51. noTimeLeftFR = "Pas de temps"
  52.  
  53. creditsToFuzzyFR = "Codage du mini-jeu"
  54.  
  55. creditsToBibshoFR = "Message des idées éclairées"
  56.  
  57. creditsToBodyFR = "Minuteur et les idées de message"
  58.  
  59. creditsToNazFR = "Traduction FR"
  60.  
  61. descriptionFR = "Description"
  62.  
  63. lasts3secondsFR = "Dernières 3 secondes"
  64.  
  65. changeFR = "changer"
  66.  
  67. titleFR = "Titre"
  68.  
  69. helpFR = "<font size='15'><font face='Calibri'><a href='event:help'><p align='center'>Aide"
  70.  
  71. creditsFR = "<a href='event:credits'><p align='center'><font face='calibri'><font size='15'>Credits"
  72.  
  73. profileFR = "<font size='15'><font face='Calibri'><a href='event:profile'><p align='center'>Profile"
  74.  
  75. help2FR = "<font face='calibri'><font size='18'>In #messageseeker Ton objectif est de trouver les mots '<font color='#000001'>Tu m’as trouvé :o</font><font face='calibri'><font size='18'>' in the large play space. Tu as 2 minutes pour trouver le message. Clique sur le message une fois trouvé. Bon courage !"
  76.  
  77. purposeOfObjectFR = "<b><p align='center'><font face='calibri'><font size='20'>But de l’objet"
  78. teleporterExplanationFR = "<p align='center'><font face='calibri'><font size='18'><VP><b> A quoi servent les téléporteurs ?</b> <N> Comme le suggère leur nom, ils te donnent un téléporteur lorsque tu cliques quelque part sur l’écran."
  79.  
  80. lightExplanationFR = "<p align='center'><font face='calibri'><font size='18'><VP><b> A quoi servent les lumières des messages ?</b> <N> Les lumières des messages rendent l’écran rouge pendant 3 secondes. Le rouge permet de rendre les messages blancs et apparaissent clairement à tout joueur dont les lumières de message s'illuminent."
  81.  
  82. closeFR = "<p align='center'><font size='18'><font face='Calibri'><a href='event:close'><VP><b>FERMER"
  83.  
  84. roundEndedFR = "<font size='30'><font face='calibri'><p align='center'>\n<font color='#00FFF9'> La partie est terminée… une nouvelle partie va commencer dans 10 secondes"
  85.  
  86. winsFR = "Victoires"
  87.  
  88. lightsFR = "Eclairages des messages"
  89.  
  90. teleportersFR = "Téléporteurs"
  91.  
  92. --EN translations
  93.  
  94. noOneEN = "No one"
  95.  
  96. hiddenEN = "<J>The message has been hidden again! Go find it before the 2 minutes run out."
  97.  
  98. foundMessageEN = "<J>[GAME] <CH>Good job on finding the message, you are now safe for this round! You've earned a point."
  99.  
  100. messageRehiddenEN = "<J>The message has been re-hidden because somebody has found it!"
  101.  
  102. successfulSeekersEN = "Successful Seekers"
  103.  
  104. nearTheMessageEN = "<VP><font size='20'>You are: near the message"
  105.  
  106. notNearTheMessageEN = "<R><font size='20'>You are: not near the message"
  107.  
  108. leftEN = "left"
  109.  
  110. lastRoundWinnersEN = "Last round winners"
  111.  
  112. timeLeftEN = "Time left"
  113.  
  114. noTimeLeftEN = "No time left"
  115.  
  116. creditsToFuzzyEN = "Coding of the minigame"
  117.  
  118. creditsToBibshoEN = "Message light ideas"
  119.  
  120. creditsToBodyEN = "Timer and message ideas"
  121.  
  122. creditsToNazEN = "FR Translations"
  123.  
  124. descriptionEN = "Description"
  125.  
  126. lasts3secondsEN = "Lasts 3 seconds"
  127.  
  128. changeEN = "change"
  129.  
  130. titleEN = "Title"
  131.  
  132. helpEN = "<font size='15'><font face='Calibri'><a href='event:help'><p align='center'>Help"
  133.  
  134. creditsEN = "<a href='event:credits'><p align='center'><font face='calibri'><font size='15'>Credits"
  135.  
  136. profileEN = "<font size='15'><font face='Calibri'><a href='event:profile'><p align='center'>Profile"
  137.  
  138. help2EN = "<font face='calibri'><font size='18'>In #messageseeker your goal is to find the words '<font color='#000001'>You found me :o</font><font face='calibri'><font size='18'>' in the large play space. You are given 2 minutes to find the message. Click the message when you find it. Goodluck!"
  139.  
  140. purposeOfObjectEN = "<b><p align='center'><font face='calibri'><font size='20'>Purpose of Object"
  141.  
  142. teleporterExplanationEN = "<p align='center'><font face='calibri'><font size='18'><VP><b>What do teleporters do?</b> <N>Teleporters are exactly what they sound like, they give you one teleport when you click somewhere on the screen."
  143.  
  144. lightExplanationEN = "<p align='center'><font face='calibri'><font size='18'><VP><b>What do message lights do?</b> <N>Message lights make your screen red for 3 seconds. Red makes messages turn white and appear clearly to whoever is shining the Message Light."
  145.  
  146. closeEN = "<p align='center'><font size='18'><font face='Calibri'><a href='event:close'><VP><b>CLOSE"
  147.  
  148. roundEndedEN = "<font size='30'><font face='calibri'><p align='center'>\n<font color='#00FFF9'> Round has ended.. new one starting in 10 seconds"
  149.  
  150. winsEN = "Wins"
  151.  
  152. lightsEN = "Message Lights"
  153.  
  154. teleportersEN = "Teleporters"
  155.  
  156.  
  157.  
  158.  
  159.  
  160.  
  161.  
  162.     lw=""
  163.  
  164.                         tfm.exec.disableAutoShaman(true)
  165.     --help
  166.  
  167.             z=""
  168.                 tfm.exec.disableAfkDeath(true)
  169.     tfm.exec.disableAutoNewGame(true)
  170.                     tfm.exec.setGameTime(1,true)
  171.  
  172.     data={}
  173.  
  174. for n,player in pairs(tfm.get.room.playerList) do
  175.  
  176. data[n]={noOne="",thename=n,currentMessageStatus="<font color='#000001'>",x=0,y=0,hidden="",foundMessage="",messageRehidden="",successfulSeekers="",nearTheMessage="",notNearTheMessage="",left="",prize1Lang="",prize2Lang="",prize3Lang="",prize4Lang="",prize5Lang="",prize6Lang="",lastRoundWinners="",noTimeLeft="",timeLeft="",lastsseconds="",creditsToFuzzy="",creditsToBibsho="",creditsToNaz="",creditsToBody="",change="",descriptionLang="",titleLang="",winsLang="", teleportersLang="",lightLang="",roundEnded="",close="",purposeOfObject="",teleportExplanation="",lightExplanation="",help2Lang="",helpLang="",creditsLang="",profileLang="",allowedtps="<N>",lighttime=10,title="Seeker Seedling",description="Mouse playing #messageseeker.",safety=0,wins=0,lights=0,allowed="<N>",tps=0}
  177. --EN prizes
  178.  
  179. prize1EN = "<BV>[GAME] <J>You have earned 2 <BV> message lights<J>. You also earned a second win for earning Message Lights! You received the title "..data[n].title
  180.  
  181. prize2EN = "<BV>[GAME] <J>You have earned 4 <BV> message lights and 5 teleporters<J>. You also earned a second win for earning Message Lights! You received the title "..data[n].title
  182.  
  183. prize3EN = "<BV>[GAME] <J>You have earned 6<BV> message lights and 10 teleporters<J>. You also earned a second win for earning Message Lights! You received the title "..data[n].title
  184.  
  185. prize4EN = "<BV>[GAME] <J>You have earned 8<BV> message lights and 15 teleporters<J>. You also earned a second win for earning Message Lights! <J>You recieved the title "..data[n].title
  186.  
  187.  
  188. prize5EN = "<BV>[GAME] <J>You have earned 8<BV> message lights and 15 teleporters<J>. You also earned a second win for earning Message Lights! <J>You recieved the title "..data[n].title
  189.  
  190.  
  191. prize6EN = "<BV>[GAME] <J>You have earned 10<BV> message lights and 20 teleporters<J>. You also earned a second win for earning Message Lights! <J>You recieved the title "..data[n].title
  192.  
  193.     --FR Prizes
  194.  
  195. prize1FR = "<BV>[JEU] <J>vous avez gagné 2 voyants de <BV>message<J>. Vous avez également gagné une deuxième victoire pour gagner des lumières de message! Vous avez reçu le titre "..data[n].title
  196.  
  197. prize2FR = "<BV>[JEU] <J>Vous avez gagné 4 <BV>lumières de message et 5 téléporteurs<J>. Vous avez également gagné une deuxième victoire pour gagner des lumières de message! Vous avez reçu le titre "..data[n].title
  198.  
  199. prize3FR = "<BV>[JEU] <J>Vous avez gagné 6<BV> lumières de message et 10 téléporteurs<J>. Vous avez également gagné une deuxième victoire pour gagner des lumières de message! Vous avez reçu le titre "..data[n].title
  200.  
  201. prize4FR = "<BV>[JEU] <J>Vous avez gagné 8<BV> lumières de message et 15 téléporteurs<J>. Vous avez également gagné une deuxième victoire pour gagner des lumières de message! <J>Vous avez reçu le titre "..data[n].title
  202.  
  203.  
  204. prize5FR = "<BV>[JEU] <J>Vous avez gagné 8<BV> lumières de message et 15 téléporteurs<J>. Vous avez également gagné une deuxième victoire pour gagner des lumières de message! <J>Vous avez reçu le titre "..data[n].title
  205.  
  206.  
  207. prize6FR = "<BV>[JEU] <J>Vous avez gagné 10<BV> lumières de message et 20 téléporteurs<J>. Vous avez également gagné une deuxième victoire pour gagner des lumières de message! <J>Vous avez reçu le titre "..data[n].title
  208.  
  209.  
  210. end
  211.  
  212.  
  213.  
  214.  
  215. function defaultLang()
  216. for n,player in pairs(tfm.get.room.playerList) do
  217. data[n].noOne = noOneEN
  218. data[n].hidden = hiddenEN
  219. data[n].foundMessage = foundMessageEN
  220. data[n].messageRehidden = messageRehiddenEN
  221. data[n].successfulSeekers = successfulSeekersEN
  222. data[n].nearTheMessage = nearTheMessageEN
  223. data[n].notNearTheMessage = notNearTheMessageEN
  224. data[n].left = leftEN
  225. data[n].prize1Lang = prize1EN
  226. data[n].prize2Lang = prize2EN
  227. data[n].prize3Lang = prize3EN
  228. data[n].prize4Lang = prize4EN
  229. data[n].prize5Lang = prize5EN
  230. data[n].prize6Lang = prize6EN
  231. data[n].lastRoundWinners = lastRoundWinnersEN
  232. data[n].timeLeft = timeLeftEN
  233. data[n].noTimeLeft = noTimeLeftEN
  234. data[n].lastsseconds = lasts3secondsEN
  235. data[n].creditsToFuzzy = creditsToFuzzyEN
  236. data[n].creditsToNaz = creditsToNazEN
  237. data[n].creditsToBody = creditsToBodyEN
  238. data[n].creditsToBibsho = creditsToBibshoEN
  239. data[n].descriptionLang = descriptionEN
  240. data[n].change = changeEN
  241. data[n].titleLang = titleEN
  242. print("<VP>an en player")
  243. data[n].roundEnded = roundEndedFR
  244. data[n].lightLang = lightsEN
  245. data[n].teleportersLang = teleportersEN
  246. data[n].winsLang = winsEN
  247.  data[n].roundEnded = roundEndedEN
  248.  data[n].close = closeEN
  249.  data[n].helpLang = helpEN
  250.  data[n].creditsLang = creditsEN
  251.  data[n].profileLang = profileEN
  252.  data[n].help2Lang = help2EN
  253.  data[n].teleportExplanation = teleporterExplanationEN
  254.  data[n].lightExplanation = lightExplanationEN
  255.  data[n].purposeOfObject = purposeOfObjectEN
  256. ui.addTextArea(15, "<VP>"..data[n].helpLang.." | "..data[n].creditsLang.." | "..data[n].profileLang, n, -50, 30, 264, 26, 0x00aaff, 0x00eeff, 0, true)
  257. end
  258. end
  259. function findFR()
  260. for n,player in pairs(tfm.get.room.playerList) do
  261. if tfm.get.room.playerList[n].community == "fr" then
  262. data[n].noOne = noOneFR
  263. data[n].hidden = hiddenFR
  264. data[n].foundMessage = foundMessageFR
  265. data[n].messageRehidden = messageRehiddenFR
  266. data[n].successfulSeekers = successfulSeekersFR
  267. data[n].nearTheMessage = nearTheMessageFR
  268. data[n].notNearTheMessage = notNearTheMessageFR
  269. data[n].left = leftFR
  270. data[n].prize1Lang = prize1FR
  271. data[n].prize2Lang = prize2FR
  272. data[n].prize3Lang = prize3FR
  273. data[n].prize4Lang = prize4FR
  274. data[n].prize5Lang = prize5FR
  275. data[n].prize6Lang = prize6FR
  276. data[n].lastRoundWinners = lastRoundWinnersFR
  277. data[n].timeLeft = timeLeftFR
  278. data[n].noTimeLeft = noTimeLeftFR
  279. data[n].lastsseconds = lasts3secondsFR
  280. data[n].titleLang = titleFR
  281.  data[n].close = closeFR
  282. data[n].roundEnded = roundEndedFR
  283. data[n].lightLang = lightsFR
  284. data[n].teleportersLang = teleportersFR
  285. data[n].winsLang = winsFR
  286.     data[n].helpLang = helpFR
  287.     data[n].creditsLang = creditsFR
  288.     data[n].profileLang = profileFR
  289.     data[n].help2Lang = help2FR
  290.     data[n].teleportExplanation = teleporterExplanationFR
  291.     data[n].lightExplanation = lightExplanationFR
  292.     data[n].purposeOfObject = purposeOfObjectFR
  293. data[n].descriptionLang = descriptionFR
  294. data[n].change = changeFR
  295. ui.addTextArea(15, "<VP>"..data[n].helpLang.." | "..data[n].creditsLang.." | "..data[n].profileLang, n, -50, 30, 264, 26, 0x00aaff, 0x00eeff, 0, true)
  296. data[n].creditsToFuzzy = creditsToFuzzyFR
  297. data[n].creditsToNaz = creditsToNazFR
  298. data[n].creditsToBody = creditsToBodyFR
  299. data[n].creditsToBibsho = creditsToBibshoFR
  300. end
  301. end
  302. end
  303.  
  304. function findEn()
  305. for n,player in pairs(tfm.get.room.playerList) do
  306. if tfm.get.room.playerList[n].community == "e2" or tfm.get.room.playerList[n].community == "en" then
  307. data[n].noOne = noOneEN
  308. data[n].hidden = hiddenEN
  309. data[n].foundMessage = foundMessageEN
  310. data[n].messageRehidden = messageRehiddenEN
  311. data[n].successfulSeekers = successfulSeekersEN
  312. data[n].nearTheMessage = nearTheMessageEN
  313. data[n].notNearTheMessage = notNearTheMessageEN
  314. data[n].left = leftEN
  315. data[n].prize1Lang = prize1EN
  316. data[n].prize2Lang = prize2EN
  317. data[n].prize3Lang = prize3EN
  318. data[n].prize4Lang = prize4EN
  319. data[n].prize5Lang = prize5EN
  320. data[n].prize6Lang = prize6EN
  321. data[n].lastRoundWinners = lastRoundWinnersEN
  322. data[n].timeLeft = timeLeftEN
  323. data[n].noTimeLeft = noTimeLeftEN
  324. data[n].lastsseconds = lasts3secondsEN
  325. data[n].creditsToFuzzy = creditsToFuzzyEN
  326. data[n].creditsToNaz = creditsToNazEN
  327. data[n].creditsToBody = creditsToBodyEN
  328. data[n].creditsToBibsho = creditsToBibshoEN
  329. data[n].descriptionLang = descriptionEN
  330. data[n].change = changeEN
  331. data[n].titleLang = titleEN
  332. print("<VP>an en player")
  333. data[n].roundEnded = roundEndedFR
  334. data[n].lightLang = lightsEN
  335. data[n].teleportersLang = teleportersEN
  336. data[n].winsLang = winsEN
  337.  data[n].roundEnded = roundEndedEN
  338.  data[n].close = closeEN
  339.  data[n].helpLang = helpEN
  340.  data[n].creditsLang = creditsEN
  341.  data[n].profileLang = profileEN
  342.  data[n].help2Lang = help2EN
  343.  data[n].teleportExplanation = teleporterExplanationEN
  344.  data[n].lightExplanation = lightExplanationEN
  345.  data[n].purposeOfObject = purposeOfObjectEN
  346. ui.addTextArea(15, "<VP>"..data[n].helpLang.." | "..data[n].creditsLang.." | "..data[n].profileLang, n, -50, 30, 264, 26, 0x00aaff, 0x00eeff, 0, true)
  347. end
  348. end
  349. end
  350.  
  351.  
  352.             for n,player in pairs(tfm.get.room.playerList) do
  353.  
  354. defaultLang()
  355. findFR()
  356. findEn()
  357.  
  358. for n,player in pairs(tfm.get.room.playerList) do
  359.  
  360. end
  361.                     z=z.." | <a href='event:pf'>"..n.."</a> |"
  362.  
  363.     ui.addTextArea(44, "", n, 240, 81, 320, 275, 0x324650, 0x000000, 1, true)
  364.         ui.addTextArea(11, "<p align='center'><font face='comic sans ms' size='20'><VP>#messageseeker", n, 300, 92, 200, 34, 0x000000, 0x00ff6f, 1, true)
  365.     ui.addTextArea(33, data[n].help2Lang, n, 250, 158, 300, 186, 0x005782, 0x00ff6f, 1, true)
  366.     ui.addTextArea(55, data[n].close, n, 450, 314, 100, 30, 0x000000, 0x00ff6f, 1, true)
  367.  
  368.  
  369.  
  370.  
  371.                                     tfm.exec.bindKeyboard(n, 32, true, true)
  372.             ui.addTextArea(110, data[n].allowed.."<font face='calibri'><font size='15'><p align='center'>"..data[n].lightLang.."\n<font size='11'>"..data[n].lights.." "..data[n].left.."<br>"..data[n].lastsseconds.."", n, 10, 299, 140, 62, 0xa10000, 0xff0000, 0.6, true)
  373.  
  374.    
  375.         ui.addTextArea(35, "<p align='center'>\n\n<b><a href='event:wiaml'>?", n, 138, 299, 21, 62, 0x000001, 0xFF0000, 1, true)
  376.                     ui.addTextArea(49, data[n].allowedtps.."<font face='calibri'><font size='15'><p align='center'>"..data[n].teleportersLang.."\n<font size='11'>"..data[n].tps.." "..data[n].left.."", n, 10, 227, 140, 62, 0x0088ff, 0x00ccff, 0.6, true)
  377.                 ui.addTextArea(355, "<p align='center'>\n\n<b><a href='event:wat'>?", n, 138, 227, 21, 62, 0x000001, 0xFF0000, 1, true)
  378.  
  379. end
  380.  
  381.  
  382.  
  383.  
  384. f=999999
  385.  
  386.         function eventNewPlayer(n)
  387.     if not data[n] then
  388.  
  389. data[n]={noOne="",thename=n,currentMessageStatus="<font color='#000001'>",x=0,y=0,hidden="",foundMessage="",messageRehidden="",successfulSeekers="",nearTheMessage="",notNearTheMessage="",left="",prize1Lang="",prize2Lang="",prize3Lang="",prize4Lang="",prize5Lang="",prize6Lang="",lastRoundWinners="",noTimeLeft="",timeLeft="",lastsseconds="",creditsToFuzzy="",creditsToBibsho="",creditsToNaz="",creditsToBody="",change="",descriptionLang="",titleLang="",winsLang="", teleportersLang="",lightLang="",roundEnded="",close="",purposeOfObject="",teleportExplanation="",lightExplanation="",help2Lang="",helpLang="",creditsLang="",profileLang="",allowedtps="<N>",lighttime=10,title="Seeker Seedling",description="Mouse playing #messageseeker.",safety=0,wins=0,lights=0,allowed="<N>",tps=0}
  390. end
  391. defaultLang()
  392. findFR()
  393. findEn()
  394.  
  395.  
  396.  
  397.  
  398.             tfm.exec.respawnPlayer(n)
  399. data[n].x = i[math.random(#i)]
  400. data[n].y = h[math.random(#h)]
  401.             tfm.exec.movePlayer(n,data[n].x,data[n].y,false,0,0,false)
  402.  
  403.         ui.addTextArea(44, "", n, 240, 81, 320, 275, 0x324650, 0x000000, 1, true)
  404. ui.addTextArea(11, "<p align='center'><font face='comic sans ms' size='20'><VP>#messageseeker", n, 300, 92, 200, 34, 0x000000, 0x00ff6f, 1, true)
  405.                     ui.addTextArea(33, data[n].help2Lang, n, 250, 158, 300, 186, 0x005782, 0x00ff6f, 1, true)
  406.         ui.addTextArea(55, data[n].close, n, 450, 314, 100, 30, 0x000000, 0x00ff6f, 1, true)
  407.  
  408. ui.addTextArea(15, "<VP>"..data[n].helpLang.." | "..data[n].creditsLang.." | "..data[n].profileLang, n, -50, 30, 264, 26, 0x00aaff, 0x00eeff, 0, true)
  409.  
  410.           f=f-1
  411.  
  412.             print(data[n].safety)
  413.         tfm.exec.bindKeyboard(n, 32, true, true)
  414.                             ui.addTextArea(49, data[n].allowedtps.."<font face='calibri'><font size='15'><p align='center'>"..data[n].teleportersLang.."\n<font size='11'>"..data[n].tps.." "..data[n].left.."\n", n, 10, 227, 140, 62, 0x0088ff, 0x00ccff, 0.6, true)
  415.  
  416.         ui.addTextArea(110, data[n].allowed.."<font face='calibri'><font size='15'><p align='center'>"..data[n].lightLang.."\n<font size='11'>"..data[n].lights.." "..data[n].left.."<br>"..data[n].lastsseconds, n, 10, 299, 140, 62, 0xa10000, 0xff0000, 0.6, true)
  417.                 ui.addTextArea(35, "<p align='center'>\n\n<b><a href='event:wiaml'>?", n, 138, 299, 21, 62, 0x000001, 0xFF0000, 1, true)
  418.                     ui.addTextArea(355, "<p align='center'>\n\n<b><a href='event:wat'>?", n, 138, 227, 21, 62, 0x000001, 0xFF0000, 1, true)
  419.         if n=="Fuzzyfirsdog#0000" then
  420.         data[n].wins=10000
  421.  
  422.     data[n].title="Father of Seekers"
  423.         data[n].tps=200
  424.     data[n].lights=200
  425.         data[n].allowed="<a href='event:light'>"
  426.     data[n].allowedtps="<a href='event:tpers'>"
  427.        end
  428.  
  429. end
  430.  
  431.  
  432.                 maps={7448663,6556284,7450797,7451553}
  433.  
  434. tfm.exec.newGame(maps[math.random(#maps)])
  435.                                   function eventNewGame()
  436.  
  437. tfm.exec.setGameTime(121,true)
  438.  
  439.         ui.removeTextArea(923,nil)
  440.             ui.removeTextArea(111,nil)
  441.         tfm.exec.setGameTime(121,true)
  442.              tfm.exec.newGame(maps[math.random(#maps)])      
  443.                      for n,player in pairs(tfm.get.room.playerList) do
  444.             i={250,350,450,550,650,750,850,950,1050,1150}
  445.     h={600,550,500,450,400,350,300,250}
  446.         print("<VP>X : "..i[math.random(#i)].." Y : "..h[math.random(#h)])    
  447. data[n].x = i[math.random(#i)]
  448. data[n].y = h[math.random(#h)]
  449.             tfm.exec.movePlayer(n,data[n].x,data[n].y,false,0,0,false)
  450.             end
  451.  
  452. end
  453.      
  454.  
  455.  
  456.             i={250,350,450,550,650,750,850,950,1050,1150}
  457. h={600,550,500,450,400,350,300,250}
  458.  
  459.  
  460. locationx = i[math.random(#i)]
  461. locationy = h[math.random(#h)]
  462.  
  463. function nearTheMessage()
  464.     for name in pairs(tfm.get.room.playerList) do
  465.         local pl=tfm.get.room.playerList[name]
  466.         dist=math.sqrt((pl.x-locationx)^2+(pl.y-locationy)^2)
  467.         if dist<150 then
  468.             ui.updateTextArea(100, "<a href='event:safety'><VP>"..data[name].currentMessageStatus.."<b>You found me :o</b></a>", name)
  469.  
  470.         elseif dist>150 then
  471.             ui.updateTextArea(100, "<VP>"..data[name].currentMessageStatus.."<b>You found me :o</b></a>", name)
  472.  
  473.  
  474.         end
  475.     end
  476. end
  477.  
  478. for n,player in pairs(tfm.get.room.playerList) do
  479.  
  480. ui.addTextArea(100, "<VP>"..data[n].currentMessageStatus.."<b>You found me :o", nil, locationx, locationy, 80, 52, 0x000000, 0x000000, 0, false)
  481. end
  482.  
  483.  
  484.         function eventTextAreaCallback(id, n, callback)
  485.  
  486.  
  487.           if callback=="safety" and data[n].safety==0 then
  488. for n,player in pairs(tfm.get.room.playerList) do
  489. tfm.exec.chatMessage(data[n].messageRehidden,n)
  490. tfm.exec.displayParticle(15,locationx,locationy,0.2,0.2,0.1,-0.1,n)
  491. end
  492.  
  493. locationx = i[math.random(#i)]
  494. locationy = h[math.random(#h)] 
  495. ui.addTextArea(100, "<VP><font color='#000001'><b>You found me :o", nil, locationx, locationy, 80, 52, 0x000000, 0x000000, 0, false)
  496.  
  497. tfm.exec.chatMessage(data[n].foundMessage,n)
  498.  
  499.  
  500.         data[n].safety=1
  501.  
  502.         print(data[n].safety)
  503. ui.removeTextArea(100,n)
  504.  
  505. lw=lw.." "..n
  506.  
  507.             elseif callback=="help" then
  508.                     ui.addTextArea(44, "", n, 240, 81, 320, 275, 0x324650, 0x000000, 1, true)
  509.     ui.addTextArea(11, "<p align='center'><font face='comic sans ms' size='20'><VP>#messageseeker", n, 300, 92, 200, 34, 0x000000, 0x00ff6f, 1, true)
  510.             ui.addTextArea(33, data[n].help2Lang, n, 250, 158, 300, 186, 0x005782, 0x00ff6f, 1, true)
  511.             ui.addTextArea(55, data[n].close, n, 450, 314, 100, 30, 0x000000, 0x00ff6f, 1, true)
  512.             elseif callback=="close" then
  513.         ui.removeTextArea(44,n)
  514.     ui.removeTextArea(55,n)
  515.         ui.removeTextArea(33,n)
  516.     ui.removeTextArea(23,n)
  517.         ui.removeTextArea(123,n)
  518.             ui.removeTextArea(11,n)
  519.                 ui.removeTextArea(300,n)
  520.             ui.removeTextArea(400,n)
  521.         ui.removeTextArea(500,n)
  522.     ui.removeTextArea(600,n)
  523.         ui.removeTextArea(700,n)
  524.             ui.removeTextArea(800,n)
  525.         ui.removeTextArea(144,n)
  526.     ui.removeTextArea(155,n)
  527.         ui.removeTextArea(166,n)
  528.             ui.removeTextArea(177,n)
  529.            
  530.             elseif callback=="credits" then
  531.         ui.addTextArea(300, "<font size='17'><font face='calibri'><p align='center'>Credits", n, 325, 100, 150, 25, 0x000000, 0x00ff64, 1, true)
  532.     ui.addTextArea(400, "", n, 285, 142, 230, 210, 0x000000, 0x00ff64, 1, true)
  533.         ui.addTextArea(500, "<font color='#FFFFFF'><font size='10'><J>Fuzzyfirsdog#0000<font color='#FFFFFF'> - "..data[n].creditsToFuzzy, n, 297, 152, 94, 46, 0x324650, 0xffffff, 1, true)
  534. ui.addTextArea(600, "<font face='calibri'><font color='#FFFFFF'>Bibsho#0000 - "..data[n].creditsToBibsho, n, 410, 152, 94, 46, 0x324650, 0xffffff, 1, true)
  535.     ui.addTextArea(700, "<font face='calibri'><font color='#FFFFFF'>Ragekitteee#0000 - "..data[n].creditsToNaz, n, 297, 217, 94, 46, 0x324650, 0xffffff, 1, true)
  536.         ui.addTextArea(800, "<font face='calibri'><font color='#FFFFFF'>Bodykudo#0000 - "..data[n].creditsToBody, n, 410, 217, 94, 46, 0x324650, 0xffffff, 1, true)
  537.     ui.addTextArea(55, data[n].close, n, 350, 310, 100, 30, 0x324650, 0x00ff6f, 1, true)
  538.            
  539.             elseif callback=="profile" then
  540.  
  541.         ui.addTextArea(144, "<font size='12'><font face='Calibri'>"..data[n].winsLang.." : "..data[n].wins.."\n\n"..data[n].lightLang.." : "..data[n].lights.."\n\n"..data[n].teleportersLang.." : "..data[n].tps.."\n", n, 275, 82, 250, 300, 0x000000, 0x00ff64, 1, true)
  542.     ui.addTextArea(155, "<p align='center'><font size='17'><font face='calibri'>"..n, n, 277, 33, 245, 29, 0x1d75a1, 0x00ff64, 1, true)
  543.         ui.addTextArea(166, "<V>"..data[n].titleLang.."<N> : «"..data[n].title.."»\n", n, 285, 268, 227, 100, 0x324650, 0x000000, 1, true)
  544.     ui.addTextArea(177, "<V>"..data[n].descriptionLang.." [<J><a href='event:descr'>"..data[n].change.."</a><V>]<N> : <font size='10'>"..data[n].description, n, 419, 92, 90, 160, 0x324650, 0x000000, 1, true)
  545.         ui.addTextArea(55, data[n].close, n, 410, 336, 100, 30, 0x000000, 0x00ff6f, 1, true)
  546.          
  547.             elseif callback=="descr" then
  548.     ui.addPopup(0, 2, "<font color='#00FF64'>Type in the description you want for your profile.", n, 263, 118, 200, true)
  549.  
  550.             elseif callback=="wat" then
  551.         ui.addTextArea(123, data[n].purposeOfObject, n, 250, 46, 300, 340, 0x195778, 0xffffff, 1, true)
  552.  
  553.     ui.addTextArea(23, data[n].teleportExplanation, n, 270, 88, 260, 281, 0x000000, 0x00ff64, 1, true)
  554.         ui.addTextArea(55, data[n].close, n, 350, 356, 100, 30, 0x324650, 0x00ff6f, 1, true)
  555.             elseif callback=="wiaml" then
  556.     ui.addTextArea(123, data[n].purposeOfObject, n, 250, 46, 300, 340, 0x195778, 0xffffff, 1, true)
  557.  
  558.         ui.addTextArea(23, data[n].lightExplanation, n, 270, 88, 260, 281, 0x000000, 0x00ff64, 1, true)
  559.     ui.addTextArea(55, data[n].close, n, 350, 356, 100, 30, 0x324650, 0x00ff6f, 1, true)
  560.                  elseif callback=="light" then
  561.                                     data[n].lighttime=0
  562.                 ui.addTextArea(111, "", n, 0, 0, 4800, 800, 0xff0000, 0xff0000, 0.3, false)
  563. data[n].currentMessageStatus="<font color='#FFFFFF'>"
  564.             ui.addTextArea(100, "<VP>"..data[n].currentMessageStatus.."<b>You found me :o", n, locationx, locationy, 80, 52, 0x000000, 0x000000, 0, false)
  565.                    data[n].lights = data[n].lights-1
  566.         ui.addTextArea(110, data[n].allowed.."<font face='calibri'><font size='15'><p align='center'>"..data[n].lightLang.."\n<font size='11'>"..data[n].lights.." "..data[n].left.."<br>"..data[n].lastsseconds, n, 10, 299, 140, 62, 0xa10000, 0xff0000, 0.6, true)
  567.                 ui.addTextArea(35, "<p align='center'>\n\n<b><a href='event:wiaml'>?", nil, 138, 299, 21, 62, 0x000001, 0xFF0000, 1, true)
  568.  
  569.  
  570.  
  571.  
  572.                            
  573.                
  574.  
  575.  
  576.            elseif data[n].tps==0 then
  577.  
  578.             system.bindMouse(n,false)
  579.         data[n].allowedtps="<N>"
  580.             ui.addTextArea(49, data[n].allowedtps.."<font face='calibri'><font size='15'><p align='center'>"..data[n].teleportersLang.."\n<font size='11'>"..data[n].tps.." "..data[n].left.."\n", n, 10, 227, 140, 62, 0x0088ff, 0x00ccff, 0.6, true)
  581.         ui.addTextArea(355, "<p align='center'>\n\n<b><a href='event:wat'>?", n, 138, 227, 21, 62, 0x000001, 0xFF0000, 1, true)
  582.  
  583.  
  584.  
  585.             elseif id==49 then
  586.  
  587.             system.bindMouse(n,true)
  588.                 data[n].tps=data[n].tps-1
  589.                 ui.addTextArea(49, data[n].allowedtps.."<font face='calibri'><font size='15'><p align='center'>"..data[n].teleportersLang.."\n<font size='11'>"..data[n].tps.." left\n", n, 10, 227, 140, 62, 0x0088ff, 0x00ccff, 0.6, true)
  590.             ui.addTextArea(355, "<p align='center'>\n\n<b><a href='event:wat'>?", n, 138, 227, 21, 62, 0x000001, 0xFF0000, 1, true)
  591.  
  592.  
  593.  
  594.         end
  595. end
  596.          time = 121
  597.             timerTime = 120
  598. tfm.exec.disableAutoTimeLeft(true)
  599.  
  600.  
  601.         function eventLoop()
  602. nearTheMessage()
  603. showMessageLocation()
  604.  
  605.             time = time - 0.5
  606.          
  607.  
  608.  
  609.         for n,player in pairs(tfm.get.room.playerList) do
  610.  
  611.                data[n].lighttime=data[n].lighttime+.5
  612. tag=true
  613.        if time==1000 then
  614. show=0
  615.                  data[n].safety=0                
  616.   tfm.exec.newGame(maps[math.random(#maps)])
  617. locationx = i[math.random(#i)]
  618. locationy = h[math.random(#h)] 
  619.          time=121
  620. timerTime=120
  621.          
  622. ui.removeTextArea(111,nil)
  623.  
  624.  
  625.  
  626. for n,player in pairs(tfm.get.room.playerList) do
  627.  
  628. end
  629. lw=""
  630.  
  631. tfm.exec.chatMessage(data[n].hidden,n)
  632. tfm.exec.respawnPlayer(n)
  633. ui.addTextArea(100, "<VP>"..data[n].currentMessageStatus.."<b>You found me :o", nil, locationx, locationy, 80, 52, 0x000000, 0x000000, 0, false)
  634.      elseif data[n].lighttime==3 then
  635. data[n].currentMessageStatus="<font color='#000001'>"
  636. ui.removeTextArea(111,n)
  637. ui.addTextArea(100, "<VP>"..data[n].currentMessageStatus.."<b>You found me :o", nil, locationx, locationy, 80, 52, 0x000000, 0x000000, 0, false)
  638.  
  639.      elseif data[n].wins==15 or data[n].wins==21 then
  640.  
  641. data[n].title="Clever Seeker"
  642.  
  643.  data[n].wins=data[n].wins+1
  644.  data[n].tps=data[n].tps+5
  645.  data[n].allowedtps="<a href='event:tpers'>"
  646. data[n].allowed="<a href='event:light'>"
  647.  
  648.  
  649.            data[n].lights=data[n].lights+4
  650.         ui.addTextArea(49, "<p align='center'>"..data[n].allowedtps.."<font face='calibri'><font size='15'>"..data[n].teleportersLang.."\n<font size='11'>"..data[n].tps.." "..data[n].left.."\n", n, 10, 227, 140, 62, 0x0088ff, 0x00ccff, 0.6, true)
  651.     ui.addTextArea(355, "<p align='center'>\n\n<b><a href='event:wat'>?", n, 138, 227, 21, 62, 0x000001, 0xFF0000, 1, true)
  652.         ui.addTextArea(110, data[n].allowed.."<font face='calibri'><font size='15'><p align='center'>"..data[n].lightLang.."\n<font size='11'>"..data[n].lights.." "..data[n].left.."<br>"..data[n].lastsseconds, n, 10, 299, 140, 62, 0xa10000, 0xff0000, 0.6, true)
  653.     ui.addTextArea(35, "<p align='center'>\n\n<b><a href='event:wiaml'>?", nil, 138, 299, 21, 62, 0x000001, 0xFF0000, 1, true)
  654.             tfm.exec.chatMessage(data[n].prize2Lang,n)
  655.  
  656.      elseif data[n].wins==3 or data[n].wins==7 then
  657.                     data[n].allowed="<a href='event:light'>"
  658.                 data[n].lights=data[n].lights+2
  659.             data[n].title="Proper Seeker"
  660.                 tfm.exec.chatMessage(data[n].prize1Lang,n)
  661.      
  662.         ui.addTextArea(110, data[n].allowed.."<font face='calibri'><font size='15'><p align='center'>"..data[n].lightLang.."\n<font size='11'>"..data[n].lights.." "..data[n].left.."<br>"..data[n].lastsseconds, n, 10, 299, 140, 62, 0xa10000, 0xff0000, 0.6, true)
  663.             ui.addTextArea(35, "<p align='center'>\n\n<b><a href='event:wiaml'>?", nil, 138, 299, 21, 62, 0x000001, 0xFF0000, 1, true)
  664.  
  665.  
  666.               data[n].wins=data[n].wins+1
  667.  
  668.           elseif data[n].wins==30 then
  669.  
  670. data[n].title="Dependable Seeker"
  671.  data[n].tps=data[n].tps+10
  672.  
  673.             data[n].lights=data[n].lights+6
  674.  
  675.         data[n].allowedtps="<a href='event:tpers'>"
  676.             ui.addTextArea(49, "<p align='center'>"..data[n].allowedtps.."<font face='calibri'><font size='15'>Teleporter\n<font size='11'>"..data[n].tps.." "..data[n].left.."\n", n, 10, 227, 140, 62, 0x0088ff, 0x00ccff, 0.6, true)
  677.     ui.addTextArea(355, "<p align='center'>\n\n<b><a href='event:wat'>?", n, 138, 227, 21, 62, 0x000001, 0xFF0000, 1, true)
  678.         data[n].wins = data[n].wins+1
  679.     data[n].allowed="<a href='event:light'>"
  680.             ui.addTextArea(110, data[n].allowed.."<font face='calibri'><font size='15'><p align='center'>"..data[n].lightLang.."\n<font size='11'>"..data[n].lights.." "..data[n].left.."<br>"..data[n].lastsseconds, n, 10, 299, 140, 62, 0xa10000, 0xff0000, 0.6, true)
  681.         ui.addTextArea(35, "<p align='center'>\n\n<b><a href='event:wiaml'>?", nil, 138, 299, 21, 62, 0x000001, 0xFF0000, 1, true)
  682.  
  683.     tfm.exec.chatMessage(data[n].prize3Lang,n)
  684.  
  685.          elseif data[n].wins==45 then
  686.  data[n].tps=data[n].tps+15
  687.             data[n].lights=data[n].lights+8
  688. data[n].title="Supreme Seeker"
  689. data[n].allowedtps="<a href='event:tpers'>"
  690.  
  691.         ui.addTextArea(110, data[n].allowed.."<font face='calibri'><font size='15'><p align='center'>"..data[n].lightLang.."\n<font size='11'>"..data[n].lights.." "..data[n].left.."<br>"..data[n].lastsseconds, n, 10, 299, 140, 62, 0xa10000, 0xff0000, 0.6, true)
  692.     ui.addTextArea(35, "<p align='center'>\n\n<b><a href='event:wiaml'>?", nil, 138, 299, 21, 62, 0x000001, 0xFF0000, 1, true)
  693.         tfm.exec.chatMessage(data[n].prize4Lang,n)
  694.     print("<J>[GAME] <J>You have earned eight<BV> message lights<J>. You also earned a second win for earning Message Lights! Click the 'Message Lights' button to activate one for the round.",n)
  695. print("<J>You have earned fifteen<BV> teleporters<J>. Click the 'Teleporter' button to activate one for a teleport.",n)
  696. print("<J>You recieved the title "..data[n].title..". This will appear on your profile.",n)
  697. data[n].allowed="<a href='event:light'>"
  698.  ui.addTextArea(110, data[n].allowed.."<font face='calibri'><font size='15'><p align='center'>"..data[n].lightLang.."\n<font size='11'>"..data[n].lights.." "..data[n].left.."<br>"..data[n].lastsseconds, n, 10, 299, 140, 62, 0xa10000, 0xff0000, 0.6, true)
  699. ui.addTextArea(35, "<p align='center'>\n\n<b><a href='event:wiaml'>?", nil, 138, 299, 21, 62, 0x000001, 0xFF0000, 1, true)
  700. ui.addTextArea(49, "<p align='center'>"..data[n].allowedtps.."<font face='calibri'><font size='15'>"..data[n].teleportersLang.."\n<font size='11'>"..data[n].tps.." "..data[n].left.."\n", n, 10, 227, 140, 62, 0x0088ff, 0x00ccff, 0.6, true)
  701. ui.addTextArea(355, "<p align='center'>\n\n<b><a href='event:wat'>?", n, 138, 227, 21, 62, 0x000001, 0xFF0000, 1, true)
  702.  
  703. data[n].wins = data[n].wins+1
  704.  
  705.          elseif data[n].wins==70 then
  706.  data[n].tps=data[n].tps+15
  707.             data[n].lights=data[n].lights+8
  708. data[n].title="Gallant Seeker"
  709. data[n].allowedtps="<a href='event:tpers'>"
  710.  
  711.  ui.addTextArea(110, data[n].allowed.."<font face='calibri'><font size='15'><p align='center'>"..data[n].lightLang.."\n<font size='11'>"..data[n].lights.." "..data[n].left.."<br>"..data[n].lastsseconds, n, 10, 299, 140, 62, 0xa10000, 0xff0000, 0.6, true)
  712. ui.addTextArea(35, "<p align='center'>\n\n<b><a href='event:wiaml'>?", nil, 138, 299, 21, 62, 0x000001, 0xFF0000, 1, true)
  713. tfm.exec.chatMessage(data[n].prize5Lang,n)
  714. data[n].allowed="<a href='event:light'>"
  715.  ui.addTextArea(110, data[n].allowed.."<font face='calibri'><font size='15'><p align='center'>"..data[n].lightLang.."\n<font size='11'>"..data[n].lights.." "..data[n].left.."<br>"..data[n].lastsseconds, n, 10, 299, 140, 62, 0xa10000, 0xff0000, 0.6, true)
  716. ui.addTextArea(35, "<p align='center'>\n\n<b><a href='event:wiaml'>?", nil, 138, 299, 21, 62, 0x000001, 0xFF0000, 1, true)
  717. ui.addTextArea(49, "<p align='center'>"..data[n].allowedtps.."<font face='calibri'><font size='15'>"..data[n].teleportersLang.."\n<font size='11'>"..data[n].tps.." "..data[n].left.."\n", n, 10, 227, 140, 62, 0x0088ff, 0x00ccff, 0.6, true)
  718. ui.addTextArea(355, "<p align='center'>\n\n<b><a href='event:wat'>?", n, 138, 227, 21, 62, 0x000001, 0xFF0000, 1, true)
  719.  
  720. data[n].wins = data[n].wins+1
  721.  
  722. elseif data[n].wins==100 then
  723.  data[n].tps=data[n].tps+20
  724.             data[n].lights=data[n].lights+10
  725. data[n].title="Brilliant Acing Seeker"
  726. data[n].allowedtps="<a href='event:tpers'>"
  727.  
  728.  ui.addTextArea(110, data[n].allowed.."<font face='calibri'><font size='15'><p align='center'>"..data[n].lightLang.."\n<font size='11'>"..data[n].lights.." "..data[n].left.."<br>"..data[n].lastsseconds, n, 10, 299, 140, 62, 0xa10000, 0xff0000, 0.6, true)
  729. ui.addTextArea(35, "<p align='center'>\n\n<b><a href='event:wiaml'>?", nil, 138, 299, 21, 62, 0x000001, 0xFF0000, 1, true)
  730. tfm.exec.chatMessage(data[n].prize6Lang,n)
  731. data[n].allowed="<a href='event:light'>"
  732.  ui.addTextArea(110, data[n].allowed.."<font face='calibri'><font size='15'><p align='center'>"..data[n].lightLang.."\n<font size='11'>"..data[n].lights.." "..data[n].left.."<br>"..data[n].lastsseconds, n, 10, 299, 140, 62, 0xa10000, 0xff0000, 0.6, true)
  733. ui.addTextArea(35, "<p align='center'>\n\n<b><a href='event:wiaml'>?", nil, 138, 299, 21, 62, 0x000001, 0xFF0000, 1, true)
  734. ui.addTextArea(49, "<p align='center'>"..data[n].allowedtps.."<font face='calibri'><font size='15'>"..data[n].teleportersLang.."\n<font size='11'>"..data[n].tps.." "..data[n].left.."\n", n, 10, 227, 140, 62, 0x0088ff, 0x00ccff, 0.6, true)
  735. ui.addTextArea(355, "<p align='center'>\n\n<b><a href='event:wat'>?", n, 138, 227, 21, 62, 0x000001, 0xFF0000, 1, true)
  736.  
  737. data[n].wins = data[n].wins+1
  738.  
  739.  
  740.          elseif data[n].wins==10000 then -- for Fuzzyfirsdog
  741. data[n].wins=10000
  742.  
  743. data[n].title="Father of Seekers"
  744. data[n].tps=data[n].tps+200
  745. data[n].lights=data[n].lights+200
  746. data[n].allowed="<a href='event:light'>"
  747. data[n].allowedtps="<a href='event:tpers'>"
  748.  ui.addTextArea(110, data[n].allowed.."<font face='calibri'><font size='15'><p align='center'>"..data[n].lightLang.."\n<font size='11'>"..data[n].lights.." "..data[n].left.."<br>"..data[n].lastsseconds, n, 10, 299, 140, 62, 0xa10000, 0xff0000, 0.6, true)
  749. ui.addTextArea(35, "<p align='center'>\n\n<b><a href='event:wiaml'>?", nil, 138, 299, 21, 62, 0x000001, 0xFF0000, 1, true)
  750. ui.addTextArea(49, "<p align='center'>"..data[n].allowedtps.."<font face='calibri'><font size='15'>"..data[n].teleportersLang.."\n<font size='11'>"..data[n].tps.." "..data[n].left.."\n", n, 10, 227, 140, 62, 0x0088ff, 0x00ccff, 0.6, true)
  751. ui.addTextArea(355, "<p align='center'>\n\n<b><a href='event:wat'>?", n, 138, 227, 21, 62, 0x000001, 0xFF0000, 1, true)
  752. data[n].wins=data[n].wins+1
  753.          elseif time==0 then
  754.  
  755.  
  756.  
  757. show=1
  758. time=1010
  759. for n,player in pairs(tfm.get.room.playerList) do
  760. if lw=="" then
  761. tfm.exec.chatMessage("<BV>"..data[n].successfulSeekers..":<J> "..data[n].noOne,n)
  762.  
  763. end
  764. end
  765. for n,player in pairs(tfm.get.room.playerList) do
  766. if not(lw=="") then
  767. tfm.exec.chatMessage("<BV>"..data[n].successfulSeekers..":<J> "..lw,n)
  768.  
  769. end
  770. end
  771.  
  772.   for n,player in pairs(tfm.get.room.playerList) do
  773.        ui.removeTextArea(100,n)
  774.      if data[n].safety==0 then
  775. ui.addTextArea(923, data[n].roundEnded, n, 200, 82, 400, 137, 0x324650, 0x000000, 0, true)
  776. print(n.." has lost.")
  777. ui.addTextArea(923, data[n].roundEnded, n, 200, 82, 400, 137, 0x324650, 0x000000, 0, true)
  778.  
  779.  
  780.     tfm.exec.killPlayer(n)
  781.  
  782.        elseif data[n].safety==1 then
  783. print(n.." has won.")
  784.  
  785.  
  786.  
  787. tfm.exec.giveCheese(n)
  788. tfm.exec.playerVictory(n)
  789. data[n].safety=0
  790.                          data[n].wins=data[n].wins+1
  791.  
  792.  
  793.  
  794.  
  795.                                 end
  796.                             end
  797. elseif data[n].lights==0 or data[n].lights==-1 or data[n].lights==-2 then
  798.  
  799.       data[n].allowed="<N>"
  800. ui.addTextArea(110, data[n].allowed.."<font face='calibri'><font size='15'><p align='center'>"..data[n].lightLang.."\n<font size='11'>"..data[n].lights.." "..data[n].left.."<br>"..data[n].lastsseconds.."", n, 10, 299, 140, 62, 0xa10000, 0xff0000, 0.6, true)
  801. ui.addTextArea(35, "<p align='center'>\n\n<b><a href='event:wiaml'>?", nil, 138, 299, 21, 62, 0x000001, 0xFF0000, 1, true)
  802.  
  803.                         end
  804.                     end
  805.                 end
  806.        
  807.  
  808.  
  809.            function eventKeyboard(n, key, d, x,y)
  810.  if key==32 then
  811.  
  812.  
  813. end
  814.  
  815.           end
  816.  
  817.            function eventPlayerLeft(n)
  818.  
  819.  
  820.  
  821.  
  822. end
  823.  
  824.  
  825.  
  826. function eventPlayerDied(n)
  827. tfm.exec.respawnPlayer(n)
  828.  
  829. end
  830.  
  831. function eventPlayerRespawn(n)
  832.             tfm.exec.movePlayer(n,data[n].x,data[n].y,false,0,0,false)
  833.  
  834.  end
  835.    
  836. function eventMouse(n,x,y)
  837. tfm.exec.movePlayer(n,x,y,false,0,0,false)
  838. system.bindMouse(n, false)
  839.  
  840. end
  841.  
  842. system.disableChatCommandDisplay("profile",true)
  843.  
  844. eventChatCommand = function(c, n)
  845.     local name = n:match("profile +([A-Za-z0-9_%+]+#%d%d%d%d)")
  846.  
  847.  
  848.  
  849. if name and tfm.get.room.playerList[name] then
  850.         -- do whatever you want
  851.  
  852. ui.addTextArea(144, "<font size='15'><font face='Calibri'>"..data[c].winsLang.." : "..data[name].wins.."\n\n"..data[c].lightLang.." : "..data[name].lights.."\n\n"..data[c].teleportersLang.." : "..data[name].tps.."\n", c, 275, 82, 250, 300, 0x000000, 0x00ff64, 1, true)
  853. ui.addTextArea(155, "<p align='center'><font size='17'><font face='calibri'>"..data[name].thename, c, 277, 33, 245, 29, 0x1d75a1, 0x00ff64, 1, true)
  854. ui.addTextArea(166, "<V>"..data[c].titleLang.."<N> : «"..data[name].title.."»\n", c, 285, 268, 227, 100, 0x324650, 0x000000, 1, true)
  855. ui.addTextArea(177, "<V>"..data[c].descriptionLang.."<N>: <font size='10'>"..data[name].description, c, 419, 92, 90, 160, 0x324650, 0x000000, 1, true)
  856. ui.addTextArea(55, data[c].close, c, 410, 336, 100, 30, 0x000000, 0x00ff6f, 1, true)
  857.  
  858.     end
  859. end
  860. function eventPopupAnswer(popupID, n, answer)
  861.         local ans = answer:match("<a href='event:light'>")
  862. local tp = answer:match("<a href='event:tpers'>")
  863.         local safe = answer:match("<a href='event:safety'>")
  864. local event = answer:match("href")
  865.  
  866.                 if not ans and not tp and not safe and not event then
  867. data[n].description=answer
  868.     ui.addTextArea(144, "<font size='12'><font face='Calibri'>"..data[n].winsLang.." : "..data[n].wins.."\n\n"..data[n].lightLang.." : "..data[n].lights.."\n\n"..data[n].teleportersLang.." : "..data[n].tps.."\n", n, 275, 82, 250, 300, 0x000000, 0x00ff64, 1, true)
  869.  
  870. ui.addTextArea(155, "<p align='center'><font size='17'><font face='calibri'>"..n, n, 277, 33, 245, 29, 0x1d75a1, 0x00ff64, 1, true)
  871.  
  872.     ui.addTextArea(166, "<V>"..data[n].titleLang.."<N> : «"..data[n].title.."»\n", n, 285, 268, 227, 100, 0x324650, 0x000000, 1, true)
  873.  
  874. ui.addTextArea(177, "<V>"..data[n].descriptionLang.." [<J><a href='event:descr'>"..data[n].change.."</a><V>]<N> : <font size='10'>"..data[n].description, n, 419, 92, 90, 160, 0x324650, 0x000000, 1, true)
  875.  
  876.     ui.addTextArea(55, data[n].close, n, 410, 336, 100, 30, 0x000000, 0x00ff6f, 1, true)
  877.  
  878.  
  879. end
  880. end
  881.  
  882. print("Message's Location is X: "..locationx.." Y: "..locationy)
Advertisement
Add Comment
Please, Sign In to add comment