×

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!
« ‹ 2 / 4 › »
Fajerwerki!
Krejziolka
1388759760000
    • Krejziolka#0000
    • Profil
    • Derniers messages
    • Tribu
#21
[Modéré par Coska]
Rohere
« Consul »
1388846940000
    • Rohere#0000
    • Profil
    • Derniers messages
    • Tribu
#22
  0
Brawo! Przerobiłem serca na -->
Patkall
« Censeur »
1389120240000
    • Patkall#0000
    • Profil
    • Derniers messages
    • Tribu
#23
  0
Testowałem i skrypt jest imponujący tylko troche razi mnie to, że nie można wystrzelić dwóch ładunków jednocześnie, oraz to, że robryzg jest taki długi.
Woterek
« Citoyen »
1389129720000
    • Woterek#0000
    • Profil
    • Derniers messages
    • Tribu
#24
  0
Patkall a dit :
Testowałem i skrypt jest imponujący tylko troche razi mnie to, że nie można wystrzelić dwóch ładunków jednocześnie, oraz to, że robryzg jest taki długi.

Tylko jest jedna fajerwerka w jednym czasie ponieważ używa to os.time() jeśli byłyby 2 to by to wariowało i by fajerwerki rozbryzgiwały się nie pokolei.(oczywiscie jest możliwość dodania wiecej niz 1 ale badzmy szczerzy nie chce mi sie :X)

Rozbryzg jest długi z powodu czasu pulsowania eventLoop() 500 milisekund bardzo chetnie jeśli byłaby możliwość przyspieszył bym to lecz nie jest możliwe jakiekolwiek przyspieszenie eventLoop()

Jeśli chcesz to moge postarać się przerobić skrypt i zrobic 1 fajerwerke dla 1 gracza przezco przy wiekszej ilosci graczy bedzie wiecej tych fajerwerek.
Chvdy
« Citoyen »
1389537240000
    • Chvdy#1405
    • Profil
    • Derniers messages
#25
  0
Jak się robi fajerwerki i lub coś takiego innego skąd ty Woterek wiesz jakie kody ?
Djlilixd
« Citoyen »
1390002900000
    • Djlilixd#0000
    • Profil
    • Derniers messages
    • Tribu
#26
  0
/delete
Matpatis
« Citoyen »
1390065900000
    • Matpatis#0000
    • Profil
    • Derniers messages
    • Tribu
#27
  0
z fajerwerakomi to kłamstweo
Rohere
« Consul »
1391442300000
    • Rohere#0000
    • Profil
    • Derniers messages
    • Tribu
#28
  0
Wiesz jak to odpalić?

Jak nie to poszukaj wpisz /lua

i wpisz kod:

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
Maikeru
« Citoyen »
1393690740000
    • Maikeru#1000
    • Profil
    • Derniers messages
    • Tribu
#29
  0
Matpatis a dit :
z fajerwerakomi to kłamstweo

Wcale nie! -.-
Bibrysek
« Censeur »
1393703400000
    • Bibrysek#0000
    • Profil
    • Derniers messages
#30
  0
Jezu co ja wygadałam xd umiem umiem...
Jerzypochopi
« Citoyen »
1393771080000
    • Jerzypochopi#0000
    • Profil
    • Derniers messages
#31
  0
a czy to room?
Maikeru
« Citoyen »
1393772280000
    • Maikeru#1000
    • Profil
    • Derniers messages
    • Tribu
#32
  0
Jerzypochopi a dit :
a czy to room?

Nie.
Wiktoruullaa
« Citoyen »
1397062740000
    • Wiktoruullaa#0000
    • Profil
    • Derniers messages
#33
  0
No ale jak się daje te fajewerki ?
Mohijg
1397144040000
    • Mohijg#0000
    • Profil
    • Derniers messages
    • Tribu
#34
[Modéré par Coska]
Myszajika
« Citoyen »
1398531960000
    • Myszajika#0000
    • Profil
    • Derniers messages
    • Tribu
#35
  0
jak na to wejść?
Naticharllie
« Citoyen »
1398533760000
    • Naticharllie#0000
    • Profil
    • Derniers messages
#36
  0
Myszajika a dit :
jak na to wejść?

Kopiujesz ten kod/tekst na fioletowo (Jak kto woli) i wpisujesz w chacie ./lua i tam dajesz kod/tekst i odpalasz. Jak nie wiesz o co chodzi w tych fajerwerkach to poczytaj.
Bibrysek
« Censeur »
1398615780000
    • Bibrysek#0000
    • Profil
    • Derniers messages
#37
  0
SUPER! Udało mi się w końcu zrobic lua w chtace plemiennej! Dzięks ^^ :V
Gmysia
« Citoyen »
1399299060000
    • Gmysia#0000
    • Profil
    • Derniers messages
#38
  0
Fajerwerki sie popsuły XD
Aniolkaa
« Citoyen »
1401203400000
    • Aniolkaa#0000
    • Profil
    • Derniers messages
    • Tribu
#39
  0
udało mi sie zrobic to jest PROOOOOOOOO!!!!!!!!!
Aniolkaa
1401204480000
    • Aniolkaa#0000
    • Profil
    • Derniers messages
    • Tribu
#40
[Modéré par Rekichan]
  • Forums
  • /
  • Transformice
  • /
  • Modules
  • /
  • Fajerwerki!
« ‹ 2 / 4 › »
© Atelier801 2018

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

Version 1.27