Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --- Written in december 2016
- adm="Ricfonseca" --- Write your nickname
- year=2017 --- Write the year
- map=[[<C><P Ca="" /><Z><S><S H="413" L="812" o="0" X="399" c="4" Y="199" T="12" P="0,0,0.3,0.2,0,0,0,0" /><S L="89" o="500c7" H="400" X="44" Y="200" T="12" P="0,0,0.3,0.2,0,0,0,0" /><S L="900" X="400" H="56" Y="390" T="6" P="0,0,0.3,0.2,0,0,0,0" /><S L="10" o="324650" X="-5" H="562" Y="255" T="12" P="0,0,0.3,0.2,0,0,0,0" /><S P="0,0,0.3,0.2,0,0,0,0" L="10" o="324650" H="562" Y="232" T="12" X="806" /><S L="991" o="324650" X="435" H="10" Y="-5" T="12" P="0,0,0.3,0.2,0,0,0,0" /></S><D /><O /></Z></C>]]
- tfm.exec.disableAfkDeath(true)
- tfm.exec.disableAutoShaman(true)
- tfm.exec.disableAutoNewGame(true)
- tfm.exec.disableAutoScore(true)
- tfm.exec.disableMortCommand(true)
- tfm.exec.newGame(map,false)
- emote=0
- fim=0
- on=0
- f=0
- function eventLoop(elapsed, remaining)
- if emote == 1 then
- tfm.exec.playEmote(n, 0, n)
- elseif emote == 2 then
- tfm.exec.playEmote(n, 5, n)
- end
- tfm.exec.setUIMapName(" New Year "..year.." ")
- if f == 1 then
- tfm.exec.displayParticle(1, math.random(113,720), 355, 0, 0, 0, -0.4, n)
- end
- if fim == 1 then
- x=math.random(180,240)
- y=math.random(100,150)
- s=math.random(1,5)
- if s == 1 then
- r=0
- elseif s == 2 then
- r=1
- elseif s == 3 then
- r=2
- elseif s == 4 then
- r=9
- elseif s == 5 then
- r=13
- end
- tfm.exec.displayParticle(r, x, y, 0, 0, 0, 0.1, n)
- tfm.exec.displayParticle(r, x, y, 0, 0, 0, -0.1, n)
- tfm.exec.displayParticle(r, x, y, 0, 0, 0.1, 0, n)
- tfm.exec.displayParticle(r, x, y, 0, 0, -0.1, 0, n)
- tfm.exec.displayParticle(r, x, y, 0, 0, 0.07, 0.07, n)
- tfm.exec.displayParticle(r, x, y, 0, 0, -0.07, 0.07, n)
- tfm.exec.displayParticle(r, x, y, 0, 0, -0.07, -0.07, n)
- tfm.exec.displayParticle(r, x, y, 0, 0, 0.07, -0.07, n)
- x=math.random(180,240)
- y=math.random(100,150)
- tfm.exec.displayParticle(r, x, y, 0, 0, 0, 0.1, n)
- tfm.exec.displayParticle(r, x, y, 0, 0, 0, -0.1, n)
- tfm.exec.displayParticle(r, x, y, 0, 0, 0.1, 0, n)
- tfm.exec.displayParticle(r, x, y, 0, 0, -0.1, 0, n)
- tfm.exec.displayParticle(r, x, y, 0, 0, 0.07, 0.07, n)
- tfm.exec.displayParticle(r, x, y, 0, 0, -0.07, 0.07, n)
- tfm.exec.displayParticle(r, x, y, 0, 0, -0.07, -0.07, n)
- tfm.exec.displayParticle(r, x, y, 0, 0, 0.07, -0.07, n)
- x=math.random(180,240)
- y=math.random(100,150)
- tfm.exec.displayParticle(r, x, y, 0, 0, 0, 0.1, n)
- tfm.exec.displayParticle(r, x, y, 0, 0, 0, -0.1, n)
- tfm.exec.displayParticle(r, x, y, 0, 0, 0.1, 0, n)
- tfm.exec.displayParticle(r, x, y, 0, 0, -0.1, 0, n)
- tfm.exec.displayParticle(r, x, y, 0, 0, 0.07, 0.07, n)
- tfm.exec.displayParticle(r, x, y, 0, 0, -0.07, 0.07, n)
- tfm.exec.displayParticle(r, x, y, 0, 0, -0.07, -0.07, n)
- tfm.exec.displayParticle(r, x, y, 0, 0, 0.07, -0.07, n)
- -------------------
- x=math.random(630,690)
- y=math.random(100,150)
- tfm.exec.displayParticle(r, x, y, 0, 0, 0, 0.1, n)
- tfm.exec.displayParticle(r, x, y, 0, 0, 0, -0.1, n)
- tfm.exec.displayParticle(r, x, y, 0, 0, 0.1, 0, n)
- tfm.exec.displayParticle(r, x, y, 0, 0, -0.1, 0, n)
- tfm.exec.displayParticle(r, x, y, 0, 0, 0.07, 0.07, n)
- tfm.exec.displayParticle(r, x, y, 0, 0, -0.07, 0.07, n)
- tfm.exec.displayParticle(r, x, y, 0, 0, -0.07, -0.07, n)
- tfm.exec.displayParticle(r, x, y, 0, 0, 0.07, -0.07, n)
- x=math.random(630,690)
- y=math.random(100,150)
- tfm.exec.displayParticle(r, x, y, 0, 0, 0, 0.1, n)
- tfm.exec.displayParticle(r, x, y, 0, 0, 0, -0.1, n)
- tfm.exec.displayParticle(r, x, y, 0, 0, 0.1, 0, n)
- tfm.exec.displayParticle(r, x, y, 0, 0, -0.1, 0, n)
- tfm.exec.displayParticle(r, x, y, 0, 0, 0.07, 0.07, n)
- tfm.exec.displayParticle(r, x, y, 0, 0, -0.07, 0.07, n)
- tfm.exec.displayParticle(r, x, y, 0, 0, -0.07, -0.07, n)
- tfm.exec.displayParticle(r, x, y, 0, 0, 0.07, -0.07, n)
- x=math.random(630,690)
- y=math.random(100,150)
- tfm.exec.displayParticle(r, x, y, 0, 0, 0, 0.1, n)
- tfm.exec.displayParticle(r, x, y, 0, 0, 0, -0.1, n)
- tfm.exec.displayParticle(r, x, y, 0, 0, 0.1, 0, n)
- tfm.exec.displayParticle(r, x, y, 0, 0, -0.1, 0, n)
- tfm.exec.displayParticle(r, x, y, 0, 0, 0.07, 0.07, n)
- tfm.exec.displayParticle(r, x, y, 0, 0, -0.07, 0.07, n)
- tfm.exec.displayParticle(r, x, y, 0, 0, -0.07, -0.07, n)
- tfm.exec.displayParticle(r, x, y, 0, 0, 0.07, -0.07, n)
- tfm.exec.displayParticle(0, 200, 350, 0, 0, 0, -0.2, n)
- tfm.exec.displayParticle(0, 210, 350, 0, 0, 0, -0.2, n)
- tfm.exec.displayParticle(0, 220, 350, 0, 0, 0, -0.2, n)
- tfm.exec.displayParticle(0, 205, 330, 0, 0, 0, -0.2, n)
- tfm.exec.displayParticle(0, 215, 330, 0, 0, 0, -0.2, n)
- tfm.exec.displayParticle(0, 200, 310, 0, 0, 0, -0.2, n)
- tfm.exec.displayParticle(0, 210, 310, 0, 0, 0, -0.2, n)
- tfm.exec.displayParticle(0, 220, 310, 0, 0, 0, -0.2, n)
- tfm.exec.displayParticle(0, 205, 280, 0, 0, 0, -0.2, n)
- tfm.exec.displayParticle(0, 215, 280, 0, 0, 0, -0.2, n)
- tfm.exec.displayParticle(0, 650, 350, 0, 0, 0, -0.2, n)
- tfm.exec.displayParticle(0, 660, 350, 0, 0, 0, -0.2, n)
- tfm.exec.displayParticle(0, 670, 350, 0, 0, 0, -0.2, n)
- tfm.exec.displayParticle(0, 655, 330, 0, 0, 0, -0.2, n)
- tfm.exec.displayParticle(0, 665, 330, 0, 0, 0, -0.2, n)
- tfm.exec.displayParticle(0, 650, 310, 0, 0, 0, -0.2, n)
- tfm.exec.displayParticle(0, 660, 310, 0, 0, 0, -0.2, n)
- tfm.exec.displayParticle(0, 670, 310, 0, 0, 0, -0.2, n)
- tfm.exec.displayParticle(0, 655, 280, 0, 0, 0, -0.2, n)
- tfm.exec.displayParticle(0, 665, 280, 0, 0, 0, -0.2, n)
- elseif fim == 2 then
- ui.addTextArea(1,"<p align='center'><font face='soopafresh' size='16'> </p><p align='center'><font face='soopafresh' size='110'>"..year.."</p>",p,89,80,711,200,0x5D7D90,0x5D7D90,0,true)
- ui.addTextArea(2,"<p align='center'><font face='soopafresh' size='28'>Happy New Year</p>",p,89,90,711,200,0x5D7D90,0x5D7D90,0,true)
- x=math.random(180,240)
- y=math.random(100,150)
- s=math.random(1,5)
- if s == 1 then
- r=0
- elseif s == 2 then
- r=1
- elseif s == 3 then
- r=2
- elseif s == 4 then
- r=9
- elseif s == 5 then
- r=13
- end
- tfm.exec.displayParticle(r, x, y, 0, 0, 0, 0.1, n)
- tfm.exec.displayParticle(r, x, y, 0, 0, 0, -0.1, n)
- tfm.exec.displayParticle(r, x, y, 0, 0, 0.1, 0, n)
- tfm.exec.displayParticle(r, x, y, 0, 0, -0.1, 0, n)
- tfm.exec.displayParticle(r, x, y, 0, 0, 0.07, 0.07, n)
- tfm.exec.displayParticle(r, x, y, 0, 0, -0.07, 0.07, n)
- tfm.exec.displayParticle(r, x, y, 0, 0, -0.07, -0.07, n)
- tfm.exec.displayParticle(r, x, y, 0, 0, 0.07, -0.07, n)
- x=math.random(180,240)
- y=math.random(100,150)
- tfm.exec.displayParticle(r, x, y, 0, 0, 0, 0.1, n)
- tfm.exec.displayParticle(r, x, y, 0, 0, 0, -0.1, n)
- tfm.exec.displayParticle(r, x, y, 0, 0, 0.1, 0, n)
- tfm.exec.displayParticle(r, x, y, 0, 0, -0.1, 0, n)
- tfm.exec.displayParticle(r, x, y, 0, 0, 0.07, 0.07, n)
- tfm.exec.displayParticle(r, x, y, 0, 0, -0.07, 0.07, n)
- tfm.exec.displayParticle(r, x, y, 0, 0, -0.07, -0.07, n)
- tfm.exec.displayParticle(r, x, y, 0, 0, 0.07, -0.07, n)
- x=math.random(180,240)
- y=math.random(100,150)
- tfm.exec.displayParticle(r, x, y, 0, 0, 0, 0.1, n)
- tfm.exec.displayParticle(r, x, y, 0, 0, 0, -0.1, n)
- tfm.exec.displayParticle(r, x, y, 0, 0, 0.1, 0, n)
- tfm.exec.displayParticle(r, x, y, 0, 0, -0.1, 0, n)
- tfm.exec.displayParticle(r, x, y, 0, 0, 0.07, 0.07, n)
- tfm.exec.displayParticle(r, x, y, 0, 0, -0.07, 0.07, n)
- tfm.exec.displayParticle(r, x, y, 0, 0, -0.07, -0.07, n)
- tfm.exec.displayParticle(r, x, y, 0, 0, 0.07, -0.07, n)
- -------------------
- x=math.random(630,690)
- y=math.random(100,150)
- tfm.exec.displayParticle(r, x, y, 0, 0, 0, 0.1, n)
- tfm.exec.displayParticle(r, x, y, 0, 0, 0, -0.1, n)
- tfm.exec.displayParticle(r, x, y, 0, 0, 0.1, 0, n)
- tfm.exec.displayParticle(r, x, y, 0, 0, -0.1, 0, n)
- tfm.exec.displayParticle(r, x, y, 0, 0, 0.07, 0.07, n)
- tfm.exec.displayParticle(r, x, y, 0, 0, -0.07, 0.07, n)
- tfm.exec.displayParticle(r, x, y, 0, 0, -0.07, -0.07, n)
- tfm.exec.displayParticle(r, x, y, 0, 0, 0.07, -0.07, n)
- x=math.random(630,690)
- y=math.random(100,150)
- tfm.exec.displayParticle(r, x, y, 0, 0, 0, 0.1, n)
- tfm.exec.displayParticle(r, x, y, 0, 0, 0, -0.1, n)
- tfm.exec.displayParticle(r, x, y, 0, 0, 0.1, 0, n)
- tfm.exec.displayParticle(r, x, y, 0, 0, -0.1, 0, n)
- tfm.exec.displayParticle(r, x, y, 0, 0, 0.07, 0.07, n)
- tfm.exec.displayParticle(r, x, y, 0, 0, -0.07, 0.07, n)
- tfm.exec.displayParticle(r, x, y, 0, 0, -0.07, -0.07, n)
- tfm.exec.displayParticle(r, x, y, 0, 0, 0.07, -0.07, n)
- x=math.random(630,690)
- y=math.random(100,150)
- tfm.exec.displayParticle(r, x, y, 0, 0, 0, 0.1, n)
- tfm.exec.displayParticle(r, x, y, 0, 0, 0, -0.1, n)
- tfm.exec.displayParticle(r, x, y, 0, 0, 0.1, 0, n)
- tfm.exec.displayParticle(r, x, y, 0, 0, -0.1, 0, n)
- tfm.exec.displayParticle(r, x, y, 0, 0, 0.07, 0.07, n)
- tfm.exec.displayParticle(r, x, y, 0, 0, -0.07, 0.07, n)
- tfm.exec.displayParticle(r, x, y, 0, 0, -0.07, -0.07, n)
- tfm.exec.displayParticle(r, x, y, 0, 0, 0.07, -0.07, n)
- tfm.exec.displayParticle(0, 200, 350, 0, 0, 0, -0.2, n)
- tfm.exec.displayParticle(0, 210, 350, 0, 0, 0, -0.2, n)
- tfm.exec.displayParticle(0, 220, 350, 0, 0, 0, -0.2, n)
- tfm.exec.displayParticle(0, 205, 330, 0, 0, 0, -0.2, n)
- tfm.exec.displayParticle(0, 215, 330, 0, 0, 0, -0.2, n)
- tfm.exec.displayParticle(0, 200, 310, 0, 0, 0, -0.2, n)
- tfm.exec.displayParticle(0, 210, 310, 0, 0, 0, -0.2, n)
- tfm.exec.displayParticle(0, 220, 310, 0, 0, 0, -0.2, n)
- tfm.exec.displayParticle(0, 205, 280, 0, 0, 0, -0.2, n)
- tfm.exec.displayParticle(0, 215, 280, 0, 0, 0, -0.2, n)
- tfm.exec.displayParticle(0, 650, 350, 0, 0, 0, -0.2, n)
- tfm.exec.displayParticle(0, 660, 350, 0, 0, 0, -0.2, n)
- tfm.exec.displayParticle(0, 670, 350, 0, 0, 0, -0.2, n)
- tfm.exec.displayParticle(0, 655, 330, 0, 0, 0, -0.2, n)
- tfm.exec.displayParticle(0, 665, 330, 0, 0, 0, -0.2, n)
- tfm.exec.displayParticle(0, 650, 310, 0, 0, 0, -0.2, n)
- tfm.exec.displayParticle(0, 660, 310, 0, 0, 0, -0.2, n)
- tfm.exec.displayParticle(0, 670, 310, 0, 0, 0, -0.2, n)
- tfm.exec.displayParticle(0, 655, 280, 0, 0, 0, -0.2, n)
- tfm.exec.displayParticle(0, 665, 280, 0, 0, 0, -0.2, n)
- elseif fim == 3 then
- tfm.exec.displayParticle(1, 280, 355, 0, 0, 0, -0.5, n)
- tfm.exec.displayParticle(1, 600, 355, 0, 0, 0, -0.5, n)
- end
- end
- function eventKeyboard(p, keyid, down, x, y)
- if p == adm then
- x=math.random(115,750)
- y=math.random(50,255)
- s=math.random(1,5)
- if s == 1 then
- r=0
- elseif s == 2 then
- r=1
- elseif s == 3 then
- r=2
- elseif s == 4 then
- r=9
- elseif s == 5 then
- r=13
- end
- if keyid == 88 then
- tfm.exec.displayParticle(r, x, y+5, 0, 0, 0, 0.1, n)
- tfm.exec.displayParticle(r, x, y-5, 0, 0, 0, -0.1, n)
- tfm.exec.displayParticle(r, x+5, y, 0, 0, 0.1, 0, n)
- tfm.exec.displayParticle(r, x-5, y, 0, 0, -0.1, 0, n)
- tfm.exec.displayParticle(r, x+5, y+5, 0, 0, 0.07, 0.07, n)
- tfm.exec.displayParticle(r, x-5, y+5, 0, 0, -0.07, 0.07, n)
- tfm.exec.displayParticle(r, x-5, y-5, 0, 0, -0.07, -0.07, n)
- tfm.exec.displayParticle(r, x+5, y-5, 0, 0, 0.07, -0.07, n)
- tfm.exec.displayParticle(r, x, y+25, 0, 0, 0, 0.1, n)
- tfm.exec.displayParticle(r, x, y-25, 0, 0, 0, -0.1, n)
- tfm.exec.displayParticle(r, x+25, y, 0, 0, 0.1, 0, n)
- tfm.exec.displayParticle(r, x-25, y, 0, 0, -0.1, 0, n)
- tfm.exec.displayParticle(r, x+25, y+25, 0, 0, 0.07, 0.07, n)
- tfm.exec.displayParticle(r, x-25, y+25, 0, 0, -0.07, 0.07, n)
- tfm.exec.displayParticle(r, x-25, y-25, 0, 0, -0.07, -0.07, n)
- tfm.exec.displayParticle(r, x+25, y-25, 0, 0, 0.07, -0.07, n)
- tfm.exec.displayParticle(r, x, y+15, 0, 0, 0, 0.1, n)
- tfm.exec.displayParticle(r, x, y-15, 0, 0, 0, -0.1, n)
- tfm.exec.displayParticle(r, x+15, y, 0, 0, 0.1, 0, n)
- tfm.exec.displayParticle(r, x-15, y, 0, 0, -0.1, 0, n)
- tfm.exec.displayParticle(r, x+15, y+15, 0, 0, 0.07, 0.07, n)
- tfm.exec.displayParticle(r, x-15, y+15, 0, 0, -0.07, 0.07, n)
- tfm.exec.displayParticle(r, x-15, y-15, 0, 0, -0.07, -0.07, n)
- tfm.exec.displayParticle(r, x+15, y-15, 0, 0, 0.07, -0.07, n)
- elseif keyid == 90 then
- tfm.exec.displayParticle(r, x, y, 0, 0, 0, 0.1, n)
- tfm.exec.displayParticle(r, x, y, 0, 0, 0, -0.1, n)
- tfm.exec.displayParticle(r, x, y, 0, 0, 0.1, 0, n)
- tfm.exec.displayParticle(r, x, y, 0, 0, -0.1, 0, n)
- tfm.exec.displayParticle(r, x, y, 0, 0, 0.07, 0.07, n)
- tfm.exec.displayParticle(r, x, y, 0, 0, -0.07, 0.07, n)
- tfm.exec.displayParticle(r, x, y, 0, 0, -0.07, -0.07, n)
- tfm.exec.displayParticle(r, x, y, 0, 0, 0.07, -0.07, n)
- elseif keyid == 67 then
- tfm.exec.displayParticle(9, 444, 355, 0, 0, 0, -0.6, n)
- tfm.exec.displayParticle(9, 444, 355, 0, 0, 0.05, -0.6, n)
- tfm.exec.displayParticle(9, 444, 355, 0, 0, -0.05, -0.6, n)
- tfm.exec.displayParticle(9, 444, 355, 0, 0, 0.2, -0.12, n)
- tfm.exec.displayParticle(9, 444, 355, 0, 0, -0.2, -0.12, n)
- tfm.exec.displayParticle(9, 444, 355, 0, 0, 0.18, -0.3, n)
- tfm.exec.displayParticle(9, 444, 355, 0, 0, -0.18, -0.3, n)
- tfm.exec.displayParticle(9, 444, 355, 0, 0, 0.09, -0.54, n)
- tfm.exec.displayParticle(9, 444, 355, 0, 0, -0.09, -0.54, n)
- tfm.exec.displayParticle(9, 444, 355, 0, 0, -0.14, -0.42, n)
- tfm.exec.displayParticle(9, 444, 355, 0, 0, 0.14, -0.44, n)
- elseif keyid == 86 then
- if f == 0 then
- f=1
- elseif f == 1 then
- f=0
- end
- elseif keyid == 66 then
- on=1
- elseif keyid == 32 then
- fim=fim+1
- elseif keyid == 78 then
- emote=1
- elseif keyid == 77 then
- emote=2
- elseif keyid == 81 then
- emote=0
- on=0
- fim=0
- f=0
- ui.removeTextArea(1, n)
- ui.removeTextArea(2, n)
- end
- end
- end
- function eventPlayerDied(p)
- tfm.exec.respawnPlayer(p)
- end
- function eventNewPlayer(p)
- system.bindKeyboard(p,90,true,true)
- system.bindKeyboard(p,88,true,true)
- system.bindKeyboard(p,67,true,true)
- system.bindKeyboard(p,86,true,true)
- system.bindKeyboard(p,66,true,true)
- system.bindKeyboard(p,32,true,true)
- system.bindKeyboard(p,78,true,true)
- system.bindKeyboard(p,77,true,true)
- system.bindKeyboard(p,81,true,true)
- if on == 1 then
- else
- tfm.exec.respawnPlayer(p)
- end
- end
- table.foreach(tfm.get.room.playerList,eventNewPlayer)
- ui.addPopup(0, 0, "<font size='15'><p align='center'>Info</p></font><p align='left'></p><p align='left'>[Z] Small Explosion</p><p align='left'>[X] Star Explosion</p><p align='left'>[C] Central Lighting</p><p align='left'>[V] Random Small Lighting</p><p align='left'>[B] Disable respawn</p><p align='left'>[N] All Dancing</p><p align='left'>[M] All Clap Hands</p><p align='left'>[SpaceBar] (1x) Big Explosion | (2x) Menssage Happy new year | (3x) End and simple particles</p><p align='left'>[Q] Reset all values</p>", adm, 200, 80, 400, true)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement