Boeing747-8

most recent

Apr 6th, 2018
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.49 KB | None | 0 0
  1. ui.addTextArea(44, "", n, 240, 81, 320, 275, 0x324650, 0x000000, 1, true)
  2. ui.addTextArea(11, "<p align='center'><font face='comic sans ms' size='20'><VP>#messageseeker", n, 300, 92, 200, 34, 0x000000, 0x00ff6f, 1, true)
  3. 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)
  4. 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)
  5.  
  6. 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)
  7.  
  8.  
  9.  
  10.  
  11. lw=""
  12.  
  13. 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)
  14.  
  15. 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)
  16.  
  17.  
  18. print("<ROSE><b>[<J>GAME<ROSE>]</b> <CH>You have earned the ability to spawn spirits since you found the message before the time ran out! Duck to use your spirits. This lasts until the map ends.",n)
  19.  
  20. tfm.exec.disableAutoShaman(true)
  21. --help
  22. 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)
  23.  
  24. chn=40
  25.  
  26.  
  27. i=9999
  28.  
  29. tfm.exec.disableAfkDeath(true)
  30. tfm.exec.disableAutoNewGame(true)
  31. tfm.exec.setGameTime(1,true)
  32.  
  33. data={}
  34.  
  35. for n,player in pairs(tfm.get.room.playerList) do
  36. 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}
  37. tfm.exec.bindKeyboard(n, 32, true, true)
  38.  
  39. 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, 55, 0xa10000, 0xff0000, 0.6, true)
  40.  
  41. end
  42. f=999999
  43.  
  44. function eventNewPlayer(n)
  45. tfm.exec.respawnPlayer(n)
  46. ui.addTextArea(44, "", n, 240, 81, 320, 275, 0x324650, 0x000000, 1, true)
  47. ui.addTextArea(11, "<p align='center'><font face='comic sans ms' size='20'><VP>#messageseeker", n, 300, 92, 200, 34, 0x000000, 0x00ff6f, 1, true)
  48. 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)
  49. 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)
  50.  
  51. 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)
  52. 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)
  53.  
  54. 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)
  55.  
  56.  
  57. f=f-1
  58.  
  59. 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.
  60. print(data[n].safety)
  61. tfm.exec.bindKeyboard(n, 32, true, true)
  62.  
  63. 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, 55, 0xa10000, 0xff0000, 0.6, true)
  64.  
  65. end
  66.  
  67.  
  68. i={850,1050,1250,1450,1650,1850,2050,2250,2450,2650,2850,3050,3250,3450,3650,3850,4050,4250}
  69. h={750,700,650,600,550,500,450,400,350,300,250,200,150,100,50}
  70.  
  71.  
  72. function eventNewGame()
  73. ui.removeTextArea(111,nil)
  74. tfm.exec.setGameTime(1,true)
  75. tfm.exec.newGame(7420209)
  76. for n,player in pairs(tfm.get.room.playerList) do
  77.  
  78. tfm.exec.movePlayer(n,math.random(i[math.random(#i)]),760,false,0,0,false)
  79.  
  80. end
  81. end
  82.  
  83.  
  84. down=string.byte("S")
  85.  
  86. tfm.exec.newGame(7420209)
  87.  
  88. 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)
  89.  
  90. function eventTextAreaCallback(textAreaID, n, callback)
  91.  
  92. if data[n].wins==15 then
  93.  
  94. elseif callback=="safety" then
  95. tfm.exec.chatMessage("<ROSE>The message has been re-hidden because somebody has found it!")
  96. 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)
  97.  
  98. 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)
  99.  
  100.  
  101. data[n].safety=1
  102.  
  103. print(data[n].safety)
  104. ui.removeTextArea(100,n)
  105.  
  106. lw=lw.." "..n
  107.  
  108. elseif callback=="help" then
  109. ui.addTextArea(44, "", n, 240, 81, 320, 275, 0x324650, 0x000000, 1, true)
  110. ui.addTextArea(11, "<p align='center'><font face='comic sans ms' size='20'><VP>#messageseeker", n, 300, 92, 200, 34, 0x000000, 0x00ff6f, 1, true)
  111. 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)
  112. 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)
  113. elseif callback=="close" then
  114. ui.removeTextArea(44,n)
  115. ui.removeTextArea(55,n)
  116. ui.removeTextArea(33,n)
  117. ui.removeTextArea(11,n)
  118. ui.removeTextArea(300,n)
  119. ui.removeTextArea(400,n)
  120. ui.removeTextArea(500,n)
  121. ui.removeTextArea(600,n)
  122. ui.removeTextArea(700,n)
  123. ui.removeTextArea(800,n)
  124. ui.removeTextArea(144,n)
  125. ui.removeTextArea(155,n)
  126. ui.removeTextArea(166,n)
  127. ui.removeTextArea(177,n)
  128.  
  129. elseif callback=="credits" then
  130. ui.addTextArea(300, "<font size='17'><font face='calibri'><p align='center'>Credits", n, 325, 100, 150, 25, 0x000000, 0x00ff64, 1, true)
  131. ui.addTextArea(400, "", n, 285, 142, 230, 210, 0x000000, 0x00ff64, 1, true)
  132. 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)
  133. ui.addTextArea(600, "<font face='calibri'><font color='#FFFFFF'>Bibsho - Message Liights and Name tag ideas.", n, 410, 152, 94, 46, 0x324650, 0xffffff, 1, true)
  134. ui.addTextArea(700, "<font face='calibri'><font color='#FFFFFF'>", n, 297, 217, 94, 46, 0x324650, 0xffffff, 1, true)
  135. ui.addTextArea(800, "", n, 410, 217, 94, 46, 0x324650, 0xffffff, 1, true)
  136. 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)
  137.  
  138. elseif callback=="light" and data[n].lights==1 or data[n].lights==2 then
  139. data[n].lighttime=0
  140. ui.addTextArea(111, "", n, 0, 0, 4800, 800, 0xff0000, 0xff0000, 0.3, false)
  141. 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)
  142.  
  143. data[n].lights = data[n].lights-1
  144.  
  145. 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, 120, 55, 0xa10000, 0xff0000, 0.6, true)
  146. elseif callback=="profile" then
  147.  
  148. 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)
  149. ui.addTextArea(155, "<p align='center'><font size='17'><font face='calibri'>"..n, n, 277, 33, 245, 29, 0x1d75a1, 0x00ff64, 1, true)
  150. ui.addTextArea(166, "Title: «"..data[n].title.."»\n", n, 285, 268, 227, 100, 0x324650, 0x000000, 1, true)
  151. ui.addTextArea(177, "Description: "..data[n].description, n, 419, 92, 90, 151, 0x324650, 0x000000, 1, true)
  152. 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)
  153.  
  154.  
  155. end
  156.  
  157. end
  158.  
  159. time = 120
  160. timeex = 120
  161.  
  162.  
  163.  
  164. function eventLoop()
  165.  
  166. ui.addTextArea(1, "<font size='16'><font face='calibri'>Time left : "..timeex.." seconds", nil, 631, 362, 400, 53, 0x324650, 0x000000, 0, true)
  167.  
  168. time = time - 0.5
  169. timeex = time
  170.  
  171. for n,player in pairs(tfm.get.room.playerList) do
  172.  
  173. data[n].lighttime=data[n].lighttime+.5
  174. ui.addTextArea(data[n].tn, "<font size='10'>"..n.."<br> | Wins: "..data[n].wins, nil, tfm.get.room.playerList[n].x-60, tfm.get.room.playerList[n].y+40, nil, 40, 0xff6000, 0xff6000, .1, false)
  175.  
  176. if time==-10 then
  177. data[n].safety=0
  178. tfm.exec.newGame(7420209)
  179. time=120
  180. timeex=time
  181. ui.removeTextArea(111,nil)
  182.  
  183.  
  184.  
  185.  
  186. 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)
  187. lw=""
  188.  
  189. tfm.exec.chatMessage("<ROSE>The message has been hidden again! Go find it before the 180 seconds run out.")
  190. tfm.exec.respawnPlayer(n)
  191. 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)
  192. elseif data[n].lighttime==5 then
  193. ui.removeTextArea(111,n)
  194. 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)
  195.  
  196.  
  197. elseif data[n].wins==3 or data[n].wins==6 then
  198. data[n].allowed="<a href='event:light'>"
  199. data[n].lights=data[n].lights+2
  200.  
  201. tfm.exec.chatMessage("<J>You have earned two <b> message lights<br> for earning 3 more wins! Click the 'Message Lights' button to activate one for the round.",n)
  202. 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, 55, 0xa10000, 0xff0000, 0.6, true)
  203.  
  204. data[n].wins=data[n].wins+1
  205. elseif time==0 then
  206. tfm.exec.chatMessage("<ROSE>Successful Seekers:<J> "..lw)
  207. timeex="No time left!"
  208. for n,player in pairs(tfm.get.room.playerList) do
  209. ui.removeTextArea(100,n)
  210. if data[n].safety==0 then
  211. print(n.." has lost.")
  212.  
  213. tfm.exec.killPlayer(n)
  214.  
  215. elseif data[n].safety==1 then
  216. print(n.." has won.")
  217.  
  218.  
  219.  
  220. tfm.exec.giveCheese(n)
  221. tfm.exec.playerVictory(n)
  222. data[n].safety=0
  223. data[n].wins=data[n].wins+1
  224.  
  225.  
  226.  
  227.  
  228. end
  229. end
  230. end
  231. end
  232. end
  233.  
  234.  
  235.  
  236. function eventKeyboard(n, key, d, x,y)
  237. if key==32 then
  238.  
  239.  
  240. end
  241.  
  242. end
Advertisement
Add Comment
Please, Sign In to add comment