×

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
  • /
  • [Pedidos e Exemplos] Mega Galeria LUA
« ‹ 6 / 30 › »
[Pedidos e Exemplos] Mega Galeria LUA
Anabooleta
« Sénateur »
1420214520000
    • Anabooleta#0000
    • Profil
    • Derniers messages
#101
  0
um script desse tal piso teia
Rscorreia
« Censeur »
1420218720000
    • Rscorreia#0000
    • Profil
    • Derniers messages
    • Tribu
#102
  0
anabooleta a dit :
um script desse tal piso teia

Ele não é feito por script, é um piso normal, que pode ser invocado pelo editor de mapas, porém você só consegue invocar ele pelo XML do mapa, já que não tem ele na opção de pisos do mapas. Também tem o piso invisível, que é pelo XML que invoca ele.
Anabooleta
« Sénateur »
1420222560000
    • Anabooleta#0000
    • Profil
    • Derniers messages
#103
  0
rscorreia a dit :
anabooleta a dit :
um script desse tal piso teia

Ele não é feito por script, é um piso normal, que pode ser invocado pelo editor de mapas, porém você só consegue invocar ele pelo XML do mapa, já que não tem ele na opção de pisos do mapas. Também tem o piso invisível, que é pelo XML que invoca ele.

esquece
Victorjuanpk
« Citoyen »
1420306440000
    • Victorjuanpk#0000
    • Profil
    • Derniers messages
    • Tribu
#104
  0
Porque nao funciona?
o w()
o adm()
e o mod()
tem aqui, mas não é o script todo
--Bolhas--
function Bolhas()
for all,_ in pairs (tfm.get.room.playerList) do
system.bindMouse(all, true)
end

function eventMouse(playerName, x, y)
tfm.exec.addShamanObject(59, x, y)
end
end
--Chuva
Function Chuva()
lights={"25" , "26" , "27"}
pAtOnce=50

