SHOW:
|
|
- or go back to the newest paste.
| 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 | ||
| 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 | ||
| 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 = 120 | |
| 239 | timeex = 120 | |
| 240 | ||
| 241 | ||
| 242 | ||
| 243 | function eventLoop() | |
| 244 | ||
| 245 | ui.addTextArea(1, "<font size='16'><font face='calibri'>Time left : "..timeex.." seconds", nil, 631, 362, 400, 53, 0x324650, 0x000000, 0, true) | |
| 246 | ||
| 247 | time = time - 0.5 | |
| 248 | timeex = time | |
| 249 | ||
| 250 | for n,player in pairs(tfm.get.room.playerList) do | |
| 251 | ||
| 252 | ||
| 253 | data[n].lighttime=data[n].lighttime+.5 | |
| 254 | tag=true | |
| 255 | if time==-10 then | |
| 256 | data[n].safety=0 | |
| 257 | - | tfm.exec.newGame(7420209) |
| 257 | + | tfm.exec.newGame(maps[math.random(#maps)]) |
| 258 | time=120 | |
| 259 | timeex=time | |
| 260 | ui.removeTextArea(111,nil) | |
| 261 | ||
| 262 | ||
| 263 | ||
| 264 | ||
| 265 | 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) | |
| 266 | lw="" | |
| 267 | ||
| 268 | tfm.exec.chatMessage("<ROSE>The message has been hidden again! Go find it before the 120 seconds run out.")
| |
| 269 | tfm.exec.respawnPlayer(n) | |
| 270 | 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) | |
| 271 | elseif data[n].lighttime==3 then | |
| 272 | ui.removeTextArea(111,n) | |
| 273 | 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) | |
| 274 | ||
| 275 | elseif data[n].wins==15 or data[n].wins==21 then | |
| 276 | ||
| 277 | data[n].title="Clever Seeker" | |
| 278 | ||
| 279 | data[n].wins=data[n].wins+1 | |
| 280 | data[n].tps=data[n].tps+5 | |
| 281 | data[n].allowedtps="<a href='event:tpers'>" | |
| 282 | data[n].allowed="<a href='event:light'>" | |
| 283 | ||
| 284 | ||
| 285 | data[n].lights=data[n].lights+4 | |
| 286 | 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) | |
| 287 | ui.addTextArea(355, "<p align='center'>\n\n<b><a href='event:wat'>?", n, 138, 227, 21, 62, 0x000001, 0xFF0000, 1, true) | |
| 288 | 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) | |
| 289 | ui.addTextArea(35, "<p align='center'>\n\n<b><a href='event:wiaml'>?", nil, 138, 299, 21, 62, 0x000001, 0xFF0000, 1, true) | |
| 290 | 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)
| |
| 291 | tfm.exec.chatMessage("<ROSE>[GAME] <J>You have earned five <BV> teleporters<J>. Click the 'Teleporter' button to activate one teleport.",n)
| |
| 292 | tfm.exec.chatMessage("<ROSE>[GAME] <J>You recieved the title "..data[n].title..". This will appear on your profile.",n)
| |
| 293 | ||
| 294 | elseif data[n].wins==3 or data[n].wins==7 then | |
| 295 | data[n].allowed="<a href='event:light'>" | |
| 296 | data[n].lights=data[n].lights+2 | |
| 297 | data[n].title="Proper Seeker" | |
| 298 | 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)
| |
| 299 | ||
| 300 | 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) | |
| 301 | ui.addTextArea(35, "<p align='center'>\n\n<b><a href='event:wiaml'>?", nil, 138, 299, 21, 62, 0x000001, 0xFF0000, 1, true) | |
| 302 | ||
| 303 | ||
| 304 | data[n].wins=data[n].wins+1 | |
| 305 | tfm.exec.chatMessage("<ROSE>[GAME] <J>You recieved the title "..data[n].title..". This will appear on your profile.",n)
| |
| 306 | ||
| 307 | elseif data[n].wins==30 then | |
| 308 | ||
| 309 | data[n].title="Dependable Seeker" | |
| 310 | data[n].tps=data[n].tps+10 | |
| 311 | ||
| 312 | data[n].lights=data[n].lights+6 | |
| 313 | ||
| 314 | data[n].allowedtps="<a href='event:tpers'>" | |
| 315 | 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) | |
| 316 | ui.addTextArea(355, "<p align='center'>\n\n<b><a href='event:wat'>?", n, 138, 227, 21, 62, 0x000001, 0xFF0000, 1, true) | |
| 317 | data[n].wins = data[n].wins+1 | |
| 318 | data[n].allowed="<a href='event:light'>" | |
| 319 | 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) | |
| 320 | ui.addTextArea(35, "<p align='center'>\n\n<b><a href='event:wiaml'>?", nil, 138, 299, 21, 62, 0x000001, 0xFF0000, 1, true) | |
| 321 | ||
| 322 | 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)
| |
| 323 | tfm.exec.chatMessage("<ROSE>[GAME] <J>You have earned ten<BV> teleporters<J>. Click the 'Teleporter' button to activate one for a teleport.",n)
| |
| 324 | tfm.exec.chatMessage("<ROSE>[GAME] <J>You recieved the title "..data[n].title..". This will appear on your profile.",n)
| |
| 325 | ||
| 326 | elseif data[n].wins==45 then | |
| 327 | data[n].tps=data[n].tps+15 | |
| 328 | data[n].lights=data[n].lights+8 | |
| 329 | data[n].title="Supreme Seeker" | |
| 330 | data[n].allowedtps="<a href='event:tpers'>" | |
| 331 | ||
| 332 | 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) | |
| 333 | ui.addTextArea(35, "<p align='center'>\n\n<b><a href='event:wiaml'>?", nil, 138, 299, 21, 62, 0x000001, 0xFF0000, 1, true) | |
| 334 | 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)
| |
| 335 | tfm.exec.chatMessage("<ROSE>[GAME] <J>You have earned fifteen<BV> teleporters<J>. Click the 'Teleporter' button to activate one for a teleport.",n)
| |
| 336 | tfm.exec.chatMessage("<ROSE>[GAME] <J>You recieved the title "..data[n].title..". This will appear on your profile.",n)
| |
| 337 | 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)
| |
| 338 | print("<J>You have earned fifteen<BV> teleporters<J>. Click the 'Teleporter' button to activate one for a teleport.",n)
| |
| 339 | print("<J>You recieved the title "..data[n].title..". This will appear on your profile.",n)
| |
| 340 | data[n].allowed="<a href='event:light'>" | |
| 341 | 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) | |
| 342 | ui.addTextArea(35, "<p align='center'>\n\n<b><a href='event:wiaml'>?", nil, 138, 299, 21, 62, 0x000001, 0xFF0000, 1, true) | |
| 343 | 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) | |
| 344 | ui.addTextArea(355, "<p align='center'>\n\n<b><a href='event:wat'>?", n, 138, 227, 21, 62, 0x000001, 0xFF0000, 1, true) | |
| 345 | ||
| 346 | data[n].wins = data[n].wins+1 | |
| 347 | ||
| 348 | elseif data[n].wins==70 then | |
| 349 | data[n].tps=data[n].tps+15 | |
| 350 | data[n].lights=data[n].lights+8 | |
| 351 | data[n].title="Gallant Seeker" | |
| 352 | data[n].allowedtps="<a href='event:tpers'>" | |
| 353 | ||
| 354 | 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) | |
| 355 | ui.addTextArea(35, "<p align='center'>\n\n<b><a href='event:wiaml'>?", nil, 138, 299, 21, 62, 0x000001, 0xFF0000, 1, true) | |
| 356 | 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)
| |
| 357 | tfm.exec.chatMessage("<ROSE>[GAME] <J>You have earned fifteen<BV> teleporters<J>. Click the 'Teleporter' button to activate one for a teleport.",n)
| |
| 358 | tfm.exec.chatMessage("<ROSE>[GAME] <J>You recieved the title "..data[n].title..". This will appear on your profile.",n)
| |
| 359 | data[n].allowed="<a href='event:light'>" | |
| 360 | 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) | |
| 361 | ui.addTextArea(35, "<p align='center'>\n\n<b><a href='event:wiaml'>?", nil, 138, 299, 21, 62, 0x000001, 0xFF0000, 1, true) | |
| 362 | 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) | |
| 363 | ui.addTextArea(355, "<p align='center'>\n\n<b><a href='event:wat'>?", n, 138, 227, 21, 62, 0x000001, 0xFF0000, 1, true) | |
| 364 | ||
| 365 | data[n].wins = data[n].wins+1 | |
| 366 | ||
| 367 | elseif data[n].wins==100 then | |
| 368 | data[n].tps=data[n].tps+20 | |
| 369 | data[n].lights=data[n].lights+10 | |
| 370 | data[n].title="Brilliant Acing Seeker" | |
| 371 | data[n].allowedtps="<a href='event:tpers'>" | |
| 372 | ||
| 373 | 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) | |
| 374 | ui.addTextArea(35, "<p align='center'>\n\n<b><a href='event:wiaml'>?", nil, 138, 299, 21, 62, 0x000001, 0xFF0000, 1, true) | |
| 375 | 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)
| |
| 376 | tfm.exec.chatMessage("<ROSE>[GAME] <J>You have earned twenty<BV> teleporters<J>. Click the 'Teleporter' button to activate one for a teleport.",n)
| |
| 377 | tfm.exec.chatMessage("<ROSE>[GAME] <J>You recieved the title "..data[n].title..". This will appear on your profile.",n)
| |
| 378 | data[n].allowed="<a href='event:light'>" | |
| 379 | 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) | |
| 380 | ui.addTextArea(35, "<p align='center'>\n\n<b><a href='event:wiaml'>?", nil, 138, 299, 21, 62, 0x000001, 0xFF0000, 1, true) | |
| 381 | 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) | |
| 382 | ui.addTextArea(355, "<p align='center'>\n\n<b><a href='event:wat'>?", n, 138, 227, 21, 62, 0x000001, 0xFF0000, 1, true) | |
| 383 | ||
| 384 | data[n].wins = data[n].wins+1 | |
| 385 | ||
| 386 | ||
| 387 | elseif data[n].wins==10000 then -- for Fuzzyfirsdog | |
| 388 | data[n].wins=10000 | |
| 389 | ||
| 390 | data[n].title="Father of Seekers" | |
| 391 | data[n].tps=data[n].tps+200 | |
| 392 | data[n].lights=data[n].lights+200 | |
| 393 | data[n].allowed="<a href='event:light'>" | |
| 394 | data[n].allowedtps="<a href='event:tpers'>" | |
| 395 | 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) | |
| 396 | ui.addTextArea(35, "<p align='center'>\n\n<b><a href='event:wiaml'>?", nil, 138, 299, 21, 62, 0x000001, 0xFF0000, 1, true) | |
| 397 | 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) | |
| 398 | ui.addTextArea(355, "<p align='center'>\n\n<b><a href='event:wat'>?", n, 138, 227, 21, 62, 0x000001, 0xFF0000, 1, true) | |
| 399 | data[n].wins=data[n].wins+1 | |
| 400 | elseif time==0 then | |
| 401 | tfm.exec.chatMessage("<ROSE>Successful Seekers:<J> "..lw,n)
| |
| 402 | timeex="No time left!" | |
| 403 | for n,player in pairs(tfm.get.room.playerList) do | |
| 404 | ui.removeTextArea(100,n) | |
| 405 | if data[n].safety==0 then | |
| 406 | 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) | |
| 407 | print(n.." has lost.") | |
| 408 | 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) | |
| 409 | ||
| 410 | ||
| 411 | tfm.exec.killPlayer(n) | |
| 412 | ||
| 413 | elseif data[n].safety==1 then | |
| 414 | print(n.." has won.") | |
| 415 | ||
| 416 | ||
| 417 | ||
| 418 | tfm.exec.giveCheese(n) | |
| 419 | tfm.exec.playerVictory(n) | |
| 420 | data[n].safety=0 | |
| 421 | data[n].wins=data[n].wins+1 | |
| 422 | ||
| 423 | ||
| 424 | ||
| 425 | ||
| 426 | end | |
| 427 | end | |
| 428 | elseif data[n].lights==0 or data[n].lights==-1 or data[n].lights==-2 then | |
| 429 | ||
| 430 | data[n].allowed="<N>" | |
| 431 | 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) | |
| 432 | ui.addTextArea(35, "<p align='center'>\n\n<b><a href='event:wiaml'>?", nil, 138, 299, 21, 62, 0x000001, 0xFF0000, 1, true) | |
| 433 | ||
| 434 | end | |
| 435 | end | |
| 436 | end | |
| 437 | ||
| 438 | ||
| 439 | ||
| 440 | function eventKeyboard(n, key, d, x,y) | |
| 441 | if key==32 then | |
| 442 | ||
| 443 | ||
| 444 | end | |
| 445 | ||
| 446 | end | |
| 447 | ||
| 448 | function eventPlayerLeft(n) | |
| 449 | ||
| 450 | ||
| 451 | ||
| 452 | ||
| 453 | end | |
| 454 | ||
| 455 | ||
| 456 | ||
| 457 | function eventPlayerDied(n) | |
| 458 | tfm.exec.respawnPlayer(n) | |
| 459 | ||
| 460 | end | |
| 461 | ||
| 462 | ||
| 463 | function eventMouse(n,x,y) | |
| 464 | tfm.exec.movePlayer(n,x,y,false,0,0,false) | |
| 465 | system.bindMouse(n, false) | |
| 466 | 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)
| |
| 467 | end | |
| 468 | ||
| 469 | system.disableChatCommandDisplay("profile",true)
| |
| 470 | eventChatCommand = function(c, n) | |
| 471 | local name = n:match("profile +([A-Za-z0-9_%+]+#%d%d%d%d)")
| |
| 472 | if name and tfm.get.room.playerList[name] then | |
| 473 | -- do whatever you want | |
| 474 | ||
| 475 | 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) | |
| 476 | ui.addTextArea(155, "<p align='center'><font size='17'><font face='calibri'>"..n, c, 277, 33, 245, 29, 0x1d75a1, 0x00ff64, 1, true) | |
| 477 | ui.addTextArea(166, "<V>Title<N> : «"..data[name].title.."»\n", c, 285, 268, 227, 100, 0x324650, 0x000000, 1, true) | |
| 478 | ui.addTextArea(177, "<V>Description<N>: <font size='10'>"..data[name].description, c, 419, 92, 90, 160, 0x324650, 0x000000, 1, true) | |
| 479 | 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) | |
| 480 | ||
| 481 | end | |
| 482 | end | |
| 483 | ||
| 484 | function eventPopupAnswer(popupID, n, answer) | |
| 485 | local ans = answer:match("<a href='event:light'>")
| |
| 486 | local tp = answer:match("<a href='event:tpers'>")
| |
| 487 | local safe = answer:match("<a href='event:safety'>")
| |
| 488 | ||
| 489 | if not ans and not tp and not safe then | |
| 490 | data[n].description=answer | |
| 491 | 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) | |
| 492 | ui.addTextArea(155, "<p align='center'><font size='17'><font face='calibri'>"..n, n, 277, 33, 245, 29, 0x1d75a1, 0x00ff64, 1, true) | |
| 493 | ui.addTextArea(166, "<V>Title<N> : «"..data[n].title.."»\n", n, 285, 268, 227, 100, 0x324650, 0x000000, 1, true) | |
| 494 | 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) | |
| 495 | 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) | |
| 496 | ||
| 497 | ||
| 498 | end | |
| 499 | end |