×

Langue

Fermer
Atelier 801
  • Forums
  • Dev Tracker
  • Connexion
    • English Français
      Português do Brasil Español
      Türkçe Polski
      Magyar Română
      العربية Skandinavisk
      Nederlands Deutsch
      Bahasa Indonesia Русский
      中文 Filipino
      Lietuvių kalba 日本語
      Suomi עברית
      Italiano Česky
      Hrvatski Slovensky
      Български Latviešu
      Estonian
  • Langue
  • Forums
  • /
  • Transformice
  • /
  • Modules
  • /
  • [Script] Fireworks
1 / 3 › »
[Script] Fireworks
Woterek
« Citoyen »
1386688380000
    • Woterek#0000
    • Profil
    • Derniers messages
    • Tribu
#1
  0
To celebrate the upcoming new year, I decided to make a script for fireworks.

http://i.imgur.com/42ZEuTM.png
The frist white dot changes color.
The secound dot shanges style.
The heart changing curves!
script pastebin
Remember to have particles on!
Click on the screen to fire a firework!

code a dit :

a,b = 0,0
part = 0
kon,rod = 0,0
A,B="R","R"

Party={29,24,23,22,21,14,13,11,9,4,2,1,0}
r={1,1,1,1,1,1}
Kon2={0,4,1,9,11,13}

DPart={
A={1,0,-1,0,0,1,0},
B={0,0,-0.3,0.2,0,0,0}
}

for v,dis in pairs({"utoNewGame","utoShaman","utoTimeLeft","fkDeath"}) do
tfm.exec["disableA"..dis](true)
end

tfm.exec.newGame('<C><P F="3" /><Z><S><S L="162" X="513" H="45" Y="366" T="11" P="0,0,0.05,0.1,-20,0,0,0" /><S L="801" X="400" H="42" Y="379" T="11" P="0,0,0.05,0.1,0,0,0,0" /><S L="202" X="649" H="150" Y="353" T="11" P="0,0,0.05,0.1,-40,0,0,0" /><S L="155" X="769" H="200" Y="317" T="11" P="0,0,0.05,0.1,-10,0,0,0" /></S><D><P X="656" Y="27" T="64" P="0,0" /><T Y="359" X="70" /></D><O /></Z></C>')
tfm.exec.setUIMapName('<textformat tabstops="[500]"><R>HAPPY NEW YEAR!\tBy Woterek</R>')

function eventPlayerDied(name)
tfm.exec.respawnPlayer(name)
end

function eventNewPlayer(name)
tfm.exec.respawnPlayer(name)
system.bindMouse(name, true)
ui.addTextArea(1, '<a href="event:next"><font size="25">•<font></a> <'..A..'><a href="event:kon"><font size="25">•<font></a> <'..B..'><a href="event:rod"><font size="25">♥<font></a>', name, 730, 340, nil, nil, 0, 0, 1)
end

function eventTextAreaCallback(id, name, cb)
if cb == 'kon' then
kon=(kon+1)%3
if kon == 0 then
A="R"
elseif kon == 1 then
A="J"
elseif kon == 2 then
A="VP"
part = 0
end
elseif cb == 'rod' then
rod=(rod+1)%4
if rod == 0 then
B="R"
elseif rod == 1 then
B="J"
elseif rod == 2 then
B="VP"
elseif rod == 3 then
B="CH"
end
elseif cb == 'next' then
if part==29 then
part=0
b = 1
end
for i,arg in pairs(Party) do
if part==arg then
part=Party[i-1]
end
end
if part==0 and b==0 then
part = 1
end
end
ui.addTextArea(1, '<a href="event:next"><font size="25">•<font></a> <'..A..'><a href="event:kon"><font size="25">•<font></a> <'..B..'><a href="event:rod"><font size="25">♥<font></a>', name, 730, 340, nil, nil, 0, 0, 1)
end

for name in pairs(tfm.get.room.playerList) do
eventNewPlayer(name)
end

function eventMouse(name, x, y)
if a == 0 then
time = os.time()
for i=1,7 do
tfm.exec.displayParticle(13, x+DPart.A, 550, 0, -4+DPart.B, 0, -0.7, nil)
end
mx,my,a = x,100,1
end
end

function eventLoop()
if a == 1 then
for i=1,6 do
if time < os.time() - i*500 and r == 1 then
r = 0
if kon == 1 then
part = 24-math.abs(i-4)
elseif kon == 2 then
part = Kon2
end
for t=0,2*math.pi,0.1 do
if rod == 0 then
x=i*10*math.sin(t) + mx
y=i*10*math.cos(t)
elseif rod == 1 then
x=i*(16*math.sin(t)^3) + mx
y=i*(13*math.cos(t)-5*math.cos(2*t)-2*math.cos(3*t)-math.cos(4*t))
elseif rod == 2 then
x=i*20*(math.sin(t)^5)+mx
y=i*20*(math.cos(t)^5)
elseif rod == 3 then
x=i*5*((math.sin(t)^5)+(math.sin(5*t)^5)+math.asin(math.sin(t)))+mx
y=i*5*((math.cos(t)^5)+(math.cos(5*t)^5)+math.asin(math.cos(t)))
end
y=-y + my
tfm.exec.displayParticle(part, x, y, 0, 0, 0, 0, nil)
end
end
end
if time < os.time() - 3000 then
a = 0
r={1,1,1,1,1,1}
end
end
if b == 1 then
b = 0
end
end
Safwanrockz
« Censeur »
1386690660000
    • Safwanrockz#0095
    • Profil
    • Derniers messages
    • Tribu
