×

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
  • /
  • zamówienia na kody.
« ‹ 139 / 149 › »
zamówienia na kody.
Siemaneczqoo
« Citoyen »
1512925140000
    • Siemaneczqoo#0000
    • Profil
    • Derniers messages
#2761
  1
Sebafrancuz a dit :
Kiyo24 a dit :
Kuib555 a dit :
Potrzebuje kod do teleportowania ale nie tylko siebie ale też innych.
Dziękuje z góry.

function eventNewPlayer(Kuib555)
tfm.exec.bindKeyboard(Kuib555, 32, false, true)
end

function eventKeyboard(name, key)
if key == 32 then
tfm.exec.movePlayer(name, 0, 0, false, 0, -50, false)
end
end

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


Klikając spacje latasz.

Nie możesz zapisywać tekstu bez cudzysłowia powinno być:
function eventNewPlayer("Kuib555")
tfm.exec.bindKeyboard("Kuib555", 32, false, true)
end

a po drugie niepotrzebna jest tu funkcja eventNewPlayer a wystarczy samo:
tfm.exec.bindKeyboard("Kuib555", 32, false, true)

Czy może potrafisz któreś z tych powyżej moich zamówień?
Mlekowaty
« Consul »
1513168500000
    • Mlekowaty#4870
    • Profil
    • Derniers messages
    • Tribu
#2762
  0
Poproszę skrypt:

- Jak DM tylko zamiast kul mają być śnieżki mają uderzać tak samo jak kule.
- Tło ma być w charakterze zimowym.
- Żeby na końcu rundy było napisane kto ma 1 miejsce kto 2 miejsce a kto 3 miejsce [ jeżeli się nie da to chociaż kto pierwsze]
- strzela się S lub strzałką w dół.
- 1 życie.
Rkubi
« Censeur »
1513176660000
    • Rkubi#0000
    • Profil
    • Derniers messages
    • Tribu
#2763
  3
Kuib555 a dit :
Potrzebuje kod do teleportowania ale nie tylko siebie ale też innych.
Dziękuje z góry.

Kod

Code Lua

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
  Admin = "Kuib555"

player = {}

function eventNewPlayer(nick)
if not player[nick] then
player[nick] = {
tp_nick = ""
}
end
system.bindMouse(Admin, true)
end

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

function eventChatCommand(nick, cmd)
local n = string.upper(cmd:sub(4,4))..cmd:sub(5)
if cmd:sub(1,2) == "tp" and tfm.get.room.playerList[n] then
player[nick].tp_nick = n
end
end

function eventMouse(nick, x, y)
if player[nick].tp_nick ~= "" then
tfm.exec.movePlayer(nick, x, y, false, 0, 0, false)
player[nick].tp_nick = ""
end
end

system.disableChatCommandDisplay("tp", true)



Kot_unboksala a dit :
Zrobi ktos kod, ze jak wpisze !fly [komenda tylko dla mnie dostepna] to bede mogla latac spacja, a jak drugi raz wpisze to nie? Cos w stylu Utility lub Shamousey

Kod

Code Lua

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
  Admin = "Kot_unboksala"

player = {}

function eventNewPlayer(nick)
if not player[nick] then
player[nick] = {
fly = false
}
end
system.bindKeyboard(Admin, 32, true, true)
end

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

function eventChatCommand(nick, cmd)
if cmd == "fly" then
if player[nick].fly == false then
player[nick].fly = true
else
player[nick].fly = false
end
end
end

function eventKeyboard(nick, key)
if key == 32 and player[nick].fly == true then
tfm.exec.movePlayer(nick, 0, 0, false, 0, -50, false)
end
end


system.disableChatCommandDisplay("fly", true)


Siemaneczqoo a dit :
Zamówienie!!!

Poproszę o skrypt do tsunami wody!
Albo trzęsienie ziemi!
Albo spadające meteoryty!

Jeśli się nie da to trudno ;)

Z tego prowizorycznie można jedynie zrobić "meteoryty"

Kod
Code Lua

1
2
3
4
5
6
7
  function eventLoop()
for i = 1,3 do
tfm.exec.addShamanObject(85, math.random(0, 4800), -100, 0, math.random(-60, 60), 200, false)
end
end


Dernière modification le 1513177320000
Nikodem62
« Citoyen »
1513346340000
    • Nikodem62#0000
    • Profil
    • Derniers messages
#2764
  0
Ja bym chciał coś takiego że lecą różne żeczy szamana

Dernière modification le 1513346520000
Siemaneczqoo
« Citoyen »
1513355640000
    • Siemaneczqoo#0000
    • Profil
    • Derniers messages
#2765
  0
Rkubi a dit :
Kuib555 a dit :
Potrzebuje kod do teleportowania ale nie tylko siebie ale też innych.
Dziękuje z góry.

