×

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
  • /
  • Guia Module + Tópico de Dúvidas
« ‹ 10 / 55 › »
Guia Module + Tópico de Dúvidas
Tini
« Sénateur »
1381708020000
    • Tini#0015
    • Profil
    • Derniers messages
    • Tribu
#181
  0
Mousecrewz a dit :
Pessoal preciso de uma ajudinha.
Como faço a opçao de ajuda como o bolodefchoco fez?

Exemplo:
Como faço aquele quadradrinho com a [?] e quando clica sai ajuda???

Eu tenho o script disso aqui: http://pastebin.com/4XDtQJVq
Lucahappy
« Citoyen »
1381708500000
    • Lucahappy#0000
    • Profil
    • Derniers messages
#182
  0
Galera como faz pra testar um module?
Brenower
« Censeur »
1381708620000
    • Brenower#0000
    • Profil
    • Derniers messages
    • Tribu
#183
  0
Lucahappy a dit :
Galera como faz pra testar um module?

Como assim?
Lucahappy
« Citoyen »
1381708620000
    • Lucahappy#0000
    • Profil
    • Derniers messages
#184
  0
Nao sei colocar um module numa sala?
ou é no cafofo?
Cantstope
« Citoyen »
1381708620000
    • Cantstope#0000
    • Profil
    • Derniers messages
    • Tribu
#185
  0
Lucahappy a dit :
Galera como faz pra testar um module?

Depende tem o /module (nome do minigame) e tem como rodar o script através do /lua.

@edit: No cafofo.
Brenower
« Censeur »
1381708620000
    • Brenower#0000
    • Profil
    • Derniers messages
    • Tribu
#186
  0
Lucahappy a dit :
Nao sei colocar um module numa sala?
ou é no cafofo?

Vai no cafofo da tribo:
digita /lua
no quadrado do /lua bota o script
e depois aperta enviar.
Lucahappy
« Citoyen »
1381708620000
    • Lucahappy#0000
    • Profil
    • Derniers messages
#187
  0
Brenower a dit :
Vai no cafofo da tribo:
digita /lua
no quadrado do /lua bota o script
e depois aperta enviar.

Ok vo ver.
Cantstope
« Citoyen »
1381708800000
    • Cantstope#0000
    • Profil
    • Derniers messages
    • Tribu
#188
  0
Breno, você tem o script do coração com loop ?
Lucahappy
« Citoyen »
1381708800000
    • Lucahappy#0000
    • Profil
    • Derniers messages
#189
  0
Cara eu testei no cafofo mais nao aconteceu nada '-'
Cantstope
« Citoyen »
1381708920000
    • Cantstope#0000
    • Profil
    • Derniers messages
    • Tribu
#190
  0
Lucahappy a dit :
Cara eu testei no cafofo mais nao aconteceu nada '-'

Você tentou carregar algum script ?


@edit: Post 190 \o
Lucahappy
« Citoyen »
1381708920000
    • Lucahappy#0000
    • Profil
    • Derniers messages
#191
  0
Sim o do SpiritPower
Cantstope
« Citoyen »
1381708920000
    • Cantstope#0000
    • Profil
    • Derniers messages
    • Tribu
#192
  0
Lucahappy a dit :
Sim o do SpiritPower

Você já foi banido por hacking ou tem menos de 1000 queijos ?
Lucahappy
« Citoyen »
1381708920000
    • Lucahappy#0000
    • Profil
    • Derniers messages
#193
  0
os 2 '-'

ops eu tenho mais de 1k de chesse
Cantstope
« Citoyen »
1381709040000
    • Cantstope#0000
    • Profil
    • Derniers messages
    • Tribu
#194
  0
Lucahappy a dit :
os 2 '-'

Intão você não pode executar '-'
Lucahappy
« Citoyen »
1381709040000
    • Lucahappy#0000
    • Profil
    • Derniers messages
#195
  0
so fui ban..
Cantstope
« Citoyen »
1381709040000
    • Cantstope#0000
    • Profil
    • Derniers messages
    • Tribu
#196
  0
Mas teste novamente, tente usar isso auqi no lua.

a dit :
print('Funcionou')

Vamos ver e.e

