×

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
« ‹ 13 / 39 › »
Tópico de Dúvidas
Blablabladk
« Citoyen »
1407065880000
    • Blablabladk#0000
    • Profil
    • Derniers messages
#241
  0
alguen ai tem script de versao?
Ssdrobo
« Citoyen »
1407073440000
    • Ssdrobo#0000
    • Profil
    • Derniers messages
    • Tribu
#242
  0
blablabladk a dit :
alguen ai tem script de versao?

print(tfm.get.misc.bouboumVersion) -- Te mostra Versão do Bouboum
print(tfm.get.misc.transformiceVersion) -- Te mostra Versão do Transformice
print(tfm.get.misc.apiVersion) -- Te mostra Versão da API Lua

Não entendi o que você falou...

Dernière modification le 1407073560000
Sla
« Censeur »
1407091020000
    • Sla#3700
    • Profil
    • Derniers messages
    • Tribu
#243
  0
alguem ajuda pra botar depois de 10 segundos que começou o mapa alguem vira vamp : script

a dit :
tfm.exec.disableAutoShaman(true)
tfm.exec.disableAutoScore(true)
tfm.exec.disableAutoTimeLeft(true)
tfm.exec.disableAfkDeath(true)

time=2
time1=00
rodada=0

maps={"@3998605","@4592605","@4749271","@4160225","@4081184"}


function eventPlayerDied(name)
vivo=vivo-1
end

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


novaRodada()

function eventPlayerDied(p)
tfm.exec.respawnPlayer(p)
end

function eventNewGame(p)
tfm.exec.setVampirePlayer(_nvamp)
vivo=0
rodada=rodada+1
end

function eventLoop(tempoPassado, tempoFaltando)
if tempoFaltando < 1000 then
novaRodada()
end
end


function eventNewPlayer(p)
vivo=vivo+1
end

function eventPlayerLeft(p)
vivo=vivo-1
end

