×

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
  • /
  • [Lua] Mande seu script mais recente
[Lua] Mande seu script mais recente
Gabriel
« Citoyen »
1668480060000
    • Gabriel#8201
    • Profil
    • Derniers messages
    • Tribu
#1
  0
Gente manda o script mas recente de vocês aqui

O meu é um script de chuva que fiz porque tava sem nada para fazer
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
36
37
38
39
40
41
42
43
44
45
46
47
tfm.exec.disableAfkDeath(true)
tfm.exec.disableAutoNewGame(true)
tfm.exec.disableAutoShaman(true)
tfm.exec.newGame(0)

function chuva()
id1 = 1
id2 = 10000
id3 = 99999
id4 = 0
id5 = 9999

piso={
type=12,
width=10,
height=10,
groundCollision=false,
miceCollision=false,
dynamic=true,
color='0x144298'
}



eventLoop = function()
tfm.exec.addPhysicObject(id1, math.random(10, 800), -100, piso)
tfm.exec.addPhysicObject(id2, math.random(10, 800), -100, piso)
tfm.exec.addPhysicObject(id3, math.random(10, 800), -100, piso)
tfm.exec.addPhysicObject(id4, math.random(10, 800), -100, piso)
tfm.exec.addPhysicObject(id5, math.random(10, 800), -100, piso)
id1 = id1 + 1
id2 = id2 + 1
id4 = id4 - 1
id5 = id5 - 1
end
end

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

eventNewPlayer = function()
tfm.exec.respawnPlayer(name)
chuva()
end

eventNewPlayer()
Preuclides
« Consul »
1668608760000
    • Preuclides#3383
    • Profil
    • Derniers messages
    • Tribu
#2
  0
o mais útil da sua vida:

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
local x = 1
local y = 200
local particle = 0
local contagem = 1
eventLoop = function()
if x < 800 then
tfm.exec.displayParticle(particle, x, y)
tfm.exec.displayParticle(particle, x, y+5)
tfm.exec.displayParticle(particle, x, y+10)
tfm.exec.displayParticle(particle, x, y+15)
tfm.exec.displayParticle(particle, x, y+20)
tfm.exec.displayParticle(particle, x, y+25)
x = x+17
contagem = contagem+1
else
x = 1
particle = 0
contagem = 1
end
if contagem == 2 then
contagem = 1
particle = particle+1
end
end


e esse um tradutor morse:
Code Lua

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
local morse = function(texto)
local conversaoMorse = {}
local listaDeMorse = '.- -... -.-. -.. . ..-. --. .... .. .--- -.- .-.. -- -. --- .--. --.- .-. ... - ..- ...- .-- -..- -.-- --.. .---- ..--- ...-- ....- ..... -.... --... ---.. ----. -----'
local listaDeLetras = 'abcdefghijklmnopqrstuvwxyz1234567890'
local tabelaDeMorse = {}
local posicao = 1
for i in listaDeMorse:gmatch('([.-]+)%s-') do
tabelaDeMorse[tostring(listaDeLetras:sub(posicao, posicao))] = i
posicao = posicao+1
end
for i=1, string.len(texto) do
if tostring(texto:sub(i, i)) == ' ' then
conversaoMorse[#conversaoMorse+1] = '/ '
elseif tostring(texto:sub(i, i)):match('(%w+)') then
conversaoMorse[#conversaoMorse+1] = tabelaDeMorse[tostring(texto:sub(i, i))]..' '
else
conversaoMorse[#conversaoMorse+1] = tostring(texto:sub(i, i))
end
end
return table.concat(conversaoMorse)
end

Dernière modification le 1668610200000
Jp_darkuss
« Citoyen »
1691009880000
    • Jp_darkuss#4806
    • Profil
    • Derniers messages
#3
  1
Eh...

Code Lua

1
print("a")

hehe
  • Forums
  • /
  • Transformice
  • /
  • Modules
  • /
  • [Lua] Mande seu script mais recente
© Atelier801 2018

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

Version 1.27