Kod

Code Lua

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
  Admin = "Kuib555"

player = {}

function eventNewPlayer(nick)
if not player[nick] then
player[nick] = {
tp_nick = ""
}
end
system.bindMouse(Admin, true)
end

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

function eventChatCommand(nick, cmd)
local n = string.upper(cmd:sub(4,4))..cmd:sub(5)
if cmd:sub(1,2) == "tp" and tfm.get.room.playerList[n] then
player[nick].tp_nick = n
end
end

function eventMouse(nick, x, y)
if player[nick].tp_nick ~= "" then
tfm.exec.movePlayer(nick, x, y, false, 0, 0, false)
player[nick].tp_nick = ""
end
end

system.disableChatCommandDisplay("tp", true)



Kot_unboksala a dit :
Zrobi ktos kod, ze jak wpisze !fly [komenda tylko dla mnie dostepna] to bede mogla latac spacja, a jak drugi raz wpisze to nie? Cos w stylu Utility lub Shamousey

Kod

Code Lua

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
  Admin = "Kot_unboksala"

player = {}

function eventNewPlayer(nick)
if not player[nick] then
player[nick] = {
fly = false
}
end
system.bindKeyboard(Admin, 32, true, true)
end

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

function eventChatCommand(nick, cmd)
if cmd == "fly" then
if player[nick].fly == false then
player[nick].fly = true
else
player[nick].fly = false
end
end
end

function eventKeyboard(nick, key)
if key == 32 and player[nick].fly == true then
tfm.exec.movePlayer(nick, 0, 0, false, 0, -50, false)
end
end


system.disableChatCommandDisplay("fly", true)


Siemaneczqoo a dit :
Zamówienie!!!

Poproszę o skrypt do tsunami wody!
Albo trzęsienie ziemi!
Albo spadające meteoryty!

Jeśli się nie da to trudno ;)

Z tego prowizorycznie można jedynie zrobić "meteoryty"

Kod
Code Lua

1
2
3
4
5
6
7
  function eventLoop()
for i = 1,3 do
tfm.exec.addShamanObject(85, math.random(0, 4800), -100, 0, math.random(-60, 60), 200, false)
end
end


a jak działają te meteoryty bo coś mi nie działa... trzeba coś wpisać?
faktycznie... miałem grunt

Dernière modification le 1513435020000
Rkubi
« Censeur »
1513356780000
    • Rkubi#0000
    • Profil
    • Derniers messages
    • Tribu
#2766
  2
Siemaneczqoo a dit :
Rkubi a dit :
Kuib555 a dit :
Potrzebuje kod do teleportowania ale nie tylko siebie ale też innych.
Dziękuje z góry.

Kod

Code Lua

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
  Admin = "Kuib555"

player = {}

function eventNewPlayer(nick)
if not player[nick] then
player[nick] = {
tp_nick = ""
}
end
system.bindMouse(Admin, true)
end

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

function eventChatCommand(nick, cmd)
local n = string.upper(cmd:sub(4,4))..cmd:sub(5)
if cmd:sub(1,2) == "tp" and tfm.get.room.playerList[n] then
player[nick].tp_nick = n
end
end

function eventMouse(nick, x, y)
if player[nick].tp_nick ~= "" then
tfm.exec.movePlayer(nick, x, y, false, 0, 0, false)
player[nick].tp_nick = ""
end
end

system.disableChatCommandDisplay("tp", true)



Kot_unboksala a dit :
Zrobi ktos kod, ze jak wpisze !fly [komenda tylko dla mnie dostepna] to bede mogla latac spacja, a jak drugi raz wpisze to nie? Cos w stylu Utility lub Shamousey

Kod

Code Lua

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
  Admin = "Kot_unboksala"

player = {}

function eventNewPlayer(nick)
if not player[nick] then
player[nick] = {
fly = false
}
end
system.bindKeyboard(Admin, 32, true, true)
end

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

function eventChatCommand(nick, cmd)
if cmd == "fly" then
if player[nick].fly == false then
player[nick].fly = true
else
player[nick].fly = false
end
end
end

function eventKeyboard(nick, key)
if key == 32 and player[nick].fly == true then
tfm.exec.movePlayer(nick, 0, 0, false, 0, -50, false)
end
end


system.disableChatCommandDisplay("fly", true)


Siemaneczqoo a dit :
Zamówienie!!!

Poproszę o skrypt do tsunami wody!
Albo trzęsienie ziemi!
Albo spadające meteoryty!

Jeśli się nie da to trudno ;)

Z tego prowizorycznie można jedynie zrobić "meteoryty"

Kod
Code Lua

1
2
3
4
5
6
7
  function eventLoop()
for i = 1,3 do
tfm.exec.addShamanObject(85, math.random(0, 4800), -100, 0, math.random(-60, 60), 200, false)
end
end


