Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --#messageseeker by Fuzzyfirsdog 5/26/18
- show = 0
- function showMessageLocation()
- if show==1 then
- tfm.exec.displayParticle(0,locationx,locationy,0.5,0.5,0.5,0.5,n)
- tfm.exec.displayParticle(0,locationx,locationy,-0.5,-0.5,-0.5,-0.5,n)
- tfm.exec.displayParticle(2,locationx,locationy,3,-3,3,-3,n)
- tfm.exec.displayParticle(2,locationx,locationy,-3,3,-3,3,n)
- tfm.exec.displayParticle(0,locationx,locationy,-0.5,0.5,-0.5,0.5,n)
- tfm.exec.displayParticle(0,locationx,locationy,0.5,-0.5,0.5,-0.5,n)
- tfm.exec.displayParticle(2,locationx,locationy,1,-3,1,-3,n)
- tfm.exec.displayParticle(2,locationx,locationy,1,1,3,1,n)
- tfm.exec.displayParticle(2,locationx,locationy,-1,3,-1,3,n)
- tfm.exec.displayParticle(2,locationx,locationy,-1,-1,-3,-1,n)
- tfm.exec.displayParticle(5,locationx,locationy,0.5,0.5,0.5,0.5,n)
- tfm.exec.displayParticle(5,locationx,locationy,-0.5,-0.5,-0.5,-0.5,n)
- tfm.exec.displayParticle(5,locationx,locationy,-0.5,0.5,-0.5,0.5,n)
- tfm.exec.displayParticle(5,locationx,locationy,0.5,-0.5,0.5,-0.5,n)
- end
- end
- tfm.exec.disableAutoTimeLeft(true)
- --FR translations
- noOneFR="Personne"
- hiddenFR = "<J>Le message est à nouveau caché! Trouve le avant que les 2 minutes ne s’écoulent."
- messageRehiddenFR = "<J>Le message a été de nouveau caché parce que personne ne l’a trouvé!"
- successfulSeekersFR = "Demandeur réputé"
- nearTheMessageFR = "<VP><font size='20'>Tu es : à côté du message"
- notNearTheMessageFR = "<R><font size='20'>Tu n’es : pas à côté du message"
- leftFR = "gauche"
- lastRoundWinnersFR = "Dernière partie des gagnants"
- timeLeftFR = "Temps restant"
- noTimeLeftFR = "Pas de temps"
- creditsToFuzzyFR = "Codage du mini-jeu"
- creditsToBibshoFR = "Message des idées éclairées"
- creditsToBodyFR = "Minuteur et les idées de message"
- creditsToNazFR = "Traduction FR"
- descriptionFR = "Description"
- lasts3secondsFR = "Dernières 3 secondes"
- changeFR = "changer"
- titleFR = "Titre"
- helpFR = "<font size='15'><font face='Calibri'><a href='event:help'><p align='center'>Aide"
- creditsFR = "<a href='event:credits'><p align='center'><font face='calibri'><font size='15'>Credits"
- profileFR = "<font size='15'><font face='Calibri'><a href='event:profile'><p align='center'>Profile"
- 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 !"
- purposeOfObjectFR = "<b><p align='center'><font face='calibri'><font size='20'>But de l’objet"
- 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."
- 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."
- closeFR = "<p align='center'><font size='18'><font face='Calibri'><a href='event:close'><VP><b>FERMER"
- 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"
- winsFR = "Victoires"
- lightsFR = "Eclairages des messages"
- teleportersFR = "Téléporteurs"
- --EN translations
- noOneEN = "No one"
- hiddenEN = "<J>The message has been hidden again! Go find it before the 2 minutes run out."
- foundMessageEN = "<J>[GAME] <CH>Good job on finding the message, you are now safe for this round! You've earned a point."
- messageRehiddenEN = "<J>The message has been re-hidden because somebody has found it!"
- successfulSeekersEN = "Successful Seekers"
- nearTheMessageEN = "<VP><font size='20'>You are: near the message"
- notNearTheMessageEN = "<R><font size='20'>You are: not near the message"
- leftEN = "left"
- lastRoundWinnersEN = "Last round winners"
- timeLeftEN = "Time left"
- noTimeLeftEN = "No time left"
- creditsToFuzzyEN = "Coding of the minigame"
- creditsToBibshoEN = "Message light ideas"
- creditsToBodyEN = "Timer and message ideas"
- creditsToNazEN = "FR Translations"
- descriptionEN = "Description"
- lasts3secondsEN = "Lasts 3 seconds"
- changeEN = "change"
- titleEN = "Title"
- helpEN = "<font size='15'><font face='Calibri'><a href='event:help'><p align='center'>Help"
- creditsEN = "<a href='event:credits'><p align='center'><font face='calibri'><font size='15'>Credits"
- profileEN = "<font size='15'><font face='Calibri'><a href='event:profile'><p align='center'>Profile"
- 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!"
- purposeOfObjectEN = "<b><p align='center'><font face='calibri'><font size='20'>Purpose of Object"
- 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."
- 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."
- closeEN = "<p align='center'><font size='18'><font face='Calibri'><a href='event:close'><VP><b>CLOSE"
- roundEndedEN = "<font size='30'><font face='calibri'><p align='center'>\n<font color='#00FFF9'> Round has ended.. new one starting in 10 seconds"
- winsEN = "Wins"
- lightsEN = "Message Lights"
- teleportersEN = "Teleporters"
- lw=""
- tfm.exec.disableAutoShaman(true)
- --help
- z=""
- tfm.exec.disableAfkDeath(true)
- tfm.exec.disableAutoNewGame(true)
- tfm.exec.setGameTime(1,true)
- data={}
- for n,player in pairs(tfm.get.room.playerList) do
- 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}
- --EN prizes
- 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
- 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
- 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
- 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
- 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
- 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
- --FR Prizes
- 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
- 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
- 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
- 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
- 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
- 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
- end
- function defaultLang()
- for n,player in pairs(tfm.get.room.playerList) do
- data[n].noOne = noOneEN
- data[n].hidden = hiddenEN
- data[n].foundMessage = foundMessageEN
- data[n].messageRehidden = messageRehiddenEN
- data[n].successfulSeekers = successfulSeekersEN
- data[n].nearTheMessage = nearTheMessageEN
- data[n].notNearTheMessage = notNearTheMessageEN
- data[n].left = leftEN
- data[n].prize1Lang = prize1EN
- data[n].prize2Lang = prize2EN
- data[n].prize3Lang = prize3EN
- data[n].prize4Lang = prize4EN
- data[n].prize5Lang = prize5EN
- data[n].prize6Lang = prize6EN
- data[n].lastRoundWinners = lastRoundWinnersEN
- data[n].timeLeft = timeLeftEN
- data[n].noTimeLeft = noTimeLeftEN
- data[n].lastsseconds = lasts3secondsEN
- data[n].creditsToFuzzy = creditsToFuzzyEN
- data[n].creditsToNaz = creditsToNazEN
- data[n].creditsToBody = creditsToBodyEN
- data[n].creditsToBibsho = creditsToBibshoEN
- data[n].descriptionLang = descriptionEN
- data[n].change = changeEN
- data[n].titleLang = titleEN
- print("<VP>an en player")
- data[n].roundEnded = roundEndedFR
- data[n].lightLang = lightsEN
- data[n].teleportersLang = teleportersEN
- data[n].winsLang = winsEN
- data[n].roundEnded = roundEndedEN
- data[n].close = closeEN
- data[n].helpLang = helpEN
- data[n].creditsLang = creditsEN
- data[n].profileLang = profileEN
- data[n].help2Lang = help2EN
- data[n].teleportExplanation = teleporterExplanationEN
- data[n].lightExplanation = lightExplanationEN
- data[n].purposeOfObject = purposeOfObjectEN
- ui.addTextArea(15, "<VP>"..data[n].helpLang.." | "..data[n].creditsLang.." | "..data[n].profileLang, n, -50, 30, 264, 26, 0x00aaff, 0x00eeff, 0, true)
- end
- end
- function findFR()
- for n,player in pairs(tfm.get.room.playerList) do
- if tfm.get.room.playerList[n].community == "fr" then
- data[n].noOne = noOneFR
- data[n].hidden = hiddenFR
- data[n].foundMessage = foundMessageFR
- data[n].messageRehidden = messageRehiddenFR
- data[n].successfulSeekers = successfulSeekersFR
- data[n].nearTheMessage = nearTheMessageFR
- data[n].notNearTheMessage = notNearTheMessageFR
- data[n].left = leftFR
- data[n].prize1Lang = prize1FR
- data[n].prize2Lang = prize2FR
- data[n].prize3Lang = prize3FR
- data[n].prize4Lang = prize4FR
- data[n].prize5Lang = prize5FR
- data[n].prize6Lang = prize6FR
- data[n].lastRoundWinners = lastRoundWinnersFR
- data[n].timeLeft = timeLeftFR
- data[n].noTimeLeft = noTimeLeftFR
- data[n].lastsseconds = lasts3secondsFR
- data[n].titleLang = titleFR
- data[n].close = closeFR
- data[n].roundEnded = roundEndedFR
- data[n].lightLang = lightsFR
- data[n].teleportersLang = teleportersFR
- data[n].winsLang = winsFR
- data[n].helpLang = helpFR
- data[n].creditsLang = creditsFR
- data[n].profileLang = profileFR
- data[n].help2Lang = help2FR
- data[n].teleportExplanation = teleporterExplanationFR
- data[n].lightExplanation = lightExplanationFR
- data[n].purposeOfObject = purposeOfObjectFR
- data[n].descriptionLang = descriptionFR
- data[n].change = changeFR
- ui.addTextArea(15, "<VP>"..data[n].helpLang.." | "..data[n].creditsLang.." | "..data[n].profileLang, n, -50, 30, 264, 26, 0x00aaff, 0x00eeff, 0, true)
- data[n].creditsToFuzzy = creditsToFuzzyFR
- data[n].creditsToNaz = creditsToNazFR
- data[n].creditsToBody = creditsToBodyFR
- data[n].creditsToBibsho = creditsToBibshoFR
- end
- end
- end
- function findEn()
- for n,player in pairs(tfm.get.room.playerList) do
- if tfm.get.room.playerList[n].community == "e2" or tfm.get.room.playerList[n].community == "en" then
- data[n].noOne = noOneEN
- data[n].hidden = hiddenEN
- data[n].foundMessage = foundMessageEN
- data[n].messageRehidden = messageRehiddenEN
- data[n].successfulSeekers = successfulSeekersEN
- data[n].nearTheMessage = nearTheMessageEN
- data[n].notNearTheMessage = notNearTheMessageEN
- data[n].left = leftEN
- data[n].prize1Lang = prize1EN
- data[n].prize2Lang = prize2EN
- data[n].prize3Lang = prize3EN
- data[n].prize4Lang = prize4EN
- data[n].prize5Lang = prize5EN
- data[n].prize6Lang = prize6EN
- data[n].lastRoundWinners = lastRoundWinnersEN
- data[n].timeLeft = timeLeftEN
- data[n].noTimeLeft = noTimeLeftEN
- data[n].lastsseconds = lasts3secondsEN
- data[n].creditsToFuzzy = creditsToFuzzyEN
- data[n].creditsToNaz = creditsToNazEN
- data[n].creditsToBody = creditsToBodyEN
- data[n].creditsToBibsho = creditsToBibshoEN
- data[n].descriptionLang = descriptionEN
- data[n].change = changeEN
- data[n].titleLang = titleEN
- print("<VP>an en player")
- data[n].roundEnded = roundEndedFR
- data[n].lightLang = lightsEN
- data[n].teleportersLang = teleportersEN
- data[n].winsLang = winsEN
- data[n].roundEnded = roundEndedEN
- data[n].close = closeEN
- data[n].helpLang = helpEN
- data[n].creditsLang = creditsEN
- data[n].profileLang = profileEN
- data[n].help2Lang = help2EN
- data[n].teleportExplanation = teleporterExplanationEN
- data[n].lightExplanation = lightExplanationEN
- data[n].purposeOfObject = purposeOfObjectEN
- ui.addTextArea(15, "<VP>"..data[n].helpLang.." | "..data[n].creditsLang.." | "..data[n].profileLang, n, -50, 30, 264, 26, 0x00aaff, 0x00eeff, 0, true)
- end
- end
- end
- for n,player in pairs(tfm.get.room.playerList) do
- defaultLang()
- findFR()
- findEn()
- for n,player in pairs(tfm.get.room.playerList) do
- end
- z=z.." | <a href='event:pf'>"..n.."</a> |"
- ui.addTextArea(44, "", n, 240, 81, 320, 275, 0x324650, 0x000000, 1, true)
- ui.addTextArea(11, "<p align='center'><font face='comic sans ms' size='20'><VP>#messageseeker", n, 300, 92, 200, 34, 0x000000, 0x00ff6f, 1, true)
- ui.addTextArea(33, data[n].help2Lang, n, 250, 158, 300, 186, 0x005782, 0x00ff6f, 1, true)
- ui.addTextArea(55, data[n].close, n, 450, 314, 100, 30, 0x000000, 0x00ff6f, 1, true)
- tfm.exec.bindKeyboard(n, 32, true, true)
- 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)
- ui.addTextArea(35, "<p align='center'>\n\n<b><a href='event:wiaml'>?", n, 138, 299, 21, 62, 0x000001, 0xFF0000, 1, true)
- 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)
- ui.addTextArea(355, "<p align='center'>\n\n<b><a href='event:wat'>?", n, 138, 227, 21, 62, 0x000001, 0xFF0000, 1, true)
- end
- f=999999
- function eventNewPlayer(n)
- if not data[n] then
- 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}
- end
- defaultLang()
- findFR()
- findEn()
- tfm.exec.respawnPlayer(n)
- data[n].x = i[math.random(#i)]
- data[n].y = h[math.random(#h)]
- tfm.exec.movePlayer(n,data[n].x,data[n].y,false,0,0,false)
- ui.addTextArea(44, "", n, 240, 81, 320, 275, 0x324650, 0x000000, 1, true)
- ui.addTextArea(11, "<p align='center'><font face='comic sans ms' size='20'><VP>#messageseeker", n, 300, 92, 200, 34, 0x000000, 0x00ff6f, 1, true)
- ui.addTextArea(33, data[n].help2Lang, n, 250, 158, 300, 186, 0x005782, 0x00ff6f, 1, true)
- ui.addTextArea(55, data[n].close, n, 450, 314, 100, 30, 0x000000, 0x00ff6f, 1, true)
- ui.addTextArea(15, "<VP>"..data[n].helpLang.." | "..data[n].creditsLang.." | "..data[n].profileLang, n, -50, 30, 264, 26, 0x00aaff, 0x00eeff, 0, true)
- f=f-1
- print(data[n].safety)
- tfm.exec.bindKeyboard(n, 32, true, true)
- 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)
- 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)
- ui.addTextArea(35, "<p align='center'>\n\n<b><a href='event:wiaml'>?", n, 138, 299, 21, 62, 0x000001, 0xFF0000, 1, true)
- ui.addTextArea(355, "<p align='center'>\n\n<b><a href='event:wat'>?", n, 138, 227, 21, 62, 0x000001, 0xFF0000, 1, true)
- if n=="Fuzzyfirsdog#0000" then
- data[n].wins=10000
- data[n].title="Father of Seekers"
- data[n].tps=200
- data[n].lights=200
- data[n].allowed="<a href='event:light'>"
- data[n].allowedtps="<a href='event:tpers'>"
- end
- end
- maps={7448663,6556284,7450797,7451553}
- tfm.exec.newGame(maps[math.random(#maps)])
- function eventNewGame()
- tfm.exec.setGameTime(121,true)
- ui.removeTextArea(923,nil)
- ui.removeTextArea(111,nil)
- tfm.exec.setGameTime(121,true)
- tfm.exec.newGame(maps[math.random(#maps)])
- for n,player in pairs(tfm.get.room.playerList) do
- i={250,350,450,550,650,750,850,950,1050,1150}
- h={600,550,500,450,400,350,300,250}
- print("<VP>X : "..i[math.random(#i)].." Y : "..h[math.random(#h)])
- data[n].x = i[math.random(#i)]
- data[n].y = h[math.random(#h)]
- tfm.exec.movePlayer(n,data[n].x,data[n].y,false,0,0,false)
- end
- end
- i={250,350,450,550,650,750,850,950,1050,1150}
- h={600,550,500,450,400,350,300,250}
- locationx = i[math.random(#i)]
- locationy = h[math.random(#h)]
- function nearTheMessage()
- for name in pairs(tfm.get.room.playerList) do
- local pl=tfm.get.room.playerList[name]
- dist=math.sqrt((pl.x-locationx)^2+(pl.y-locationy)^2)
- if dist<150 then
- ui.updateTextArea(100, "<a href='event:safety'><VP>"..data[name].currentMessageStatus.."<b>You found me :o</b></a>", name)
- elseif dist>150 then
- ui.updateTextArea(100, "<VP>"..data[name].currentMessageStatus.."<b>You found me :o</b></a>", name)
- end
- end
- end
- for n,player in pairs(tfm.get.room.playerList) do
- ui.addTextArea(100, "<VP>"..data[n].currentMessageStatus.."<b>You found me :o", nil, locationx, locationy, 80, 52, 0x000000, 0x000000, 0, false)
- end
- function eventTextAreaCallback(id, n, callback)
- if callback=="safety" and data[n].safety==0 then
- for n,player in pairs(tfm.get.room.playerList) do
- tfm.exec.chatMessage(data[n].messageRehidden,n)
- tfm.exec.displayParticle(15,locationx,locationy,0.2,0.2,0.1,-0.1,n)
- end
- locationx = i[math.random(#i)]
- locationy = h[math.random(#h)]
- ui.addTextArea(100, "<VP><font color='#000001'><b>You found me :o", nil, locationx, locationy, 80, 52, 0x000000, 0x000000, 0, false)
- tfm.exec.chatMessage(data[n].foundMessage,n)
- data[n].safety=1
- print(data[n].safety)
- ui.removeTextArea(100,n)
- lw=lw.." "..n
- elseif callback=="help" then
- ui.addTextArea(44, "", n, 240, 81, 320, 275, 0x324650, 0x000000, 1, true)
- ui.addTextArea(11, "<p align='center'><font face='comic sans ms' size='20'><VP>#messageseeker", n, 300, 92, 200, 34, 0x000000, 0x00ff6f, 1, true)
- ui.addTextArea(33, data[n].help2Lang, n, 250, 158, 300, 186, 0x005782, 0x00ff6f, 1, true)
- ui.addTextArea(55, data[n].close, n, 450, 314, 100, 30, 0x000000, 0x00ff6f, 1, true)
- elseif callback=="close" then
- ui.removeTextArea(44,n)
- ui.removeTextArea(55,n)
- ui.removeTextArea(33,n)
- ui.removeTextArea(23,n)
- ui.removeTextArea(123,n)
- ui.removeTextArea(11,n)
- ui.removeTextArea(300,n)
- ui.removeTextArea(400,n)
- ui.removeTextArea(500,n)
- ui.removeTextArea(600,n)
- ui.removeTextArea(700,n)
- ui.removeTextArea(800,n)
- ui.removeTextArea(144,n)
- ui.removeTextArea(155,n)
- ui.removeTextArea(166,n)
- ui.removeTextArea(177,n)
- elseif callback=="credits" then
- ui.addTextArea(300, "<font size='17'><font face='calibri'><p align='center'>Credits", n, 325, 100, 150, 25, 0x000000, 0x00ff64, 1, true)
- ui.addTextArea(400, "", n, 285, 142, 230, 210, 0x000000, 0x00ff64, 1, true)
- 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)
- ui.addTextArea(600, "<font face='calibri'><font color='#FFFFFF'>Bibsho#0000 - "..data[n].creditsToBibsho, n, 410, 152, 94, 46, 0x324650, 0xffffff, 1, true)
- ui.addTextArea(700, "<font face='calibri'><font color='#FFFFFF'>Ragekitteee#0000 - "..data[n].creditsToNaz, n, 297, 217, 94, 46, 0x324650, 0xffffff, 1, true)
- ui.addTextArea(800, "<font face='calibri'><font color='#FFFFFF'>Bodykudo#0000 - "..data[n].creditsToBody, n, 410, 217, 94, 46, 0x324650, 0xffffff, 1, true)
- ui.addTextArea(55, data[n].close, n, 350, 310, 100, 30, 0x324650, 0x00ff6f, 1, true)
- elseif callback=="profile" then
- 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)
- ui.addTextArea(155, "<p align='center'><font size='17'><font face='calibri'>"..n, n, 277, 33, 245, 29, 0x1d75a1, 0x00ff64, 1, true)
- ui.addTextArea(166, "<V>"..data[n].titleLang.."<N> : «"..data[n].title.."»\n", n, 285, 268, 227, 100, 0x324650, 0x000000, 1, true)
- 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)
- ui.addTextArea(55, data[n].close, n, 410, 336, 100, 30, 0x000000, 0x00ff6f, 1, true)
- elseif callback=="descr" then
- ui.addPopup(0, 2, "<font color='#00FF64'>Type in the description you want for your profile.", n, 263, 118, 200, true)
- elseif callback=="wat" then
- ui.addTextArea(123, data[n].purposeOfObject, n, 250, 46, 300, 340, 0x195778, 0xffffff, 1, true)
- ui.addTextArea(23, data[n].teleportExplanation, n, 270, 88, 260, 281, 0x000000, 0x00ff64, 1, true)
- ui.addTextArea(55, data[n].close, n, 350, 356, 100, 30, 0x324650, 0x00ff6f, 1, true)
- elseif callback=="wiaml" then
- ui.addTextArea(123, data[n].purposeOfObject, n, 250, 46, 300, 340, 0x195778, 0xffffff, 1, true)
- ui.addTextArea(23, data[n].lightExplanation, n, 270, 88, 260, 281, 0x000000, 0x00ff64, 1, true)
- ui.addTextArea(55, data[n].close, n, 350, 356, 100, 30, 0x324650, 0x00ff6f, 1, true)
- elseif callback=="light" then
- data[n].lighttime=0
- ui.addTextArea(111, "", n, 0, 0, 4800, 800, 0xff0000, 0xff0000, 0.3, false)
- data[n].currentMessageStatus="<font color='#FFFFFF'>"
- ui.addTextArea(100, "<VP>"..data[n].currentMessageStatus.."<b>You found me :o", n, locationx, locationy, 80, 52, 0x000000, 0x000000, 0, false)
- data[n].lights = data[n].lights-1
- 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)
- ui.addTextArea(35, "<p align='center'>\n\n<b><a href='event:wiaml'>?", nil, 138, 299, 21, 62, 0x000001, 0xFF0000, 1, true)
- elseif data[n].tps==0 then
- system.bindMouse(n,false)
- data[n].allowedtps="<N>"
- 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)
- ui.addTextArea(355, "<p align='center'>\n\n<b><a href='event:wat'>?", n, 138, 227, 21, 62, 0x000001, 0xFF0000, 1, true)
- elseif id==49 then
- system.bindMouse(n,true)
- data[n].tps=data[n].tps-1
- 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)
- ui.addTextArea(355, "<p align='center'>\n\n<b><a href='event:wat'>?", n, 138, 227, 21, 62, 0x000001, 0xFF0000, 1, true)
- end
- end
- time = 121
- timerTime = 120
- tfm.exec.disableAutoTimeLeft(true)
- function eventLoop()
- nearTheMessage()
- showMessageLocation()
- time = time - 0.5
- for n,player in pairs(tfm.get.room.playerList) do
- data[n].lighttime=data[n].lighttime+.5
- tag=true
- if time==1000 then
- show=0
- data[n].safety=0
- tfm.exec.newGame(maps[math.random(#maps)])
- locationx = i[math.random(#i)]
- locationy = h[math.random(#h)]
- time=121
- timerTime=120
- ui.removeTextArea(111,nil)
- for n,player in pairs(tfm.get.room.playerList) do
- end
- lw=""
- tfm.exec.chatMessage(data[n].hidden,n)
- tfm.exec.respawnPlayer(n)
- ui.addTextArea(100, "<VP>"..data[n].currentMessageStatus.."<b>You found me :o", nil, locationx, locationy, 80, 52, 0x000000, 0x000000, 0, false)
- elseif data[n].lighttime==3 then
- data[n].currentMessageStatus="<font color='#000001'>"
- ui.removeTextArea(111,n)
- ui.addTextArea(100, "<VP>"..data[n].currentMessageStatus.."<b>You found me :o", nil, locationx, locationy, 80, 52, 0x000000, 0x000000, 0, false)
- elseif data[n].wins==15 or data[n].wins==21 then
- data[n].title="Clever Seeker"
- data[n].wins=data[n].wins+1
- data[n].tps=data[n].tps+5
- data[n].allowedtps="<a href='event:tpers'>"
- data[n].allowed="<a href='event:light'>"
- data[n].lights=data[n].lights+4
- 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)
- ui.addTextArea(355, "<p align='center'>\n\n<b><a href='event:wat'>?", n, 138, 227, 21, 62, 0x000001, 0xFF0000, 1, true)
- 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)
- ui.addTextArea(35, "<p align='center'>\n\n<b><a href='event:wiaml'>?", nil, 138, 299, 21, 62, 0x000001, 0xFF0000, 1, true)
- tfm.exec.chatMessage(data[n].prize2Lang,n)
- elseif data[n].wins==3 or data[n].wins==7 then
- data[n].allowed="<a href='event:light'>"
- data[n].lights=data[n].lights+2
- data[n].title="Proper Seeker"
- tfm.exec.chatMessage(data[n].prize1Lang,n)
- 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)
- ui.addTextArea(35, "<p align='center'>\n\n<b><a href='event:wiaml'>?", nil, 138, 299, 21, 62, 0x000001, 0xFF0000, 1, true)
- data[n].wins=data[n].wins+1
- elseif data[n].wins==30 then
- data[n].title="Dependable Seeker"
- data[n].tps=data[n].tps+10
- data[n].lights=data[n].lights+6
- data[n].allowedtps="<a href='event:tpers'>"
- 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)
- ui.addTextArea(355, "<p align='center'>\n\n<b><a href='event:wat'>?", n, 138, 227, 21, 62, 0x000001, 0xFF0000, 1, true)
- data[n].wins = data[n].wins+1
- data[n].allowed="<a href='event:light'>"
- 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)
- ui.addTextArea(35, "<p align='center'>\n\n<b><a href='event:wiaml'>?", nil, 138, 299, 21, 62, 0x000001, 0xFF0000, 1, true)
- tfm.exec.chatMessage(data[n].prize3Lang,n)
- elseif data[n].wins==45 then
- data[n].tps=data[n].tps+15
- data[n].lights=data[n].lights+8
- data[n].title="Supreme Seeker"
- data[n].allowedtps="<a href='event:tpers'>"
- 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)
- ui.addTextArea(35, "<p align='center'>\n\n<b><a href='event:wiaml'>?", nil, 138, 299, 21, 62, 0x000001, 0xFF0000, 1, true)
- tfm.exec.chatMessage(data[n].prize4Lang,n)
- 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)
- print("<J>You have earned fifteen<BV> teleporters<J>. Click the 'Teleporter' button to activate one for a teleport.",n)
- print("<J>You recieved the title "..data[n].title..". This will appear on your profile.",n)
- data[n].allowed="<a href='event:light'>"
- 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)
- ui.addTextArea(35, "<p align='center'>\n\n<b><a href='event:wiaml'>?", nil, 138, 299, 21, 62, 0x000001, 0xFF0000, 1, true)
- 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)
- ui.addTextArea(355, "<p align='center'>\n\n<b><a href='event:wat'>?", n, 138, 227, 21, 62, 0x000001, 0xFF0000, 1, true)
- data[n].wins = data[n].wins+1
- elseif data[n].wins==70 then
- data[n].tps=data[n].tps+15
- data[n].lights=data[n].lights+8
- data[n].title="Gallant Seeker"
- data[n].allowedtps="<a href='event:tpers'>"
- 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)
- ui.addTextArea(35, "<p align='center'>\n\n<b><a href='event:wiaml'>?", nil, 138, 299, 21, 62, 0x000001, 0xFF0000, 1, true)
- tfm.exec.chatMessage(data[n].prize5Lang,n)
- data[n].allowed="<a href='event:light'>"
- 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)
- ui.addTextArea(35, "<p align='center'>\n\n<b><a href='event:wiaml'>?", nil, 138, 299, 21, 62, 0x000001, 0xFF0000, 1, true)
- 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)
- ui.addTextArea(355, "<p align='center'>\n\n<b><a href='event:wat'>?", n, 138, 227, 21, 62, 0x000001, 0xFF0000, 1, true)
- data[n].wins = data[n].wins+1
- elseif data[n].wins==100 then
- data[n].tps=data[n].tps+20
- data[n].lights=data[n].lights+10
- data[n].title="Brilliant Acing Seeker"
- data[n].allowedtps="<a href='event:tpers'>"
- 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)
- ui.addTextArea(35, "<p align='center'>\n\n<b><a href='event:wiaml'>?", nil, 138, 299, 21, 62, 0x000001, 0xFF0000, 1, true)
- tfm.exec.chatMessage(data[n].prize6Lang,n)
- data[n].allowed="<a href='event:light'>"
- 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)
- ui.addTextArea(35, "<p align='center'>\n\n<b><a href='event:wiaml'>?", nil, 138, 299, 21, 62, 0x000001, 0xFF0000, 1, true)
- 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)
- ui.addTextArea(355, "<p align='center'>\n\n<b><a href='event:wat'>?", n, 138, 227, 21, 62, 0x000001, 0xFF0000, 1, true)
- data[n].wins = data[n].wins+1
- elseif data[n].wins==10000 then -- for Fuzzyfirsdog
- data[n].wins=10000
- data[n].title="Father of Seekers"
- data[n].tps=data[n].tps+200
- data[n].lights=data[n].lights+200
- data[n].allowed="<a href='event:light'>"
- data[n].allowedtps="<a href='event:tpers'>"
- 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)
- ui.addTextArea(35, "<p align='center'>\n\n<b><a href='event:wiaml'>?", nil, 138, 299, 21, 62, 0x000001, 0xFF0000, 1, true)
- 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)
- ui.addTextArea(355, "<p align='center'>\n\n<b><a href='event:wat'>?", n, 138, 227, 21, 62, 0x000001, 0xFF0000, 1, true)
- data[n].wins=data[n].wins+1
- elseif time==0 then
- show=1
- time=1010
- for n,player in pairs(tfm.get.room.playerList) do
- if lw=="" then
- tfm.exec.chatMessage("<BV>"..data[n].successfulSeekers..":<J> "..data[n].noOne,n)
- end
- end
- for n,player in pairs(tfm.get.room.playerList) do
- if not(lw=="") then
- tfm.exec.chatMessage("<BV>"..data[n].successfulSeekers..":<J> "..lw,n)
- end
- end
- for n,player in pairs(tfm.get.room.playerList) do
- ui.removeTextArea(100,n)
- if data[n].safety==0 then
- ui.addTextArea(923, data[n].roundEnded, n, 200, 82, 400, 137, 0x324650, 0x000000, 0, true)
- print(n.." has lost.")
- ui.addTextArea(923, data[n].roundEnded, n, 200, 82, 400, 137, 0x324650, 0x000000, 0, true)
- tfm.exec.killPlayer(n)
- elseif data[n].safety==1 then
- print(n.." has won.")
- tfm.exec.giveCheese(n)
- tfm.exec.playerVictory(n)
- data[n].safety=0
- data[n].wins=data[n].wins+1
- end
- end
- elseif data[n].lights==0 or data[n].lights==-1 or data[n].lights==-2 then
- data[n].allowed="<N>"
- 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)
- ui.addTextArea(35, "<p align='center'>\n\n<b><a href='event:wiaml'>?", nil, 138, 299, 21, 62, 0x000001, 0xFF0000, 1, true)
- end
- end
- end
- function eventKeyboard(n, key, d, x,y)
- if key==32 then
- end
- end
- function eventPlayerLeft(n)
- end
- function eventPlayerDied(n)
- tfm.exec.respawnPlayer(n)
- end
- function eventPlayerRespawn(n)
- tfm.exec.movePlayer(n,data[n].x,data[n].y,false,0,0,false)
- end
- function eventMouse(n,x,y)
- tfm.exec.movePlayer(n,x,y,false,0,0,false)
- system.bindMouse(n, false)
- end
- system.disableChatCommandDisplay("profile",true)
- eventChatCommand = function(c, n)
- local name = n:match("profile +([A-Za-z0-9_%+]+#%d%d%d%d)")
- if name and tfm.get.room.playerList[name] then
- -- do whatever you want
- 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)
- ui.addTextArea(155, "<p align='center'><font size='17'><font face='calibri'>"..data[name].thename, c, 277, 33, 245, 29, 0x1d75a1, 0x00ff64, 1, true)
- ui.addTextArea(166, "<V>"..data[c].titleLang.."<N> : «"..data[name].title.."»\n", c, 285, 268, 227, 100, 0x324650, 0x000000, 1, true)
- ui.addTextArea(177, "<V>"..data[c].descriptionLang.."<N>: <font size='10'>"..data[name].description, c, 419, 92, 90, 160, 0x324650, 0x000000, 1, true)
- ui.addTextArea(55, data[c].close, c, 410, 336, 100, 30, 0x000000, 0x00ff6f, 1, true)
- end
- end
- function eventPopupAnswer(popupID, n, answer)
- local ans = answer:match("<a href='event:light'>")
- local tp = answer:match("<a href='event:tpers'>")
- local safe = answer:match("<a href='event:safety'>")
- local event = answer:match("href")
- if not ans and not tp and not safe and not event then
- data[n].description=answer
- 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)
- ui.addTextArea(155, "<p align='center'><font size='17'><font face='calibri'>"..n, n, 277, 33, 245, 29, 0x1d75a1, 0x00ff64, 1, true)
- ui.addTextArea(166, "<V>"..data[n].titleLang.."<N> : «"..data[n].title.."»\n", n, 285, 268, 227, 100, 0x324650, 0x000000, 1, true)
- 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)
- ui.addTextArea(55, data[n].close, n, 410, 336, 100, 30, 0x000000, 0x00ff6f, 1, true)
- end
- end
- print("Message's Location is X: "..locationx.." Y: "..locationy)
Advertisement
Add Comment
Please, Sign In to add comment