×

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
  • /
  • Archives
  • /
  • Seção Editor de Mapas e Modules
  • /
  • [Lua] Peça scripts aqui!
« ‹ 69 / 133 › »
[Lua] Peça scripts aqui!
Leoonardo123
« Censeur »
1532121060000
    • Leoonardo123#4976
    • Profil
    • Derniers messages
#1361
  0
Hugotitas a dit :
Cafetina a dit :
Alguem poderia me fazer um script que
possibilitaria teleportar um jogador para qualquer área que eu der um clique &
matar um jogador e não deixa-lo reviver.

 
Bem,poderia ser comandos básicos tipo de uma utility,porem seria usado no cafofo :v
Ideia para o comando de teleportar: !tpNick do jogador+ id
Ideia para o comando de matar o jogador: !killNick do jogador+ id


O script não deixaria usar consumíveis(bolas,fogos,pinceis e etc).Ai também não deixaria ter shaman e o tempo é infinito :!

/sala #utility00Cafetina


Utuility=Podem usar consumiveis e ficam revivendo.
Hugotitas
« Citoyen »
1532126940000
    • Hugotitas#0000
    • Profil
    • Derniers messages
    • Tribu
#1362
  0
Cafetina a dit :
Hugotitas a dit :
Cafetina a dit :
Alguem poderia me fazer um script que
possibilitaria teleportar um jogador para qualquer área que eu der um clique &
matar um jogador e não deixa-lo reviver.

 
Bem,poderia ser comandos básicos tipo de uma utility,porem seria usado no cafofo :v
Ideia para o comando de teleportar: !tpNick do jogador+ id
Ideia para o comando de matar o jogador: !killNick do jogador+ id


O script não deixaria usar consumíveis(bolas,fogos,pinceis e etc).Ai também não deixaria ter shaman e o tempo é infinito :!

/sala #utility00Cafetina


Utuility=Podem usar consumiveis e ficam revivendo.

!ban
Boltishort
« Citoyen »
1532479140000
    • Boltishort#0000
    • Profil
    • Derniers messages
    • Tribu
#1363
  0
Alguém sabe fazer o minigame #fastracing ou #racingrecords? É um racing comum só que com records, eu estava pensando em fazer algumas modificações nele pra rodar em minha tribo mas não tenho a bendita lógica :s

Ficaria muito grata se vocês o fizessem!
Mivkfv
« Censeur »
1532481000000
    • Mivkfv#2718
    • Profil
    • Derniers messages
#1364
  5
Boltishort a dit :
Alguém sabe fazer o minigame #fastracing ou #racingrecords? É um racing comum só que com records, eu estava pensando em fazer algumas modificações nele pra rodar em minha tribo mas não tenho a bendita lógica :s

Ficaria muito grata se vocês o fizessem!

Boa sorte a achar alguém que te ajude ;-;
Joaopsan
« Citoyen »
1532486160000
    • Joaopsan#0000
    • Profil
    • Derniers messages
    • Tribu
#1365
  0
quero um script no qual o personagem aperta uma tecla (de preferência espaço), e "corre mais rápido" pra o lado que ele estiver olhando ( e se for possivel, só possa ser usada a cada 5 segundos, tipo uma "recarga"). Obrigado ^^

Dernière modification le 1532486220000
Nettoork
« Censeur »
1532490360000
    • Nettoork#0000
    • Profil
    • Derniers messages
    • Tribu
#1366
  0
Joaopsan a dit :
quero um script no qual o personagem aperta uma tecla (de preferência espaço), e "corre mais rápido" pra o lado que ele estiver olhando ( e se for possivel, só possa ser usada a cada 5 segundos, tipo uma "recarga"). Obrigado ^^

Code Lua

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
local timer = {}
local velocity = 30

eventNewPlayer = function(name)
timer[name] = os.time()
system.bindKeyboard(name, 32, true)
end

eventKeyboard = function(name, key, down, x, y)
if timer[name] < os.time() then
local user = tfm.get.room.playerList[name]
if not user.isDead and (user.movingRight or user.movingLeft) then
tfm.exec.movePlayer(name, 0, 0, true, user.isFacingRight and velocity or -velocity, 0, true)
timer[name] = os.time() + 5000
end
end
end

table.foreach(tfm.get.room.playerList, eventNewPlayer)
Desativado
« Citoyen »
1532514900000
    • Desativado#1720
    • Profil
    • Derniers messages