a jak działają te meteoryty bo coś mi nie działa... trzeba coś wpisać?

Będą normalnie same spadały automatycznie po wczytaniu kodu, pod warunkiem, że na mapie która masz ustawioną nie ma gruntu na górze.
Siemaneczqoo
« Citoyen »
1513448220000
    • Siemaneczqoo#0000
    • Profil
    • Derniers messages
#2767
  0
Rkubi a dit :
Siemaneczqoo a dit :
Rkubi a dit :
Kuib555 a dit :
Potrzebuje kod do teleportowania ale nie tylko siebie ale też innych.
Dziękuje z góry.

Kod

Code Lua

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
  Admin = "Kuib555"

player = {}

function eventNewPlayer(nick)
if not player[nick] then
player[nick] = {
tp_nick = ""
}
end
system.bindMouse(Admin, true)
end

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

function eventChatCommand(nick, cmd)
local n = string.upper(cmd:sub(4,4))..cmd:sub(5)
if cmd:sub(1,2) == "tp" and tfm.get.room.playerList[n] then
player[nick].tp_nick = n
end
end

function eventMouse(nick, x, y)
if player[nick].tp_nick ~= "" then
tfm.exec.movePlayer(nick, x, y, false, 0, 0, false)
player[nick].tp_nick = ""
end
end

system.disableChatCommandDisplay("tp", true)



Kot_unboksala a dit :
Zrobi ktos kod, ze jak wpisze !fly [komenda tylko dla mnie dostepna] to bede mogla latac spacja, a jak drugi raz wpisze to nie? Cos w stylu Utility lub Shamousey

Kod

Code Lua

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
  Admin = "Kot_unboksala"

player = {}

function eventNewPlayer(nick)
if not player[nick] then
player[nick] = {
fly = false
}
end
system.bindKeyboard(Admin, 32, true, true)
end

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

function eventChatCommand(nick, cmd)
if cmd == "fly" then
if player[nick].fly == false then
player[nick].fly = true
else
player[nick].fly = false
end
end
end

function eventKeyboard(nick, key)
if key == 32 and player[nick].fly == true then
tfm.exec.movePlayer(nick, 0, 0, false, 0, -50, false)
end
end


system.disableChatCommandDisplay("fly", true)


Siemaneczqoo a dit :
Zamówienie!!!

Poproszę o skrypt do tsunami wody!
Albo trzęsienie ziemi!
Albo spadające meteoryty!

Jeśli się nie da to trudno ;)

Z tego prowizorycznie można jedynie zrobić "meteoryty"

Kod
Code Lua

1
2
3
4
5
6
7
  function eventLoop()
for i = 1,3 do
tfm.exec.addShamanObject(85, math.random(0, 4800), -100, 0, math.random(-60, 60), 200, false)
end
end


a jak działają te meteoryty bo coś mi nie działa... trzeba coś wpisać?

Będą normalnie same spadały automatycznie po wczytaniu kodu, pod warunkiem, że na mapie która masz ustawioną nie ma gruntu na górze.

a da się z innymi rzeczami? np. spadające owce?
/
zamawiam skrypt z tp kogoś!
/
może tylko admin

Dernière modification le 1513534860000
Siemaneczqoo
1513521840000
    • Siemaneczqoo#0000
    • Profil
    • Derniers messages
#2768
[Modéré par Amegake, raison : Drugi post z rzędu]
Siemaneczqoo
1513521840000
    • Siemaneczqoo#0000
    • Profil
    • Derniers messages
#2769
[Modéré par Amegake, raison : Trzeci post z rzędu]
Mousy_hari
« Consul »
1513953600000
    • Mousy_hari#5746
    • Profil
    • Derniers messages
    • Tribu
#2770
  0
mozna zrobić tak ze jak cie wpisze na chaat !tekst (i napis)
to będzie jak omo na utility?
Rkubi
« Censeur »
1513954740000
    • Rkubi#0000
    • Profil
    • Derniers messages
    • Tribu
#2771
  2
Samotnik76 a dit :
mozna zrobić tak ze jak cie wpisze na chaat !tekst (i napis)
to będzie jak omo na utility?

Kod
Code Lua

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
  player = {}

function MakeSuperCharacters(id, txt, nick, x, y, size, color1, color2)
ui.addTextArea(id, "<font color='#"..color1.."'><B><font face='Arial Black'><font size='"..size.."'>"..txt.."</font></font></B></font>", nick, x, y, nil, nil, 0, 0, 0, true)
ui.addTextArea(id + 1, "<font color='#"..color2.."'><B><font face='Arial Black'><font size='"..size.."'>"..txt.."</font></font></B></font>", nick, x + 2, y - 2, nil, nil, 0, 0, 0, true)
end