#2
  0
Oooh so cute.
Xxwangelwxx
« Citoyen »
1386691020000
    • Xxwangelwxx#0000
    • Profil
    • Derniers messages
#3
  0
Thank you for creating this....So nice *-*
Jordy
« Consul »
1386694860000
    • Jordy#0015
    • Profil
    • Derniers messages
    • Tribu
#4
  0
That looks nice. Well done!
Woterek
« Citoyen »
1386695400000
    • Woterek#0000
    • Profil
    • Derniers messages
    • Tribu
#5
  0
Small update now it looks little bit better

http://i.imgur.com/pFLRrR6.png
Nhud
« Citoyen »
1386751200000
    • Nhud#7919
    • Profil
    • Derniers messages
#6
  0
so cool ty
Hasannj
« Citoyen »
1386761160000
    • Hasannj#0000
    • Profil
    • Derniers messages
#7
  0
paste.moepl pls :( pastebin closed
Enginfener
« Citoyen »
1386761820000
    • Enginfener#0000
    • Profil
    • Derniers messages
    • Tribu
#8
  0
fireworks why in the corner throws in the middle does not take?
Mikuhl
« Citoyen »
1386768360000
    • Mikuhl#3311
    • Profil
    • Derniers messages
    • Tribu
#9
  0
The heart character ❤ looks much better than ♥.
Arber
« Citoyen »
1386868980000
    • Arber#0000
    • Profil
    • Derniers messages
    • Tribu
#10
  0
It doesnt work!

[•] Init Error : [string "transformice.lua"]:8: '' expected
Thewildnes
« Citoyen »
1386873960000
    • Thewildnes#0000
    • Profil
    • Derniers messages
    • Tribu
#11
  0
Nice ..
Woterek
« Citoyen »
1386879960000
    • Woterek#0000
    • Profil
    • Derniers messages
    • Tribu
#12
  0
Arber a dit :
It doesnt work!

[•] Init Error : [string "transformice.lua"]:8: '' expected

For me it works fine. I think that you not cleaned the lua box before pasting the script.
Cemoscuk
« Citoyen »
1387055460000
    • Cemoscuk#0000
    • Profil
    • Derniers messages
    • Tribu
#13
  0
hard to believe its amazing dude you doin it right!
Limilanali
« Citoyen »
1387064520000
    • Limilanali#0000
    • Profil
    • Derniers messages
    • Tribu
#14
  0
Also, What room is it in? or does it even have a code or room? Just wondering. Cause I want to try it out and I can't because I don't know what room it's in.
Unimeowse
« Citoyen »
1387066080000
    • Unimeowse#0000
    • Profil
    • Derniers messages
    • Tribu
#15
  0
Limilanali a dit :
Also, What room is it in? or does it even have a code or room? Just wondering. Cause I want to try it out and I can't because I don't know what room it's in.

It's not a room, it's a script. Go to your tribe house and type /lua in the chat. A blank screen would appear. Copy and paste the code into the screen and click submit. Enjoy your fireworks :)
Bubbytooo
« Citoyen »
1387071360000
    • Bubbytooo#0000
    • Profil
    • Derniers messages
#16
  0
Awesomee
Sapphiregirl
« Citoyen »
1387078500000
    • Sapphiregirl#7697
    • Profil
    • Derniers messages
    • Tribu
#17
  0
These Fireworks is Awesome. And Changing Colour! :D I'm gonna try it!
Cutepeyton
« Citoyen »
1387085520000
    • Cutepeyton#0000
    • Profil
    • Derniers messages
#18
  0
This is so cute! I wish there was a favorite threads application, I would so add this to it ;) .
Krokettje
« Citoyen »
1387105500000
    • Krokettje#0000
    • Profil
    • Derniers messages
#19
  0
## Init Error : Ediz.lua:274: [string "Krokettje.lua"]:1: unexpected symbol
## [Krokettje] Lua script loaded in 1 ms (4000 max)

Dont works for me
Safwanrockz
« Censeur »
1387112160000
    • Safwanrockz#0095
    • Profil
    • Derniers messages
    • Tribu
#20
  0
Krokettje a dit :
## Init Error : Ediz.lua:274: [string "Krokettje.lua"]:1: unexpected symbol
## [Krokettje] Lua script loaded in 1 ms (4000 max)

Dont works for me

It's working, try copying the script properly.
  • Forums
  • /
  • Transformice
  • /
  • Modules
  • /
  • [Script] Fireworks
1 / 3 › »
© Atelier801 2018

Equipe Conditions Générales d'Utilisation Politique de Confidentialité Contact

Version 1.27