function vampire(_vampiros)
if tonumber(_vampiros) ~= nil then
local players = {};
for i in pairs(tfm.get.room.playerList) do
table.insert(players,i)
end
for i = 1,_vampiros do
local _random = math.random(#players)
local _nvamp = players[_random]
tfm.exec.setVampirePlayer(_nvamp)
table.remove(players,_random)
end
end
end

vampire(1)




tfm.exec.newGame("@4160228")
Tiwdamerenda
« Citoyen »
1407091260000
    • Tiwdamerenda#0000
    • Profil
    • Derniers messages
    • Tribu
#244
  0
Luanpow a dit :
alguem ajuda pra botar depois de 10 segundos que começou o mapa alguem vira vamp : script

a dit :
tfm.exec.disableAutoShaman(true)
tfm.exec.disableAutoScore(true)
tfm.exec.disableAutoTimeLeft(true)
tfm.exec.disableAfkDeath(true)

time=2
time1=00
rodada=0

maps={"@3998605","@4592605","@4749271","@4160225","@4081184"}


function eventPlayerDied(name)
vivo=vivo-1
end

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


novaRodada()

function eventPlayerDied(p)
tfm.exec.respawnPlayer(p)
end

function eventNewGame(p)
tfm.exec.setVampirePlayer(_nvamp)
vivo=0
rodada=rodada+1
end

function eventLoop(tempoPassado, tempoFaltando)
if tempoFaltando &lt; 1000 then
novaRodada()
end
end


function eventNewPlayer(p)
vivo=vivo+1
end

function eventPlayerLeft(p)
vivo=vivo-1
end

function vampire(_vampiros)
if tonumber(_vampiros) ~= nil then
local players = {};
for i in pairs(tfm.get.room.playerList) do
table.insert(players,i)
end
for i = 1,_vampiros do
local _random = math.random(#players)
local _nvamp = players[_random]
tfm.exec.setVampirePlayer(_nvamp)
table.remove(players,_random)
end
end
end

vampire(1)




tfm.exec.newGame("@4160228")


aki :

tfm.exec.disableAutoShaman(true)
tfm.exec.disableAutoScore(true)
tfm.exec.disableAutoTimeLeft(true)
tfm.exec.disableAfkDeath(true)

time=2
time1=00
rodada=0

maps={"@3998605","@4592605","@4749271","@4160225","@4081184"}


function eventPlayerDied(name)
vivo=vivo-1
end

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


novaRodada()

function eventPlayerDied(p)
tfm.exec.respawnPlayer(p)
end

function eventNewGame(p)
timer=0;
function eventLoop()
timer=timer+0.5
if timer==10 then
for p in pairs(tfm.get.room.playerList) do
tfm.exec.setVampirePlayer(p)
end
end
end
vivo=0
rodada=rodada+1
end

function eventLoop(tempoPassado, tempoFaltando)
if tempoFaltando < 1000 then
novaRodada()
end
end


function eventNewPlayer(p)
vivo=vivo+1
end

function eventPlayerLeft(p)
vivo=vivo-1
end


Sla
« Censeur »
1407091380000
    • Sla#3700
    • Profil
    • Derniers messages
    • Tribu
#245
  0
vlw zz
Kombizinha
« Citoyen »
1407245400000
    • Kombizinha#0000
    • Profil
    • Derniers messages
    • Tribu
#246
  0
Tem Como Indentificar Se a Tabela Tem um Certo Argumento?

Por Exemplo

tabela={'To Sem Criatividade'}


Tem Como Indentificar Se a Tabela Contem o Argumento 'Criatividade' ?
Tiwdamerenda
« Citoyen »
1407246840000
    • Tiwdamerenda#0000
    • Profil
    • Derniers messages
    • Tribu
#247
  0
Kombizinha a dit :
Tem Como Indentificar Se a Tabela Tem um Certo Argumento?

Por Exemplo

tabela={'To Sem Criatividade'}


Tem Como Indentificar Se a Tabela Contem o Argumento 'Criatividade' ?

n deu pra testar e n entendi direito mas acho q é assim:

admin={"Tiwdamerenda"}
for p in pairs(tfm.get.room.playerList) do
if admin

==true then
print('dsds')
end
end

Kombizinha
« Citoyen »
1407247500000
    • Kombizinha#0000
    • Profil
    • Derniers messages
    • Tribu
#248
  0
tiwdamerenda a dit :
Kombizinha a dit :
Tem Como Indentificar Se a Tabela Tem um Certo Argumento?

Por Exemplo

tabela={'To Sem Criatividade'}


Tem Como Indentificar Se a Tabela Contem o Argumento 'Criatividade' ?

n deu pra testar e n entendi direito mas acho q é assim:

admin={"Tiwdamerenda"}
for p in pairs(tfm.get.room.playerList) do
if admin

==true then
print('dsds')
end
end


Nn, é tipo assim



tabela={}
function eventChatCommand(p,c)
if c:sub(0,3) == "sla" then
table.insert(tabela,c:sub(5))
end
end


Nesse Caso Eu Digo !sla gugu dada ola

Ai a tabela vai ta assim:

tabela={'gugu dada ola'}


Tem Como Indentificar Se a Tabela Tem a Palavra "gugu" ??

Dernière modification le 1407247620000
Tiwdamerenda
« Citoyen »
1407247620000
    • Tiwdamerenda#0000
    • Profil
    • Derniers messages
    • Tribu
#249
  0
desculpa pelo erro
assim:

admin={Tiwdamerenda=true}
function eventChatCommand(p,c)
if c=="dsds" then
if admin

then
print('dsds')
end
end
end


assim?
Kombizinha
« Citoyen »
1407247680000
    • Kombizinha#0000
    • Profil
    • Derniers messages
    • Tribu
#250
  0
tiwdamerenda a dit :
desculpa pelo erro
assim:

admin={Tiwdamerenda=true}
function eventChatCommand(p,c)
if c=="dsds" then
if admin

then
print('dsds')
end
end
end


assim?

NAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAO
Tiwdamerenda
« Citoyen »
1407247740000
    • Tiwdamerenda#0000
    • Profil
    • Derniers messages
    • Tribu
#251
  0
Kombizinha a dit :
tiwdamerenda a dit :
desculpa pelo erro
assim:

admin={Tiwdamerenda=true}
function eventChatCommand(p,c)
if c=="dsds" then
if admin

then
print('dsds')
end
end
end


assim?

NAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAO

não entendi nada desse negoço ai -'
Kombizinha
« Citoyen »
1407248100000
    • Kombizinha#0000
    • Profil
    • Derniers messages
    • Tribu
#252
  0
Cara é Tipo Assim

tabela={'tiw seu nub'}

Tem como indentificar se a tabela tem a palavra 'tiw' ?
Tiwdamerenda
« Citoyen »
1407248220000
    • Tiwdamerenda#0000
    • Profil
    • Derniers messages
    • Tribu
#253
  0
Kombizinha a dit :
Cara é Tipo Assim

tabela={'tiw seu nub'}

Tem como indentificar se a tabela tem a palavra 'tiw' ?

assim?

tabela={'tiw seu nub'}
if tabela[1] then
print 'djs'
end


[size=6]essa tabela ta muito malvada to di olho ein

Dernière modification le 1407248340000
Kombizinha
« Citoyen »
1407248340000
    • Kombizinha#0000
    • Profil
    • Derniers messages
    • Tribu
#254
  0
tiwdamerenda a dit :
Kombizinha a dit :
Cara é Tipo Assim

tabela={'tiw seu nub'}

Tem como indentificar se a tabela tem a palavra 'tiw' ?

assim?

tabela={'tiw seu nub'}
if tabela[1] then
print 'djs'
end

Cara Melhor Você Deixar Outra Pessoa Responder ( ... )
Brenower
« Censeur »
1407248880000
    • Brenower#0000
    • Profil
    • Derniers messages
    • Tribu
#255
  0
Kombizinha a dit :
Tem Como Indentificar Se a Tabela Tem um Certo Argumento?

Por Exemplo

tabela={'To Sem Criatividade'}


Tem Como Indentificar Se a Tabela Contem o Argumento 'Criatividade' ?

• string.match(string, padrão, Posição inicial) - Encontra um padrão em uma seqüência de caracteres.

local mystring = "Um texto aleatorio? "
print(string.match(mystring,"texto"))

tabela nada, valor da tabela
Kombizinha
« Citoyen »
1407249840000
    • Kombizinha#0000
    • Profil
    • Derniers messages
    • Tribu
#256
  0
Valeu Brenão o/
Gutigusta
« Citoyen »
1407276120000
    • Gutigusta#0000
    • Profil
    • Derniers messages
    • Tribu
#257
  0
Gente não tem ais o tópico pedido de script onde eu peço agora?
Kombizinha
« Citoyen »
1407276180000
    • Kombizinha#0000
    • Profil
    • Derniers messages
    • Tribu
#258
  0
Gutigusta a dit :
Gente não tem ais o tópico pedido de script onde eu peço agora?

Aqui '-'
Gutigusta
« Citoyen »
1407276420000
    • Gutigusta#0000
    • Profil
    • Derniers messages
    • Tribu
#259
  0
Kombizinha a dit :
Gutigusta a dit :
Gente não tem ais o tópico pedido de script onde eu peço agora?

Aqui '-'

'-' vou pedir depois porque eu ia pedi pra fazerem um script que só eu fosse shaman junto com o script do mapa da sala 801 mais quando já tiver eu venho aqui obrigado.
Kombizinha
« Citoyen »
1407276480000
    • Kombizinha#0000
    • Profil
    • Derniers messages
    • Tribu
#260
  0
Gutigusta a dit :
Kombizinha a dit :
Gutigusta a dit :
Gente não tem ais o tópico pedido de script onde eu peço agora?

Aqui '-'

'-' vou pedir depois porque eu ia pedi pra fazerem um script que só eu fosse shaman junto com o script do mapa da sala 801 mais quando já tiver eu venho aqui obrigado.

Ok, então você nunca + vai voltar '-'
  • Forums
  • /
  • Transformice
  • /
  • Archives
  • /
  • Seção Editor de Mapas e Modules
  • /
  • Tópico de Dúvidas
« ‹ 13 / 39 › »
© Atelier801 2018

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

Version 1.27