function eventLoop(ct,tr)
for i=1,pAtOnce do
tfm.exec.displayParticle(lights[math.random(#lights)],math.random(0,800),math.random(0,400),0,0,0,0,nil)
end
end

function eventChatCommand(p,c)
if c:sub(0,3)=="par" then
pAtOnce=c:sub(5)
end
end

system.disableChatCommandDisplay("par",true)
print("\n<n>Hello there, want <j>less/more lights <n>on the screen? Type <j>'!par number'!")
end
--Dance1--
function dance1()
function eventEmotePlayed(playerName, emoteId)
if emoteId == 0 then
tfm.exec.killPlayer(playerName)
end
end
end
--2--
function dance2()
tfm.exec.bindKeyboard("Victorruanpk", 32, true, true);

function eventKeyboard(playerName, keyCode, down, xPlayer, yPlayer)
for todos,stats in pairs(tfm.get.room.playerList) do
if(xPlayer <= stats.x + 20 and xPlayer >= stats.x - 20 and yPlayer <= stats.y + 20 and yPlayer >= stats.y - 20 and todos ~= playerName) then
tfm.exec.killPlayer(todos);
end
end
end
end
--confet-
function confete()
qnt=25;

function eventLoop()
for i = 1,qnt do
tfm.exec.displayParticle(math.random(21,24),math.random(0,1600),math.random(0,400),0,1,0,0,NIL)
end
end
end

function eventChatCommand(name,command)
local args={}
for argument in command:gmatch('[^%s]+') do
table.insert(args,argument)
end
args[1] = string.lower(args[1])
if args[1]=="bolha" and getAdm(name) then
w()
bolha()
elseif args[1]=="chuva" and getMod(name) then
chuva()
w()
elseif args[1]=="dançar" and getAdm(name) then
dance1()
w()
elseif args[1]=="darçar2" and getAdm(name) then
dance2()
w()
elseif args[1]=="confetes" and getMod(name) then
confete()
w()

end
end
Anabooleta
« Sénateur »
1420307520000
    • Anabooleta#0000
    • Profil
    • Derniers messages
#105
  0
victorjuanpk a dit :
Porque nao funciona?
o w()
o adm()
e o mod()
tem aqui, mas não é o script todo
--Bolhas--
function Bolhas()
for all,_ in pairs (tfm.get.room.playerList) do
system.bindMouse(all, true)
end

function eventMouse(playerName, x, y)
tfm.exec.addShamanObject(59, x, y)
end
end
--Chuva
Function Chuva()
lights={"25" , "26" , "27"}
pAtOnce=50

function eventLoop(ct,tr)
for i=1,pAtOnce do
tfm.exec.displayParticle(lights[math.random(#lights)],math.random(0,800),math.random(0,400),0,0,0,0,nil)
end
end

function eventChatCommand(p,c)
if c:sub(0,3)=="par" then
pAtOnce=c:sub(5)
end
end

system.disableChatCommandDisplay("par",true)
print("\n&lt;n&gt;Hello there, want &lt;j&gt;less/more lights &lt;n&gt;on the screen? Type &lt;j&gt;'!par number'!")
end
--Dance1--
function dance1()
function eventEmotePlayed(playerName, emoteId)
if emoteId == 0 then
tfm.exec.killPlayer(playerName)
end
end
end
--2--
function dance2()
tfm.exec.bindKeyboard("Victorruanpk", 32, true, true);

function eventKeyboard(playerName, keyCode, down, xPlayer, yPlayer)
for todos,stats in pairs(tfm.get.room.playerList) do
if(xPlayer &lt;= stats.x + 20 and xPlayer &gt;= stats.x - 20 and yPlayer &lt;= stats.y + 20 and yPlayer &gt;= stats.y - 20 and todos ~= playerName) then
tfm.exec.killPlayer(todos);
end
end
end
end
--confet-
function confete()
qnt=25;

function eventLoop()
for i = 1,qnt do
tfm.exec.displayParticle(math.random(21,24),math.random(0,1600),math.random(0,400),0,1,0,0,NIL)
end
end
end

function eventChatCommand(name,command)
local args={}
for argument in command:gmatch('[^%s]+') do
table.insert(args,argument)
end
args[1] = string.lower(args[1])
if args[1]=="bolha" and getAdm(name) then
w()
bolha()
elseif args[1]=="chuva" and getMod(name) then
chuva()
w()
elseif args[1]=="dançar" and getAdm(name) then
dance1()
w()
elseif args[1]=="darçar2" and getAdm(name) then
dance2()
w()
elseif args[1]=="confetes" and getMod(name) then
confete()
w()

end
end

talvez pq o servidor lua caiu
Victorjuanpk
« Citoyen »
1420331640000
    • Victorjuanpk#0000
    • Profil
    • Derniers messages
    • Tribu
#106
  0
anabooleta a dit :
victorjuanpk a dit :
Porque nao funciona?
o w()
o adm()
e o mod()
tem aqui, mas não é o script todo
--Bolhas--
function Bolhas()
for all,_ in pairs (tfm.get.room.playerList) do
system.bindMouse(all, true)
end

function eventMouse(playerName, x, y)
tfm.exec.addShamanObject(59, x, y)
end
end
--Chuva
Function Chuva()
lights={"25" , "26" , "27"}
pAtOnce=50

function eventLoop(ct,tr)
for i=1,pAtOnce do
tfm.exec.displayParticle(lights[math.random(#lights)],math.random(0,800),math.random(0,400),0,0,0,0,nil)
end
end

function eventChatCommand(p,c)
if c:sub(0,3)=="par" then
pAtOnce=c:sub(5)
end
end

system.disableChatCommandDisplay("par",true)
print("\n&lt;n&gt;Hello there, want &lt;j&gt;less/more lights &lt;n&gt;on the screen? Type &lt;j&gt;'!par number'!")
end
--Dance1--
function dance1()
function eventEmotePlayed(playerName, emoteId)
if emoteId == 0 then
tfm.exec.killPlayer(playerName)
end
end
end
--2--
function dance2()
tfm.exec.bindKeyboard("Victorruanpk", 32, true, true);

function eventKeyboard(playerName, keyCode, down, xPlayer, yPlayer)
for todos,stats in pairs(tfm.get.room.playerList) do
if(xPlayer &lt;= stats.x + 20 and xPlayer &gt;= stats.x - 20 and yPlayer &lt;= stats.y + 20 and yPlayer &gt;= stats.y - 20 and todos ~= playerName) then
tfm.exec.killPlayer(todos);
end
end
end
end
--confet-
function confete()
qnt=25;

function eventLoop()
for i = 1,qnt do
tfm.exec.displayParticle(math.random(21,24),math.random(0,1600),math.random(0,400),0,1,0,0,NIL)
end
end
end

function eventChatCommand(name,command)
local args={}
for argument in command:gmatch('[^%s]+') do
table.insert(args,argument)
end
args[1] = string.lower(args[1])
if args[1]=="bolha" and getAdm(name) then
w()
bolha()
elseif args[1]=="chuva" and getMod(name) then
chuva()
w()
elseif args[1]=="dançar" and getAdm(name) then
dance1()
w()
elseif args[1]=="darçar2" and getAdm(name) then
dance2()
w()
elseif args[1]=="confetes" and getMod(name) then
confete()
w()

end
end

talvez pq o servidor lua caiu

Não é isso. Preciso de ajuda !! pf
Brenower
« Censeur »
1420331700000
    • Brenower#0000
    • Profil
    • Derniers messages
    • Tribu
#107
  0
victorjuanpk a dit :
Porque nao funciona?
o w()
o adm()
e o mod()
tem aqui, mas não é o script todo
--Bolhas--
function Bolhas()
for all,_ in pairs (tfm.get.room.playerList) do
system.bindMouse(all, true)
end

function eventMouse(playerName, x, y)
tfm.exec.addShamanObject(59, x, y)
end
end
--Chuva
Function Chuva()
lights={"25" , "26" , "27"}
pAtOnce=50

function eventLoop(ct,tr)
for i=1,pAtOnce do
tfm.exec.displayParticle(lights[math.random(#lights)],math.random(0,800),math.random(0,400),0,0,0,0,nil)
end
end

function eventChatCommand(p,c)
if c:sub(0,3)=="par" then
pAtOnce=c:sub(5)
end
end

system.disableChatCommandDisplay("par",true)
print("\n&lt;n&gt;Hello there, want &lt;j&gt;less/more lights &lt;n&gt;on the screen? Type &lt;j&gt;'!par number'!")
end
--Dance1--
function dance1()
function eventEmotePlayed(playerName, emoteId)
if emoteId == 0 then
tfm.exec.killPlayer(playerName)
end
end
end
--2--
function dance2()
tfm.exec.bindKeyboard("Victorruanpk", 32, true, true);

function eventKeyboard(playerName, keyCode, down, xPlayer, yPlayer)
for todos,stats in pairs(tfm.get.room.playerList) do
if(xPlayer &lt;= stats.x + 20 and xPlayer &gt;= stats.x - 20 and yPlayer &lt;= stats.y + 20 and yPlayer &gt;= stats.y - 20 and todos ~= playerName) then
tfm.exec.killPlayer(todos);
end
end
end
end
--confet-
function confete()
qnt=25;

function eventLoop()
for i = 1,qnt do
tfm.exec.displayParticle(math.random(21,24),math.random(0,1600),math.random(0,400),0,1,0,0,NIL)
end
end
end

function eventChatCommand(name,command)
local args={}
for argument in command:gmatch('[^%s]+') do
table.insert(args,argument)
end
args[1] = string.lower(args[1])
if args[1]=="bolha" and getAdm(name) then
w()
bolha()
elseif args[1]=="chuva" and getMod(name) then
chuva()
w()
elseif args[1]=="dançar" and getAdm(name) then
dance1()
w()
elseif args[1]=="darçar2" and getAdm(name) then
dance2()
w()
elseif args[1]=="confetes" and getMod(name) then
confete()
w()

end
end

Você botão função em cima de outra função '-'
e nem se quer chama a outra função para executar as outras
para de copiar os outros scripts e aprende lua
Bainel
« Citoyen »
1420348620000
    • Bainel#0000
    • Profil
    • Derniers messages
#108
  0
preciso de um script que escolhe um shaman aleatório, vampiro aleatório , gela um rato aleatório, e meep aleatório
tudo junto.
Thedalek
« Citoyen »
1420463640000
    • Thedalek#0000
    • Profil
    • Derniers messages
#109
  0
_G['error']('Proposital', 0)

bom
Kevinfelipe
« Citoyen »
1420516680000
    • Kevinfelipe#0000
    • Profil
    • Derniers messages
    • Tribu
#110
  0
Quero um script que eu solto CN após apertar espaço. Só que quero que o CN desapareça rapido ao ser soltado pra evitar crash
Novatotrans
« Citoyen »
1420590840000
    • Novatotrans#0000
    • Profil
    • Derniers messages
    • Tribu
#111
  0
#Edit: Retirado. ;-;

Dernière modification le 1420591080000
Anabooleta
« Sénateur »
1420631940000
    • Anabooleta#0000
    • Profil
    • Derniers messages
#112
  0
quando apertasse tecla e saia particulas em vez de confetes
Elizavitoria
« Consul »
1420732860000
    • Elizavitoria#0000
    • Profil
    • Derniers messages
#113
  0
ta se isso é mash ou menus realizar desejos digitais vou pedir um :v

queria que tivesse a letra B para dar um beijo que saisse um coração azul :P
e provavelmente quero que a letra H faça akele bagui do halowen que vc batesse e o rato fosse empurrado

ta muitu explicado naum mash se n tiver bom podi exclui
Blowtex
« Citoyen »
1420818180000
    • Blowtex#0000
    • Profil
    • Derniers messages
    • Tribu
#114
  0
Jogadores nunca morrerem e, quando morrerem, logo em seguida reviverem!!!!!!
Potyrat
« Citoyen »
1420851000000
    • Potyrat#0000
    • Profil
    • Derniers messages
    • Tribu
#115
  0
Um script que faz um jogador aleatório da sala virar vampiro, mas depois de 7 segundos que o mapa começa, como o do infected
Teyada
« Citoyen »
1420919580000
    • Teyada#0000
    • Profil
    • Derniers messages
#116
  0
Um script que dá ban em alguem no cafofo que nem utility
Kizzapizza
« Citoyen »
1420934400000
    • Kizzapizza#0000
    • Profil
    • Derniers messages
    • Tribu
#117
  0
blowtex a dit :
Jogadores nunca morrerem e, quando morrerem, logo em seguida reviverem!!!!!!

function eventPlayerDied(p)
tfm.exec.respawnPlayer(p)
end
Kizzapizza
1420934400000
    • Kizzapizza#0000
    • Profil
    • Derniers messages
    • Tribu
#118
[Modéré par Imaginemod]
Anabooleta
« Sénateur »
1421100180000
    • Anabooleta#0000
    • Profil
    • Derniers messages
#119
  0
apertar tecla f e sair uma abobora (codigo: 89)
Eternity
« Citoyen »
1421144280000
    • Eternity#0622
    • Profil
    • Derniers messages
    • Tribu
#120
  0
anabooleta a dit :
apertar tecla f e sair uma abobora (codigo: 89)

for name in pairs(tfm.get.room.playerList) do
for keys, k in pairs({70}) do
tfm.exec.bindKeyboard(name, k, true, true)
end
end
function eventKeyboard(name, key, down, x, y)
if key==70 then
tfm.exec.addShamanObject(89,x,y +10)
end
end
  • Forums
  • /
  • Transformice
  • /
  • Archives
  • /
  • Seção Editor de Mapas e Modules
  • /
  • [Pedidos e Exemplos] Mega Galeria LUA
« ‹ 6 / 30 › »
© Atelier801 2018

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

Version 1.27