Boeing747-8

new

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