function eventNewPlayer(nick)
if not player[nick] then
player[nick] = {
txt = ""
}
end
system.bindMouse(nick, true)
end

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

function eventChatCommand(nick, cmd)
if cmd:sub(1,5) == "tekst" and cmd:sub(7) ~= "" then
player[nick].txt = cmd:sub(7)
end
end

function eventMouse(nick, x, y)
if player[nick].txt ~= "" then
MakeSuperCharacters(0, player[nick].txt, nil, x - 800, y, 40, "121212", "FFFFFF")
player[nick].txt = ""
end
end

system.disableChatCommandDisplay("tekst", true)
Martakiko
« Citoyen »
1513966260000
    • Martakiko#0000
    • Profil
    • Derniers messages
#2772
  0
czemu to nie dziala
funkcja wydarzenieChatKomenda(Martakiko, komenda)
if command = "daj serek" wtedy
tfm.exec.dajser(Martakiko)
Sebafrancuz
« Consul »
1513967280000
    • Sebafrancuz#0000
    • Profil
    • Derniers messages
    • Tribu
#2773
  1
Martakiko a dit :
czemu to nie dziala
funkcja wydarzenieChatKomenda(Martakiko, komenda)
if command = "daj serek" wtedy
tfm.exec.dajser(Martakiko)

Bo nie możesz spolszczać funkcji.
Martakiko
« Citoyen »
1513968540000
    • Martakiko#0000
    • Profil
    • Derniers messages
#2774
  0
function eventChatCommand(Martakiko, command)
if command = "givecheese" then
tfm.exec.giveCheese(Martakiko)

dalej nie dziala
Sebafrancuz
« Consul »
1513971960000
    • Sebafrancuz#0000
    • Profil
    • Derniers messages
    • Tribu
#2775
  1
Martakiko a dit :
function eventChatCommand(Martakiko, command)
if command = "givecheese" then
tfm.exec.giveCheese(Martakiko)

dalej nie dziala

Zapominasz, aby zakończyć działanie danej funkcji bądź warunku "endem" oraz nie można zapisać zmiennych jako string (tekst), tylko mogą przyjąć wartość jako dany tekst:
Code Lua

1
2
3
4
5
function eventChatCommand(Martakiko, command)
if(command == "givecheese" and Martakiko=="Martakiko") then
tfm.exec.giveCheese(Martakiko)
end
end

Dernière modification le 1513972080000
Dziedzicuwka
« Citoyen »
1514491620000
    • Dziedzicuwka#0000
    • Profil
    • Derniers messages
    • Tribu
#2776
  0
csd={Dziedzicuwka=1}

tfm.exec.setNameColor(<JAK TU UZUPEŁNIĆ CSD>,0xkolor)
Sebafrancuz
« Consul »
1514498460000
    • Sebafrancuz#0000
    • Profil
    • Derniers messages
    • Tribu
#2777
  0
Dziedzicuwka a dit :
csd={Dziedzicuwka=1}

tfm.exec.setNameColor(<JAK TU UZUPEŁNIĆ CSD>,0xkolor)

Możesz zrobić o tak:
Kod

Code Lua

1
2
3
4
5
csd={Dziedzicuwka=1}

for indexy in next, csd do
tfm.exec.setNameColor(indexy ,0xkolor)
end
Dziedzicuwka
« Citoyen »
1514539740000
    • Dziedzicuwka#0000
    • Profil
    • Derniers messages
    • Tribu
#2778
  0
Kocurek694 a dit :
Na utility chciałabym aby po wpisaniu !fire pojawiał się na chwile ogień

LUA działa w chatce.

Jak zrobic żeby jak mam 3 punkty(te w tabelce co sie chodzi z serem do norki)
i wpisuje komende jakaś np .!get i -1000 bierze i żeby nie było -997

Dernière modification le 1514545260000
Liliatta
« Citoyen »
1514561280000
    • Liliatta#0000
    • Profil
    • Derniers messages
#2779
  0
Zamówienie
Już kiedyś o to prosiłam tylko źle wytłumaczyłam i otrzymałam coś innego niż oczekiwałam. Teraz więcej już wiem o LUA i myślę , że zrozumiecie. Więc poproszę o skrypt, w którym za pomocą F i strzałki w górę, dół, lewo i prawo lub W,A,S,D odpychały nas cząsteczki. Najlepiej by były one czerwone. Z góry dziękuję c:
Martakiko
« Citoyen »
1514740020000
    • Martakiko#0000
    • Profil
    • Derniers messages
#2780
  0
poprosze o kod ze po 5 sekundach pojawi sie wiadomosc popup i zeby odliczalo czas na mapie do wyswietlenia tej wiadomosci
  • Forums
  • /
  • Transformice
  • /
  • Modules
  • /
  • zamówienia na kody.
« ‹ 139 / 149 › »
© Atelier801 2018

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

Version 1.27