Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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, "<font face='calibri'><font size='15'>In #messageseeker your goal is to find the words '<font color='#000001'>You found me :D</font><font face='calibri'><font size='15'>' in the large body of water. You are given 120 seconds or 2 minutes to find the message. When you find the message <VP>you must click it<N> to be safe for the round, some rounds can be easier or harder than others. There are prizes that you can earn too!\n\nGoodluck!", n, 250, 158, 300, 186, 0x005782, 0x00ff6f, 1, true)
- ui.addTextArea(55, "<p align='center'><font size='18'><font face='Calibri'><a href='event:close'><VP><b>CLOSE", n, 450, 314, 100, 30, 0x000000, 0x00ff6f, 1, true)
- ui.addTextArea(21, "<font color='#202020'><font size='15'><font face='Calibri'><a href='event:profile'><p align='center'>Profile", nil, 10, 140, 64, 26, 0xffd500, 0xfff200, 1, true)
- lw=""
- ui.addTextArea(900, "<p align='center'><font face='calibri'><font size='15'>Last Round Winners:\n"..lw, nil, 615, 79, 180, 230, 0x000000, 0x00ff64, 0.5, true)
- ui.addTextArea(2, "<a href='event:credits'><p align='center'><font face='calibri'><font size='15'><font color='#202020'>Credits", nil, 10, 105, 64, 26, 0x08d64a, 0x61ff81, 1, true)
- tfm.exec.disableAutoShaman(true)
- --help
- ui.addTextArea(15, "<font color='#202020'><font size='15'><font face='Calibri'><a href='event:help'><p align='center'>Help", nil, 10, 70, 64, 26, 0x00aaff, 0x00eeff, 1, true)
- chn=40
- i=9999
- 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]={lighttime=10,title="Beginner",description="Mouse playing #messageseeker.",safety=0,tn=i-math.random(999999),wins=0,lights=0,allowed="<a href='event:light'>",tps=0}
- tfm.exec.bindKeyboard(n, 32, true, true)
- ui.addTextArea(110, data[n].allowed.."<font face='calibri'><font size='15'><p align='center'>Message Light\n<font size='11'>"..data[n].lights.." left<br>Lasts 5 seconds", 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)
- end
- f=999999
- function eventNewPlayer(n)
- tfm.exec.respawnPlayer(n)
- 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, "<font face='calibri'><font size='15'>In #messageseeker your goal is to find the words '<font color='#000001'>You found me :D</font><font face='calibri'><font size='15'>' in the large body of water. You are given 120 seconds or 2 minutes to find the message. When you find the message <VP>you must click it<N> to be safe for the round, some rounds can be easier or harder than others. There are prizes that you can earn too!\n\nGoodluck!", n, 250, 158, 300, 186, 0x005782, 0x00ff6f, 1, true)
- ui.addTextArea(55, "<p align='center'><font size='18'><font face='Calibri'><a href='event:close'><VP><b>CLOSE", n, 450, 314, 100, 30, 0x000000, 0x00ff6f, 1, true)
- ui.addTextArea(15, "<font color='#202020'><font size='14'><font face='Arial'><a href='event:help'><p align='center'>Help", nil, 10, 70, 64, 26, 0x00aaff, 0x00eeff, 1, true)
- ui.addTextArea(21, "<font color='#202020'><font size='15'><font face='Calibri'><a href='event:profile'><p align='center'>Profile", n, 10, 140, 64, 26, 0xffd500, 0xfff200, 1, true)
- ui.addTextArea(2, "<a href='event:credits'><p align='center'><font face='calibri'><font size='15'><font color='#202020'>Credits", nil, 10, 105, 64, 26, 0x08d64a, 0x61ff81, 1, true)
- f=f-1
- data[n]={lighttime=10,title="Beginner",description="Mouse playing #messageseeker.",safety=0,tn=math.random(888888),wins=0,lights=0,allowed="<a href='event:light'>",tps=0} -- safety : 0 means that they are not safe and still need to find the message, while 1 means they are safe and have found the message.
- print(data[n].safety)
- tfm.exec.bindKeyboard(n, 32, true, true)
- ui.addTextArea(110, data[n].allowed.."<font face='calibri'><font size='15'><p align='center'>Message Light\n<font size='11'>"..data[n].lights.." left<br>Lasts 5 seconds", 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)
- end
- i={850,1050,1250,1450,1650,1850,2050,2250,2450,2650,2850,3050,3250,3450,3650,3850,4050,4250}
- h={750,700,650,600,550,500,450,400,350,300,250,200,150,100,50}
- function eventNewGame()
- ui.removeTextArea(111,nil)
- tfm.exec.setGameTime(1,true)
- tfm.exec.newGame(7420209)
- for n,player in pairs(tfm.get.room.playerList) do
- tfm.exec.movePlayer(n,math.random(i[math.random(#i)]),760,false,0,0,false)
- end
- end
- tfm.exec.newGame(7420209)
- ui.addTextArea(100, "<a href='event:safety'><VP><font color='#000001'><b>You found me :o", nil, math.random(i[math.random(#i)]), math.random(h[math.random(#h)]), 80, 52, 0x000000, 0x000000, 0, false)
- function eventTextAreaCallback(textAreaID, n, callback)
- if data[n].wins==15 then
- elseif callback=="safety" then
- tfm.exec.chatMessage("<ROSE>The message has been re-hidden because somebody has found it!")
- ui.addTextArea(100, "<a href='event:safety'><VP><font color='#000001'><b>You found me :o", nil, math.random(i[math.random(#i)]), math.random(h[math.random(#h)]), 80, 52, 0x000000, 0x000000, 0, false)
- tfm.exec.chatMessage("<ROSE><b>[<J>GAME<ROSE>] <CH>Good job on finding the message, you are now safe for this round! You've earned a point.",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, "<font face='calibri'><font size='15'>In #messageseeker your goal is to find the words '<font color='#000001'>You found me :D</font><font face='calibri'><font size='15'>' in the large body of water. You are given 120 seconds or 2 minutes to find the message. When you find the message <VP>you must click it<N> to be safe for the round, some rounds can be easier or harder than others. There are prizes that you can earn too!\n\nGoodluck!", n, 250, 158, 300, 186, 0x005782, 0x00ff6f, 1, true)
- ui.addTextArea(55, "<p align='center'><font size='18'><font face='Calibri'><a href='event:close'><VP><b>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'> - Creator of the minigame", n, 297, 152, 94, 46, 0x324650, 0xffffff, 1, true)
- ui.addTextArea(600, "<font face='calibri'><font color='#FFFFFF'>Bibsho#0000 - Message Lights and Name tag ideas.", n, 410, 152, 94, 46, 0x324650, 0xffffff, 1, true)
- ui.addTextArea(700, "<font face='calibri'><font color='#FFFFFF'>", n, 297, 217, 94, 46, 0x324650, 0xffffff, 1, true)
- ui.addTextArea(800, "", n, 410, 217, 94, 46, 0x324650, 0xffffff, 1, true)
- ui.addTextArea(55, "<p align='center'><font size='18'><font face='Calibri'><a href='event:close'><VP><b>CLOSE", n, 350, 310, 100, 30, 0x324650, 0x00ff6f, 1, true)
- elseif callback=="profile" then
- ui.addTextArea(144, "<font size='17'><font face='Calibri'>Wins : "..data[n].wins.."\n\nMessage Lights : "..data[n].lights.."\n\nTeleporters : "..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, "Title: «"..data[n].title.."»\n", n, 285, 268, 227, 100, 0x324650, 0x000000, 1, true)
- ui.addTextArea(177, "Description: "..data[n].description, n, 419, 92, 90, 151, 0x324650, 0x000000, 1, true)
- ui.addTextArea(55, "<p align='center'><font size='18'><font face='Calibri'><a href='event:close'><VP><b>CLOSE", n, 410, 336, 100, 30, 0x000000, 0x00ff6f, 1, true)
- elseif callback=="wiaml" then
- ui.addTextArea(123, "<b><p align='center'><font face='calibri'><font size='20'>Purpose of Object", n, 250, 46, 300, 340, 0x195778, 0xffffff, 1, true)
- ui.addTextArea(23, "<font face='calibri'><font size='17'><VP><b>What do message lights do?</b> <N>Message lights make your screen red for five seconds. You may ask why this is useful, and this is why: The messages are coated with a liquid sensitive to red light which makes them turn white and appear over the black darkness to whoever is shining the Message Light; this makes it very easy to find the message but remember, one light dies out after 5 seconds so use it wisely!", n, 270, 88, 260, 281, 0x000000, 0x00ff64, 1, true)
- ui.addTextArea(55, "<p align='center'><font size='18'><font face='Calibri'><a href='event:close'><VP><b>CLOSE", n, 350, 356, 100, 30, 0x324650, 0x00ff6f, 1, true)
- elseif callback=="light" and data[n].lights==1 or data[n].lights==2 then
- data[n].lighttime=0
- ui.addTextArea(111, "", n, 0, 0, 4800, 800, 0xff0000, 0xff0000, 0.3, false)
- ui.addTextArea(100, "<a href='event:safety'><VP><font color='#FFFFFF'><b>You found me :o", n, math.random(i[math.random(#i)]), math.random(h[math.random(#h)]), 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'>Message Light\n<font size='11'>"..data[n].lights.." left<br>Lasts 5 seconds", 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
- time = 120
- timeex = 120
- function eventLoop()
- ui.addTextArea(1, "<font size='16'><font face='calibri'>Time left : "..timeex.." seconds", nil, 631, 362, 400, 53, 0x324650, 0x000000, 0, true)
- time = time - 0.5
- timeex = time
- for n,player in pairs(tfm.get.room.playerList) do
- data[n].lighttime=data[n].lighttime+.5
- tag=true
- if time==-10 then
- data[n].safety=0
- tfm.exec.newGame(7420209)
- time=120
- timeex=time
- ui.removeTextArea(111,nil)
- ui.addTextArea(900, "<p align='center'><font face='calibri'><font size='15'>Last Round Winners:\n"..lw, nil, 615, 79, 180, 230, 0x000000, 0x00ff64, 0.5, true)
- lw=""
- tfm.exec.chatMessage("<ROSE>The message has been hidden again! Go find it before the 180 seconds run out.")
- tfm.exec.respawnPlayer(n)
- ui.addTextArea(100, "<a href='event:safety'><VP><font color='#000001'><b>You found me :o", nil, math.random(i[math.random(#i)]), math.random(h[math.random(#h)]), 80, 52, 0x000000, 0x000000, 0, false)
- elseif data[n].lighttime==5 then
- ui.removeTextArea(111,n)
- ui.addTextArea(100, "<a href='event:safety'><VP><font color='#000001'><b>You found me :o", nil, math.random(i[math.random(#i)]), math.random(h[math.random(#h)]), 80, 52, 0x000000, 0x000000, 0, false)
- 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
- tfm.exec.chatMessage("<J>You have earned two <BV> message lights<J> for earning 3 more wins, You also earned a second win for earning Message Lights! Click the 'Message Lights' button to activate one for the round.",n)
- tfm.exec.chatMessage("<R>What do message lights do? <J>Message lights make your screen red for five seconds. You may ask why this is useful, and this is why: The messages are sensitive to red light which makes them turn white and appear over the black darkness to whoever is shining the Message Light; this makes it very easy to find the message but remember, one light dies out after 5 seconds!",n)
- ui.addTextArea(110, data[n].allowed.."<font face='calibri'><font size='15'><p align='center'>Message Light\n<font size='11'>"..data[n].lights.." left<br>Lasts 5 seconds", 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 time==0 then
- tfm.exec.chatMessage("<ROSE>Successful Seekers:<J> "..lw)
- timeex="No time left!"
- for n,player in pairs(tfm.get.room.playerList) do
- ui.removeTextArea(100,n)
- if data[n].safety==0 then
- print(n.." has lost.")
- 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
- end
- end
- end
- function eventKeyboard(n, key, d, x,y)
- if key==32 then
- end
- end
- function eventPlayerLeft(a)
- ui.removeTextArea(data[a].tn,nil)
- end
- function eventPlayerDied(n)
- ui.removeTextArea(data[n].tn,nil)
- end
Advertisement
Add Comment
Please, Sign In to add comment