×

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
  • /
  • Fajerwerki!
1 / 4 › »
Fajerwerki!
Woterek
« Citoyen »
1386687960000
    • Woterek#0000
    • Profil
    • Derniers messages
    • Tribu
#1
  0
Z okazji zbliżającego się nowego roku postanowiłem stworzyć skrypt na fajerwerki :D

http://i.imgur.com/42ZEuTM.png
Pierwsza biała kropka zmienia kolor (druga kropka musi swiecic się na czerwono).
Druga zmienia styl.
Serce zmienia kształt wybuchów!
Skrypt pastebin
Pamiętaj by mieć włączone particles!
Kliknij na mape by wystrzelic fajerwerke

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
Jakanazwa
« Citoyen »
1386690900000
    • Jakanazwa#9639
    • Profil
    • Derniers messages
#2
  0
supper muszę to zobaczyć
Noenglish
« Citoyen »
1386694620000
    • Noenglish#0000
    • Profil
    • Derniers messages
#3
  0
Niezłe polecam.
Pookiewolf
« Citoyen »
1386695400000
    • Pookiewolf#0000
    • Profil
    • Derniers messages
#4
  0
CUDO *_*
Patkall
« Censeur »
1386700140000
    • Patkall#0000
    • Profil
    • Derniers messages
    • Tribu
#5
  0
Nie wiedziałem, że aż takie cuda można robić ze skryptami LUA.
Chmurkaz
« Citoyen »
1386752100000
    • Chmurkaz#7119
    • Profil
    • Derniers messages
    • Tribu
#6
  0
poprostu takie cudo ,że nieda się opisać *3*
Matinpnz
« Citoyen »
1386775920000
    • Matinpnz#0000
    • Profil
    • Derniers messages
#7
  0
mi nie działa ;-;
A kiedy ma działać i gdzie się robi żeby Fireworks wystrzeliło ?
Woterek
« Citoyen »
1386779100000
    • Woterek#0000
    • Profil
    • Derniers messages
    • Tribu
#8
  0
Matinpnz a dit :
mi nie działa ;-;
A kiedy ma działać i gdzie się robi żeby Fireworks wystrzeliło ?

Skrypt powinien dzialac.
Wszystko jest napisane.
Woterek a dit :
Pamiętaj by mieć włączone particles!
Kliknij na mape by wystrzelic fajerwerke
Lisica
« Citoyen »
1387008240000
    • Lisica#5259
    • Profil
    • Derniers messages
    • Tribu
#9
  0
Ale cudo *O*
Alteera
« Citoyen »
1387027020000
    • Alteera#7411
    • Profil
    • Derniers messages
    • Tribu
#10
  0
Przecudowne cudo! *.*
Karachomik
« Citoyen »
1387027440000
    • Karachomik#0000
    • Profil
    • Derniers messages
#11
  0
A jak to zrobić? xD
Vilenne
« Citoyen »
1387037280000
    • Vilenne#0000
    • Profil
    • Derniers messages
#12
  0
Karachomik a dit :
A jak to zrobić? xD

Musisz wpisać komendę /lua w chatce plemiennej, a następnie wkleić w okienko kod, który został podany tutaj: http://pastebin.com/huBNPXGx
Lisica
« Citoyen »
1387133280000
    • Lisica#5259
    • Profil
    • Derniers messages
    • Tribu
#13
  0
Grrr....nie umiem , pomóz mi
Vilenne
« Citoyen »
1387136640000
    • Vilenne#0000
    • Profil
    • Derniers messages
#14
  0
Lessiehorror a dit :
Grrr....nie umiem , pomóz mi

Gdy wkleisz kod LUA do okienka, zwykle kliknij na mapę.
Pamiętaj, aby w ustawieniach mieć włączone 'Display particles effects'.
Chomikfrugo
1387213140000
    • Chomikfrugo#0000
    • Profil
    • Derniers messages
#15
[Modéré par Coska]
Ukemochi
1387225560000
    • Ukemochi#1631
    • Profil
    • Derniers messages
#16
[Modéré par Coska]
Xdsandziaxd
« Citoyen »
1387281780000
    • Xdsandziaxd#0000
    • Profil
    • Derniers messages
#17
  0
Cudo :D
Ogonik
« Censeur »
1388151000000
    • Ogonik#0000
    • Profil
    • Derniers messages
#18
  0
pikne! (specjalnie napisane)
Woterek
« Citoyen »
1388352600000
    • Woterek#0000
    • Profil
    • Derniers messages
    • Tribu
#19
  0
Dzięki Ouake'owi kod jest krótszy! O WIELE KRÓTSZY!
Także dodał on dwa nowe niesamowite kształty!
Shizophremia
« Citoyen »
1388538720000
    • Shizophremia#0000
    • Profil
    • Derniers messages
#20
  0
Woterek a dit :
Dzięki Ouake'owi kod jest krótszy! O WIELE KRÓTSZY!
Także dodał on dwa nowe niesamowite krztałty!

Brawo dla Quake...no i kształty* ;)
  • Forums
  • /
  • Transformice
  • /
  • Modules
  • /
  • Fajerwerki!
1 / 4 › »
© Atelier801 2018

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

Version 1.27