@edit: Esqueçi das aspas...
Mousecrewz
« Citoyen »
1381709520000
    • Mousecrewz#0000
    • Profil
    • Derniers messages
#197
  0
Alguem junta esses codigos em 1 so pfv

codigo do meu game.

Meu game
a dit :
admins={"Mousecrewz, Matheusnovo"}
tfm.exec.disableAutoShaman(true)
tfm.exec.disableAutoNewGame(true)
tfm.exec.setUIShamanName("<font color='#95D9D6'>Sem Shamam</font>")
tfm.exec.setUIMapName("<font color='#FADE55'>Racenilla</font>")

ui.addTextArea(1, "<font color='#C2C2DA'>Creditos: Mousecrewz, Matheusnovo, Brenower e www.lua.zz.mu</font>", player, 10, 370, 780, 20, FFFFFF, FFFFFF, 0.8)

print("<font color='#ED67EA'>Créditos: Mousecrewz")

maps={"7","10","12","26","35","37","40","41","42","44","45","53","56","63","64","65","75","78","81","95","100","117","119","120","123"};
function eventLoop(time,remaining)
if remaining<=0 then
tfm.exec.newGame(maps[math.random(#maps)])
end end
function eventPlayerDied()
local i=0
for n,player in pairs(tfm.get.room.playerList) do
if not player.isDead then
i=i+1
end
end
if i==0 then
tfm.exec.newGame(maps[math.random(#maps)])
end
end
function eventNewGame()
tfm.exec.disableAutoShaman(true)
tfm.exec.setUIShamanName("<font color='#95D9D6'>Sem Shamam</font>")
tfm.exec.setUIMapName("<font color='#FADE55'>Racenilla</font>")
end

ui.addPopup(1, 0, "Bem-vindo ao Minigame LUA <b>Racenilla</b> digite <b>!help</b> para obter ajuda, digite <b>!commands</b> para ver a lista de comandos.", name, 250, 150, 270)

function eventChatCommand(name,command)
if command == "help" then
ui.addPopup(1, 0, "<b> Racinilla</b> é um minigame que junta Vanilla e Racing, o obgetivo é completar os mais dificeis mapas da vanilla. O tempo é de 63 segundos, Para saber todos os comandos digite <b><i>!commands</b></i> ", name, 250, 150, 270)
end
if command == "admin" then
ui.addPopup(1, 0, "Administradores: <font color='#FF0000'><b>Mousecrewz</b></font> e <font color='#FF0000'><b> Matheusnovo</font> </b>", name, 1250, 150, 270)
end
if command == "commands" then
ui.addPopup(1, 0, "Comandos disponiveis → !help, !commands, !mort, !admin", name, 250, 150, 270)
end
if command == "mort" then
tfm.exec.killPlayer(name)
end
end

Codigo 2
a dit :
translations={
EN={
help={
"TEXTO_PÁGINA_1",
"TEXTO_PÁGINA_2",
"TEXTO_PÁGINA_3",
"TEXTO_PÁGINA_4",
}
}
}

players={}
system.disableChatCommandDisplay("help")

textarea=ui.addTextArea
function ui.addTextArea(id,text,targetPlayer,x,y,width,height,backgroundColor,borderColor,backgroundAlpha,emboss)
--if not backgroundColor then backgroundColor=0x324650 end
--if not borderColor then borderColor=0x000001 end
if emboss then
textarea(6969+id,"",targetPlayer,x,y+1,width,height,0x000001,0x000001,backgroundAlpha)
textarea(7979+id,"",targetPlayer,x,y-1,width,height,0x6A8FA2,0x6A8FA2,backgroundAlpha)
end
textarea(id,text,targetPlayer,x,y,width,height,backgroundColor,borderColor,backgroundAlpha)
end

function eventNewPlayer(name)
players[name]={helpid=1}
ui.addTextArea(0,"<p align='center'><a href='event:help'><b>?</b></a></p>",name,780,374,16,16,nil,0x324650,nil,true)
end

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

function trans(mes)
if translations[tfm.get.room.community] and translations[tfm.get.room.community][mes] then
return translations[tfm.get.room.community][mes]
else
return translations.EN[mes]
end
end

function eventChatCommand(name,command)
if command=="help" then
ui.addTextArea(1,trans("help")[players[name].helpid],name,250,50,300,300,nil,0x324650,nil,true)
ui.addTextArea(2,"<p align='center'><a href='event:previous'><b>&lt;</b></a></p>",name,500,365,16,16,nil,0x324650,nil,true)
ui.addTextArea(3,"<p align='center'><a href='event:next'><b>&gt;</b></a></p>",name,532,365,16,16,nil,0x324650,nil,true)
ui.addTextArea(4,"<p align='center'><a href='event:close'><b>Close</b></a></p>",name,442,365,42,16,nil,0x324650,nil,true)
ui.addTextArea(5,"<p align='center'>"..players[name].helpid.."/"..#trans("help").."</p>",name,250,365,42,16,nil,0x324650,nil,true)
end
end

function eventTextAreaCallback(id,name,callback)
if callback=="help" then
eventChatCommand(name,callback)
elseif callback=="close" then
players[name].helpid=1
for id=1,5 do
ui.removeTextArea(id,name)
ui.removeTextArea(6969+id,name)
ui.removeTextArea(7979+id,name)
end
elseif callback=="next" and players[name].helpid<#trans("help") then
players[name].helpid=(players[name].helpid)+1
ui.updateTextArea(1,trans("help")[players[name].helpid],name)
ui.updateTextArea(5,"<p align='center'>"..players[name].helpid.."/"..#trans("help").."</p>",name)
elseif callback=="previous" and players[name].helpid>1 then
players[name].helpid=players[name].helpid-1
ui.updateTextArea(1,trans("help")[players[name].helpid],name)
ui.updateTextArea(5,"<p align='center'>"..players[name].helpid.."/"..#trans("help").."</p>",name)
end
end

Porfavor juntem todos em 1 so codigo script.
Cantstope
« Citoyen »
1381709640000
    • Cantstope#0000
    • Profil
    • Derniers messages
    • Tribu
#198
  0
a dit :
admins={"Mousecrewz, Matheusnovo"}
tfm.exec.disableAutoShaman(true)
tfm.exec.disableAutoNewGame(true)
tfm.exec.setUIShamanName("<font color='#95D9D6'>Sem Shamam</font>")
tfm.exec.setUIMapName("<font color='#FADE55'>Racenilla</font>")

ui.addTextArea(1, "<font color='#C2C2DA'>Creditos: Mousecrewz, Matheusnovo, Brenower, Cantstope e www.lua.zz.mu</font>", player, 10, 370, 780, 20, FFFFFF, FFFFFF, 0.8)

print("<font color='#ED67EA'>Créditos: Mousecrewz")

maps={"7","10","12","26","35","37","40","41","42","44","45","53","56","63","64","65","75","78","81","95","100","117","119","120","123"};
function eventLoop(time,remaining)
if remaining<=0 then
tfm.exec.newGame(maps[math.random(#maps)])
end end
function eventPlayerDied()
local i=0
for n,player in pairs(tfm.get.room.playerList) do
if not player.isDead then
i=i+1
end
end
if i==0 then
tfm.exec.newGame(maps[math.random(#maps)])
end
end
function eventNewGame()
tfm.exec.disableAutoShaman(true)
tfm.exec.setUIShamanName("<font color='#95D9D6'>Sem Shamam</font>")
tfm.exec.setUIMapName("<font color='#FADE55'>Racenilla</font>")
end

ui.addPopup(1, 0, "Bem-vindo ao Minigame LUA <b>Racenilla</b> digite <b>!help</b> para obter ajuda, digite <b>!commands</b> para ver a lista de comandos.", name, 250, 150, 270)

function eventChatCommand(name,command)
if command == "help" then
ui.addPopup(1, 0, "<b> Racinilla</b> é um minigame que junta Vanilla e Racing, o obgetivo é completar os mais dificeis mapas da vanilla. O tempo é de 63 segundos, Para saber todos os comandos digite <b><i>!commands</b></i> ", name, 250, 150, 270)
end
if command == "admin" then
ui.addPopup(1, 0, "Administradores: <font color='#FF0000'><b>Mousecrewz</b></font> e <font color='#FF0000'><b> Matheusnovo</font> </b>", name, 1250, 150, 270)
end
if command == "commands" then
ui.addPopup(1, 0, "Comandos disponiveis → !help, !commands, !mort, !admin", name, 250, 150, 270)
end
if command == "mort" then
tfm.exec.killPlayer(name)
end
end
translations={
EN={
help={
"TEXTO_PÁGINA_1",
"TEXTO_PÁGINA_2",
"TEXTO_PÁGINA_3",
"TEXTO_PÁGINA_4",
}
}
}

players={}
system.disableChatCommandDisplay("help")

textarea=ui.addTextArea
function ui.addTextArea(id,text,targetPlayer,x,y,width,height,backgroundColor,borderColor,backgroundAlpha,emboss)
--if not backgroundColor then backgroundColor=0x324650 end
--if not borderColor then borderColor=0x000001 end
if emboss then
textarea(6969+id,"",targetPlayer,x,y+1,width,height,0x000001,0x000001,backgroundAlpha)
textarea(7979+id,"",targetPlayer,x,y-1,width,height,0x6A8FA2,0x6A8FA2,backgroundAlpha)
end
textarea(id,text,targetPlayer,x,y,width,height,backgroundColor,borderColor,backgroundAlpha)
end

function eventNewPlayer(name)
players[name]={helpid=1}
ui.addTextArea(0,"<p align='center'><a href='event:help'><b>?</b></a></p>",name,780,374,16,16,nil,0x324650,nil,true)
end

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

function trans(mes)
if translations[tfm.get.room.community] and translations[tfm.get.room.community][mes] then
return translations[tfm.get.room.community][mes]
else
return translations.EN[mes]
end
end

function eventChatCommand(name,command)
if command=="help" then
ui.addTextArea(1,trans("help")[players[name].helpid],name,250,50,300,300,nil,0x324650,nil,true)
ui.addTextArea(2,"<p align='center'><a href='event:previous'><b>&lt;</b></a></p>",name,500,365,16,16,nil,0x324650,nil,true)
ui.addTextArea(3,"<p align='center'><a href='event:next'><b>&gt;</b></a></p>",name,532,365,16,16,nil,0x324650,nil,true)
ui.addTextArea(4,"<p align='center'><a href='event:close'><b>Close</b></a></p>",name,442,365,42,16,nil,0x324650,nil,true)
ui.addTextArea(5,"<p align='center'>"..players[name].helpid.."/"..#trans("help").."</p>",name,250,365,42,16,nil,0x324650,nil,true)
end
end

function eventTextAreaCallback(id,name,callback)
if callback=="help" then
eventChatCommand(name,callback)
elseif callback=="close" then
players[name].helpid=1
for id=1,5 do
ui.removeTextArea(id,name)
ui.removeTextArea(6969+id,name)
ui.removeTextArea(7979+id,name)
end
elseif callback=="next" and players[name].helpid<#trans("help") then
players[name].helpid=(players[name].helpid)+1
ui.updateTextArea(1,trans("help")[players[name].helpid],name)
ui.updateTextArea(5,"<p align='center'>"..players[name].helpid.."/"..#trans("help").."</p>",name)
elseif callback=="previous" and players[name].helpid>1 then
players[name].helpid=players[name].helpid-1
ui.updateTextArea(1,trans("help")[players[name].helpid],name)
ui.updateTextArea(5,"<p align='center'>"..players[name].helpid.."/"..#trans("help").."</p>",name)
end
end

Tá ai Mousecrewz.
Mousecrewz
« Citoyen »
1381709820000
    • Mousecrewz#0000
    • Profil
    • Derniers messages
#199
  0
Cantstope a dit :
Tá ai Mousecrewz.

Valeu, muito obrigado.
Cantstope
« Citoyen »
1381709940000
    • Cantstope#0000
    • Profil
    • Derniers messages
    • Tribu
#200
  0
Mousecrewz a dit :
Valeu, muito obrigado.

Não há di que.
  • Forums
  • /
  • Transformice
  • /
  • Archives
  • /
  • Seção Editor de Mapas e Modules
  • /
  • Guia Module + Tópico de Dúvidas
« ‹ 10 / 55 › »
© Atelier801 2018

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

Version 1.27