Boeing747-8

?

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