#1367
  0
Um script quando o rato apertava espaço aparecia um boneco de neve
Bolodefchoco
« Sénateur »
1532533800000
    • Bolodefchoco#0095
    • Profil
    • Derniers messages
    • Tribu
#1368
  0
Mivkfv a dit :
Boltishort a dit :
Alguém sabe fazer o minigame #fastracing ou #racingrecords? É um racing comum só que com records, eu estava pensando em fazer algumas modificações nele pra rodar em minha tribo mas não tenho a bendita lógica :s

Ficaria muito grata se vocês o fizessem!

Boa sorte a achar alguém que te ajude ;-;

É inaceitável acordar e ler uma resposta dessas. Não vou deixar que a seção chegue a esse nível onde precisam dizer que ninguém vai ajudar o carinha logo ali. Go trabalhar

Boltishort a dit :
Alguém sabe fazer o minigame #fastracing ou #racingrecords? É um racing comum só que com records, eu estava pensando em fazer algumas modificações nele pra rodar em minha tribo mas não tenho a bendita lógica :s

Ficaria muito grata se vocês o fizessem!

Oi! Vou fazer pra você. Me diga, neste tópico ou por mensagem privada, como o minigame funciona ^_^


Caue_souza a dit :
Um script quando o rato apertava espaço aparecia um boneco de neve

Não dá pra fazer sem imagem, então eu vou dar meu jeito bls

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
local snowman
do
local id = 0
snowman = function(x, y)
ui.addTextArea(id, "", nil, x - 10, y - 20, 20, 20, 0xaff4ff, 0xaff4ff, 1, false)
ui.addTextArea(id + 1, "", nil, x + 10, y, 30, 15, 0xaff4ff, 0xaff4ff, 1, false)
ui.addTextArea(id + 2, "", nil, x - 40, y, 30, 15, 0xaff4ff, 0xaff4ff, 1, false)
ui.addTextArea(id + 3, "", nil, x - 20, y, 40, 40, 0xaff4ff, 0xaff4ff, 1, false)
ui.addTextArea(id + 4, "", nil, x - 30, y + 40, 15, 15, 0xaff4ff, 0xaff4ff, 1, false)
ui.addTextArea(id + 5, "", nil, x + 15, y + 40, 15, 15, 0xaff4ff, 0xaff4ff, 1, false)
ui.addTextArea(id + 6, "<textformat leading='-8'><p align='center'><font color='#000000'>• •\n<CE>V</CE>\n.....", nil, x - 10, y - 25, nil, nil, 1, 1, 0, false)
ui.addTextArea(id + 7, "", nil, x - 22, y - 35, 45, 10, 1, 1, 1, false)
ui.addTextArea(id + 8, "", nil, x - 12, y - 45, 25, 10, 1, 1, 1, false)
id = id + 9
end
end

eventNewPlayer = function(n)
system.bindKeyboard(n, 32, true, true)
end
table.foreach(tfm.get.room.playerList, eventNewPlayer)

eventKeyboard = function(n, k, d, x, y)
snowman(x, y)
end

https://image.prntscr.com/image/F9m6SDRxRNutpxZiJoYeSA.png

Hugotitas
« Citoyen »
1532534820000
    • Hugotitas#0000
    • Profil
    • Derniers messages
    • Tribu
#1369
  1
Bolodefchoco a dit :
Mivkfv a dit :
Boltishort a dit :
Alguém sabe fazer o minigame #fastracing ou #racingrecords? É um racing comum só que com records, eu estava pensando em fazer algumas modificações nele pra rodar em minha tribo mas não tenho a bendita lógica :s

Ficaria muito grata se vocês o fizessem!

Boa sorte a achar alguém que te ajude ;-;

É inaceitável acordar e ler uma resposta dessas. Não vou deixar que a seção chegue a esse nível onde precisam dizer que ninguém vai ajudar o carinha logo ali. Go trabalhar

Boltishort a dit :
Alguém sabe fazer o minigame #fastracing ou #racingrecords? É um racing comum só que com records, eu estava pensando em fazer algumas modificações nele pra rodar em minha tribo mas não tenho a bendita lógica :s

Ficaria muito grata se vocês o fizessem!

Oi! Vou fazer pra você. Me diga, neste tópico ou por mensagem privada, como o minigame funciona ^_^


Caue_souza a dit :
Um script quando o rato apertava espaço aparecia um boneco de neve

