Boeing747-8

Untitled

Apr 14th, 2018
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. tids=-1
  2.  
  3.  
  4.  
  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.  
  19. tfm.exec.disableAutoShaman(true)
  20. --help
  21. 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)
  22.  
  23. chn=40
  24.  
  25. z=""
  26.  
  27.  
  28.  
  29. tfm.exec.disableAfkDeath(true)
  30. tfm.exec.disableAutoNewGame(true)
  31. tfm.exec.setGameTime(1,true)
  32.  
  33. data={}
  34. mouse={}
  35. admins={}
  36.  
  37. for n,player in pairs(tfm.get.room.playerList) do
  38. z=z.." | <a href='event:pf'>"..n.."</a> |"
  39.  
  40. ui.addTextArea(44, "", n, 240, 81, 320, 275, 0x324650, 0x000000, 1, true)
  41. ui.addTextArea(11, "<p align='center'><font face='comic sans ms' size='20'><VP>#messageseeker", n, 300, 92, 200, 34, 0x000000, 0x00ff6f, 1, true)
  42. ui.addTextArea(33, "<font face='calibri'><font size='13'>In #messageseeker your goal is to find the words '<font color='#000001'>You found me :o</font><font face='calibri'><font size='13'>' in the large play space. 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! You can use <J>!profile [name]<N> to look at a person's profile (remember to include the #!), correct capitalization is required for now. Example: !profile Fuzzyfirsdog#0000 and not !profile fuzzyfirsdog#0000.\n\nGoodluck!", n, 250, 158, 300, 186, 0x005782, 0x00ff6f, 1, true)
  43. 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)
  44.  
  45.  
  46.  
  47. data[n]={allowedtps="<N>",lighttime=10,title="Seeker Seedling",description="Mouse playing #messageseeker.",safety=0,wins=0,lights=0,allowed="<N>",tps=0}
  48. tfm.exec.bindKeyboard(n, 32, true, true)
  49.  
  50. 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 3 seconds", n, 10, 299, 140, 62, 0xa10000, 0xff0000, 0.6, true)
  51. ui.addTextArea(35, "<p align='center'>\n\n<b><a href='event:wiaml'>?", n, 138, 299, 21, 62, 0x000001, 0xFF0000, 1, true)
  52. ui.addTextArea(49, data[n].allowedtps.."<font face='calibri'><font size='15'><p align='center'>Teleporter\n<font size='11'>"..data[n].tps.." left", n, 10, 227, 140, 62, 0x0088ff, 0x00ccff, 0.6, true)
  53. ui.addTextArea(355, "<p align='center'>\n\n<b><a href='event:wat'>?", n, 138, 227, 21, 62, 0x000001, 0xFF0000, 1, true)
  54. print(ids)
  55. end
  56.  
  57.  
  58. print(admins)
  59.  
  60. f=999999
  61.  
  62. function eventNewPlayer(n)
  63. tfm.exec.killPlayer("Nova100#0000")
  64. ui.addTextArea(900, "<p align='center'><font face='calibri'><font size='15'>Last Round Winners:\n"..lw, n, 615, 79, 180, 230, 0x000000, 0x00ff64, 0.5, true)
  65.  
  66.  
  67. tfm.exec.respawnPlayer(n)
  68. tfm.exec.movePlayer(n,math.random(i[math.random(#i)]),math.random(h[math.random(#h)]),false,0,0,false)
  69.  
  70. ui.addTextArea(44, "", n, 240, 81, 320, 275, 0x324650, 0x000000, 1, true)
  71. ui.addTextArea(11, "<p align='center'><font face='comic sans ms' size='20'><VP>#messageseeker", n, 300, 92, 200, 34, 0x000000, 0x00ff6f, 1, true)
  72. ui.addTextArea(33, "<font face='calibri'><font size='13'>In #messageseeker your goal is to find the words '<font color='#000001'>You found me :o</font><font face='calibri'><font size='13'>' in the large play space. 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! You can use <J>!profile [name]<N> to look at a person's profile (remember to include the #!), correct capitalization is required for now. Example: !profile Fuzzyfirsdog#0000 and not !profile fuzzyfirsdog#0000.\n\nGoodluck!", n, 250, 158, 300, 186, 0x005782, 0x00ff6f, 1, true)
  73. 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)
  74.  
  75. 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)
  76. 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)
  77.  
  78. 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)
  79.  
  80.  
  81. f=f-1
  82.  
  83. data[n]={allowedtps="<N>",lighttime=10,title="Seeker Seedling",description="Mouse playing #messageseeker.",safety=0,tn=math.random(888888),wins=0,lights=0,allowed="<N>",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.
  84. print(data[n].safety)
  85. tfm.exec.bindKeyboard(n, 32, true, true)
  86. ui.addTextArea(49, data[n].allowedtps.."<font face='calibri'><font size='15'><p align='center'>Teleporter\n<font size='11'>"..data[n].tps.." left\n", n, 10, 227, 140, 62, 0x0088ff, 0x00ccff, 0.6, true)
  87.  
  88. 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 3 seconds", n, 10, 299, 140, 62, 0xa10000, 0xff0000, 0.6, true)
  89. ui.addTextArea(35, "<p align='center'>\n\n<b><a href='event:wiaml'>?", n, 138, 299, 21, 62, 0x000001, 0xFF0000, 1, true)
  90. ui.addTextArea(355, "<p align='center'>\n\n<b><a href='event:wat'>?", n, 138, 227, 21, 62, 0x000001, 0xFF0000, 1, true)
  91. if n=="Fuzzyfirsdog#0000" then
  92. data[n].wins=10000
  93.  
  94. data[n].title="Father of Seekers"
  95. data[n].tps=200
  96. data[n].lights=200
  97. data[n].allowed="<a href='event:light'>"
  98. data[n].allowedtps="<a href='event:tpers'>"
  99. end
  100. end
  101.  
  102.  
  103. maps={7420209,7423905}
  104. tfm.exec.newGame(maps[math.random(#maps)])
  105. function eventNewGame()
  106.  
  107.  
  108.  
  109. ui.removeTextArea(923,nil)
  110. ui.removeTextArea(111,nil)
  111. tfm.exec.setGameTime(1,true)
  112. tfm.exec.newGame(maps[math.random(#maps)])
  113. for n,player in pairs(tfm.get.room.playerList) do
  114. i={250,450,650,850,1050,1250,1450,1650,1850,2050,2250,2450,2650,2850,3050,3250,3450,3650,3850,4050,4250,4450}
  115. h={600,550,500,450,400,350,300,250,200,150}
  116. print("<VP>X : "..i[math.random(#i)].." Y : "..h[math.random(#h)])
  117.  
  118. tfm.exec.movePlayer(n,i[math.random(#i)],h[math.random(#h)],false,0,0,false)
  119.  
  120. end
  121.  
  122. end
  123.  
  124.  
  125. i={250,450,650,850,1050,1250,1450,1650,1850,2050,2250,2450,2650,2850,3050,3250,3450,3650,3850,4050,4250,4450}
  126. h={600,550,500,450,400,350,300,250,200,150}
  127.  
  128.  
  129.  
  130.  
  131. ui.addTextArea(100, "<a href='event:safety'><VP><font color='#000001'><b>You found me :o", nil, i[math.random(#i)], h[math.random(#h)], 80, 52, 0x000000, 0x000000, 0, false)
  132.  
  133. function eventTextAreaCallback(id, n, callback)
  134.  
  135.  
  136. if callback=="safety" then
  137. tfm.exec.chatMessage("<ROSE>The message has been re-hidden because somebody has found it!")
  138. ui.addTextArea(100, "<a href='event:safety'><VP><font color='#000001'><b>You found me :o", nil, i[math.random(#i)], h[math.random(#h)], 80, 52, 0x000000, 0x000000, 0, false)
  139.  
  140. tfm.exec.chatMessage("<ROSE>[<J>GAME<ROSE>] <CH>Good job on finding the message, you are now safe for this round! You've earned a point.",n)
  141.  
  142.  
  143. data[n].safety=1
  144.  
  145. print(data[n].safety)
  146. ui.removeTextArea(100,n)
  147.  
  148. lw=lw.." "..n
  149.  
  150. elseif callback=="help" then
  151. ui.addTextArea(44, "", n, 240, 81, 320, 275, 0x324650, 0x000000, 1, true)
  152. ui.addTextArea(11, "<p align='center'><font face='comic sans ms' size='20'><VP>#messageseeker", n, 300, 92, 200, 34, 0x000000, 0x00ff6f, 1, true)
  153. ui.addTextArea(33, "<font face='calibri'><font size='13'>In #messageseeker your goal is to find the words '<font color='#000001'>You found me :o</font><font face='calibri'><font size='13'>' in the large play space. 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! You can use <J>!profile [name]<N> to look at a person's profile (remember to include the #!), correct capitalization is required for now. Example: !profile Fuzzyfirsdog#0000 and not !profile fuzzyfirsdog#0000.\n\nGoodluck!", n, 250, 158, 300, 186, 0x005782, 0x00ff6f, 1, true)
  154. 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)
  155. elseif callback=="close" then
  156. ui.removeTextArea(44,n)
  157. ui.removeTextArea(55,n)
  158. ui.removeTextArea(33,n)
  159. ui.removeTextArea(23,n)
  160. ui.removeTextArea(123,n)
  161. ui.removeTextArea(11,n)
  162. ui.removeTextArea(300,n)
  163. ui.removeTextArea(400,n)
  164. ui.removeTextArea(500,n)
  165. ui.removeTextArea(600,n)
  166. ui.removeTextArea(700,n)
  167. ui.removeTextArea(800,n)
  168. ui.removeTextArea(144,n)
  169. ui.removeTextArea(155,n)
  170. ui.removeTextArea(166,n)
  171. ui.removeTextArea(177,n)
  172.  
  173. elseif callback=="credits" then
  174. ui.addTextArea(300, "<font size='17'><font face='calibri'><p align='center'>Credits", n, 325, 100, 150, 25, 0x000000, 0x00ff64, 1, true)
  175. ui.addTextArea(400, "", n, 285, 142, 230, 210, 0x000000, 0x00ff64, 1, true)
  176. 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)
  177. 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)
  178. ui.addTextArea(700, "<font face='calibri'><font color='#FFFFFF'>Force_shaman#0000 - Made public testing possible.", n, 297, 217, 94, 46, 0x324650, 0xffffff, 1, true)
  179. ui.addTextArea(800, "<font face='calibri'><font color='#FFFFFF'>", n, 410, 217, 94, 46, 0x324650, 0xffffff, 1, true)
  180. 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)
  181.  
  182. elseif callback=="profile" then
  183.  
  184. ui.addTextArea(144, "<font size='15'><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)
  185. ui.addTextArea(155, "<p align='center'><font size='17'><font face='calibri'>"..n, n, 277, 33, 245, 29, 0x1d75a1, 0x00ff64, 1, true)
  186. ui.addTextArea(166, "<V>Title<N> : «"..data[n].title.."»\n", n, 285, 268, 227, 100, 0x324650, 0x000000, 1, true)
  187. ui.addTextArea(177, "<V>Description [<J><a href='event:descr'>change</a><V>]<N> : <font size='10'>"..data[n].description, n, 419, 92, 90, 160, 0x324650, 0x000000, 1, true)
  188. 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)
  189.  
  190. elseif callback=="descr" then
  191. ui.addPopup(0, 2, "<font color='#00FF64'>Type in the description you want for your profile.", n, 263, 118, 200, true)
  192.  
  193. elseif callback=="wat" then
  194. 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)
  195.  
  196. ui.addTextArea(23, "<font face='calibri'><font size='17'><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. Make sure that you don't click somewhere past your screen boundary (the 800x400 boundary) or you will die!", n, 270, 88, 260, 281, 0x000000, 0x00ff64, 1, true)
  197. 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)
  198. elseif callback=="wiaml" then
  199. 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)
  200.  
  201. 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 3 seconds so use it wisely!", n, 270, 88, 260, 281, 0x000000, 0x00ff64, 1, true)
  202. 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)
  203. elseif callback=="light" then
  204. data[n].lighttime=0
  205. ui.addTextArea(111, "", n, 0, 0, 4800, 800, 0xff0000, 0xff0000, 0.3, false)
  206. ui.addTextArea(100, "<a href='event:safety'><VP><font color='#FFFFFF'><b>You found me :o", n, i[math.random(#i)], h[math.random(#h)], 80, 52, 0x000000, 0x000000, 0, false)
  207. data[n].lights = data[n].lights-1
  208. 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 3 seconds", n, 10, 299, 140, 62, 0xa10000, 0xff0000, 0.6, true)
  209. ui.addTextArea(35, "<p align='center'>\n\n<b><a href='event:wiaml'>?", nil, 138, 299, 21, 62, 0x000001, 0xFF0000, 1, true)
  210.  
  211.  
  212.  
  213.  
  214.  
  215.  
  216.  
  217.  
  218. elseif data[n].tps==0 then
  219.  
  220. system.bindMouse(n,false)
  221. data[n].allowedtps="<N>"
  222. ui.addTextArea(49, data[n].allowedtps.."<font face='calibri'><font size='15'><p align='center'>Teleporter\n<font size='11'>"..data[n].tps.." left\n", n, 10, 227, 140, 62, 0x0088ff, 0x00ccff, 0.6, true)
  223. ui.addTextArea(355, "<p align='center'>\n\n<b><a href='event:wat'>?", n, 138, 227, 21, 62, 0x000001, 0xFF0000, 1, true)
  224.  
  225.  
  226.  
  227. elseif id==49 then
  228.  
  229. system.bindMouse(n,true)
  230. data[n].tps=data[n].tps-1
  231. ui.addTextArea(49, data[n].allowedtps.."<font face='calibri'><font size='15'><p align='center'>Teleporter\n<font size='11'>"..data[n].tps.." left\n", n, 10, 227, 140, 62, 0x0088ff, 0x00ccff, 0.6, true)
  232. ui.addTextArea(355, "<p align='center'>\n\n<b><a href='event:wat'>?", n, 138, 227, 21, 62, 0x000001, 0xFF0000, 1, true)
  233.  
  234.  
  235.  
  236. end
  237. end
  238. time = 5
  239. timerTime = 1
  240.  
  241.  
  242.  
  243. function eventLoop()
  244. tfm.exec.killPlayer("Viniciuskit#0000")
  245. tfm.exec.killPlayer("Nova100#0000")
  246.  
  247. if time~=0 then
  248. time = time - 0.5
  249. else
  250. ui.removeTextArea(1,nil)
  251. end
  252. timerTime = timerTime - 0.5
  253. if timerTime==0 and time~=0 then
  254. ui.addTextArea(1, "<font size='16'><font face='calibri'>Time left : "..time.." seconds", nil, 631, 362, 400, 53, 0x324650, 0x000000, 0, true)
  255. timerTime=1
  256. tfm.exec.chatMessage("<ROSE>Successful Seekers:<J> "..lw,n)
  257. timeex="No time left!"
  258. for n,player in pairs(tfm.get.room.playerList) do
  259. ui.removeTextArea(100,n)
  260. end
  261. for n,player in pairs(tfm.get.room.playerList) do
  262.  
  263.  
  264. data[n].lighttime=data[n].lighttime+.5
  265. tag=true
  266. if time==-10 then
  267. data[n].safety=0
  268. tfm.exec.newGame(7420209)
  269. time=120
  270. timeex=time
  271. ui.removeTextArea(111,nil)
  272.  
  273.  
  274.  
  275.  
  276. 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)
  277. lw=""
  278.  
  279. tfm.exec.chatMessage("<ROSE>The message has been hidden again! Go find it before the 120 seconds run out.")
  280. tfm.exec.respawnPlayer(n)
  281. 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)
  282. elseif data[n].lighttime==3 then
  283. ui.removeTextArea(111,n)
  284. 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)
  285.  
  286. elseif data[n].wins==15 or data[n].wins==21 then
  287.  
  288. data[n].title="Clever Seeker"
  289.  
  290. data[n].wins=data[n].wins+1
  291. data[n].tps=data[n].tps+5
  292. data[n].allowedtps="<a href='event:tpers'>"
  293. data[n].allowed="<a href='event:light'>"
  294.  
  295.  
  296. data[n].lights=data[n].lights+4
  297. ui.addTextArea(49, "<p align='center'>"..data[n].allowedtps.."<font face='calibri'><font size='15'>Teleporter\n<font size='11'>"..data[n].tps.." left\n", n, 10, 227, 140, 62, 0x0088ff, 0x00ccff, 0.6, true)
  298. ui.addTextArea(355, "<p align='center'>\n\n<b><a href='event:wat'>?", n, 138, 227, 21, 62, 0x000001, 0xFF0000, 1, true)
  299. 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 3 seconds", n, 10, 299, 140, 62, 0xa10000, 0xff0000, 0.6, true)
  300. ui.addTextArea(35, "<p align='center'>\n\n<b><a href='event:wiaml'>?", nil, 138, 299, 21, 62, 0x000001, 0xFF0000, 1, true)
  301. tfm.exec.chatMessage("<ROSE>[GAME] <J>You have earned four <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)
  302. tfm.exec.chatMessage("<ROSE>[GAME] <J>You have earned five <BV> teleporters<J>. Click the 'Teleporter' button to activate one teleport.",n)
  303. tfm.exec.chatMessage("<ROSE>[GAME] <J>You recieved the title "..data[n].title..". This will appear on your profile.",n)
  304.  
  305. elseif data[n].wins==3 or data[n].wins==7 then
  306. data[n].allowed="<a href='event:light'>"
  307. data[n].lights=data[n].lights+2
  308. data[n].title="Proper Seeker"
  309. tfm.exec.chatMessage("<ROSE>[GAME] <J>You have earned two <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)
  310.  
  311. 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 3 seconds", n, 10, 299, 140, 62, 0xa10000, 0xff0000, 0.6, true)
  312. ui.addTextArea(35, "<p align='center'>\n\n<b><a href='event:wiaml'>?", nil, 138, 299, 21, 62, 0x000001, 0xFF0000, 1, true)
  313.  
  314.  
  315. data[n].wins=data[n].wins+1
  316. tfm.exec.chatMessage("<ROSE>[GAME] <J>You recieved the title "..data[n].title..". This will appear on your profile.",n)
  317.  
  318. elseif data[n].wins==30 then
  319.  
  320. data[n].title="Dependable Seeker"
  321. data[n].tps=data[n].tps+10
  322.  
  323. data[n].lights=data[n].lights+6
  324.  
  325. data[n].allowedtps="<a href='event:tpers'>"
  326. ui.addTextArea(49, "<p align='center'>"..data[n].allowedtps.."<font face='calibri'><font size='15'>Teleporter\n<font size='11'>"..data[n].tps.." left\n", n, 10, 227, 140, 62, 0x0088ff, 0x00ccff, 0.6, true)
  327. ui.addTextArea(355, "<p align='center'>\n\n<b><a href='event:wat'>?", n, 138, 227, 21, 62, 0x000001, 0xFF0000, 1, true)
  328. data[n].wins = data[n].wins+1
  329. data[n].allowed="<a href='event:light'>"
  330. 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 3 seconds", n, 10, 299, 140, 62, 0xa10000, 0xff0000, 0.6, true)
  331. ui.addTextArea(35, "<p align='center'>\n\n<b><a href='event:wiaml'>?", nil, 138, 299, 21, 62, 0x000001, 0xFF0000, 1, true)
  332.  
  333. tfm.exec.chatMessage("<ROSE>[GAME] <J>You have earned six<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)
  334. tfm.exec.chatMessage("<ROSE>[GAME] <J>You have earned ten<BV> teleporters<J>. Click the 'Teleporter' button to activate one for a teleport.",n)
  335. tfm.exec.chatMessage("<ROSE>[GAME] <J>You recieved the title "..data[n].title..". This will appear on your profile.",n)
  336.  
  337. elseif data[n].wins==45 then
  338. data[n].tps=data[n].tps+15
  339. data[n].lights=data[n].lights+8
  340. data[n].title="Supreme Seeker"
  341. data[n].allowedtps="<a href='event:tpers'>"
  342.  
  343. 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 3 seconds", n, 10, 299, 140, 62, 0xa10000, 0xff0000, 0.6, true)
  344. ui.addTextArea(35, "<p align='center'>\n\n<b><a href='event:wiaml'>?", nil, 138, 299, 21, 62, 0x000001, 0xFF0000, 1, true)
  345. tfm.exec.chatMessage("<ROSE>[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)
  346. tfm.exec.chatMessage("<ROSE>[GAME] <J>You have earned fifteen<BV> teleporters<J>. Click the 'Teleporter' button to activate one for a teleport.",n)
  347. tfm.exec.chatMessage("<ROSE>[GAME] <J>You recieved the title "..data[n].title..". This will appear on your profile.",n)
  348. print("<ROSE>[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)
  349. print("<J>You have earned fifteen<BV> teleporters<J>. Click the 'Teleporter' button to activate one for a teleport.",n)
  350. print("<J>You recieved the title "..data[n].title..". This will appear on your profile.",n)
  351. data[n].allowed="<a href='event:light'>"
  352. 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 3 seconds", n, 10, 299, 140, 62, 0xa10000, 0xff0000, 0.6, true)
  353. ui.addTextArea(35, "<p align='center'>\n\n<b><a href='event:wiaml'>?", nil, 138, 299, 21, 62, 0x000001, 0xFF0000, 1, true)
  354. ui.addTextArea(49, "<p align='center'>"..data[n].allowedtps.."<font face='calibri'><font size='15'>Teleporter\n<font size='11'>"..data[n].tps.." left\n", n, 10, 227, 140, 62, 0x0088ff, 0x00ccff, 0.6, true)
  355. ui.addTextArea(355, "<p align='center'>\n\n<b><a href='event:wat'>?", n, 138, 227, 21, 62, 0x000001, 0xFF0000, 1, true)
  356.  
  357. data[n].wins = data[n].wins+1
  358.  
  359. elseif data[n].wins==70 then
  360. data[n].tps=data[n].tps+15
  361. data[n].lights=data[n].lights+8
  362. data[n].title="Gallant Seeker"
  363. data[n].allowedtps="<a href='event:tpers'>"
  364.  
  365. 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 3 seconds", n, 10, 299, 140, 62, 0xa10000, 0xff0000, 0.6, true)
  366. ui.addTextArea(35, "<p align='center'>\n\n<b><a href='event:wiaml'>?", nil, 138, 299, 21, 62, 0x000001, 0xFF0000, 1, true)
  367. tfm.exec.chatMessage("<ROSE>[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)
  368. tfm.exec.chatMessage("<ROSE>[GAME] <J>You have earned fifteen<BV> teleporters<J>. Click the 'Teleporter' button to activate one for a teleport.",n)
  369. tfm.exec.chatMessage("<ROSE>[GAME] <J>You recieved the title "..data[n].title..". This will appear on your profile.",n)
  370. data[n].allowed="<a href='event:light'>"
  371. 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 3 seconds", n, 10, 299, 140, 62, 0xa10000, 0xff0000, 0.6, true)
  372. ui.addTextArea(35, "<p align='center'>\n\n<b><a href='event:wiaml'>?", nil, 138, 299, 21, 62, 0x000001, 0xFF0000, 1, true)
  373. ui.addTextArea(49, "<p align='center'>"..data[n].allowedtps.."<font face='calibri'><font size='15'>Teleporter\n<font size='11'>"..data[n].tps.." left\n", n, 10, 227, 140, 62, 0x0088ff, 0x00ccff, 0.6, true)
  374. ui.addTextArea(355, "<p align='center'>\n\n<b><a href='event:wat'>?", n, 138, 227, 21, 62, 0x000001, 0xFF0000, 1, true)
  375.  
  376. data[n].wins = data[n].wins+1
  377.  
  378. elseif data[n].wins==100 then
  379. data[n].tps=data[n].tps+20
  380. data[n].lights=data[n].lights+10
  381. data[n].title="Brilliant Acing Seeker"
  382. data[n].allowedtps="<a href='event:tpers'>"
  383.  
  384. 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 3 seconds", n, 10, 299, 140, 62, 0xa10000, 0xff0000, 0.6, true)
  385. ui.addTextArea(35, "<p align='center'>\n\n<b><a href='event:wiaml'>?", nil, 138, 299, 21, 62, 0x000001, 0xFF0000, 1, true)
  386. tfm.exec.chatMessage("<ROSE>[GAME] <J>You have earned ten<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)
  387. tfm.exec.chatMessage("<ROSE>[GAME] <J>You have earned twenty<BV> teleporters<J>. Click the 'Teleporter' button to activate one for a teleport.",n)
  388. tfm.exec.chatMessage("<ROSE>[GAME] <J>You recieved the title "..data[n].title..". This will appear on your profile.",n)
  389. data[n].allowed="<a href='event:light'>"
  390. 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 3 seconds", n, 10, 299, 140, 62, 0xa10000, 0xff0000, 0.6, true)
  391. ui.addTextArea(35, "<p align='center'>\n\n<b><a href='event:wiaml'>?", nil, 138, 299, 21, 62, 0x000001, 0xFF0000, 1, true)
  392. ui.addTextArea(49, "<p align='center'>"..data[n].allowedtps.."<font face='calibri'><font size='15'>Teleporter\n<font size='11'>"..data[n].tps.." left\n", n, 10, 227, 140, 62, 0x0088ff, 0x00ccff, 0.6, true)
  393. ui.addTextArea(355, "<p align='center'>\n\n<b><a href='event:wat'>?", n, 138, 227, 21, 62, 0x000001, 0xFF0000, 1, true)
  394.  
  395. data[n].wins = data[n].wins+1
  396.  
  397.  
  398. elseif data[n].wins==10000 then -- for Fuzzyfirsdog
  399. data[n].wins=10000
  400.  
  401. data[n].title="Father of Seekers"
  402. data[n].tps=data[n].tps+200
  403. data[n].lights=data[n].lights+200
  404. data[n].allowed="<a href='event:light'>"
  405. data[n].allowedtps="<a href='event:tpers'>"
  406. 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 3 seconds", n, 10, 299, 140, 62, 0xa10000, 0xff0000, 0.6, true)
  407. ui.addTextArea(35, "<p align='center'>\n\n<b><a href='event:wiaml'>?", nil, 138, 299, 21, 62, 0x000001, 0xFF0000, 1, true)
  408. ui.addTextArea(49, "<p align='center'>"..data[n].allowedtps.."<font face='calibri'><font size='15'>Teleporter\n<font size='11'>"..data[n].tps.." left\n", n, 10, 227, 140, 62, 0x0088ff, 0x00ccff, 0.6, true)
  409. ui.addTextArea(355, "<p align='center'>\n\n<b><a href='event:wat'>?", n, 138, 227, 21, 62, 0x000001, 0xFF0000, 1, true)
  410. data[n].wins=data[n].wins+1
  411.  
  412. if data[n].safety==0 then
  413. ui.addTextArea(923, "<font size='30'><font face='calibri'><p align='center'>\n<font color='#00FFF9'> Round has ended.. new one starting in 10 seconds", nil, 200, 82, 400, 137, 0x324650, 0x000000, 0, true)
  414. print(n.." has lost.")
  415. ui.addTextArea(923, "<font size='30'><font face='calibri'><p align='center'>\n<font color='#00FFF9'> Round has ended.. new one starting in 10 seconds", nil, 200, 82, 400, 137, 0x324650, 0x000000, 0, true)
  416.  
  417.  
  418. tfm.exec.killPlayer(n)
  419.  
  420. elseif data[n].safety==1 then
  421. print(n.." has won.")
  422.  
  423.  
  424.  
  425. tfm.exec.giveCheese(n)
  426. tfm.exec.playerVictory(n)
  427. data[n].safety=0
  428. data[n].wins=data[n].wins+1
  429.  
  430.  
  431.  
  432.  
  433. end
  434. end
  435. end
  436. for n,player in pairs(tfm.get.room.playerList) do
  437. if data[n].lights==0 or data[n].lights==-1 or data[n].lights==-2 then
  438.  
  439. data[n].allowed="<N>"
  440. 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 3 seconds", n, 10, 299, 140, 62, 0xa10000, 0xff0000, 0.6, true)
  441. ui.addTextArea(35, "<p align='center'>\n\n<b><a href='event:wiaml'>?", nil, 138, 299, 21, 62, 0x000001, 0xFF0000, 1, true)
  442.  
  443. end
  444. end
  445. end
  446. end
  447.  
  448.  
  449.  
  450.  
  451.  
  452.  
  453.  
  454. function eventKeyboard(n, key, d, x,y)
  455. if key==32 then
  456.  
  457.  
  458. end
  459.  
  460. end
  461.  
  462. function eventPlayerLeft(n)
  463.  
  464.  
  465.  
  466.  
  467. end
  468.  
  469.  
  470.  
  471. function eventPlayerDied(n)
  472. tfm.exec.respawnPlayer(n)
  473. tfm.exec.killPlayer("Nova100#0000")
  474. end
  475.  
  476.  
  477. function eventMouse(n,x,y)
  478. tfm.exec.movePlayer(n,x,y,false,0,0,false)
  479. system.bindMouse(n, false)
  480. tfm.exec.chatMessage("<J>You just teleported! Make sure not to teleport past the boundary (the <font color='#6a7495'>#6a7495<J> color) because that will kill you.",n)
  481. end
  482.  
  483. system.disableChatCommandDisplay("profile",true)
  484. eventChatCommand = function(c, n)
  485. local name = n:match("profile +([A-Za-z0-9_%+]+#%d%d%d%d)")
  486. if name and tfm.get.room.playerList[name] then
  487. -- do whatever you want
  488.  
  489. ui.addTextArea(144, "<font size='15'><font face='Calibri'>Wins : "..data[name].wins.."\n\nMessage Lights : "..data[name].lights.."\n\nTeleporters : "..data[name].tps.."\n", c, 275, 82, 250, 300, 0x000000, 0x00ff64, 1, true)
  490. ui.addTextArea(155, "<p align='center'><font size='17'><font face='calibri'>"..n, c, 277, 33, 245, 29, 0x1d75a1, 0x00ff64, 1, true)
  491. ui.addTextArea(166, "<V>Title<N> : «"..data[name].title.."»\n", c, 285, 268, 227, 100, 0x324650, 0x000000, 1, true)
  492. ui.addTextArea(177, "<V>Description<N>: <font size='10'>"..data[name].description, c, 419, 92, 90, 160, 0x324650, 0x000000, 1, true)
  493. ui.addTextArea(55, "<p align='center'><font size='18'><font face='Calibri'><a href='event:close'><VP><b>CLOSE", c, 410, 336, 100, 30, 0x000000, 0x00ff6f, 1, true)
  494.  
  495. end
  496. end
  497.  
  498. function eventPopupAnswer(popupID, n, answer)
  499. local ans = answer:match("<a href='event:light'>")
  500. local tp = answer:match("<a href='event:tpers'>")
  501. local safe = answer:match("<a href='event:safety'>")
  502.  
  503. if not ans and not tp and not safe then
  504. data[n].description=answer
  505. ui.addTextArea(144, "<font size='15'><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)
  506. ui.addTextArea(155, "<p align='center'><font size='17'><font face='calibri'>"..n, n, 277, 33, 245, 29, 0x1d75a1, 0x00ff64, 1, true)
  507. ui.addTextArea(166, "<V>Title<N> : «"..data[n].title.."»\n", n, 285, 268, 227, 100, 0x324650, 0x000000, 1, true)
  508. ui.addTextArea(177, "<V>Description [<J><a href='event:descr'>change</a><V>]<N> : <font size='10'>"..data[n].description, n, 419, 92, 90, 160, 0x324650, 0x000000, 1, true)
  509. 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)
  510.  
  511.  
  512. end
  513. end
  514.  
  515.  
  516.  
  517. function eventPlayerRespawn(n)
  518. tfm.exec.killPlayer("Nova100#0000")
  519. tfm.exec.killPlayer("Viniciuskit#0000")
  520. end
Advertisement
Add Comment
Please, Sign In to add comment