Boeing747-8

Untitled

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