Não dá pra fazer sem imagem, então eu vou dar meu jeito bls

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
local snowman
do
local id = 0
snowman = function(x, y)
ui.addTextArea(id, "", nil, x - 10, y - 20, 20, 20, 0xaff4ff, 0xaff4ff, 1, false)
ui.addTextArea(id + 1, "", nil, x + 10, y, 30, 15, 0xaff4ff, 0xaff4ff, 1, false)
ui.addTextArea(id + 2, "", nil, x - 40, y, 30, 15, 0xaff4ff, 0xaff4ff, 1, false)
ui.addTextArea(id + 3, "", nil, x - 20, y, 40, 40, 0xaff4ff, 0xaff4ff, 1, false)
ui.addTextArea(id + 4, "", nil, x - 30, y + 40, 15, 15, 0xaff4ff, 0xaff4ff, 1, false)
ui.addTextArea(id + 5, "", nil, x + 15, y + 40, 15, 15, 0xaff4ff, 0xaff4ff, 1, false)
ui.addTextArea(id + 6, "<textformat leading='-8'><p align='center'><font color='#000000'>• •\n<CE>V</CE>\n.....", nil, x - 10, y - 25, nil, nil, 1, 1, 0, false)
ui.addTextArea(id + 7, "", nil, x - 22, y - 35, 45, 10, 1, 1, 1, false)
ui.addTextArea(id + 8, "", nil, x - 12, y - 45, 25, 10, 1, 1, 1, false)
id = id + 9
end
end

eventNewPlayer = function(n)
system.bindKeyboard(n, 32, true, true)
end
table.foreach(tfm.get.room.playerList, eventNewPlayer)

eventKeyboard = function(n, k, d, x, y)
snowman(x, y)
end

https://image.prntscr.com/image/F9m6SDRxRNutpxZiJoYeSA.png


LINDO!
Tempo
« Consul »
1532536680000
    • Tempo#5571
    • Profil
    • Derniers messages
    • Tribu
#1370
  1
Bolo arrasando como sempre!!
Nettoork
« Censeur »
1532540940000
    • Nettoork#0000
    • Profil
    • Derniers messages
    • Tribu
#1371
  0
Cafetina a dit :
Alguem poderia me fazer um script que
possibilitaria teleportar um jogador para qualquer área que eu der um clique &
matar um jogador e não deixa-lo reviver.

 
Bem,poderia ser comandos básicos tipo de uma utility,porem seria usado no cafofo :v
Ideia para o comando de teleportar: !tpNick do jogador+ id
Ideia para o comando de matar o jogador: !killNick do jogador+ id


O script não deixaria usar consumíveis(bolas,fogos,pinceis e etc).Ai também não deixaria ter shaman e o tempo é infinito :!

Script
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
48
49
50
-- Espero que seja isso.
local killedPlayers = {}
local playerSelect = {}

for _, v in next, {'AutoShaman', 'AutoTimeLeft', 'PhysicalConsumables'} do
tfm.exec['disable' .. v]()
end

local split = function(t, s)
local a = {}
for i in string.gmatch(t, string.format("[^%s]+", s or "%s")) do
a[#a + 1] = i
end
return a
end

eventNewPlayer = function(name)
system.bindMouse(name, true)
playerSelect[name] = false
end

eventNewGame = function()
killedPlayers = {}
end

eventMouse = function(name, x, y)
if playerSelect[name] then
tfm.exec.movePlayer(playerSelect[name], x, y)
playerSelect[name] = false
end
end

eventPlayerRespawn = function(name)
if killedPlayers[name] then
tfm.exec.killPlayer(name)
end
end

eventChatCommand = function(name, command)
local arg = split(command, ' ')
if not arg[2] then return elseif not tfm.get.room.playerList or tfm.get.room.playerList[arg[2]].isDead then return end
if arg[1] == 'tp' then
playerSelect[name] = arg[2]
elseif arg[1] == 'kill' then
killedPlayers[arg[2]] = true
tfm.exec.killPlayer(arg[2])
end
end

table.foreach(tfm.get.room.playerList, eventNewPlayer)
Mivkfv
« Censeur »
1532541780000
    • Mivkfv#2718
    • Profil
    • Derniers messages
#1372
  6
Tempo a dit :
Bolo arrasando como sempre!!
Nettoork
« Censeur »
1532545200000
    • Nettoork#0000
    • Profil
    • Derniers messages
    • Tribu
#1373
  0
Cafetina a dit :
por favor alguem faz um script q possa atirar bolinhas de neve super rapidas para qualquer direção ?

Script
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
-- Pressione espaço para tacar bolinhas de neve aleatórias.
local objects = {}
local playerKey = {}
local velocity = {10, 25} -- Velocidade entre 10 e 25

local genAng = function()
local c = math.random(velocity[1], velocity[2])
return math.random(0, 1) == 1 and c or -c
end

eventNewPlayer = function(name)
system.bindKeyboard(name, 32, true)
system.bindKeyboard(name, 32, false)
end

eventNewGame = function()
objects = {}
end

eventLoop = function()
for i in next, tfm.get.room.playerList do
if playerKey[i] then
playerKey[i]()
end
end
end

eventKeyboard = function(name, key, down, x, y)
if key == 32 then
if not down then playerKey[name] = false; return end
playerKey[name] = function()
objects[#objects] = tfm.exec.addShamanObject(34, tfm.get.room.playerList[name].x, tfm.get.room.playerList[name].y-25, 0, genAng(), genAng())
end
end
end

table.foreach(tfm.get.room.playerList, eventNewPlayer)
Leoonardo123
« Censeur »
1532550240000
    • Leoonardo123#4976
    • Profil
    • Derniers messages
#1374
  1
ai obrigada Nettoork,te amo.
Joaopsan
« Citoyen »
1532551320000
    • Joaopsan#0000
    • Profil
    • Derniers messages
    • Tribu
#1375
  1
Nettoork a dit :
Joaopsan a dit :
quero um script no qual o personagem aperta uma tecla (de preferência espaço), e "corre mais rápido" pra o lado que ele estiver olhando ( e se for possivel, só possa ser usada a cada 5 segundos, tipo uma "recarga"). Obrigado ^^

Code Lua

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
local timer = {}
local velocity = 30

eventNewPlayer = function(name)
timer[name] = os.time()
system.bindKeyboard(name, 32, true)
end

eventKeyboard = function(name, key, down, x, y)
if timer[name] < os.time() then
local user = tfm.get.room.playerList[name]
if not user.isDead and (user.movingRight or user.movingLeft) then
tfm.exec.movePlayer(name, 0, 0, true, user.isFacingRight and velocity or -velocity, 0, true)
timer[name] = os.time() + 5000
end
end
end

table.foreach(tfm.get.room.playerList, eventNewPlayer)



Obg <3
Kronnio
« Citoyen »
1532612160000
    • Kronnio#0000
    • Profil
    • Derniers messages
    • Tribu
#1376
  0
Os ratinhos no cafofo podem andar rápido, e deixarem uma listra que parece gelo onde o rato correu (todos os ratos que estiverem no cafofo)

Obrigado.
Walax854
« Citoyen »
1532612400000
    • Walax854#0000
    • Profil
    • Derniers messages
    • Tribu
#1377
  0
Ter outro tipo de dança para o rato
Rap
« Citoyen »
1532612520000
    • Rap#9678
    • Profil
    • Derniers messages
#1378
  0
.Bom queria script de evento se tem como exemplo: tirar queijo do meu inventario e da pra quem ajudou ou pra todos ?
e que também colocar com outros scripts

Dernière modification le 1532612940000
Jellymichey
« Censeur »
1532618160000
    • Jellymichey#0000
    • Profil
    • Derniers messages
    • Tribu
#1379
  1
Rap a dit :
.Bom queria script de evento se tem como exemplo: tirar queijo do meu inventario e da pra quem ajudou ou pra todos ?
e que também colocar com outros scripts

https://i.imgur.com/bYHka2M.png
Rap
« Citoyen »
1532620140000
    • Rap#9678
    • Profil
    • Derniers messages
#1380
  0
1: olha mas aquele efeito tipo um pum eu tenho ele mas n tem como fazer ele com mais quantidade?
2: olha quando rodo evento no cafofo vai mapa mas depois que termina mapa do evento vem o mapa @0 tem como arrumar ?

Dernière modification le 1532620380000
  • Forums
  • /
  • Transformice
  • /
  • Archives
  • /
  • Seção Editor de Mapas e Modules
  • /
  • [Lua] Peça scripts aqui!
« ‹ 69 / 133 › »
© Atelier801 2018

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

Version 1.27