×

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] Peça scripts aqui!
« ‹ 2 / 9 › »
[Lua] Peça scripts aqui!
Viniciusdara
« Consul »
1614214500000
    • Viniciusdara#4015
    • Profil
    • Derniers messages
    • Tribu
#21
  0
Uma script que permite ter vários comandos do module #utility junto com a script de "adquirir" a XML do mapa.

Comandos que eu gostaria de ter: Rodar mapas por categoria (!map p1 !map p3 ...) Shaman, teleporte, morte (delete) , !clear, !score, etc...
E obviamente a função para receber a XML do mapa ao pressionar espaço.


Se possível a XML aparecer dentro de um pop-up na tela do jogo ao invés do chat

Dernière modification le 1614218580000
Shiryu
« Citoyen »
1614536760000
    • Shiryu#8794
    • Profil
    • Derniers messages
    • Tribu
#22
  0
um script onde existe uma barreira e ela some e aparecer depois de um certo tempo


especificações :

- barreira um piso de pedra, madeira de algum tipo de piso
- o tempo de aparece é desaparecer da barreira pode ser configurado
- ela apareceria no meio do mapa
- ela seria uma forma do rato não passar de um certo ponto só poderia passar depois que a barreira sumisse

Dernière modification le 1614538680000
Bolodefchoco
« Sénateur »
1614537000000
    • Bolodefchoco#0095
    • Profil
    • Derniers messages
    • Tribu
#23
  0
Shiryu a dit :
um script onde existe uma barreira e ela some e aparecer depois de um certo tempo, o tempo de aparece e desaparecer pode ser configurado

Por favor, detalhe mais o seu pedido para que as chances de ser atendido aumentem. O que é uma barreira? Aparece aonde? Faz o quê?

Dernière modification le 1614537060000
Hallonin
« Consul »
1615923540000
    • Hallonin#0000
    • Profil
    • Derniers messages
    • Tribu
#24
  0
~Gostaria de fazer um pedido de script~

O Script que eu quero é que caia raios do céu, quando um raio cair a tela fica preta e logo volta ao normal e assim se repete todo o processo de novo, e que eu consiga escolher o limite até onde o raio deve ir. (Ou caso não der não tem problema). Estarei dando recompensa aos interessados a fazer meu Script, caso queiram mais detalhes me chame no fórum estarei respondendo.
Infectsoul
« Héliaste »
1615948500000
    • Infectsoul#2048
    • Profil
    • Derniers messages
    • Tribu
#25
  0
Hallonin a dit :
~Gostaria de fazer um pedido de script~

O Script que eu quero é que caia raios do céu, quando um raio cair a tela fica preta e logo volta ao normal e assim se repete todo o processo de novo, e que eu consiga escolher o limite até onde o raio deve ir. (Ou caso não der não tem problema). Estarei dando recompensa aos interessados a fazer meu Script, caso queiram mais detalhes me chame no fórum estarei respondendo.

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
132
133
134
135
136
137
system.admin = select(2,pcall(nil)):match('(.-)%.')

system.setting = function(activate,...) for k,v in next, {...} do tfm.exec['disable'..v](activate) end end
system.setting(nil,'AutoShaman','AutoNewGame','AutoTimeLeft','AfkDeath')

system.disableChatCommandDisplay()

system.startTime = math.modf(os.time() / 1000)

--[[
Comandos

!min valor | Ex: !min 200 | para definir a coordenada X mínima dos raios;
!max valor | Ex: !max 600 | para definir a coordenada X máxima dos raios;
!rarity valor | Ex: !rarity 30 | para definir a raridade dos raios;
!r | para reviver todos os ratos;
]]--

local map = {_code = '@7734897'}
local info = {_color = {'69B7FF','A7D5FF'},_light = {'ffffff'},_rarity = 30,_xMin = nil,_xMax = nil,_start = false}
local lightning,id = {},1

eventNewGame = function()
tfm.exec.addPhysicObject(1,0,0,{type = 14,miceCollision = false,groundCollision = false})
local config = ((tfm.get.room.xmlMapInfo and tfm.get.room.xmlMapInfo.xml or ''):match('<C><P(.-)/>') or '')
map._x = (tonumber(config:match('L="(.-)"')) or 800)
map._y = (tonumber(config:match('H="(.-)"')) or 400)
for y = 0,map._y,math.floor((20 / 400) * map._y) do
for x = 0,map._x,math.floor((20 / 800) * map._x) do
tfm.exec.addBonus(0,x,y,(y * 10000) + x,0,false,system.admin)
end
end
info._start = true
end
tfm.exec.newGame(map._code)

