×

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
  • /
  • Tópico de Dúvidas
« ‹ 32 / 39 › »
Tópico de Dúvidas
Micamoreira
« Citoyen »
1414783440000
    • Micamoreira#0000
    • Profil
    • Derniers messages
#621
  0
operop a dit :
micamoreira a dit :
operop a dit :
micamoreira a dit :
operop a dit :
micamoreira a dit :
maps={5457081,3685486,3727755,2331474,2331474,292614,266854,5497240,234502,232699,232451,193588,220500,511187,1310092,2141379,287268,2557885,299002,1654841,259716,423672,3738767,138678,3728013,237269,229834,232791}
vivo=0;

tfm.exec.disableAutoNewGame(true)

function novaRodada()
tfm.exec.newGame(maps[math.random(#maps)])
end

novaRodada();

function eventNewGame()
vivo=0; -- A Variavel vivo Reseta
for p in pairs(tfm.get.room.playerList) do -- Pra Todos Os Jogadores Da Sala
vivo=vivo+1; -- Soma Da Variavel vivo
end
end

function eventPlayerLeft(p)
if not tfm.get.room.playerList

.isDead then -- Verifica Se o Jogador Está Morto
vivo=vivo-1; -- Se Ele Não Estiver, A Variavel Perde 1
end
end

function eventPlayerDied(p)
vivo=vivo-1;
end

function eventLoop()
end

function eventLoop(tempoPassado,tempoFaltando)
end

function eventLoop(tempoPassado,tempoFaltando)
if vivo==0 or tempoFaltando <= 0 then -- Verifica se A Variavel vivo Chegou a 0 Ou Se o Tempo Restante Do Mapa Chegou a 0
novaRodada();
end
end



CONSEGUE ACRESCENTAR NESSE SCRIPT UM SISTEMA DE PONTOS QUE COLOCA UM QUADRO COM OS PONTOS NUM CANTO DA TELA ?

Como assim

Tipo e racing assim qnd um rato entrar em 1º ganha 1 ponto e aparece numa tabela do lado da tela
e quando chegar a 15 pontos acaba o game e aparece na tela o nome do vencedor

DESCULPA SE FOR MUITO COMPLEXO ;-;

Se tiver um algum erro falai

maps={5457081,3685486,3727755,2331474,2331474,292614,266854,5497240,234502,232699,232451,193588,220500,511187,1310092,2141379,287268,2557885,299002,1654841,259716,423672,3738767,138678,3728013,237269,229834,232791}
vivo=0;

tfm.exec.disableAutoNewGame(true)
tfm.exec.disableAutoScore(true)

function novaRodada()
tfm.exec.newGame(maps[math.random(#maps)])
end

novaRodada();

function eventNewGame()
vivo=0; -- A Variavel vivo Reseta
for p in pairs(tfm.get.room.playerList) do
vivo=vivo+1; -- Soma Da Variavel vivo
end
end

function eventPlayerLeft(p)
if not tfm.get.room.playerList

.isDead then
vivo=vivo-1;
end
end

function eventPlayerDied(p)
vivo=vivo-1;
end

function eventLoop(tempoPassado,tempoFaltando)
if vivo==0 or tempoFaltando <= 0 then -- Verifica se A Variavel vivo Chegou a 0 Ou Se o Tempo Restante Do Mapa Chegou a 0
novaRodada();
end
end

function eventPlayerWon(p)
local player=tfm.get.room.playerList


rank=""
for n,p in pairs(tfm.get.room.playerList) do
rank=rank..n.."-"..p.score.."\n"
end
ui.addPopup(0,0,rank,nil)
tfm.exec.setPlayerScore(p,1,true)
if player.score==15 then
ui.addPopup(0,0,"Vencedor:<b>"..p,nil)
for p in pairs(tfm.get.room.playerList) do
tfm.exec.setPlayerScore(p,0,false)
end
eventPlayerDied(p)
end
end


n entendi a tabela // coloca ela do outro lado mais no canto possivel ok?


maps={5457081,3685486,3727755,2331474,2331474,292614,266854,5497240,234502,232699,232451,193588,220500,511187,1310092,2141379,287268,2557885,299002,1654841,259716,423672,3738767,138678,3728013,237269,229834,232791}
vivo=0;

tfm.exec.disableAutoNewGame(true)
tfm.exec.disableAutoScore(true)

function novaRodada()
tfm.exec.newGame(maps[math.random(#maps)])
end

novaRodada();

function eventNewGame()
vivo=0; -- A Variavel vivo Reseta
for p in pairs(tfm.get.room.playerList) do
vivo=vivo+1; -- Soma Da Variavel vivo
end
end

function eventPlayerLeft(p)
if not tfm.get.room.playerList

.isDead then
vivo=vivo-1;
end
end

function eventPlayerDied(p)
vivo=vivo-1;
end

function eventLoop(tempoPassado,tempoFaltando)
if vivo==0 or tempoFaltando <= 0 then -- Verifica se A Variavel vivo Chegou a 0 Ou Se o Tempo Restante Do Mapa Chegou a 0
novaRodada();
end
end

function eventPlayerWon(p)
eventPlayerDied(p)
local player=tfm.get.room.playerList


rank=""
for n,p in pairs(tfm.get.room.playerList) do
rank=rank..n.."-<b>Pontuação</b>"..p.score.."\n"
end
ui.addPopup(0,0,rank,nil,700,200,100,true)
tfm.exec.setPlayerScore(p,1,true)
if player.score==15 then
ui.addPopup(0,0,"Vencedor:<b>"..p,nil)
for p in pairs(tfm.get.room.playerList) do
tfm.exec.setPlayerScore(p,0,false)
end
end
end


kkk n se ve toda a tabela kk

e os pontos n foram pra 0
Operop
« Citoyen »
1414783800000
    • Operop#0000
    • Profil
    • Derniers messages
#622
  0
micamoreira a dit :
operop a dit :
micamoreira a dit :
operop a dit :
micamoreira a dit :
operop a dit :
micamoreira a dit :
maps={5457081,3685486,3727755,2331474,2331474,292614,266854,5497240,234502,232699,232451,193588,220500,511187,1310092,2141379,287268,2557885,299002,1654841,259716,423672,3738767,138678,3728013,237269,229834,232791}
vivo=0;

tfm.exec.disableAutoNewGame(true)

function novaRodada()
tfm.exec.newGame(maps[math.random(#maps)])
end

novaRodada();

function eventNewGame()
vivo=0; -- A Variavel vivo Reseta
for p in pairs(tfm.get.room.playerList) do -- Pra Todos Os Jogadores Da Sala
vivo=vivo+1; -- Soma Da Variavel vivo
end
end

function eventPlayerLeft(p)
if not tfm.get.room.playerList

.isDead then -- Verifica Se o Jogador Está Morto
vivo=vivo-1; -- Se Ele Não Estiver, A Variavel Perde 1
end
end

function eventPlayerDied(p)
vivo=vivo-1;
end

function eventLoop()
end

function eventLoop(tempoPassado,tempoFaltando)
end

function eventLoop(tempoPassado,tempoFaltando)
if vivo==0 or tempoFaltando <= 0 then -- Verifica se A Variavel vivo Chegou a 0 Ou Se o Tempo Restante Do Mapa Chegou a 0
novaRodada();
end
end



CONSEGUE ACRESCENTAR NESSE SCRIPT UM SISTEMA DE PONTOS QUE COLOCA UM QUADRO COM OS PONTOS NUM CANTO DA TELA ?

Como assim

Tipo e racing assim qnd um rato entrar em 1º ganha 1 ponto e aparece numa tabela do lado da tela
e quando chegar a 15 pontos acaba o game e aparece na tela o nome do vencedor

DESCULPA SE FOR MUITO COMPLEXO ;-;

Se tiver um algum erro falai

maps={5457081,3685486,3727755,2331474,2331474,292614,266854,5497240,234502,232699,232451,193588,220500,511187,1310092,2141379,287268,2557885,299002,1654841,259716,423672,3738767,138678,3728013,237269,229834,232791}
vivo=0;

tfm.exec.disableAutoNewGame(true)
tfm.exec.disableAutoScore(true)

function novaRodada()
tfm.exec.newGame(maps[math.random(#maps)])
end

novaRodada();

function eventNewGame()
vivo=0; -- A Variavel vivo Reseta
for p in pairs(tfm.get.room.playerList) do
vivo=vivo+1; -- Soma Da Variavel vivo
end
end

function eventPlayerLeft(p)
if not tfm.get.room.playerList

.isDead then
vivo=vivo-1;
end
end

function eventPlayerDied(p)
vivo=vivo-1;
end

function eventLoop(tempoPassado,tempoFaltando)
if vivo==0 or tempoFaltando <= 0 then -- Verifica se A Variavel vivo Chegou a 0 Ou Se o Tempo Restante Do Mapa Chegou a 0
novaRodada();
end
end

function eventPlayerWon(p)
local player=tfm.get.room.playerList


rank=""
for n,p in pairs(tfm.get.room.playerList) do
rank=rank..n.."-"..p.score.."\n"
end
ui.addPopup(0,0,rank,nil)
tfm.exec.setPlayerScore(p,1,true)
if player.score==15 then
ui.addPopup(0,0,"Vencedor:<b>"..p,nil)
for p in pairs(tfm.get.room.playerList) do
tfm.exec.setPlayerScore(p,0,false)
end
eventPlayerDied(p)
end
end


n entendi a tabela // coloca ela do outro lado mais no canto possivel ok?


maps={5457081,3685486,3727755,2331474,2331474,292614,266854,5497240,234502,232699,232451,193588,220500,511187,1310092,2141379,287268,2557885,299002,1654841,259716,423672,3738767,138678,3728013,237269,229834,232791}
vivo=0;

tfm.exec.disableAutoNewGame(true)
tfm.exec.disableAutoScore(true)

function novaRodada()
tfm.exec.newGame(maps[math.random(#maps)])
end

novaRodada();

function eventNewGame()
vivo=0; -- A Variavel vivo Reseta
for p in pairs(tfm.get.room.playerList) do
vivo=vivo+1; -- Soma Da Variavel vivo
end
end

function eventPlayerLeft(p)
if not tfm.get.room.playerList

.isDead then
vivo=vivo-1;
end
end

function eventPlayerDied(p)
vivo=vivo-1;
end

function eventLoop(tempoPassado,tempoFaltando)
if vivo==0 or tempoFaltando <= 0 then -- Verifica se A Variavel vivo Chegou a 0 Ou Se o Tempo Restante Do Mapa Chegou a 0
novaRodada();
end
end

function eventPlayerWon(p)
eventPlayerDied(p)
local player=tfm.get.room.playerList


rank=""
for n,p in pairs(tfm.get.room.playerList) do
rank=rank..n.."-<b>Pontuação</b>"..p.score.."\n"
end
ui.addPopup(0,0,rank,nil,700,200,100,true)
tfm.exec.setPlayerScore(p,1,true)
if player.score==15 then
ui.addPopup(0,0,"Vencedor:<b>"..p,nil)
for p in pairs(tfm.get.room.playerList) do
tfm.exec.setPlayerScore(p,0,false)
end
end
end


kkk n se ve toda a tabela kk

e os pontos n foram pra 0


maps={5457081,3685486,3727755,2331474,2331474,292614,266854,5497240,234502,232699,232451,193588,220500,511187,1310092,2141379,287268,2557885,299002,1654841,259716,423672,3738767,138678,3728013,237269,229834,232791}
vivo=0;

tfm.exec.disableAutoNewGame(true)
tfm.exec.disableAutoScore(true)

for p in pairs(tfm.get.room.playerList) do
tfm.exec.setPlayerScore(p,0,false)
end

function novaRodada()
tfm.exec.newGame(maps[math.random(#maps)])
end

novaRodada();

function eventNewGame()
vivo=0; -- A Variavel vivo Reseta
for p in pairs(tfm.get.room.playerList) do
vivo=vivo+1; -- Soma Da Variavel vivo
end
end

function eventPlayerLeft(p)
if not tfm.get.room.playerList

.isDead then
vivo=vivo-1;
end
end

function eventPlayerDied(p)
vivo=vivo-1;
end

function eventLoop(tempoPassado,tempoFaltando)
if vivo==0 or tempoFaltando <= 0 then -- Verifica se A Variavel vivo Chegou a 0 Ou Se o Tempo Restante Do Mapa Chegou a 0
novaRodada();
end
end

function eventPlayerWon(p)
eventPlayerDied(p)
local player=tfm.get.room.playerList


rank=""
for n,p in pairs(tfm.get.room.playerList) do
rank=rank..n.."-<b>Pontuação:</b>"..p.score.."\n"
end
ui.addPopup(0,0,rank,nil,600,80,180,true)
tfm.exec.setPlayerScore(p,1,true)
if player.score==15 then
ui.addPopup(0,0,"Vencedor:<b>"..p,nil)
for p in pairs(tfm.get.room.playerList) do
tfm.exec.setPlayerScore(p,0,false)
end
end
end

Micamoreira
« Citoyen »
1414784340000
    • Micamoreira#0000
    • Profil
    • Derniers messages
#623
  0
operop a dit :
micamoreira a dit :
operop a dit :
micamoreira a dit :
operop a dit :
micamoreira a dit :
operop a dit :
micamoreira a dit :
maps={5457081,3685486,3727755,2331474,2331474,292614,266854,5497240,234502,232699,232451,193588,220500,511187,1310092,2141379,287268,2557885,299002,1654841,259716,423672,3738767,138678,3728013,237269,229834,232791}
vivo=0;

tfm.exec.disableAutoNewGame(true)

function novaRodada()
tfm.exec.newGame(maps[math.random(#maps)])
end

novaRodada();

function eventNewGame()
vivo=0; -- A Variavel vivo Reseta
for p in pairs(tfm.get.room.playerList) do -- Pra Todos Os Jogadores Da Sala
vivo=vivo+1; -- Soma Da Variavel vivo
end
end

function eventPlayerLeft(p)
if not tfm.get.room.playerList

.isDead then -- Verifica Se o Jogador Está Morto
vivo=vivo-1; -- Se Ele Não Estiver, A Variavel Perde 1
end
end

function eventPlayerDied(p)
vivo=vivo-1;
end

function eventLoop()
end

function eventLoop(tempoPassado,tempoFaltando)
end

function eventLoop(tempoPassado,tempoFaltando)
if vivo==0 or tempoFaltando <= 0 then -- Verifica se A Variavel vivo Chegou a 0 Ou Se o Tempo Restante Do Mapa Chegou a 0
novaRodada();
end
end



CONSEGUE ACRESCENTAR NESSE SCRIPT UM SISTEMA DE PONTOS QUE COLOCA UM QUADRO COM OS PONTOS NUM CANTO DA TELA ?

Como assim

Tipo e racing assim qnd um rato entrar em 1º ganha 1 ponto e aparece numa tabela do lado da tela
e quando chegar a 15 pontos acaba o game e aparece na tela o nome do vencedor

DESCULPA SE FOR MUITO COMPLEXO ;-;

Se tiver um algum erro falai

maps={5457081,3685486,3727755,2331474,2331474,292614,266854,5497240,234502,232699,232451,193588,220500,511187,1310092,2141379,287268,2557885,299002,1654841,259716,423672,3738767,138678,3728013,237269,229834,232791}
vivo=0;

tfm.exec.disableAutoNewGame(true)
tfm.exec.disableAutoScore(true)

function novaRodada()
tfm.exec.newGame(maps[math.random(#maps)])
end

novaRodada();

function eventNewGame()
vivo=0; -- A Variavel vivo Reseta
for p in pairs(tfm.get.room.playerList) do
vivo=vivo+1; -- Soma Da Variavel vivo
end
end

function eventPlayerLeft(p)
if not tfm.get.room.playerList

.isDead then
vivo=vivo-1;
end
end

function eventPlayerDied(p)
vivo=vivo-1;
end

function eventLoop(tempoPassado,tempoFaltando)
if vivo==0 or tempoFaltando <= 0 then -- Verifica se A Variavel vivo Chegou a 0 Ou Se o Tempo Restante Do Mapa Chegou a 0
novaRodada();
end
end

function eventPlayerWon(p)
local player=tfm.get.room.playerList


rank=""
for n,p in pairs(tfm.get.room.playerList) do
rank=rank..n.."-"..p.score.."\n"
end
ui.addPopup(0,0,rank,nil)
tfm.exec.setPlayerScore(p,1,true)
if player.score==15 then
ui.addPopup(0,0,"Vencedor:<b>"..p,nil)
for p in pairs(tfm.get.room.playerList) do
tfm.exec.setPlayerScore(p,0,false)
end
eventPlayerDied(p)
end
end


n entendi a tabela // coloca ela do outro lado mais no canto possivel ok?


maps={5457081,3685486,3727755,2331474,2331474,292614,266854,5497240,234502,232699,232451,193588,220500,511187,1310092,2141379,287268,2557885,299002,1654841,259716,423672,3738767,138678,3728013,237269,229834,232791}
vivo=0;

tfm.exec.disableAutoNewGame(true)
tfm.exec.disableAutoScore(true)

function novaRodada()
tfm.exec.newGame(maps[math.random(#maps)])
end

novaRodada();

function eventNewGame()
vivo=0; -- A Variavel vivo Reseta
for p in pairs(tfm.get.room.playerList) do
vivo=vivo+1; -- Soma Da Variavel vivo
end
end

function eventPlayerLeft(p)
if not tfm.get.room.playerList

.isDead then
vivo=vivo-1;
end
end

function eventPlayerDied(p)
vivo=vivo-1;
end

function eventLoop(tempoPassado,tempoFaltando)
if vivo==0 or tempoFaltando <= 0 then -- Verifica se A Variavel vivo Chegou a 0 Ou Se o Tempo Restante Do Mapa Chegou a 0
novaRodada();
end
end

function eventPlayerWon(p)
eventPlayerDied(p)
local player=tfm.get.room.playerList


rank=""
for n,p in pairs(tfm.get.room.playerList) do
rank=rank..n.."-<b>Pontuação</b>"..p.score.."\n"
end
ui.addPopup(0,0,rank,nil,700,200,100,true)
tfm.exec.setPlayerScore(p,1,true)
if player.score==15 then
ui.addPopup(0,0,"Vencedor:<b>"..p,nil)
for p in pairs(tfm.get.room.playerList) do
tfm.exec.setPlayerScore(p,0,false)
end
end
end


kkk n se ve toda a tabela kk

e os pontos n foram pra 0


maps={5457081,3685486,3727755,2331474,2331474,292614,266854,5497240,234502,232699,232451,193588,220500,511187,1310092,2141379,287268,2557885,299002,1654841,259716,423672,3738767,138678,3728013,237269,229834,232791}
vivo=0;

tfm.exec.disableAutoNewGame(true)
tfm.exec.disableAutoScore(true)

for p in pairs(tfm.get.room.playerList) do
tfm.exec.setPlayerScore(p,0,false)
end

function novaRodada()
tfm.exec.newGame(maps[math.random(#maps)])
end

novaRodada();

function eventNewGame()
vivo=0; -- A Variavel vivo Reseta
for p in pairs(tfm.get.room.playerList) do
vivo=vivo+1; -- Soma Da Variavel vivo
end
end

function eventPlayerLeft(p)
if not tfm.get.room.playerList

.isDead then
vivo=vivo-1;
end
end

function eventPlayerDied(p)
vivo=vivo-1;
end

function eventLoop(tempoPassado,tempoFaltando)
if vivo==0 or tempoFaltando <= 0 then -- Verifica se A Variavel vivo Chegou a 0 Ou Se o Tempo Restante Do Mapa Chegou a 0
novaRodada();
end
end

function eventPlayerWon(p)
eventPlayerDied(p)
local player=tfm.get.room.playerList


rank=""
for n,p in pairs(tfm.get.room.playerList) do
rank=rank..n.."-<b>Pontuação:</b>"..p.score.."\n"
end
ui.addPopup(0,0,rank,nil,600,80,180,true)
tfm.exec.setPlayerScore(p,1,true)
if player.score==15 then
ui.addPopup(0,0,"Vencedor:<b>"..p,nil)
for p in pairs(tfm.get.room.playerList) do
tfm.exec.setPlayerScore(p,0,false)
end
end
end


assim mas coloca a tabela + em cima
DA PRA COLOCAR OS MAPA COM 1 MIN?



______________
REPAREI K TAO TODOS A GANHAR PONTO E E SO O Q FIRSTA
E A TABELA DEMORA PRA COLOCA O PONTO
(DESCULPA O TRABALHO)

Dernière modification le 1414784700000
Sandfofs
« Citoyen »
1414794780000
    • Sandfofs#0000
    • Profil
    • Derniers messages
    • Tribu
#624
  0
Como coloco uma foto no meu perfil
Bolodefchoco
« Sénateur »
1414843020000
    • Bolodefchoco#0095
    • Profil
    • Derniers messages
    • Tribu
#625
  0
Alguém tem script de Death e de Survi?
Operop
« Citoyen »
1414849260000
    • Operop#0000
    • Profil
    • Derniers messages
#626
  0
bolodefchoco a dit :
Alguém tem script de Death e de Survi?

death:

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
if tfm.get.room.playerList[name].isFacingRight then
id=tfm.exec.addShamanObject(19,x+players[name].offsets.x,y+players[name].offsets.y)
else
id=tfm.exec.addShamanObject(20,x+players[name].offsets.x,y+players[name].offsets.y)
end
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)])

Survivor por Robonado:

maps={"@2643792", "@2643799", "@2643804", "@2643816", "@2643820", "@2643824", "@2643829", "@2643833", "@2643839", "@2643846", "@2643849", "@2643856", "@2643864", "@2643870", "@2643875", "@2643884", "@2643886", "@2643889", "@2643892", "@2643896", "@2643899", "@2643904", "@2643907", "@2643909", "@2643914", "@2643920", "@2643923", "@2643926", "@2643931", "@2643935", "@2643940", "@2643943", "@2643946", "@2643948", "@2643952", "@2643955", "@2643964", "@2643966", "@2643968", "@2643971", "@2643977", "@2643980", "@2643985", "@2643993", "@2643998", "@2644001", "@2644004", "@2644007", "@2644010", "@2644015", "@2644017", "@2644019", "@2644026", "@2644028", "@2644032", "@2644038", "@2644040", "@2644046", "@2644047", "@2644052", "@2644055", "@2644059", "@2644060", "@2644065", "@2644067", "@2644074", "@2644078", "@2644087", "@2644090", "@2644094", "@2644100", "@2644104", "@2644108", "@2644111", "@2644117", "@2644118", "@2644125", "@2644144", "@2644150", "@2644153", "@2644157", "@2644160", "@2644164", "@2644171", "@2644175", "@2644178", "@2644183", "@2644186", "@2644193", "@2644199", "@2644204", "@2644212", "@2644222", "@2644226", "@2644228", "@2644229", "@2644232", "@2644237", "@2644246", "@2644248", "@2644251", "@2644259", "@2644260", "@2644264", "@2644268", "@2644273", "@2644276"}

admins={"Robonado", "Siriosp", "Suntzzu"}
banned={}
alive={}

vivo=0;
tempo=1;

tfm.exec.disableAutoNewGame(true)
tfm.exec.disableAllShamanSkills(false)

function nextRound()
tfm.exec.newGame(maps[math.random(#maps)])
end

function unBan(p)
for num,k in ipairs(banned) do
if (p == banned[num]) then
table.remove(banned, num)
end
end
end

function showBanner(p)
tempo=1;
ui.addTextArea(1, "<BR><p align='center'><font face='Soopafresh' size='100' color='#000000'><BR>#Survival", p, 5+5, 0, 790, 400, 1, 1, 0.0, false)
ui.addTextArea(2, "<BR><p align='center'><font face='Soopafresh' size='100' color='#000000'><BR>#Survival", p, 5-5, 0, 790, 400, 1, 1, 0.0, false)
ui.addTextArea(3, "<BR><p align='center'><font face='Soopafresh' size='100' color='#000000'><BR>#Survival", p, 5, 0+5, 790, 400, 1, 1, 0.0, false)
ui.addTextArea(4, "<BR><p align='center'><font face='Soopafresh' size='100' color='#000000'><BR>#Survival", p, 5, 0-5, 790, 400, 1, 1, 0.0, false)
ui.addTextArea(5, "<BR><p align='center'><font face='Soopafresh' size='100'><BV><BR>#Survival", p, 5, 0, 790, 400, 1, 1, 0.0, false)
end

for p in pairs(tfm.get.room.playerList) do
showBanner(p)
end

ui.addTextArea(51, "<font color='#6a8ea1'>.", NIL, 779, 29, 15, NIL, 0x6a8ea1, 0x6a8ea1, 1.0, false)
ui.addTextArea(52, "<font color='#000000'>.", NIL, 781, 31, 15, NIL, 1, 1, 1.0, false)
ui.addTextArea(50, "<p align='center'><B><a href='event:help'>?</B>", NIL, 780, 30, 15, NIL, 0x324650, 0x324650, 1.0, false)

function isAdmin(p)
for _,player in pairs(admins) do
if (player == p) then
return true;
end
end
return false;
end

function isAlive(p)
for _,player in pairs(alive) do
if (player == p) then
return true;
end
end
return false;
end

function notAlive(p)
for num,k in ipairs(alive) do
if (p == alive[num]) then
table.remove(alive, num)
end
end
end

function unAdmin(p)
for num,k in ipairs(admins) do
if (p == admins[num]) then
table.remove(admins, num)
end
end
end

function eventNewPlayer(p)
ui.addTextArea(51, "<font color='#6a8ea1'>.", p, 779, 29, 15, NIL, 0x6a8ea1, 0x6a8ea1, 1.0, false)
ui.addTextArea(52, "<font color='#000000'>.", p, 781, 31, 15, NIL, 1, 1, 1.0, false)
ui.addTextArea(50, "<p align='center'><B><a href='event:help'>?</B>", p, 780, 30, 15, NIL, 0x324650, 0x324650, 1.0, false)
showBanner(p)
end

function isBanned(p)
for _,player in pairs(banned) do
if (player == p) then
return true;
end
end
return false;
end

function eventNewGame()
for name,player in pairs(tfm.get.room.playerList) do
table.insert(alive, name)
vivo=vivo+1;
end
end

function eventPlayerLeft(p)
notAlive(p)
vivo=vivo-1;
end

function showHelp(p)
ui.addTextArea(51, "<font color='#6a8ea1'>.", p, 249, 114, 300, 150, 0x6a8ea1, 0x6a8ea1, 1.0, false)
ui.addTextArea(52, "<font color='#000000'>.", p, 251, 116, 300, 150, 1, 1, 1.0, false)
ui.addTextArea(50, "<p align='center'><font size='16'><B>Introdu��o</B></font></p><BR> <B>�</B> O objetivo do minigame � sobreviver.<BR> <B>�</B> Este minigame foi criado com o prop�sito de entreter membros da tribo <B>Survivor VI</B>.<BR> <B>�</B> Reporte bugs e sugest�es ao <B>Robonado</B>.<BR> <B>�</B> Favor ler as regras (pr�xima p�gina). Se voc� infringir uma das regras, poder� ser morto ou at� banido.", p, 250, 115, 300, 150, 0x324650, 0x324650, 1.0, false)
ui.addTextArea(81, "<font color='#6a8ea1'>.", p, 249, 279, 20, 20, 0x6a8ea1, 0x6a8ea1, 1.0, false)
ui.addTextArea(82, "<font color='#000000'>.", p, 251, 281, 20, 20, 1, 1, 1.0, false)
ui.addTextArea(80, "<p align='center'><B><font size='13'><a href='event:previous'>�", p, 250, 280, 20, 20, 0x324650, 0x324650, 1.0, false)
ui.addTextArea(71, "<font color='#6a8ea1'>.", p, 529, 279, 20, 20, 0x6a8ea1, 0x6a8ea1, 1.0, false)
ui.addTextArea(72, "<font color='#000000'>.", p, 531, 281, 20, 20, 1, 1, 1.0, false)
ui.addTextArea(70, "<p align='center'><B><font size='13'><a href='event:next'> �</B>", p, 530, 280, 20, 20, 0x324650, 0x324650, 1.0, false)
ui.addTextArea(61, "<font color='#6a8ea1'>.", p, 284, 279, 230, 20, 0x6a8ea1, 0x6a8ea1, 1.0, false)
ui.addTextArea(62, "<font color='#000000'>.", p, 286, 281, 230, 20, 1, 1, 1.0, false)
ui.addTextArea(60, "<p align='center'><B><font size='13'><a href='event:close'>Fechar</B>", p, 285, 280, 230, 20, 0x324650, 0x324650, 1.0, false)
end

function eventChatCommand(p, c)
if isAdmin(p) then
if c:sub(0,5) == "admin" then
for k,num in pairs(tfm.get.room.playerList) do
if (k == c:sub(7)) then
table.insert(admins, k)
print("<V>"..k.."<J> agora � um admin.")
end
end
elseif c:sub(0,7) == "unadmin" then
for k,num in pairs(tfm.get.room.playerList) do
if (k == c:sub(9)) then
if k ~= "Robonado" then
unAdmin(k)
print("<V>"..k.."<J> n�o � mais admin.")
end
end
end
elseif c:sub(0,3) == "ban" then
for k,num in pairs(tfm.get.room.playerList) do
if (k == c:sub(5)) then
if k ~= "Robonado" then
table.insert(banned, k)
print("<V>"..k.."<J> foi banido.")
end
end
end
elseif c:sub(0,5) == "unban" then
for num,k in ipairs(banned) do
if (k == c:sub(7)) then
unBan(k)
ui.removeTextArea(0, k)
print("<V>"..k.."<J> foi desbanido.")
end
end
end
end
if c == "help" then
showHelp(p)
elseif c == "die" or c == "mort" then
tfm.exec.killPlayer(p)
end
system.disableChatCommandDisplay(c, true)
end

function eventPlayerDied(p)
notAlive(p)
vivo=vivo-1
end

function eventLoop(ct, tr)
for p,_ in pairs(tfm.get.room.playerList) do
if isBanned(p) then
ui.addTextArea(0, "<font color='#6976917'>.", p, -1000, -1000, 2800, 2400, 6976917, 6976917, 1.0, true)
tfm.exec.killPlayer(p)
tfm.exec.setPlayerScore(p, 0)
end
end
if vivo == 0 or tr <= 0 then
for k in pairs(tfm.get.room.playerList) do
if isAlive(k) then
tfm.exec.setPlayerScore(k, 10, true)
end
end
nextRound()
end
if tempo == 6 then
for i=1,5 do
ui.removeTextArea(i)
end
end
tempo=tempo+1;
tfm.exec.setNameColor("Robonado", 0xEB1D51)
end

function eventTextAreaCallback(id, p, link)
if link == "help" then
showHelp(p)
elseif link == "next" then
ui.removeTextArea(71, p)
ui.removeTextArea(72, p)
ui.removeTextArea(id, p)
ui.addTextArea(80, "<p align='center'><B><font size='13'><a href='event:help'>�", p, 250, 280, 20, 20, 0x324650, 0x324650, 1.0, false)
ui.updateTextArea(50, "<p align='center'><font size='16'><B>Regras</B></font></p><BR><B> � </B>Sem camper;<BR><B> � </B>Sem favorecer jogadores;<BR><B> � </B>N�o use o modo divino;<BR><B> � </B>N�o use totem;<BR><B> � </B>Somente invoque cannons e spirits;<BR><B> � </B>N�o ameace cannons.", p)
elseif link == "previous" then
ui.removeTextArea(81, p)
ui.removeTextArea(82, p)
ui.removeTextArea(id, p)
ui.addTextArea(70, "<p align='center'><B><font size='13'><a href='event:help'> �</B>", p, 530, 280, 20, 20, 0x324650, 0x324650, 1.0, false)
ui.updateTextArea(50, "<p align='center'><font size='16'><B>Comandos</B></font></p><BR><font color='#00FF00'> *</font><B>!admin [Jogador]</B> o transforma em admin.<BR><font color='#00FF00'> *</font><B>!unadmin [Jogador]</B> desadmin o jogador.<BR><font color='#00FF00'> *</font><B>!ban [Jogador]</B> bani o jogador.<BR><font color='#00FF00'> *</font><B>!unban [Jogador]</B> desbani o jogador.<BR> <B>!help</B> mostra estas p�ginas.<BR> <B>!mort</B> comete suic�dio.<BR> <B>!die</B> comete suic�dio.<BR><p align='right'><font size='9' color='#00FF00'><BR>*<G>Admins", p)
elseif link == "close" then
ui.addTextArea(51, "<font color='#000000'>.", p, 779, 29, 15, NIL, 0x6a8ea1, 0x6a8ea1, 1.0, false)
ui.addTextArea(52, "<font color='#000000'>.", p, 781, 31, 15, NIL, 1, 1, 1.0, false)
ui.addTextArea(50, "<p align='center'><B><a href='event:help'>?</B>", p, 780, 30, 15, NIL, 0x324650, 0x324650, 1.0, false)
ui.removeTextArea(81, p)
ui.removeTextArea(82, p)
ui.removeTextArea(80, p)
ui.removeTextArea(71, p)
ui.removeTextArea(72, p)
ui.removeTextArea(70, p)
ui.removeTextArea(61, p)
ui.removeTextArea(62, p)
ui.removeTextArea(60, p)
end
end
Micamoreira
« Citoyen »
1414850040000
    • Micamoreira#0000
    • Profil
    • Derniers messages
#627
  0
maps={'2283','2806','3154','72339','103182','107544','112790','114122','117548','120152','122911','124359','130763','136966','138036','138678','140850','144468','144677','145020','146801','147436','148424','150692','152299','155168','156510','156685','156847','158128','159351','160762','161730','163682','164802','165112','165747','165843','166705','167941','168776','169065','169892','171152','175205','176263','177236','177813','178545','178657','180191','180255','180274','180469','180509','180619','181312','184110','184924','185760','185774','186604','190026','191201','191716','191753','192391','192566','193009','193588','193936','195720','195765','196433','196468','197219','197501','198549','198715','199219','201323','201442','206810','208058','208162','208914','209315','209708','209799','210188','211528','211565','211885','212542','213331','213697','213933','214037','214660','214775','215938','216439','216505','216553','216735','217282','217881','217900','219548','220500','222098','223293','223810','223986','224441','225017','226069','226879','226883','227417','227851','228462','229814','229827','229830','229834','229835','229944','230510','230741','231254','231694','231905','232140','232274','232451','232699','232791','233230','233345','233398','233687','234039','234502','234959','235034','235501','235651','236146','237000','237041','237263','237269','237278','237281','237297','237321','237744','238380','238791','239826','239880','240544','240548','240973','241211','241295','242708','243279','244006','244699','244888','245223','246790','246973','247815','247818','248098','250610','251459','252759','252806','253883','254291','255098','255542','255893','258717','259604','259716','259833','260024','260292','260338','260377','260384','260678','261078','261172','261720','261959','262144','262212','262239','263163','263182','263624','263907','264132','264232','264348','265221','266704','266765','266807','266854','266913','266930','267187','267597','269337','270668','270819','271523','273434','274321','275017','275514','277687','277784','278506','278916','279100','279256','280382','280896','281730','282101','282434','282694','283526','283715','283874','284299','285752','286333','287268','289821','291628','292348','292614','293065','294522','294943','299002','299503','299971','300055','301315','302936','304356','305677','306213','308280','308435','308694','308711','308992','309029','309057','309169','309834','312713','313245','314159','314205','315801','316289','317696','317754','317779','318378','318813','319524','319841','321339','321712','321814','321906','322771','323085','323115','323366','323600','324355','326585','327254','327266','330441','332210','332290','332467','333277','333656','333714','333837','335507','337581','337774','339272','339418','339643','339896','340069','340901','341116','341239','344361','344865','344952','345257','345290','345312','345943','348479','348801','349140','349389','349984','350251','350519','352381','352710','352885','354616','354878','355658','355676','355769','355957','356722','356982','357328','357428','359055','359521','359901','360201','360271','360273','360365','361382','362549','363411','363625','363638','363822','364186','364998','365464','365652','365774','367520','369160','369230','370444','370850','371076','371078','372401','372970','373511','375381','378826','379326','379550','379745','379866','381043','381287','381305','381569','381669','382977','384206','384869','385203','385295','386029','386046','386959','387012','387180','387270','387290','387638','388447','389582','391625','391693','391831','391868','391990','392446','392492','392913','393675','393851','394890','395459','395585','395607','396223','396332','396347','396645','396861','397296','397501','397812','397938','398011','398041','398081','398942','399633','399673','400429','400666','400866','401443','401778','401945','401995','402214','402239','402453','402936','403698','403910','404440','404590','405075','405295','405339','405497','405679','405833','405955','406266','406486','406881','406982','407165','407230','407294','407455','407457','407488','407495','407536','407686','407746','408978','409199','410230','410532','410565','410608','410813','412211','412316','412657','412752','413408','414188','414460','414899','416015','416142','416552','418022','418196','418265','418293','418323','418337','418600','418606','418658','419374','419735','420806','420956','421302','421717','422361','422509','422580','422939','423062','423449','423517','423672','424361','424786','424795','425030','425044','425215','425349','425548','425600','425771','425797','425806','426638','427300','428517','429262','429822','429897','430145','430219','430736','431142','431373','431887','433937','434887','436041','436107','436447','437860','438154','440676','441047','441376','441598','443309','444490','444830','444964','445133','445167','445219','447556','448281','452016','455167','459349','463195','463977','465205','468260','470687','470727','471053','472379','472665','475151','475790','477370','477603','480023','483924','484992','494706','496091','496945','499109','499682','499684','499687','500074','501428','501711','501916','504409','504461','504704','504951','505109','505963','506215','507308','507325','508106','508451','508796','509082','510194','511187','511275','512291','512927','514412','514510','514982','517005','517697','523046','528428','529844','531569','536235','537776','538116','545493','549470','551126','556253','556426','558790','563183','563484','564033','566347','566438','571144','580031','583056','586622','586688','587458','590641','594049','594883','595447','603381','606719','606723','608459','610137','611320','613985','616373','616433','620996','624098','624721','627609','634945','645288','646800','646968','658464','664949','667920','669031','670226','694900','704015','732880','734476','737841','749102','759128','763371','763378','789058','789128','792062','798953','813156','824082','829657','838069','846805','849224','879616','905496','972616','976721','976786','979179','982242','996947','1015436','1015582','1019378','1033170','1034035','1051378','1051384','1058681','1085530','1102815','1130728','1132357','1132639','1142116','1143815','1144548','1162611','1167734','1172426','1174107','1195842','1208798','1208979','1210037','1214182','1216253','1221661','1222899','1229246','1231216','1234914','1249601','1252122','1253523','1255130','1255148','1256845','1281700','1281981','1286910','1307880','1310092','1311059','1321417','1321664','1341396','1346440','1351308','1352534','1358446','1359797','1364063','1368222','1368233','1371239','1371294','1372941','1373000','1373748','1375345','1378209','1393405','1394120','1398732','1405249','1405496','1416040','1425101','1428436','1445160','1448760','1450554','1453667','1471124','1483155','1487161','1490438','1491022','1492120','1495344','1503393','1504586','1506007','1509474','1512355','1513407','1525272','1531388','1538895','1539515','1539791','1542618','1542736','1555532','1555862','1556661','1564762','1567620','1573213','1573997','1580508','1583655','1586439','1587904','1588884','1589026','1591471','1592767','1595600','1597594','1600443','1601492','1601786','1601857','1602654','1603050','1605364','1608259','1608638','1609978','1611631','1612436','1612796','1613550','1613927','1614563','1618110','1619934','1621611','1622737','1623300','1628732','1629164','1632294','1632541','1632706','1632746','1634741','1637638','1639996','1643157','1644638','1646120','1648583','1651658','1654096','1654105','1654841','1654903','1657021','1657360','1658171','1659639','1659716','1661852','1663380','1663415','1665249','1665516','1665775','1669046','1673174','1674534','1675083','1687268','1689382','1692628','1693705','1694602','1702169','1703617','1705316','1716693','1716949','1718723','1724289','1728943','1749434','1751944','1759287','1768347','1778687','1787232','1787239','1794287','1802907','1841744','1845710','1848032','1851411','1851568','1851968','1856349','1857829','1859444','1862800','1862823','1873736','1923785','1924227','1926831','1927270','1932796','1951856','1952851','1954369','1954898','1956002','1956555','1964700','1964752','1965819','1973574','1975275','1975286','1975684','1975753','1976007','1976857','1979131','1982476','1985019','1987990','1999967','2005559','2007170','2007205','2012147','2018511','2023552','2030343','2046467','2047177','2048474','2068543','2070768','2076632','2079190','2089069','2098621','2101747','2106576','2113318','2118599','2134537','2138401','2141379','2144010','2149382','2150335','2166693','2174319','2176620','2180790','2185089','2214661','2219308','2223685','2228834','2245005','2262476','2286056','2287914','2331474','2347666','2369254','2372538','2378820','2393139','2417713','2423312','2453022','2464807','2509175','2522826','2536577','2538131','2546484','2557885','2564883','2577060','2582610','2586491','2588032','2592421','2617003','2645615','2682985','2683170','2700958','2725924','2726034','2776889','2794075','2796001','2813487','2816067','2840770','2854246','2868414','2883986','2894072','2928081','2953315','2989266','2991507','3005251','3008155','3036416','3120368','3123384','3142015','3156569','3175920','3209087','3213562','3267620','3272722','3347209','3397865','3408247','3444803','3447108','3453351','3468601','3469987','3504036','3517347','3518418','3535192','3537419','3544895','3548376','3548378','3548406','3549484','3549840','3556405','3556489','3556690','3572407','3574879','3575108','3575170','3579335','3579476','3582577','3584275','3584689','3592471','3595900','3603799','3603802','3603809','3604799','3607846','3611702','3611885','3613029','3617674','3620542','3630433','3631534','3631748','3636268','3637041','3638794','3639993','3644272','3652003','3652102','3654416','3662698','3667358','3668754','3669435','3670084','3676141','3676555','3679397','3679666','3679884','3680180','3680220','3680221','3680223','3682405','3683201','3683224','3683294','3683383','3683393','3683520','3683600','3684229','3684455','3684457','3684465','3684784','3685130','3685352','3685382','3685486','3688419','3690578','3691609','3691622','3693822','3696662','3699155','3700684','3702767','3705931','3706599','3712183','3716560','3721990','3727755','3728013','3737576','3738767','3778389','3799507','3799857','3799951','3801780','3818249','3821104','3834905','3845214','3847244','3854268','3857914','3889414','3890126','3901403','3909339','3912540','3921436','3946626','3948683','3953320','3953425','3967150','3967250','3970909','3984750','3985806','3992276','3992671','3994471','3999981','4003729','4008546','4035194','4038817','4049042','4088129','4091580','4148332','4174318','4174320','4220406','4234556','4238784','4273207','4323335','4344186','4412890','4468155','4469627','4477124','4488954','4489653','4508416','4551993','4612295','4641185','4645670','4666540','4681759','4685111','4707191','4734427','4758350','4778991','4803662','4807572','4813927','4815404','4836483','4842297','4853690','4870958','4895634','4902526','4911122','4914476','4915220','4946442','4953687','4993931','5000090','5024682','5028454','5029395','5030579','5032745','5044309','5045485','5045922','5053907','5087373','5096937','5172709','5175746','5242039','5249500','5264776','5272513','5303681','5339441','5346212','5349806','5379646','5382687','5382692','5405469','5422102','5423355','5428225','5436200','5442158','5442174','5452432','5457081','5472330','5488573','5497240'}
vivo=0;
col=0

tfm.exec.disableAutoNewGame(true)
tfm.exec.disableAutoScore(true)

for p in pairs(tfm.get.room.playerList) do
tfm.exec.setPlayerScore(p,0,false)
end

function novaRodada()
tfm.exec.newGame(maps[math.random(#maps)])
end

novaRodada();

function eventNewGame()
col=1
tfm.exec.setGameTime(60)
vivo=0; -- A Variavel vivo Reseta
for p in pairs(tfm.get.room.playerList) do
vivo=vivo+1; -- Soma Da Variavel vivo
end
end

function eventPlayerLeft(p)
if not tfm.get.room.playerList

.isDead then
vivo=vivo-1;
end
end

function eventPlayerDied(p)
vivo=vivo-1;
end

function eventLoop(tempoPassado,tempoFaltando)
if vivo==0 or tempoFaltando <= 0 then -- Verifica se A Variavel vivo Chegou a 0 Ou Se o Tempo Restante Do Mapa Chegou a 0
novaRodada();
end
end

function eventPlayerWon(p)
eventPlayerDied(p)
local player=tfm.get.room.playerList


rank=""
if col==1 then
tfm.exec.setPlayerScore(p,1,true)
end
col=col+1
if player.score==15 then
ui.addPopup(0,0,"<b><font size='13'><p align='Center'>Bom trabalho "..p.."!",nil,(800-200)/2,30,200,true)
for p in pairs(tfm.get.room.playerList) do
tfm.exec.setPlayerScore(p,0,false)
end
end
for n,p in pairs(tfm.get.room.playerList) do
rank=rank..n.."-<b>Pontuação:</b>"..p.score.."\n"
end
ui.addPopup(0,0,rank,nil,600,22,180,true)
end



Coloca uma frase na tela quando chegar alguem a 15 pontos assim "BOM TRABALHO (NOME DA PESSOA)"
Weeslleeyone
« Citoyen »
1414857240000
    • Weeslleeyone#0000
    • Profil
    • Derniers messages
    • Tribu
#628
  0
Sou novo no LUA, alguém me explica para que serve:

tfm.exec.disableAutoTimeLeft
debug.disableEventLog
debug.disableTimerLog
tfm.exec.addJoint
tfm.exec.addPhysicObject

Para que serve cada um desses ?

Dernière modification le 1414857300000
Esh
« Censeur »
1414859580000
    • Esh#0095
    • Profil
    • Derniers messages
    • Tribu
#629
  0
weeslleeyone a dit :
Sou novo no LUA, alguém me explica para que serve:

tfm.exec.disableAutoTimeLeft
debug.disableEventLog
debug.disableTimerLog
tfm.exec.addJoint
tfm.exec.addPhysicObject

Para que serve cada um desses ?

tfm.exec.disableAutoTimeLeft desativa o tempo do mapa, ou seja, o tempo vai ficar "parado"
os dois debugs, desativam as mensagens do lua(não recomendo ativar)

tfm.exec.addJoint adiciona uma joint ao mapa
tfm.exec.addPhysicObject adiciona um piso ao mapa
Mcyagojt
« Citoyen »
1415052120000
    • Mcyagojt#0000
    • Profil
    • Derniers messages
    • Tribu
#630
  0
Man eu criei um script e outro script e não consigo juntar ele sem estragar um comandos que tem !comds alguem me ajuda?
Operop
« Citoyen »
1415052300000
    • Operop#0000
    • Profil
    • Derniers messages
#631
  0
mcyagojt a dit :
Man eu criei um script e outro script e não consigo juntar ele sem estragar um comandos que tem !comds alguem me ajuda?

Pode ser que vc tenha repetido as funções,então isso redefine tudo o que a função faz.
Gatan
« Censeur »
1415056260000
    • Gatan#1201
    • Profil
    • Derniers messages
    • Tribu
#632
  0
function eventNewPlayer(name)
tfm.exec.bindKeyboard(name,32,true,true)
end

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

function eventKeyboard(name,key,down,x,y)
if key==32 then
tfm.exec.addShamanObject(0,x,y)
end
end


quero que esse script tenha um sistema de admin, algm?
Mcyagojt
« Citoyen »
1415098020000
    • Mcyagojt#0000
    • Profil
    • Derniers messages
    • Tribu
#633
  0
Como eu crio uma abacom Linguas diferente ou para serparar o script alguem ajuda?
Operop
« Citoyen »
1415098440000
    • Operop#0000
    • Profil
    • Derniers messages
#634
  0
mcyagojt a dit :
Como eu crio uma abacom Linguas diferente ou para serparar o script alguem ajuda?


textbr="Olá!"--texto em português
textes="Hola!"--texto em espanhol
ui.addPopup(0,0,_G["textbr"],nil)
ui.addTextArea(0,"<a href='event:br'>BR</a> <a href='event:es'>ES",nil,300,30)

function eventTextAreaCallback(id,n,cb)
local lang=_G["text"..cb]
if lang then
ui.addPopup(0,0,lang,n)
end
end
Mcyagojt
« Citoyen »
1415098980000
    • Mcyagojt#0000
    • Profil
    • Derniers messages
    • Tribu
#635
  0
operop a dit :
mcyagojt a dit :
Como eu crio uma abacom Linguas diferente ou para serparar o script alguem ajuda?


textbr="Olá!"--texto em português
textes="Hola!"--texto em espanhol
ui.addPopup(0,0,_G["textbr"],nil)
ui.addTextArea(0,"&lt;a href='event:br'&gt;BR&lt;/a&gt; &lt;a href='event:es'&gt;ES",nil,300,30)

function eventTextAreaCallback(id,n,cb)
local lang=_G["text"..cb]
if lang then
ui.addPopup(0,0,lang,n)
end
end

Mais tipo eu quero pra usar no forum não um script :c
Mcyagojt
1415099220000
    • Mcyagojt#0000
    • Profil
    • Derniers messages
    • Tribu
#636
[Modéré par Rufflesdqjo]
Mcyagojt
1415099340000
    • Mcyagojt#0000
    • Profil
    • Derniers messages
    • Tribu
#637
[Modéré par Rufflesdqjo]

Dernière modification le 1415099460000
Lelebize
« Citoyen »
1415110200000
    • Lelebize#0000
    • Profil
    • Derniers messages
#638
  0
Alguém tem o lua maker transformice para fornecer o download ?
Squalleze
« Citoyen »
1415124840000
    • Squalleze#0000
    • Profil
    • Derniers messages
    • Tribu
#639
  0
lelebize a dit :
Alguém tem o lua maker transformice para fornecer o download ?

Procurei no fundo do meu Rim mais achei http://1drv.ms/1wuU031
Minionsgilrs
« Citoyen »
1415125260000
    • Minionsgilrs#0000
    • Profil
    • Derniers messages
#640
  0
como coloco foto no meu perfil?

Dernière modification le 1415125380000
  • Forums
  • /
  • Transformice
  • /
  • Archives
  • /
  • Seção Editor de Mapas e Modules
  • /
  • Tópico de Dúvidas
« ‹ 32 / 39 › »
© Atelier801 2018

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

Version 1.27