×

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!
« ‹ 125 / 133 › »
[Lua] Peça scripts aqui!
Victorck6
« Citoyen »
1598130180000
    • Victorck6#6662
    • Profil
    • Derniers messages
    • Tribu
#2481
  0
Nome do script: Vivo ou morto
Descrição 1: Nesse script quando o shaman dizer: Morto a pessoa vai ter que dormi/Vivo a pessoa vai ter que dança.
Comandos que poderia ter:

!ban
!iniciar ( Iria iniciar o vivo ou morto, o mapa séria o que colocou no script )
Shiryu
« Citoyen »
1598340120000
    • Shiryu#8794
    • Profil
    • Derniers messages
    • Tribu
#2482
  0
Pedido
Nome do script : Aviao
ser puderem fazer algo parecido com uma aviao irei fica muito grato :) a e ser puder fazer todo mundo ter um aviaozinho seria top
obrigado
Victorck6
« Citoyen »
1598390040000
    • Victorck6#6662
    • Profil
    • Derniers messages
    • Tribu
#2483
  0
Nome do script: Perguntas e Respostas
Descrição: Quase igual ao module de perguntas e respostas mas que tenha apenas um admin.
Joaogamer2_0
« Citoyen »
1598651820000
    • Joaogamer2_0#5040
    • Profil
    • Derniers messages
    • Tribu
#2484
  0
Alguem sabe de algm script pra soltar itens apertando Space?
Patudo_games
« Citoyen »
1598745780000
    • Patudo_games#3302
    • Profil
    • Derniers messages
#2485
  0
Alguem que saiba progamar, eu estava interresado em aprender, se puderem mandar no meu pv, alguns tutoriais pra progamar no mice, eu agradeceria, quero muito a aprender a progamar
Jp_darkuss
« Citoyen »
1598905500000
    • Jp_darkuss#4806
    • Profil
    • Derniers messages
#2486
  1
Victorck6 a dit :
Nome do script: Vivo ou morto
Descrição 1: Nesse script quando o shaman dizer: Morto a pessoa vai ter que dormi/Vivo a pessoa vai ter que dança.
Comandos que poderia ter:

!ban
!iniciar ( Iria iniciar o vivo ou morto, o mapa séria o que colocou no script )

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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
local _, adm= pcall(nil)
local map=""
local players= {}
local gaming= false
local count= 0
local movement
local clicked= false
local verified= false
local max_time= 5000
local verify= function()
if clicked and gaming then
count= count + 500
if count>= max_time then
count, clicked, verified= 0, false, true
for pos, _ in next, players do
if players[pos].movement~= movement then
players[pos].isInGame= false
end
players[pos].movement= -1
end
end
end
end
local win= function()
local amount= 0
table.foreach(players, function(player)
if not players[player].isInGame or players[player].ban then
tfm.exec.killPlayer(player)
else
amount= amount + 1
end
end)
if gaming and verified then
verified= false
if amount== 1 then
local winner=""
for pos, _ in next, players do
if players[pos].isInGame then
winner= pos
end
end
ui.updateTextArea(4, "<font size='15'><p align='center'>"..winner.." venceu!</p></font>", nil)
gaming, count, verified, clicked= false, 0, false, false
table.foreach(tfm.get.room.playerList, eventNewPlayer)
elseif amount< 1 then
ui.updateTextArea(4, "<font size='25'><p align='center'>Empate!</p></font>", nil)
gaming, count, verified, clicked= false, 0, false, false
table.foreach(tfm.get.room.playerList, eventNewPlayer)
end
end
end
eventEmotePlayed= function(player, emote)
if gaming then
if emote== 0 then
players[player].movement= 0
elseif emote== 6 then
players[player].movement= 6
end
end
end
eventNewPlayer= function(player)
players[player]= {
ban= false,
isInGame= true,
movement= -1
}
end
eventTextAreaCallback= function(_, player, callback)
if player== adm then
if callback=="time" then
ui.addPopup(0, 2, "Digite o tempo máximo para cada movimento (em segundos!), valor padrão: 5s, atual: "..(max_time / 1000).."s", adm, 300, 150, nil)
elseif callback=="start" then
gaming= true
ui.updateTextArea(4, "<font size='25'><p align='center'>Comecem!</p></font>", nil)
tfm.exec.newGame(map)
elseif callback:match("move") then
if gaming and not clicked then
local mv= tonumber(callback:match("move.(.)."))
movement= mv
clicked, count= true, 0
if mv== 0 then
ui.updateTextArea(4, "<font size='25'><p align='center'>Vivo!</p></font>", nil)
elseif mv== 6 then
ui.updateTextArea(4, "<font size='25'><p align='center'>Morto!</p></font>", nil)
end
end
elseif callback=="ban" then
ui.addPopup(1, 2, "<p align='center'>Quem você quer banir?</p>", adm, 300, 200)
end
end
end
eventPopupAnswer= function(id, _, answer)
if id== 0 then
max_time= tonumber(answer) * 1000 or 5000
elseif id== 1 then
if players[answer] and gaming then
players[answer].ban= true
end
end
end
do
adm= adm:match("(.-)%.")
for player, _ in next, tfm.get.room.playerList do
eventNewPlayer(player)
end
ui.addTextArea(0, "<a href='event:start'>Iniciar</a>", adm, 20, 370, nil, nil, nil, nil, 1, true)
ui.addTextArea(1, "<a href='event:ban'>Banir</a>", adm, 72, 370, nil, nil, nil, nil, 1, true)
ui.addTextArea(2, "<a href='event:move(6)'>Morto!</a>", adm, 119, 370, nil, nil, nil, nil, 1, true)
ui.addTextArea(3, "<a href='event:move(0)'>Vivo!</a>", adm, 172, 370, nil, nil, nil, nil, 1, true)
ui.addTextArea(5, "<a href='event:time'>Tempo</a>", adm, 220, 370, nil, nil, nil, nil, 1, true)
ui.addTextArea(4, "<font size='25'><p align='center'>Preparem-se!</p></font>", nil, 300, 30, 200, nil, nil, nil, 0.9, true)
for _, data in next, {"MortCommand", "AutoTimeLeft", "AutoShaman"} do
tfm.exec["disable"..data]()
end
end
eventLoop= function()
verify()
win()
end