shader = function(color,merge,saturation,brightness)
local color = (type(color) == 'table' and (#color == 0 and {'ffffff'} or color) or color and {color} or {'ffffff'})
local merge = (merge and (merge < 0 and 0 or merge > 100 and 100 or merge) or 0)
local config = {_id = 0,_current = (#color == 1 and 1 or math.ceil(merge / (100 / (#color - 1)))),_division = (100 / (#color - 1)),_rgb = {},_hex = {}}
for v,c in next, color do
if (v == config._current or v == config._current + 1) then
config._id = (config._id + 1)
config._rgb[config._id] = {}
for convert in string.gmatch(c,'(..)') do
config._rgb[config._id][#config._rgb[config._id] + 1] = tonumber(convert,16)
end
end
end
while merge > config._division do merge = merge - config._division end
for v,c in next, config._rgb[1] do
for _,b in next, {(config._rgb[2] and (merge > 0 and merge <= 100) and {config._rgb[2][v],merge * (#color - 1)} or nil),((saturation or 0) ~= 0 and {255,saturation} or nil),((brightness or 0) ~= 0 and {0,brightness}) or nil} do
config._rgb[1][v] = config._rgb[1][v] + ((b[1] - config._rgb[1][v]) * (b[2]) / 100)
end
config._hex[#config._hex + 1] = string.format('%x', (config._rgb[1][v] > 255 and 255 or config._rgb[1][v] < 0 and 0 or config._rgb[1][v]))
end
for i=1,#config._hex do config._hex[i] = (config._hex[i]:len() == 1 and '0'..config._hex[i] or config._hex[i]) end
return table.concat(config._hex,'')
end

eventPlayerBonusGrabbed = function(name,idBonus)
local newY,newX = math.modf(idBonus / 10000)
newX = math.modf(tonumber(newX) * 10000)
newY = tonumber(newY)
tfm.exec.addBonus(0,newX,newY,(newY * 10000) + newX,0,false,system.admin)
eventLoop()
end

createLightning = function()
lightning[#lightning + 1] = {_x = math.random((info._xMin or 50),(info._xMax or map._x - 50)),_y = 0,_id = {}}
end

branch = function(index,x,y)
local direction = (math.random(0,100) <= 50 and 'left' or 'right')
local rx,ry,x,y = x,y,x,y
for r = 2,math.random(2,20) do
rx,ry,x,y = x,y,x + math.random(direction == 'left' and -20 or -5,direction == 'right' and 20 or 5),y + math.random(2,10)
lightning[index]._id[#lightning[index]._id + 1] = id
tfm.exec.addJoint(id,1,1,{type = 0,point1 = x..','..y,point2 = rx..','..ry,line = 2,color = '0x'..shader(info._color,math.random(0,100),math.random(0,20)),foreground = true})
id = id + 1
end
local sort = math.random(0,10000)
if sort < 4000 then branch(index,x,y) end
end

updateLightning = function()
for i,v in next, lightning do
if v._y < map._y then
for r = 1,math.random(5,15) do
lightning[i]._rx,lightning[i]._ry = lightning[i]._x,lightning[i]._y
lightning[i]._y = (lightning[i]._y + math.random(2,20))
lightning[i]._x = (lightning[i]._x + math.random(-30,30))
lightning[i]._id[#lightning[i]._id + 1] = id
tfm.exec.addJoint(id,1,1,{type = 0,point1 = lightning[i]._x..','..lightning[i]._y,point2 = lightning[i]._rx..','..lightning[i]._ry,line = 2,color = '0x'..shader(info._color,math.random(0,100),math.random(0,20)),foreground = true})
id = id + 1
local sort = math.random(0,10000)
if sort < 1000 then branch(i,lightning[i]._x,lightning[i]._y) end
end
else
if not lightning[i]._cooldown then lightning[i]._cooldown = os.time() + 1200 end
local color_bg = shader(info._light,0,0,math.random(0,20))
ui.addTextArea(1,'',nil,(map._x == 800 and 5 or -1000),(map._y == 400 and 5 or -1000),(map._x == 800 and 790 or 2800),(map._y == 400 and 390 or 2400),'0x'..color_bg,'0x'..color_bg,math.random(40,100)/100,true)
end
if lightning[i]._cooldown and os.time() > lightning[i]._cooldown then
for k,j in next, lightning[i]._id do
tfm.exec.removeJoint(j)
end
ui.removeTextArea(1)
lightning[i] = nil
break
end
end
end

eventLoop = function()
system.time = math.modf(os.time() / 1000) - system.startTime
if info._start then
if system.time % math.random(1,info._rarity) == 0 and system.time ~= system.timeReserve then
createLightning()
end
updateLightning()
tfm.exec.addJoint(1,1,1,{type = 0,line = 2,color = '0xffffff',point1 = '0,0',point2 = '1,0'})
end
system.timeReserve = system.time
end

eventChatCommand = function(name,cmd)
if cmd:lower():find('^min') then
info._xMin = tonumber(cmd:match('%s+(%d+)'))
elseif cmd:lower():find('^max') then
info._xMax = tonumber(cmd:match('%s+(%d+)'))
elseif cmd:lower():find('^rarity') then
info._rarity = (tonumber(cmd:match('%s+(%d+)')) or 30)
elseif cmd:lower():find('^r') then
table.foreach(tfm.get.room.playerList,tfm.exec.respawnPlayer)
end
end

Dernière modification le 1615953300000
Bolodefchoco
« Sénateur »
1615952700000
    • Bolodefchoco#0095
    • Profil
    • Derniers messages
    • Tribu
#26
  0
Viniciusdara a dit :
Uma script que permite ter vários comandos do module #utility junto com a script de "adquirir" a XML do mapa.

Comandos que eu gostaria de ter: Rodar mapas por categoria (!map p1 !map p3 ...) Shaman, teleporte, morte (delete) , !clear, !score, etc...
E obviamente a função para receber a XML do mapa ao pressionar espaço.


Se possível a XML aparecer dentro de um pop-up na tela do jogo ao invés do chat

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
local admins = { ["Viniciusdara#0000"] = true }
local isTpOn = false

eventChatCommand = function(n, c)
if not admins[n] then return end

if c:sub(1, 4) == "map " then
local map
if c:sub(5, 5):lower() == "p" then
map = "#"..c:sub(6)
else
map = c:sub(5)
end

tfm.exec.newGame(map)
elseif c:sub(1, 6) == "shaman" then
local arg = c:sub(8)
tfm.exec.setShaman(arg~= '' and arg or n)
elseif c == "teleporte" then
isTpOn = not isTpOn
system.bindMouse(n, isTpOn)
elseif c == "clear" then
local objList = tfm.get.room.objectList
local index, obj = next(objList)
while index do
tfm.exec.removeObject(obj.id)
index, obj = next(objList)
end
elseif c:sub(1, 6) == "score " then
tfm.exec.setPlayerScore(n, c:sub(7))
end

end

eventMouse = tfm.exec.movePlayer

eventNewPlayer = function(n)
system.bindKeyboard(n, 46, true, true)
system.bindKeyboard(n, 32, true, true)
end
for n in next, tfm.get.room.playerList do eventNewPlayer(n) end

eventKeyboard = function(n, k)
if k == 46 then
tfm.exec.killPlayer(n)
elseif k == 32 then
local xml = (tfm.get.room.xmlMapInfo or {}).xml or ''
ui.addPopup(0, 0, xml:gsub("<", "&lt;"), n)
end
end

Dernière modification le 1615953060000
Hallonin
« Consul »
1616028060000
    • Hallonin#0000
    • Profil
    • Derniers messages
    • Tribu
#27
  0
Infectsoul a dit :
Hallonin a dit :
~Gostaria de fazer um pedido de script~

O Script que eu quero é que caia raios do céu, quando um raio cair a tela fica preta e logo volta ao normal e assim se repete todo o processo de novo, e que eu consiga escolher o limite até onde o raio deve ir. (Ou caso não der não tem problema). Estarei dando recompensa aos interessados a fazer meu Script, caso queiram mais detalhes me chame no fórum estarei respondendo.

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
132
133
134
135
136
137
system.admin = select(2,pcall(nil)):match('(.-)%.')

system.setting = function(activate,...) for k,v in next, {...} do tfm.exec['disable'..v](activate) end end
system.setting(nil,'AutoShaman','AutoNewGame','AutoTimeLeft','AfkDeath')

system.disableChatCommandDisplay()

system.startTime = math.modf(os.time() / 1000)

--[[
Comandos

!min valor | Ex: !min 200 | para definir a coordenada X mínima dos raios;
!max valor | Ex: !max 600 | para definir a coordenada X máxima dos raios;
!rarity valor | Ex: !rarity 30 | para definir a raridade dos raios;
!r | para reviver todos os ratos;
]]--

local map = {_code = '@7734897'}
local info = {_color = {'69B7FF','A7D5FF'},_light = {'ffffff'},_rarity = 30,_xMin = nil,_xMax = nil,_start = false}
local lightning,id = {},1

eventNewGame = function()
tfm.exec.addPhysicObject(1,0,0,{type = 14,miceCollision = false,groundCollision = false})
local config = ((tfm.get.room.xmlMapInfo and tfm.get.room.xmlMapInfo.xml or ''):match('<C><P(.-)/>') or '')
map._x = (tonumber(config:match('L="(.-)"')) or 800)
map._y = (tonumber(config:match('H="(.-)"')) or 400)
for y = 0,map._y,math.floor((20 / 400) * map._y) do
for x = 0,map._x,math.floor((20 / 800) * map._x) do
tfm.exec.addBonus(0,x,y,(y * 10000) + x,0,false,system.admin)
end
end
info._start = true
end
tfm.exec.newGame(map._code)

shader = function(color,merge,saturation,brightness)
local color = (type(color) == 'table' and (#color == 0 and {'ffffff'} or color) or color and {color} or {'ffffff'})
local merge = (merge and (merge < 0 and 0 or merge > 100 and 100 or merge) or 0)
local config = {_id = 0,_current = (#color == 1 and 1 or math.ceil(merge / (100 / (#color - 1)))),_division = (100 / (#color - 1)),_rgb = {},_hex = {}}
for v,c in next, color do
if (v == config._current or v == config._current + 1) then
config._id = (config._id + 1)
config._rgb[config._id] = {}
for convert in string.gmatch(c,'(..)') do
config._rgb[config._id][#config._rgb[config._id] + 1] = tonumber(convert,16)
end
end
end
while merge > config._division do merge = merge - config._division end
for v,c in next, config._rgb[1] do
for _,b in next, {(config._rgb[2] and (merge > 0 and merge <= 100) and {config._rgb[2][v],merge * (#color - 1)} or nil),((saturation or 0) ~= 0 and {255,saturation} or nil),((brightness or 0) ~= 0 and {0,brightness}) or nil} do
config._rgb[1][v] = config._rgb[1][v] + ((b[1] - config._rgb[1][v]) * (b[2]) / 100)
end
config._hex[#config._hex + 1] = string.format('%x', (config._rgb[1][v] > 255 and 255 or config._rgb[1][v] < 0 and 0 or config._rgb[1][v]))
end
for i=1,#config._hex do config._hex[i] = (config._hex[i]:len() == 1 and '0'..config._hex[i] or config._hex[i]) end
return table.concat(config._hex,'')
end

eventPlayerBonusGrabbed = function(name,idBonus)
local newY,newX = math.modf(idBonus / 10000)
newX = math.modf(tonumber(newX) * 10000)
newY = tonumber(newY)
tfm.exec.addBonus(0,newX,newY,(newY * 10000) + newX,0,false,system.admin)
eventLoop()
end

createLightning = function()
lightning[#lightning + 1] = {_x = math.random((info._xMin or 50),(info._xMax or map._x - 50)),_y = 0,_id = {}}
end

branch = function(index,x,y)
local direction = (math.random(0,100) <= 50 and 'left' or 'right')
local rx,ry,x,y = x,y,x,y
for r = 2,math.random(2,20) do
rx,ry,x,y = x,y,x + math.random(direction == 'left' and -20 or -5,direction == 'right' and 20 or 5),y + math.random(2,10)
lightning[index]._id[#lightning[index]._id + 1] = id
tfm.exec.addJoint(id,1,1,{type = 0,point1 = x..','..y,point2 = rx..','..ry,line = 2,color = '0x'..shader(info._color,math.random(0,100),math.random(0,20)),foreground = true})
id = id + 1
end
local sort = math.random(0,10000)
if sort < 4000 then branch(index,x,y) end
end

updateLightning = function()
for i,v in next, lightning do
if v._y < map._y then
for r = 1,math.random(5,15) do
lightning[i]._rx,lightning[i]._ry = lightning[i]._x,lightning[i]._y
lightning[i]._y = (lightning[i]._y + math.random(2,20))
lightning[i]._x = (lightning[i]._x + math.random(-30,30))
lightning[i]._id[#lightning[i]._id + 1] = id
tfm.exec.addJoint(id,1,1,{type = 0,point1 = lightning[i]._x..','..lightning[i]._y,point2 = lightning[i]._rx..','..lightning[i]._ry,line = 2,color = '0x'..shader(info._color,math.random(0,100),math.random(0,20)),foreground = true})
id = id + 1
local sort = math.random(0,10000)
if sort < 1000 then branch(i,lightning[i]._x,lightning[i]._y) end
end
else
if not lightning[i]._cooldown then lightning[i]._cooldown = os.time() + 1200 end
local color_bg = shader(info._light,0,0,math.random(0,20))
ui.addTextArea(1,'',nil,(map._x == 800 and 5 or -1000),(map._y == 400 and 5 or -1000),(map._x == 800 and 790 or 2800),(map._y == 400 and 390 or 2400),'0x'..color_bg,'0x'..color_bg,math.random(40,100)/100,true)
end
if lightning[i]._cooldown and os.time() > lightning[i]._cooldown then
for k,j in next, lightning[i]._id do
tfm.exec.removeJoint(j)
end
ui.removeTextArea(1)
lightning[i] = nil
break
end
end
end

eventLoop = function()
system.time = math.modf(os.time() / 1000) - system.startTime
if info._start then
if system.time % math.random(1,info._rarity) == 0 and system.time ~= system.timeReserve then
createLightning()
end
updateLightning()
tfm.exec.addJoint(1,1,1,{type = 0,line = 2,color = '0xffffff',point1 = '0,0',point2 = '1,0'})
end
system.timeReserve = system.time
end

eventChatCommand = function(name,cmd)
if cmd:lower():find('^min') then
info._xMin = tonumber(cmd:match('%s+(%d+)'))
elseif cmd:lower():find('^max') then
info._xMax = tonumber(cmd:match('%s+(%d+)'))
elseif cmd:lower():find('^rarity') then
info._rarity = (tonumber(cmd:match('%s+(%d+)')) or 30)
elseif cmd:lower():find('^r') then
table.foreach(tfm.get.room.playerList,tfm.exec.respawnPlayer)
end
end

Muito obrigadoo❤️
Israelwoods
« Citoyen »
1616516700000
    • Israelwoods#0000
    • Profil
    • Derniers messages
    • Tribu
#28
  0
Xente precisava de um script lua de #deathmatch
aquele que vc se abaixa e solta CN
Phi
« Citoyen »
1616609220000
    • Phi#1265
    • Profil
    • Derniers messages
    • Tribu
#29
  0
Alguém sabe fazer algum script para desenhar com pincel? item de inventário.
Se possivel, conseguir desenhar simbolos, como, estrelas, quadrados, ou algumas outras formas geometricas
Caso alguém saiba como desenhar alguma forma geometrica por X e Y, me mande dm. estou fazendo um projeto
Sklag
« Citoyen »
1616629740000
    • Sklag#2552
    • Profil
    • Derniers messages
    • Tribu
#30
  0
Eu preciso de um script de hp porem com safe area
Pipocalio
« Citoyen »
1616787240000
    • Pipocalio#0000
    • Profil
    • Derniers messages
    • Tribu
#31
  1
Israelwoods a dit :
Xente precisava de um script lua de #deathmatch
aquele que vc se abaixa e solta CN

script do shamousey
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
tfm.exec.disableAutoNewGame(true)
tfm.exec.disableAutoShaman(true)
players={}
toDespawn={}
maps={521833,401421,541917,541928,541936,541943,527935,559634,559644,888052,878047,885641,770600,770656,772172,891472,589736,589800,589708,900012,901062,754380,901337,901411,907870,910078,1190467,1252043,1124380,1016258,1252299,1255902,1256808,986790,1285380,1271249,1255944,1255983,1085344,1273114,1276664,1279258,1286824,1280135,1280342,1284861,1287556,1057753,1196679,1288489,1292983,1298164,1298521,1293189,1296949,1308378,1311136,1314419,1314982,1318248,1312411,1312589,1312845,1312933,1313969,1338762,1339474,1349878,1297154,644588,1351237,1354040,1354375,1362386,1283234,1370578,1306592,1360889,1362753,1408124,1407949,1407849,1343986,1408028,1441370,1443416,1389255,1427349,1450527,1424739,869836,1459902,1392993,1426457,1542824,1533474,1561467,1563534,1566991,1587241,1416119,1596270,1601580,1525751,1582146,1558167,1420943,1466487,1642575,1648013,1646094,1393097,1643446,1545219,1583484,1613092,1627981,1633374,1633277,1633251,1585138,1624034,1616785,1625916,1667582,1666996,1675013,1675316,1531316,1665413,1681719,1699880,1688696,623770,1727243,1531329,1683915,1689533,1738601,3756146,912118,3326933,3722005,3566478,1456622,1357994,1985670,1884075,1708065,1700322,2124484,3699046,2965313,4057963,4019126,3335202,2050466}

function eventNewPlayer(name)
for i,key in ipairs({32,40,83}) do
tfm.exec.bindKeyboard(name,key,true,true)
end
players[name]={
timestamp=os.time(),
offsets={x=2, y=10}
}
end

function eventKeyboard(name,key,down,x,y)
if (key==32 or key==40 or key==83) and not tfm.get.room.playerList[name].isDead and started then
if players[name].timestamp < os.time()-1000 then
local id=tfm.exec.addShamanObject(17, x+(tfm.get.room.playerList[name].isFacingRight and players[name].offsets.x or -players[name].offsets.x), y+players[name].offsets.y, tfm.get.room.playerList[name].isFacingRight and 90 or 270)
players[name].timestamp=os.time()
table.insert(toDespawn,{os.time(),id})
end
end
end

function eventChatCommand(name,command)
local arg={}
for argument in command:gmatch("[^%s]+") do
table.insert(arg,argument)
end
if arg[1]=="off" then
if tonumber(arg[2]) and tonumber(arg[3]) then
players[name].offsets.x=tonumber(arg[2])
players[name].offsets.y=tonumber(arg[3])
else
players[name].offsets.x=2
players[name].offsets.y=10
end
tfm.exec.chatMessage("Offsets changed to X:"..players[name].offsets.x.." Y:"..players[name].offsets.y,name)
end
end

function eventNewGame()
started=false
end

function eventLoop(time,remaining)
if time >= 3000 and not started then
started=true
end
if remaining<=0 then
tfm.exec.newGame(maps[math.random(#maps)])
end
for i,cannon in ipairs(toDespawn) do
if cannon[1] <= os.time()-3000 then
tfm.exec.removeObject(cannon[2])
table.remove(toDespawn,i)
end
end
end

function eventPlayerDied(name)
local i=0
local n
for pname,player in pairs(tfm.get.room.playerList) do
if not player.isDead then
i=i+1
n=pname
end
end
if i==0 then
tfm.exec.newGame(maps[math.random(#maps)])
elseif i==1 then
tfm.exec.giveCheese(n)
tfm.exec.playerVictory(n)
tfm.exec.setGameTime(5)
end
end

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

tfm.exec.newGame(maps[math.random(#maps)])
Bolodefchoco
« Sénateur »
1616794860000
    • Bolodefchoco#0095
    • Profil
    • Derniers messages
    • Tribu
#32
  0
Sklag a dit :
Eu preciso de um script de hp porem com safe area

Detalhe melhor seu pedido, recomendo que siga as instruções do tópico para ter uma base sobre como pedir seu script
Hallonin
« Consul »
1617561240000
    • Hallonin#0000
    • Profil
    • Derniers messages
    • Tribu
#33
  0
~Gostaria de fazer um pedido de script~

O script que eu queria é que os jogadores irão nascer em um mapa plano normal, e daí irá aparecer uma mensagem na tela dizendo
Uma zona segura vai aparecer em.
(O tempo que eu escolher). A mensagem deve aparecer no meio da tela só que lá encima. Então depois que a zona segura aparecer ela irá aparecer em uma forma de bola como se fosse a de shaman no modo divino. Então depois que acabar o tempo irá aparecer outra mensagem dizendo que A zona segura vai diminuir em. (O tempo que eu escolher novamente). Quando esse tempo acabar irá aparecer outra mensagem dizendo que A zona segura está diminuindo. Se o jogador ficar fora da zona ele irá tomar dano, caso for possível adicionar uma caixa de xp com a vida do jogador ao lado seria melhor ainda. E depois que a mensagem dizendo que a zona está diminuindo irá aparecer a mesma mensagem dizendo que a zona vai diminuir em um certo tempo e assim se repete tudo normalmente, caso a zona ela diminuir toda e os jogadores ficarem fora dela eles começariam a tomar dano o jogador que morrer primeiro e o que fica vivo ganha automaticamente, e assim se inicia uma nova partida.

Dernière modification le 1617751140000
Wenzw
« Citoyen »
1617766500000
    • Wenzw#0000
    • Profil
    • Derniers messages
#34
  0
Quero um script do modo racing porém com ranking e só conta status de rank com 6 ratos, e apenas quem chegar em primeiro receber ponto para o ranking
Hallonin
« Consul »
1617909240000
    • Hallonin#0000
    • Profil
    • Derniers messages
    • Tribu
#35
  0
O script que eu quero não é bem um script e sim que modificasse esse. O que eu queria era que tirasse as mensagens que aparece no chat e colocar pra aparecer na tela no meio só que pra cima.
Code Lua

1
loop=0
tfm.exec.disablePhysicalConsumables(true)
tfm.exec.disableAutoNewGame(true)
tfm.exec.disableAllShamanSkills(true)
tfm.exec.disableAutoTimeLeft(true)
system.disableChatCommandDisplay("help")
system.disableChatCommandDisplay("cancel")
mode=""
shaman=""
objects={1,2,3,4,6,10,23,33,35,39,40,45,46,54,60,61,65,68,69,85,90,95}
map='<C><P DS="m;400,3200,1200,3200" L="1600" G="0,7.5" H="4360" /><Z><S><S P="0,0,0.3,0.2,0,0,0,0" L="2400" o="241901" X="800" c="4" N="" Y="-2050" T="13" H="10" /><S H="10" L="2400" o="614305" X="800" c="4" N="" Y="-2100" T="13" P="0,0,0.3,0.2,0,0,0,0" /><S P="0,0,0.3,0.2,0,0,0,0" L="2400" o="9f6d07" X="800" c="4" N="" Y="-2150" T="13" H="10" /><S L="3000" H="30" X="800" v="120000" Y="3415" T="6" P="0,0,0.3,0.2,0,0,0,0" /><S H="1600" L="3000" X="800" c="4" N="" Y="5000" T="3" P="0,0,0,20,0,0,0,0" /><S H="770" L="3000" o="470908" X="800" c="4" Y="3815" T="12" P="0,0,0.3,0.2,0,0,0,0" /><S L="2400" o="eba20b" H="10" X="800" N="" Y="-2200" T="13" P="0,0,0.3,0.2,0,0,0,0" /></S><D><P P="1,0" Y="4271" T="46" X="100" /><P X="200" Y="4271" T="46" P="1,0" /><P P="1,0" Y="4271" T="46" X="300" /><P X="400" Y="4271" T="46" P="1,0" /><P P="1,0" Y="4271" T="46" X="500" /><P X="600" Y="4271" T="46" P="1,0" /><P P="1,0" Y="4271" T="46" X="700" /><P X="800" Y="4271" T="46" P="1,0" /><P P="1,0" Y="4271" T="46" X="900" /><P X="1000" Y="4271" T="46" P="1,0" /><P P="1,0" Y="4271" T="46" X="1100" /><P X="1200" Y="4271" T="46" P="1,0" /><P P="1,0" Y="4271" T="46" X="1300" /><P X="1400" Y="4271" T="46" P="1,0" /><P P="1,0" Y="4271" T="46" X="1500" /><P X="500" Y="3404" T="1" P="1,0" /><P P="1,0" Y="3404" T="1" X="800" /><P P="1,0" Y="3404" T="1" X="200" /><P X="1100" Y="3404" T="1" P="1,0" /><P P="1,0" Y="3404" T="1" X="1400" /><P X="1168" Y="3401" T="0" P="1,0" /><P X="1227" Y="3406" T="5" P="1,0" /><P X="929" Y="3402" T="13" P="1,0" /><P X="317" Y="3402" T="13" P="1,0" /><P X="1632" Y="3403" T="13" P="1,0" /><P X="1559" Y="3401" T="12" P="1,0" /><P X="1488" Y="3404" T="11" P="1,0" /><P X="1320" Y="3403" T="11" P="1,0" /><P X="1283" Y="3405" T="2" P="1,0" /><P X="1019" Y="3403" T="2" P="1,0" /><P X="596" Y="3402" T="2" P="1,0" /><P X="694" Y="3402" T="4" P="1,0" /><P X="109" Y="3401" T="5" P="1,0" /><P X="-37" Y="3403" T="0" P="1,0" /><P X="54" Y="3402" T="3" P="1,0" /><P X="416" Y="3403" T="3" P="1,0" /><P X="1450" Y="3402" T="3" P="1,0" /></D><O /><L><VL n="b"l="-1"/><JD P1="-800,3425"P2="2400,3425"c="15a4eb,250,1,0"/><JD P1="-800,3175"P2="2400,3175"c="15a4eb,250,1,0"/><JD P1="-800,2925"P2="2400,2925"c="15a4eb,250,1,0"/><JD P1="-800,2675"P2="2400,2675"c="15a4eb,250,1,0"/><JD P1="-800,2475"P2="2400,2475"c="138dd4,150,1,0"/><JD P1="-800,2325"P2="2400,2325"c="1172bd,150,1,0"/><JD P1="-800,2175"P2="2400,2175"c="105ba6,150,1,0"/><JD P1="-800,2025"P2="2400,2025"c="0e468f,150,1,0"/><JD P1="-800,1875"P2="2400,1875"c="0c3378,150,1,0"/><JD P1="-800,1725"P2="2400,1725"c="0b2561,150,1,0"/><JD P1="-800,1575"P2="2400,1575"c="07174a,150,1,0"/><JD P1="-800,1425"P2="2400,1425"c="050d33,150,1,0"/><JD P1="-800,1275"P2="2400,1275"c="040926,150,1,0"/><JD P1="-800,1125"P2="2400,1125"c="03051a,150,1,0"/><JD P1="-800,975"P2="2400,975"c="02020f,150,1,0"/><JD P1="-800,775"P2="2400,775"c="010108,250,1,0"/><JD P1="-800,525"P2="2400,525"c="010108,250,1,0"/><JD P1="-800,275"P2="2400,275"c="010108,250,1,0"/><JD P1="-800,25"P2="2400,25"c="010108,250,1,0"/><JD P1="-800,-225"P2="2400,-225"c="010108,250,1,0"/><JD P1="-800,-475"P2="3400,-475"c="010108,250,1,0"/><VL n="s1"l="-1"/><JD P1="-321,544"P2="-321,545"c="87e5ff,2,1,1"/><JD P1="1408,499"P2="1408,500"c="87e5ff,2,1,1"/><JD P1="141,132"P2="141,133"c="87e5ff,2,1,1"/><JD P1="352,837"P2="352,838"c="87e5ff,2,1,1"/><JD P1="882,8"P2="882,9"c="87e5ff,2,1,1"/><JD P1="1044,727"P2="1044,728"c="87e5ff,2,1,1"/><JD P1="603,412"P2="603,413"c="87e5ff,2,1,1"/><JD P1="1313,75"P2="1313,76"c="87e5ff,2,1,1"/><JD P1="140,531"P2="140,532"c="87e5ff,2,1,1"/><JD P1="-597,801"P2="-597,802"c="87e5ff,3,1,1"/><JD P1="-248,78"P2="-248,79"c="87e5ff,3,1,1"/><JD P1="715,637"P2="715,638"c="87e5ff,3,1,1"/><JD P1="1646,748"P2="1646,749"c="87e5ff,3,1,1"/><JD P1="1622,270"P2="1623,271"c="87e5ff,3,1,1"/><JD P1="1015,388"P2="1015,389"c="87e5ff,3,1,1"/><JD P1="1591,-169"P2="1591,-168"c="87e5ff,3,1,1"/><JD P1="455,-110"P2="455,-109"c="87e5ff,3,1,1"/><JD P1="563,172"P2="563,173"c="87e5ff,4,1,1"/><JD P1="939,-181"P2="939,-180"c="87e5ff,4,1,1"/><JD P1="1261,645"P2="1261,646"c="87e5ff,4,1,1"/><JD P1="358,533"P2="358,534"c="87e5ff,4,1,1"/><JD P1="946,948"P2="946,949"c="87e5ff,4,1,1"/><JD P1="1191,256"P2="1191,257"c="87e5ff,4,1,1"/><JD P1="-155,317"P2="-155,318"c="87e5ff,4,1,1"/><JD P1="-519,-80"P2="-519,-79"c="87e5ff,5,1,1"/><JD P1="-208,718"P2="-208,719"c="87e5ff,5,1,1"/><JD P1="390,-17"P2="390,-16"c="87e5ff,5,1,1"/><JD P1="1289,-341"P2="1289,-340"c="87e5ff,5,1,1"/><JD P1="1584,61"P2="1584,62"c="87e5ff,5,1,1"/><JD P1="1010,526"P2="1010,527"c="87e5ff,5,1,1"/><JD P1="1389,308"P2="1389,309"c="87e5ff,6,1,1"/><JD P1="922,225"P2="922,226"c="87e5ff,6,1,1"/><JD P1="619,-373"P2="619,-372"c="87e5ff,6,1,1"/><JD P1="43,-101"P2="43,-100"c="87e5ff,6,1,1"/><JD P1="288,440"P2="288,441"c="87e5ff,6,1,1"/><JD P1="112,827"P2="112,828"c="87e5ff,7,1,1"/><JD P1="672,776"P2="672,777"c="87e5ff,7,1,1"/><JD P1="1677,494"P2="1677,495"c="87e5ff,7,1,1"/><JD P1="1227,-97"P2="1227,-96"c="87e5ff,7,1,1"/><JD P1="971,-448"P2="971,-447"c="87e5ff,8,1,1"/><JD P1="1090,50"P2="1090,51"c="87e5ff,8,1,1"/><JD P1="783,323"P2="783,324"c="87e5ff,8,1,1"/><JD P1="293,-323"P2="293,-322"c="87e5ff,9,1,1"/><VL n="s3"l="-1"/><JD P1="-101,884"P2="-101,885"c="87e5ff,2,1,1"/><JD P1="1628,839"P2="1628,840"c="87e5ff,2,1,1"/><JD P1="361,472"P2="361,473"c="87e5ff,2,1,1"/><JD P1="572,1177"P2="572,1178"c="87e5ff,2,1,1"/><JD P1="1102,348"P2="1102,349"c="87e5ff,2,1,1"/><JD P1="1264,1067"P2="1264,1068"c="87e5ff,2,1,1"/><JD P1="823,752"P2="823,753"c="87e5ff,2,1,1"/><JD P1="1533,415"P2="1533,416"c="87e5ff,2,1,1"/><JD P1="360,871"P2="360,872"c="87e5ff,2,1,1"/><JD P1="-377,1141"P2="-377,1142"c="87e5ff,3,1,1"/><JD P1="-28,418"P2="-28,419"c="87e5ff,3,1,1"/><JD P1="935,977"P2="935,978"c="87e5ff,3,1,1"/><JD P1="1866,1088"P2="1866,1089"c="87e5ff,3,1,1"/><JD P1="1842,610"P2="1843,611"c="87e5ff,3,1,1"/><JD P1="1235,728"P2="1235,729"c="87e5ff,3,1,1"/><JD P1="1811,171"P2="1811,172"c="87e5ff,3,1,1"/><JD P1="675,230"P2="675,231"c="87e5ff,3,1,1"/><JD P1="783,512"P2="783,513"c="87e5ff,4,1,1"/><JD P1="1159,159"P2="1159,160"c="87e5ff,4,1,1"/><JD P1="1481,985"P2="1481,986"c="87e5ff,4,1,1"/><JD P1="578,873"P2="578,874"c="87e5ff,4,1,1"/><JD P1="1166,1288"P2="1166,1289"c="87e5ff,4,1,1"/><JD P1="1411,596"P2="1411,597"c="87e5ff,4,1,1"/><JD P1="65,657"P2="65,658"c="87e5ff,4,1,1"/><JD P1="-299,260"P2="-299,261"c="87e5ff,5,1,1"/><JD P1="12,1058"P2="12,1059"c="87e5ff,5,1,1"/><JD P1="610,323"P2="610,324"c="87e5ff,5,1,1"/><JD P1="1509,-1"P2="1509,0"c="87e5ff,5,1,1"/><JD P1="1804,401"P2="1804,402"c="87e5ff,5,1,1"/><JD P1="1230,866"P2="1230,867"c="87e5ff,5,1,1"/><JD P1="1609,648"P2="1609,649"c="87e5ff,6,1,1"/><JD P1="1142,565"P2="1142,566"c="87e5ff,6,1,1"/><JD P1="839,-33"P2="839,-32"c="87e5ff,6,1,1"/><JD P1="263,239"P2="263,240"c="87e5ff,6,1,1"/><JD P1="508,780"P2="508,781"c="87e5ff,6,1,1"/><JD P1="332,1167"P2="332,1168"c="87e5ff,7,1,1"/><JD P1="892,1116"P2="892,1117"c="87e5ff,7,1,1"/><JD P1="1897,834"P2="1897,835"c="87e5ff,7,1,1"/><JD P1="1447,243"P2="1447,244"c="87e5ff,7,1,1"/><JD P1="1191,-108"P2="1191,-107"c="87e5ff,8,1,1"/><JD P1="1310,390"P2="1310,391"c="87e5ff,8,1,1"/><JD P1="1003,663"P2="1003,664"c="87e5ff,8,1,1"/><JD P1="513,17"P2="513,18"c="87e5ff,9,1,1"/><JD P1="935,262"P2="935,263"c="87dbff,9,1,1"/><VL n="s2"l="-1"/><JD P1="221,731"P2="221,732"c="ded3de,216,1,1"/><JD P1="162,689"P2="162,690"c="ada1ad,30,1,1"/><JD P1="259,790"P2="259,791"c="ada1ad,30,1,1"/><JD P1="226,664"P2="226,665"c="8a808a,70,1,1"/><JD P1="191,778"P2="191,779"c="8a808a,70,1,1"/><JD P1="289,726"P2="289,727"c="8a808a,70,1,1"/><JD P1="137,735"P2="137,736"c="b3a8b3,40,1,1"/><JD P1="226,726"P2="226,727"c="b3a8b3,40,1,1"/><JD P1="274,671"P2="274,672"c="827b82,15,1,1"/><JD P1="228,822"P2="228,823"c="827b82,15,1,1"/><VL n="green3"l="-1"/><JD P1="550,3119"P2="841,2853"c="0e3d05,48,1,0"/><JD P1="841,2853"P2="1088,3075"c="0e3d05,48,1,0"/><JD P1="674,3048"P2="849,2899"c="0e3d05,48,1,0"/><JD P1="849,2899"P2="1024,3066"c="0e3d05,48,1,0"/><JD P1="760,3029"P2="853,2949"c="0e3d05,48,1,0"/><JD P1="853,2950"P2="982,3077"c="0e3d05,48,1,0"/><JD P1="814,3018"P2="848,2995"c="0e3d05,48,1,0"/><JD P1="850,2995"P2="967,3095"c="0e3d05,48,1,0"/><JD P1="1804,3244"P2="2020,3039"c="0e3d05,48,1,0"/><JD P1="2020,3039"P2="2256,3278"c="0e3d05,48,1,0"/><JD P1="1864,3232"P2="2023,3087"c="0e3d05,48,1,0"/><JD P1="2023,3087"P2="2160,3234"c="0e3d05,48,1,0"/><JD P1="1900,3222"P2="2086,3294"c="0e3d05,48,1,0"/><JD P1="1928,3244"P2="2036,3138"c="0e3d05,48,1,0"/><JD P1="2027,3138"P2="2155,3273"c="0e3d05,48,1,0"/><JD P1="1923,3210"P2="2158,3253"c="0e3d05,48,1,0"/><JD P1="2108,3278"P2="1935,3182"c="0e3d05,48,1,0"/><JD P1="1934,3182"P2="2118,3212"c="0e3d05,48,1,0"/><JD P1="2090,3215"P2="1960,3145"c="0e3d05,48,1,0"/><VL n="green2"l="-1"/><JD P1="-40,3289"P2="312,3146"c="125206,72,1,0"/><JD P1="312,3146"P2="433,3233"c="125206,72,1,0"/><JD P1="90,3294"P2="317,3197"c="125206,72,1,0"/><JD P1="902,3131"P2="1230,2969"c="125206,72,1,0"/><JD P1="1232,2969"P2="1624,3232"c="125206,72,1,0"/><JD P1="1004,3151"P2="1238,3035"c="125206,72,1,0"/><JD P1="1238,3035"P2="1526,3240"c="125206,72,1,0"/><JD P1="1044,3202"P2="1247,3101"c="125206,72,1,0"/><JD P1="1247,3101"P2="1457,3261"c="125206,72,1,0"/><JD P1="1131,3175"P2="1362,3319"c="125206,72,1,0"/><JD P1="1199,3151"P2="1453,3310"c="125206,72,1,0"/><JD P1="2021,3334"P2="2303,3176"c="125206,72,1,0"/><JD P1="2303,3176"P2="2684,3429"c="125206,72,1,0"/><JD P1="2132,3334"P2="2302,3244"c="125206,72,1,0"/><JD P1="2302,3244"P2="2652,3463"c="125206,72,1,0"/><JD P1="2217,3355"P2="2311,3305"c="125206,72,1,0"/><JD P1="2310,3305"P2="2629,3499"c="125206,72,1,0"/><JD P1="2238,3342"P2="2463,3427"c="125206,72,1,0"/><VL n="green1"l="-1"/><JD P1="-665,3445"P2="-47,3259"c="1b7d0a,96,1,0"/><JD P1="-47,3259"P2="530,3459"c="1b7d0a,96,1,0"/><JD P1="-550,3473"P2="-51,3350"c="1b7d0a,96,1,0"/><JD P1="-51,3350"P2="464,3494"c="1b7d0a,96,1,0"/><JD P1="-295,3481"P2="-69,3430"c="1b7d0a,96,1,0"/><JD P1="-69,3430"P2="188,3492"c="1b7d0a,96,1,0"/><JD P1="82,3348"P2="794,3039"c="1b7d0a,96,1,0"/><JD P1="804,3045"P2="1596,3508"c="1b7d0a,96,1,0"/><JD P1="252,3427"P2="780,3193"c="1b7d0a,224,1,0"/><JD P1="788,3196"P2="1402,3537"c="1b7d0a,224,1,0"/><JD P1="504,3382"P2="999,3406"c="1b7d0a,224,1,0"/><JD P1="1274,3332"P2="1684,3212"c="1b7d0a,96,1,0"/><JD P1="1688,3213"P2="2527,3484"c="1b7d0a,96,1,0"/><JD P1="1386,3390"P2="1717,3296"c="1b7d0a,96,1,0"/><JD P1="1717,3296"P2="2450,3531"c="1b7d0a,96,1,0"/><JD P1="1487,3427"P2="1777,3375"c="1b7d0a,96,1,0"/><JD P1="1777,3375"P2="2092,3479"c="1b7d0a,96,1,0"/><JD P1="1536,3467"P2="2301,3477"c="1b7d0a,96,1,0"/><VL n="baloon"l="-1"/><JD P1="504,2361"P2="521,2455"c="000000,1,1,0"/><JD P1="523,2360"P2="532,2454"c="000000,1,1,0"/><JD P1="540,2360"P2="540,2453"c="000000,1,1,0"/><JD P1="548,2453"P2="558,2361"c="000000,1,1,0"/><JD P1="559,2454"P2="574,2360"c="000000,1,1,0"/><JD P1="512,2454"P2="569,2452"c="ba7d0b,4,1,1"/><JD P1="569,2452"P2="572,2485"c="ba7d0b,4,1,1"/><JD P1="511,2454"P2="514,2486"c="ba7d0b,4,1,1"/><JD P1="514,2486"P2="571,2485"c="ba7d0b,4,1,1"/><JD P1="515,2458"P2="518,2482"c="6e4904,10,1,0"/><JD P1="518,2481"P2="567,2480"c="6e4904,10,1,0"/><JD P1="567,2480"P2="564,2457"c="6e4904,10,1,0"/><JD P1="564,2457"P2="520,2458"c="6e4904,10,1,0"/><JD P1="520,2463"P2="562,2463"c="6e4904,10,1,0"/><JD P1="521,2470"P2="562,2468"c="6e4904,10,1,0"/><JD P1="524,2473"P2="561,2473"c="6e4904,10,1,0"/><JD P1="526,2454"P2="513,2465"c="7d5a19,3,1,0"/><JD P1="541,2454"P2="515,2476"c="7d5a19,3,1,0"/><JD P1="555,2453"P2="519,2485"c="7d5a19,3,1,0"/><JD P1="568,2455"P2="533,2484"c="7d5a19,3,1,0"/><JD P1="568,2467"P2="545,2485"c="7d5a19,3,1,0"/><JD P1="570,2476"P2="559,2484"c="7d5a19,3,1,0"/><JD P1="512,2456"P2="539,2483"c="7d5a19,3,1,0"/><JD P1="530,2455"P2="554,2483"c="7d5a19,3,1,0"/><JD P1="548,2454"P2="569,2480"c="7d5a19,3,1,0"/><JD P1="515,2472"P2="526,2484"c="7d5a19,3,1,0"/><JD P1="560,2454"P2="569,2463"c="7d5a19,3,1,0"/><JD P1="536,2281"P2="536,2282"c="ffffff,178,1,0"/><VL n="cl"l="-1"/><JD P1="709,2607"P2="709,2608"c="f2f2f2,70,0.8,1"/><JD P1="753,2607"P2="753,2608"c="f2f2f2,70,0.8,1"/><JD P1="796,2607"P2="796,2608"c="f2f2f2,70,0.8,1"/><JD P1="845,2607"P2="845,2608"c="f2f2f2,70,0.8,1"/><JD P1="892,2604"P2="892,2605"c="f2f2f2,70,0.8,1"/><JD P1="737,2569"P2="737,2570"c="f2f2f2,70,0.8,1"/><JD P1="775,2573"P2="775,2574"c="f2f2f2,70,0.8,1"/><JD P1="821,2571"P2="821,2572"c="f2f2f2,70,0.8,1"/><JD P1="859,2573"P2="859,2574"c="f2f2f2,70,0.8,1"/><JD P1="135,2669"P2="135,2670"c="f2f2f2,70,0.8,1"/><JD P1="184,2670"P2="184,2671"c="f2f2f2,70,0.8,1"/><JD P1="213,2671"P2="213,2672"c="f2f2f2,70,0.8,1"/><JD P1="253,2668"P2="253,2669"c="f2f2f2,70,0.8,1"/><JD P1="283,2669"P2="283,2670"c="f2f2f2,70,0.8,1"/><JD P1="145,2636"P2="148,2636"c="f2f2f2,70,0.8,1"/><JD P1="187,2638"P2="187,2639"c="f2f2f2,70,0.8,1"/><JD P1="223,2638"P2="223,2639"c="f2f2f2,70,0.8,1"/><JD P1="253,2638"P2="253,2639"c="f2f2f2,70,0.8,1"/><JD P1="59,2215"P2="59,2216"c="f2f2f2,70,0.8,1"/><JD P1="98,2215"P2="98,2216"c="f2f2f2,70,0.8,1"/><JD P1="138,2217"P2="138,2218"c="f2f2f2,70,0.8,1"/><JD P1="179,2218"P2="179,2219"c="f2f2f2,70,0.8,1"/><JD P1="209,2220"P2="209,2221"c="f2f2f2,70,0.8,1"/><JD P1="84,2180"P2="84,2181"c="f2f2f2,70,0.8,1"/><JD P1="118,2182"P2="118,2183"c="f2f2f2,70,0.8,1"/><JD P1="162,2182"P2="162,2183"c="f2f2f2,70,0.8,1"/><JD P1="194,2185"P2="194,2186"c="f2f2f2,70,0.8,1"/><JD P1="1354,2718"P2="1354,2719"c="f2f2f2,70,0.8,1"/><JD P1="1387,2718"P2="1387,2719"c="f2f2f2,70,0.8,1"/><JD P1="1428,2720"P2="1428,2721"c="f2f2f2,70,0.8,1"/><JD P1="1462,2721"P2="1462,2722"c="f2f2f2,70,0.8,1"/><JD P1="1500,2722"P2="1500,2723"c="f2f2f2,70,0.8,1"/><JD P1="1364,2675"P2="1364,2676"c="f2f2f2,70,0.8,1"/><JD P1="1395,2675"P2="1395,2676"c="f2f2f2,70,0.8,1"/><JD P1="1439,2677"P2="1439,2678"c="f2f2f2,70,0.8,1"/><JD P1="1473,2680"P2="1473,2681"c="f2f2f2,70,0.8,1"/><JD P1="682,2807"P2="682,2808"c="f2f2f2,70,0.8,1"/><JD P1="723,2805"P2="723,2806"c="f2f2f2,70,0.8,1"/><JD P1="767,2809"P2="767,2810"c="f2f2f2,70,0.8,1"/><JD P1="806,2809"P2="806,2810"c="f2f2f2,70,0.8,1"/><JD P1="860,2812"P2="860,2813"c="f2f2f2,70,0.8,1"/><JD P1="697,2775"P2="697,2776"c="f2f2f2,70,0.8,1"/><JD P1="731,2776"P2="731,2777"c="f2f2f2,70,0.8,1"/><JD P1="768,2779"P2="768,2780"c="f2f2f2,70,0.8,1"/><JD P1="821,2780"P2="821,2781"c="f2f2f2,70,0.8,1"/><JD P1="1108,2294"P2="1108,2295"c="f2f2f2,70,0.8,1"/><JD P1="1152,2293"P2="1152,2294"c="f2f2f2,70,0.8,1"/><JD P1="1195,2293"P2="1195,2294"c="f2f2f2,70,0.8,1"/><JD P1="1230,2293"P2="1230,2294"c="f2f2f2,70,0.8,1"/><JD P1="1287,2294"P2="1287,2295"c="f2f2f2,70,0.8,1"/><JD P1="1125,2259"P2="1125,2260"c="f2f2f2,70,0.8,1"/><JD P1="1170,2259"P2="1170,2260"c="f2f2f2,70,0.8,1"/><JD P1="1204,2261"P2="1204,2262"c="f2f2f2,70,0.8,1"/><JD P1="1247,2262"P2="1247,2263"c="f2f2f2,70,0.8,1"/><JD P1="634,1948"P2="634,1949"c="f2f2f2,50,0.5,1"/><JD P1="667,1948"P2="667,1949"c="f2f2f2,50,0.5,1"/><JD P1="696,1948"P2="696,1949"c="f2f2f2,50,0.5,1"/><JD P1="723,1948"P2="723,1949"c="f2f2f2,50,0.5,1"/><JD P1="757,1949"P2="757,1950"c="f2f2f2,50,0.5,1"/><JD P1="649,1928"P2="649,1929"c="f2f2f2,50,0.5,1"/><JD P1="678,1925"P2="678,1926"c="f2f2f2,50,0.5,1"/><JD P1="709,1925"P2="709,1926"c="f2f2f2,50,0.5,1"/><JD P1="738,1925"P2="738,1926"c="f2f2f2,50,0.5,1"/><JD P1="1515,2092"P2="1515,2093"c="f2f2f2,50,0.5,1"/><JD P1="1544,2091"P2="1544,2092"c="f2f2f2,50,0.5,1"/><JD P1="1570,2091"P2="1570,2092"c="f2f2f2,50,0.5,1"/><JD P1="1616,2084"P2="1616,2085"c="f2f2f2,50,0.5,1"/><JD P1="1643,2085"P2="1643,2086"c="f2f2f2,50,0.5,1"/><JD P1="1521,2065"P2="1521,2066"c="f2f2f2,50,0.5,1"/><JD P1="1561,2065"P2="1561,2066"c="f2f2f2,50,0.5,1"/><JD P1="1596,2065"P2="1596,2066"c="f2f2f2,50,0.5,1"/><JD P1="1625,2067"P2="1625,2068"c="f2f2f2,50,0.5,1"/><JD P1="983,2096"P2="983,2097"c="f2f2f2,50,0.5,1"/><JD P1="1022,2096"P2="1022,2097"c="f2f2f2,50,0.5,1"/><JD P1="1047,2096"P2="1047,2097"c="f2f2f2,50,0.5,1"/><JD P1="1076,2096"P2="1076,2097"c="f2f2f2,50,0.5,1"/><JD P1="1001,2072"P2="1001,2073"c="f2f2f2,50,0.5,1"/><JD P1="1031,2073"P2="1031,2074"c="f2f2f2,50,0.5,1"/><JD P1="1056,2073"P2="1056,2074"c="f2f2f2,50,0.5,1"/><JD P1="-263,2055"P2="-263,2056"c="f2f2f2,50,0.5,1"/><JD P1="-241,2058"P2="-241,2059"c="f2f2f2,50,0.5,1"/><JD P1="-214,2060"P2="-214,2061"c="f2f2f2,50,0.5,1"/><JD P1="-192,2061"P2="-192,2062"c="f2f2f2,50,0.5,1"/><JD P1="-264,2034"P2="-263,2034"c="f2f2f2,50,0.5,1"/><JD P1="-239,2037"P2="-239,2038"c="f2f2f2,50,0.5,1"/><JD P1="-206,2043"P2="-206,2044"c="f2f2f2,50,0.5,1"/><JD P1="-160,2449"P2="-163,2449"c="f2f2f2,50,0.5,1"/><JD P1="-131,2452"P2="-130,2451"c="f2f2f2,50,0.5,1"/><JD P1="-111,2453"P2="-111,2454"c="f2f2f2,50,0.5,1"/><JD P1="-76,2455"P2="-76,2456"c="f2f2f2,50,0.5,1"/><JD P1="-157,2428"P2="-157,2429"c="f2f2f2,50,0.5,1"/><JD P1="-126,2429"P2="-126,2430"c="f2f2f2,50,0.5,1"/><JD P1="-95,2430"P2="-95,2431"c="f2f2f2,50,0.5,1"/><JD P1="1299,1758"P2="1299,1759"c="f2f2f2,30,0.2,1"/><JD P1="1318,1760"P2="1318,1761"c="f2f2f2,30,0.2,1"/><JD P1="1335,1760"P2="1335,1761"c="f2f2f2,30,0.2,1"/><JD P1="1350,1760"P2="1350,1761"c="f2f2f2,30,0.2,1"/><JD P1="1366,1759"P2="1366,1760"c="f2f2f2,30,0.2,1"/><JD P1="1307,1745"P2="1307,1746"c="f2f2f2,30,0.2,1"/><JD P1="1324,1746"P2="1324,1747"c="f2f2f2,30,0.2,1"/><JD P1="1339,1746"P2="1339,1747"c="f2f2f2,30,0.2,1"/><JD P1="1356,1748"P2="1356,1749"c="f2f2f2,30,0.2,1"/><JD P1="75,1817"P2="75,1818"c="f2f2f2,30,0.2,1"/><JD P1="96,1817"P2="96,1818"c="f2f2f2,30,0.2,1"/><JD P1="112,1815"P2="112,1816"c="f2f2f2,30,0.2,1"/><JD P1="132,1815"P2="132,1816"c="f2f2f2,30,0.2,1"/><JD P1="85,1802"P2="85,1803"c="f2f2f2,30,0.2,1"/><JD P1="105,1799"P2="105,1800"c="f2f2f2,30,0.2,1"/><JD P1="120,1798"P2="120,1799"c="f2f2f2,30,0.2,1"/><L /></L></Z></C>'
function eventChatCommand(n,m)
if m == "help" then
tfm.exec.chatMessage("Neste module, o shaman tem 2 minutos para construir um foguete que precisa levar todos os ratos para o espaço! Caso o shaman morra, a partida é encerrada.<br><br>Script criado por Miss_fortune#9548. Mapa criado por Fosfus7heads#0000. Conceito original de Nettoork#0000.<br>Versão 4.1.5",n)
end
if m == "cancel" then
if n == "Miss_fortune#9548" or n == "Spectra_phantom#6089" or n == "Fosfus7heads#0000" then
tfm.exec.setGameTime(5)
tfm.exec.chatMessage("<R>Rodada cancelada! Iniciando uma nova rodada...")
end
end
end
function eventLoop(p,f)
if mode == "fly" then
loop=loop+1
end
if f < 1000 then
tfm.exec.newGame(map)
mode="building"
end
if p > 120000 then
if mode == "building" then
mode="fly"
end
for n,p in pairs(tfm.get.room.playerList) do
if p.y < 230 and f > 5000 then
tfm.exec.giveCheese(n)
tfm.exec.playerVictory(n)
mode="ending"
end
end
end
if p > 123000 then
if p < 123600 then
tfm.exec.chatMessage("<R>Tempo esgotado! Está na hora de voar!<br><br><ROSE><b>Atenção! Objetos voadores estão caindo do céu!</b>")
for n,p in pairs(tfm.get.room.playerList) do
if tfm.get.room.playerList[n].isShaman then
tfm.exec.setShaman(n,false)
end
end
end
for i=1,3 do
tfm.exec.addShamanObject(objects[math.random(#objects)], math.random(-400,2000), 1, 0, 0, 0, false)
loop=0
end
end
end
function eventNewGame()
ui.setMapName("<N>RockerLaunch! <J>v4.1.4")
tfm.exec.setGameTime(338)
tfm.exec.chatMessage("<VP>O shaman tem 2 minutos para construir um foguete que precisa levar todos os ratos para o espaço!")
mode="building"
for n,p in pairs(tfm.get.room.playerList) do
if tfm.get.room.playerList[n].isShaman then
tfm.exec.lowerSyncDelay(n)
shaman=n
end
end
end
function eventNewPlayer(n)
ui.setMapName("<N>RockerLaunch! <J>v4.1.5")
tfm.exec.chatMessage("<VP>Bem-vindos ao RockerLaunch 4! Neste module, o shaman tem 2 minutos para construir um foguete que precisa levar todos os ratos para o espaço! Digite !help para saber como jogar.<br><br>Script criado por Miss_fortune#9548. Mapa criado por Morganadxana#0000. Conceito original de Nettoork#0000.",n)
end
function eventPlayerDied(n)
if tfm.get.room.playerList[n].isShaman or shaman == n then
tfm.exec.setGameTime(5)
tfm.exec.setPlayerScore(n,-1,false)
tfm.exec.chatMessage("<R>O shaman morreu! Iniciando uma nova rodada...")
tfm.exec.lowerSyncDelay(n)
end
local i=0
local n
for pname,player in pairs(tfm.get.room.playerList) do
if not player.isDead and not player.isShaman then
i=i+1
n=pname
end
end
if i==0 then
tfm.exec.setGameTime(5)
elseif i==1 then
tfm.exec.setGameTime(20)
end
end
function eventPlayerWon(n)
if tfm.get.room.playerList[n].isShaman or shaman == n then
tfm.exec.setGameTime(5)
end
end
tfm.exec.newGame(map)
Arthur107
« Consul »
1618103580000
    • Arthur107#1925
    • Profil
    • Derniers messages
    • Tribu
#36
  0
Tem uma função ou comando que bane um player?
Bolodefchoco
« Sénateur »
1618107540000
    • Bolodefchoco#0095
    • Profil
    • Derniers messages
    • Tribu
#37
  0
Arthur107 a dit :
Tem uma função ou comando que bane um player?

não!
Arthur107
« Consul »
1618275360000
    • Arthur107#1925
    • Profil
    • Derniers messages
    • Tribu
#38
  0
tem script do *#cbase0bt?
Hallonin
« Consul »
1618347300000
    • Hallonin#0000
    • Profil
    • Derniers messages
    • Tribu
#39
  1
~Pedido de script~

Um script em que será um meio de sobrevivência os jogadores spawna em um certo canto do mapa e depois desafios aleatórios começariam a aparecer. Queria também com que cada modo que aparecesse eu queria que eles spawne dentro de uma bola vermelha para os jogadores identificar que está acontecendo alguma coisa ali, em cada bola vermelha a aparecer no mapa estará acontecendo algo diferente. Se o jogador entrar dentro dessa bola ele poderá até morrer pois começariam a aparecer.

• Chuva de bigornas.
• Pequenos blocos de ácidos.
• Ovelhas explosivas e bombas explosivas.

O jogador que ficar até o final ganharia automaticamente, peço que também coloque um tempo de 5min ao acabar o mapa reiniciaria e começaria uma nova partida. E também os itens citados acima só deve aparecer dentro de 1m a 2m. Quando o jogador ganhasse aparecia lá encima aonde fica o tempo restante quem ganhou e em quantos segundos iniciaria a nova partida.

Espero que escolham meu pedido <3

Dernière modification le 1618354320000
Ilovewinter
« Citoyen »
1618416660000
    • Ilovewinter#2228
    • Profil
    • Derniers messages
#40
  0
Alguem tem esse script desse video?

O video: https://m.youtube.com/watch?v=gdoXj-a7tm4

Eu quero usa-lo em minha tribu kkkk mas nao tenho o scrip kkkkkk :D
  • Forums
  • /
  • Transformice
  • /
  • Modules
  • /
  • [Lua] Peça scripts aqui!
« ‹ 2 / 9 › »
© Atelier801 2018

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

Version 1.27