Coloque o mapa em local map, entre aspas se não for numérico.
Shun_kazami
« Citoyen »
1598926080000
    • Shun_kazami#7014
    • Profil
    • Derniers messages
    • Tribu
#2487
  1
Shiryu a dit :
Pedido
Nome do script : Aviao
ser puderem fazer algo parecido com uma aviao irei fica muito grato :) a e ser puder fazer todo mundo ter um aviaozinho seria top
obrigado

Teve uma versão que fizeram (que aliás ficou muito bacana) de um simulador de avião, onde tem controle de altura, velocidade, podia escolher o avião e etc. Só não lembro quem criou ou onde conseguir esse código.

Victorck6 a dit :
Nome do script: Perguntas e Respostas
Descrição: Quase igual ao module de perguntas e respostas mas que tenha apenas um admin.

O module de "perguntas" na verdade é um remake de um script de 2014 chamado Corrida das Perguntas feito por Haxhhhhhhhhh.
Respondendo a sua questão, existe um código atualizado aqui:
https://raw.githubusercontent.com/JW26T-Prj/FunCorpModules/master/corrida%20de%20perguntas%20NOVO%20ATUALIZADO.lua
Na linha 11, na variável admin="", insira seu nickname com a #tag e utilize o comando !set [nome#tag] para definir um novo shaman.
Victorck6
« Citoyen »
1598976180000
    • Victorck6#6662
    • Profil
    • Derniers messages
    • Tribu
#2488
  0
Shun_kazami a dit :
Shiryu a dit :
Pedido
Nome do script : Aviao
ser puderem fazer algo parecido com uma aviao irei fica muito grato :) a e ser puder fazer todo mundo ter um aviaozinho seria top
obrigado

Teve uma versão que fizeram (que aliás ficou muito bacana) de um simulador de avião, onde tem controle de altura, velocidade, podia escolher o avião e etc. Só não lembro quem criou ou onde conseguir esse código.

Victorck6 a dit :
Nome do script: Perguntas e Respostas
Descrição: Quase igual ao module de perguntas e respostas mas que tenha apenas um admin.

O module de "perguntas" na verdade é um remake de um script de 2014 chamado Corrida das Perguntas feito por Haxhhhhhhhhh.
Respondendo a sua questão, existe um código atualizado aqui:
https://raw.githubusercontent.com/JW26T-Prj/FunCorpModules/master/corrida%20de%20perguntas%20NOVO%20ATUALIZADO.lua
Na linha 11, na variável admin="", insira seu nickname com a #tag e utilize o comando !set [nome#tag] para definir um novo shaman.

Gostei, mas como faço a pergunta? aparece nada na minha tela
Victorck6
« Citoyen »
1598976240000
    • Victorck6#6662
    • Profil
    • Derniers messages
    • Tribu
#2489
  0
Jp_darkuss a dit :
Victorck6 a dit :
Nome do script: Vivo ou morto
Descrição 1: Nesse script quando o shaman dizer: Morto a pessoa vai ter que dormi/Vivo a pessoa vai ter que dança.
Comandos que poderia ter:

!ban
!iniciar ( Iria iniciar o vivo ou morto, o mapa séria o que colocou no script )

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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
local _, adm= pcall(nil)
local map=""
local players= {}
local gaming= false
local count= 0
local movement
local clicked= false
local verified= false
local max_time= 5000
local verify= function()
if clicked and gaming then
count= count + 500
if count>= max_time then
count, clicked, verified= 0, false, true
for pos, _ in next, players do
if players[pos].movement~= movement then
players[pos].isInGame= false
end
players[pos].movement= -1
end
end
end
end
local win= function()
local amount= 0
table.foreach(players, function(player)
if not players[player].isInGame or players[player].ban then
tfm.exec.killPlayer(player)
else
amount= amount + 1
end
end)
if gaming and verified then
verified= false
if amount== 1 then
local winner=""
for pos, _ in next, players do
if players[pos].isInGame then
winner= pos
end
end
ui.updateTextArea(4, "<font size='15'><p align='center'>"..winner.." venceu!</p></font>", nil)
gaming, count, verified, clicked= false, 0, false, false
table.foreach(tfm.get.room.playerList, eventNewPlayer)
elseif amount< 1 then
ui.updateTextArea(4, "<font size='25'><p align='center'>Empate!</p></font>", nil)
gaming, count, verified, clicked= false, 0, false, false
table.foreach(tfm.get.room.playerList, eventNewPlayer)
end
end
end
eventEmotePlayed= function(player, emote)
if gaming then
if emote== 0 then
players[player].movement= 0
elseif emote== 6 then
players[player].movement= 6
end
end
end
eventNewPlayer= function(player)
players[player]= {
ban= false,
isInGame= true,
movement= -1
}
end
eventTextAreaCallback= function(_, player, callback)
if player== adm then
if callback=="time" then
ui.addPopup(0, 2, "Digite o tempo máximo para cada movimento (em segundos!), valor padrão: 5s, atual: "..(max_time / 1000).."s", adm, 300, 150, nil)
elseif callback=="start" then
gaming= true
ui.updateTextArea(4, "<font size='25'><p align='center'>Comecem!</p></font>", nil)
tfm.exec.newGame(map)
elseif callback:match("move") then
if gaming and not clicked then
local mv= tonumber(callback:match("move.(.)."))
movement= mv
clicked, count= true, 0
if mv== 0 then
ui.updateTextArea(4, "<font size='25'><p align='center'>Vivo!</p></font>", nil)
elseif mv== 6 then
ui.updateTextArea(4, "<font size='25'><p align='center'>Morto!</p></font>", nil)
end
end
elseif callback=="ban" then
ui.addPopup(1, 2, "<p align='center'>Quem você quer banir?</p>", adm, 300, 200)
end
end
end
eventPopupAnswer= function(id, _, answer)
if id== 0 then
max_time= tonumber(answer) * 1000 or 5000
elseif id== 1 then
if players[answer] and gaming then
players[answer].ban= true
end
end
end
do
adm= adm:match("(.-)%.")
for player, _ in next, tfm.get.room.playerList do
eventNewPlayer(player)
end
ui.addTextArea(0, "<a href='event:start'>Iniciar</a>", adm, 20, 370, nil, nil, nil, nil, 1, true)
ui.addTextArea(1, "<a href='event:ban'>Banir</a>", adm, 72, 370, nil, nil, nil, nil, 1, true)
ui.addTextArea(2, "<a href='event:move(6)'>Morto!</a>", adm, 119, 370, nil, nil, nil, nil, 1, true)
ui.addTextArea(3, "<a href='event:move(0)'>Vivo!</a>", adm, 172, 370, nil, nil, nil, nil, 1, true)
ui.addTextArea(5, "<a href='event:time'>Tempo</a>", adm, 220, 370, nil, nil, nil, nil, 1, true)
ui.addTextArea(4, "<font size='25'><p align='center'>Preparem-se!</p></font>", nil, 300, 30, 200, nil, nil, nil, 0.9, true)
for _, data in next, {"MortCommand", "AutoTimeLeft", "AutoShaman"} do
tfm.exec["disable"..data]()
end
end
eventLoop= function()
verify()
win()
end


Coloque o mapa em local map, entre aspas se não for numérico.

Obrigado mesmo!! Tem como um problema? quando aperto na mesma opção as pessoas não notam ai eles morrem, tem como resolver?
Jp_darkuss
« Citoyen »
1599040740000
    • Jp_darkuss#4806
    • Profil
    • Derniers messages
#2490
  2
Victorck6 a dit :
Jp_darkuss a dit :
Victorck6 a dit :
Nome do script: Vivo ou morto
Descrição 1: Nesse script quando o shaman dizer: Morto a pessoa vai ter que dormi/Vivo a pessoa vai ter que dança.
Comandos que poderia ter:

!ban
!iniciar ( Iria iniciar o vivo ou morto, o mapa séria o que colocou no script )

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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
local _, adm= pcall(nil)
local map=""
local players= {}
local gaming= false
local count= 0
local movement
local clicked= false
local verified= false
local max_time= 5000
local verify= function()
if clicked and gaming then
count= count + 500
if count>= max_time then
count, clicked, verified= 0, false, true
for pos, _ in next, players do
if players[pos].movement~= movement then
players[pos].isInGame= false
end
players[pos].movement= -1
end
end
end
end
local win= function()
local amount= 0
table.foreach(players, function(player)
if not players[player].isInGame or players[player].ban then
tfm.exec.killPlayer(player)
else
amount= amount + 1
end
end)
if gaming and verified then
verified= false
if amount== 1 then
local winner=""
for pos, _ in next, players do
if players[pos].isInGame then
winner= pos
end
end
ui.updateTextArea(4, "<font size='15'><p align='center'>"..winner.." venceu!</p></font>", nil)
gaming, count, verified, clicked= false, 0, false, false
table.foreach(tfm.get.room.playerList, eventNewPlayer)
elseif amount< 1 then
ui.updateTextArea(4, "<font size='25'><p align='center'>Empate!</p></font>", nil)
gaming, count, verified, clicked= false, 0, false, false
table.foreach(tfm.get.room.playerList, eventNewPlayer)
end
end
end
eventEmotePlayed= function(player, emote)
if gaming then
if emote== 0 then
players[player].movement= 0
elseif emote== 6 then
players[player].movement= 6
end
end
end
eventNewPlayer= function(player)
players[player]= {
ban= false,
isInGame= true,
movement= -1
}
end
eventTextAreaCallback= function(_, player, callback)
if player== adm then
if callback=="time" then
ui.addPopup(0, 2, "Digite o tempo máximo para cada movimento (em segundos!), valor padrão: 5s, atual: "..(max_time / 1000).."s", adm, 300, 150, nil)
elseif callback=="start" then
gaming= true
ui.updateTextArea(4, "<font size='25'><p align='center'>Comecem!</p></font>", nil)
tfm.exec.newGame(map)
elseif callback:match("move") then
if gaming and not clicked then
local mv= tonumber(callback:match("move.(.)."))
movement= mv
clicked, count= true, 0
if mv== 0 then
ui.updateTextArea(4, "<font size='25'><p align='center'>Vivo!</p></font>", nil)
elseif mv== 6 then
ui.updateTextArea(4, "<font size='25'><p align='center'>Morto!</p></font>", nil)
end
end
elseif callback=="ban" then
ui.addPopup(1, 2, "<p align='center'>Quem você quer banir?</p>", adm, 300, 200)
end
end
end
eventPopupAnswer= function(id, _, answer)
if id== 0 then
max_time= tonumber(answer) * 1000 or 5000
elseif id== 1 then
if players[answer] and gaming then
players[answer].ban= true
end
end
end
do
adm= adm:match("(.-)%.")
for player, _ in next, tfm.get.room.playerList do
eventNewPlayer(player)
end
ui.addTextArea(0, "<a href='event:start'>Iniciar</a>", adm, 20, 370, nil, nil, nil, nil, 1, true)
ui.addTextArea(1, "<a href='event:ban'>Banir</a>", adm, 72, 370, nil, nil, nil, nil, 1, true)
ui.addTextArea(2, "<a href='event:move(6)'>Morto!</a>", adm, 119, 370, nil, nil, nil, nil, 1, true)
ui.addTextArea(3, "<a href='event:move(0)'>Vivo!</a>", adm, 172, 370, nil, nil, nil, nil, 1, true)
ui.addTextArea(5, "<a href='event:time'>Tempo</a>", adm, 220, 370, nil, nil, nil, nil, 1, true)
ui.addTextArea(4, "<font size='25'><p align='center'>Preparem-se!</p></font>", nil, 300, 30, 200, nil, nil, nil, 0.9, true)
for _, data in next, {"MortCommand", "AutoTimeLeft", "AutoShaman"} do
tfm.exec["disable"..data]()
end
end
eventLoop= function()
verify()
win()
end


Coloque o mapa em local map, entre aspas se não for numérico.

Obrigado mesmo!! Tem como um problema? quando aperto na mesma opção as pessoas não notam ai eles morrem, tem como resolver?

Script reformado:

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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
local _, adm= pcall(nil)
local map= ""
or 0
local players= {}
local gaming= false
local count= 0
local movement
local clicked= false
local verified= false
local max_time= 5000
local time= max_time
local verify= function()
if clicked and gaming then
count= count + 500
if count>= time then
count, clicked, verified= 0, false, true
for pos, _ in next, players do
if players[pos].movement~= movement then
players[pos].isInGame= false
end
players[pos].movement= -1
end
time= time - 500
if time< 1000 then time= 1000 end
end
end
end
local win= function()
local amount= 0
table.foreach(players, function(player)
if not players[player].isInGame or players[player].ban then
tfm.exec.killPlayer(player)
else
amount= amount + 1
end
end)
if gaming and verified then
verified= false
if amount== 1 then
local winner=""
for pos, _ in next, players do
if players[pos].isInGame then
winner= pos
end
end
ui.updateTextArea(4, "<font size='15'><p align='center'>"..winner.." venceu!</p></font>", nil)
gaming, count, verified, clicked= false, 0, false, false
table.foreach(tfm.get.room.playerList, eventNewPlayer)
elseif amount< 1 then
ui.updateTextArea(4, "<font size='25'><p align='center'>Empate!</p></font>", nil)
gaming, count, verified, clicked= false, 0, false, false
table.foreach(tfm.get.room.playerList, eventNewPlayer)
end
end
end
eventEmotePlayed= function(player, emote)
if gaming and player~= adm then
if emote== 0 then
players[player].movement= 0
elseif emote== 6 then
players[player].movement= 6
end
end
end
eventNewPlayer= function(player)
if player~= adm then
players[player]= {
ban= false,
isInGame= true,
movement= -1
}
end
end
eventTextAreaCallback= function(_, player, callback)
if player== adm then
if callback=="time" then
ui.addPopup(0, 2, "Digite o tempo máximo para cada movimento (em segundos!), valor padrão: 5s, atual: "..(max_time / 1000).."s", adm, 300, 150, nil)
elseif callback=="start" then
time= max_time
gaming= true
ui.updateTextArea(4, "<font size='25'><p align='center'>Comecem!</p></font>", nil)
tfm.exec.newGame(map)
elseif callback:match("move") then
if gaming and not clicked then
local mv= tonumber(callback:match("move.(.)."))
local particles= {0, 1, 2, 4, 9, 13}
movement= mv
clicked, count= true, 0
if mv== 0 then
ui.updateTextArea(4, "<font size='25'><p align='center'>Vivo!</p></font>", nil)
elseif mv== 6 then
ui.updateTextArea(4, "<font size='25'><p align='center'>Morto!</p></font>", nil)
end
for i= 1, 200 do
local x, y= math.random(300, 500), math.random(30, 80)
tfm.exec.displayParticle(particles[math.random(1, #particles)], x, y, 0, math.random(1, 3))
end
end
elseif callback=="ban" then
ui.addPopup(1, 2, "<p align='center'>Quem você quer banir?</p>", adm, 300, 200)
end
end
end
eventPopupAnswer= function(id, _, answer)
if id== 0 then
max_time= tonumber(answer) * 1000 or 5000
elseif id== 1 then
if players[answer] and gaming then
players[answer].ban= true
end
end
end
do
adm= adm:match("(.-)%.")
for player, _ in next, tfm.get.room.playerList do
eventNewPlayer(player)
end
ui.addTextArea(0, "<a href='event:start'>Iniciar</a>", adm, 20, 370, nil, nil, nil, nil, 1, true)
ui.addTextArea(1, "<a href='event:ban'>Banir</a>", adm, 72, 370, nil, nil, nil, nil, 1, true)
ui.addTextArea(2, "<a href='event:move(6)'>Morto!</a>", adm, 119, 370, nil, nil, nil, nil, 1, true)
ui.addTextArea(3, "<a href='event:move(0)'>Vivo!</a>", adm, 172, 370, nil, nil, nil, nil, 1, true)
ui.addTextArea(5, "<a href='event:time'>Tempo</a>", adm, 220, 370, nil, nil, nil, nil, 1, true)
ui.addTextArea(4, "<font size='25'><p align='center'>Preparem-se!</p></font>", nil, 300, 30, 200, nil, nil, nil, 0.9, true)
for _, data in next, {"MortCommand", "AutoTimeLeft", "AutoShaman"} do
tfm.exec["disable"..data]()
end
end
eventLoop= function()
verify()
win()
end

Dernière modification le 1602278220000
Lightsuit
« Citoyen »
1599312060000
    • Lightsuit#7572
    • Profil
    • Derniers messages
    • Tribu
#2491
  0
Bom dia, alguem poderia fazer um script para fazer o rato nascer em um canto aleatório do mapa?
Jp_darkuss
« Citoyen »
1599336840000
    • Jp_darkuss#4806
    • Profil
    • Derniers messages
#2492
  0
Lightsuit a dit :
Bom dia, alguem poderia fazer um script para fazer o rato nascer em um canto aleatório do mapa?

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
local _, adm= pcall(nil)
local width, height= 800, 400
local openned= false
local screen= function()
ui.addTextArea(1, "<p align='center'><b>Dimensões</b></p><br/><p>Largura: <a href='event:change(w)'><b>"..width.."</b></a></p><br/><p>Altura: <a href='event:change(h)'><b>"..height.."</b></a></p>", adm, 300, 100, 200, 100, nil, nil, 1, true)
end
local respawn= function(player)
local x, y= math.random(20, width), math.random(40, height)
tfm.exec.movePlayer(player, x, y)
end
eventTextAreaCallback= function(_, _, callback)
if callback=="dimensions" then
if not openned then
screen()
openned= true
else
ui.removeTextArea(1, adm)
openned= false
end
elseif callback:match("change") then
local d= callback:match("change.(.).")
if d=="w" then
ui.addPopup(0, 2, "Qual a largura máxima do mapa?", adm, 300, 100, nil, true)
elseif d=="h" then
ui.addPopup(1, 2, "Qual a altura máxima do mapa?", adm, 300, 100, nil, true)
end
end
end
eventPopupAnswer= function(id, _, answer)
if id== 0 then
width= tonumber(answer)
elseif id== 1 then
height= tonumber(answer)
end
screen()
end
eventNewPlayer= function(player) respawn(player) end
eventPlayerRespawn= function(player) respawn(player) end
do
adm= adm:match("(.-)%.")
ui.addTextArea(0, "<a href='event:dimensions'>Dimensões</a>", adm, 20, 370, nil, nil, nil, nil, 1, true)
end

O script dispõe de um sistema para alterar os limites do mapa, para se adequar melhor.
Viniciusdara
1599429600000
    • Viniciusdara#0000
    • Profil
    • Derniers messages
    • Tribu
#2493
[Modéré par Kiwrimai, raison : Poste sugestões para mini-games Lua aqui!]
Annie
« Citoyen »
1599524940000
    • Annie#6842
    • Profil
    • Derniers messages
    • Tribu
#2494
  0
Oii gente, eu queria muito um script de forca, onde só uma pessoa pudesse colocar as palavras, seria de grande ajuda, ficaria muito grata ^~^
Jp_darkuss
« Citoyen »
1599531120000
    • Jp_darkuss#4806
    • Profil
    • Derniers messages
#2495
  0
Annie a dit :
Oii gente, eu queria muito um script de forca, onde só uma pessoa pudesse colocar as palavras, seria de grande ajuda, ficaria muito grata ^~^

Existem muitas versões para o mesmo script, se não gostar desse busque outro através da barra de pesquisa do fórum.

Esse script foi criado pela Comunidade Inglesa, e se não me engano é uma das mais famosas versões, divirta-se ;)

[Minigame] Hangman
Arthur107
« Consul »
1599612960000
    • Arthur107#1925
    • Profil
    • Derniers messages
    • Tribu
#2496
  0
tem, um script pra burla. racing? se tive eu iria agradeçe,
Jp_darkuss
« Citoyen »
1599660060000
    • Jp_darkuss#4806
    • Profil
    • Derniers messages
#2497
  0
Arthur107 a dit :
tem, um script pra burla. racing? se tive eu iria agradeçe,

No caso, não conheço nenhum.

Mas se você tiver algum script de rotação de mapas racing, é só tirar os mapas que não tem burla da queue.
Patudo_games
« Citoyen »
1599934740000
    • Patudo_games#3302
    • Profil
    • Derniers messages
#2498
  0
eu quero um script de eliminatoria vanilla o mais rapido possivel
Jp_darkuss
« Citoyen »
1599966300000
    • Jp_darkuss#4806
    • Profil
    • Derniers messages
#2499
  1
Patudo_games a dit :
eu quero um script de eliminatoria vanilla o mais rapido possivel

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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
local _, adm= pcall(nil)
local players= {}
local maps= {}
local lost= {}
local gaming= false
local ended= true
local setmap= function()
if gaming and ended then
ended= false
tfm.exec.newGame(maps[math.random(1, #maps)])
end
end
local isLost= function(player)
for _, p in next, lost do
if p== player then
return true
end
end
return false
end
local noone= function()
local alive= 0
for _, player in next, players do
if not isLost(player) then
alive= alive + 1
end
end
if alive== 0 then
ended= true
end
end
local verify= function()
local winner=""
for _, player in next, players do
if not isLost(player) then
winner= player
end
end
if winner~="" then
gaming= false
lost= {}
ui.addTextArea(2, "<font size='12'>O player <b>"..winner.."</b> ganhou!</font>", nil, 300, 50, nil, 50, nil, nil, 1, true)
end
ended= true
end
local kill= function()
for _, player in next, lost do
tfm.exec.killPlayer(player)
end
end
local list= function()
local str="<p align='center'><font color='#DDDDDD' size='12'>Quem quer eliminar?</font></p><br/><p align='center'>"
for _, player in next, players do
if not isLost(player) then
str= str.."<b><a href='event:kill("..player..")'>"..player:gsub("#.+", "").."</a></b> "
end
end
return str.."</p>"
end
eventNewPlayer= function(player)
table.insert(players, player)
end
eventTextAreaCallback= function(_, player, callback)
if callback=="start" then
gaming= true
ui.removeTextArea(2, nil)
elseif callback:match("kill") then
ui.removeTextArea(1, player)
local target= callback:match("kill%((.-)%)")
table.insert(lost, target)
verify()
end
end
eventPlayerWon= function(player)
ui.addTextArea(1, list(), player, 250, 100, 300, 200)
end
eventPlayerDied= function(player)
table.insert(lost, player)
verify()
end
eventLoop= function()
setmap()
kill()
noone()
end
do
adm= adm:match("(.-)%.")
for player, _ in next, tfm.get.room.playerList do
eventNewPlayer(player)
end
for _, data in next, {"AutoNewGame", "AutoTimeLeft", "AutoShaman", "MortCommand"} do
tfm.exec["disable"..data]()
end
ui.addTextArea(0, "<a href='event:start'>Start</a>", adm, 20, 370, nil, nil, nil, nil, 1, true)
end

Coloque os mapas em maps= {}, intercalando com vírgula, tipo: maps= {1, 2, 3}
Não jogue com menos de 2 jogadores.
Patudo_games
« Citoyen »
1600291920000
    • Patudo_games#3302
    • Profil
    • Derniers messages
#2500
  0
Então Jp_darkuss, tem alguns erro no script que eu queria que vc resolvesse pra mim por favor: Quando alguem morre, um jogador ganha automaticamente,e quando dois entram na toca, os dois podem eliminar ou ate mais players podem eliminar, e quando alguem ganha, o tempo não acaba fica infinito, por enquanto foram esses erros que encontri, por favor me ajude, desde ja obg
  • Forums
  • /
  • Transformice
  • /
  • Archives
  • /
  • Seção Editor de Mapas e Modules
  • /
  • [Lua] Peça scripts aqui!
« ‹ 125 / 133 › »
© Atelier801 2018

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

Version 1.27