×

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
« ‹ 32 / 55 › »
Guia Module + Tópico de Dúvidas
Brenower
« Censeur »
1387407180000
    • Brenower#0000
    • Profil
    • Derniers messages
    • Tribu
#621
  0
Yteizz a dit :
poderia dar o escript proto ueheueheuehue sou burro de mais

a dit :

adms={"Yteizz"};


function eventChatCommand(playerName,command)

for index,player in pairs(adms) do
if player == playerName
if command=="roomsay" then
for p in pairs(tfm.get.room.playerList) do
ui.addPopup(3,2,"Enviar uma mensagem?",player,300,100,200)
end
end
end

function eventPopupAnswer(id,player,answer)
if id==0 then
tfm.exec.killPlayer(answer)
end
for index,player in pairs(adm) do
if player == playerName

if id==1 then
tfm.exec.giveCheese(answer)
end
for index,player in pairs(adm) do
if player == playerName

if id==3 then
ui.addTextArea(1, "<rose>• [" .. player .."] <n>" .. answer .. ".", player, 10, 370, 780, 20)
end
end

Ta ai
Yteizz
« Citoyen »
1387407360000
    • Yteizz#0000
    • Profil
    • Derniers messages
    • Tribu
#622
  0
Brenower a dit :
Ta ai

obrigado mesmo :)
+Thogabriel
« Citoyen »
1387408080000
    • +Thogabriel#0000
    • Profil
    • Derniers messages
    • Tribu
#623
  0
Yteizz a dit :
poderia dar o escript proto ueheueheuehue sou burro de mais
edit@
so dizzer como coloca isso

system.disableChatCommandDisplay(String command, Boolean yes)

system.disableChatCommandDisplay(NOMEDOCOMANDO, true)
Plinceeeza
« Citoyen »
1387475160000
    • Plinceeeza#0000
    • Profil
    • Derniers messages
#624
  0
Pra que serve o system.disableChatCommandDisplay(NOMEDOCOMANDO, true) ?
Stheblindd
« Citoyen »
1387475400000
    • Stheblindd#0000
    • Profil
    • Derniers messages
    • Tribu
#625
  0
Plinceeeza a dit :
Pra que serve o system.disableChatCommandDisplay(NOMEDOCOMANDO, true) ?

Para o comando NOMEDOCOMANDO não aparecer no chat.
Plinceeeza
« Citoyen »
1387475400000
    • Plinceeeza#0000
    • Profil
    • Derniers messages
#626
  0
Stheblindd a dit :
Para o comando NOMEDOCOMANDO não aparecer no chat.

Ham Não sabia
Lucasmribe
« Citoyen »
1387500660000
    • Lucasmribe#0000
    • Profil
    • Derniers messages
    • Tribu
#627
  0
Tem como fazer hiperlink no lua? (link q vc clica e sai em um site)
Brenower
« Censeur »
1387539840000
    • Brenower#0000
    • Profil
    • Derniers messages
    • Tribu
#628
  0
Lucasmribe a dit :
Tem como fazer hiperlink no lua? (link q vc clica e sai em um site)

Sim.
a dit :

<a href='LINK AQUI'>Escreva aqui</a>

^^
Bruno
« Censeur »
1387543380000
    • Bruno#3852
    • Profil
    • Derniers messages
    • Tribu
#629
  0
Lucasmribe a dit :
Tem como fazer hiperlink no lua? (link q vc clica e sai em um site)

Sim, faça assim:

Código a dit :
<a href=\"LINK\" target=\"blank\">Escreva</a>

Se tiver problemas me fale.
Ruancool
« Citoyen »
1387659480000
    • Ruancool#0000
    • Profil
    • Derniers messages
#630
  0
pode criar um topico tipo assim: uma pessoa poem o topico, script ou pelo pastebin e pede eu traduzir pra tal lingua ai eu traduzo e mando devolta, se pode como tenque ser o nome?
Bruno
« Censeur »
1387664880000
    • Bruno#3852
    • Profil
    • Derniers messages
    • Tribu
#631
  0
Ruancool a dit :
pode criar um topico tipo assim: uma pessoa poem o topico, script ou pelo pastebin e pede eu traduzir pra tal lingua ai eu traduzo e mando devolta, se pode como tenque ser o nome?

Não pode.
Squalleze
« Citoyen »
1387665900000
    • Squalleze#0000
    • Profil
    • Derniers messages
    • Tribu
#632
  0
alguem lembra o link que tem todos os mapas de uma seção eu to em otro pc e n lembro e-e
Laagaadoo
« Citoyen »
1387666140000
    • Laagaadoo#0000
    • Profil
    • Derniers messages
    • Tribu
#633
  0
Squalleze a dit :
alguem lembra o link que tem todos os mapas de uma seção eu to em otro pc e n lembro e-e

API Cheese For Mice - Maps

Substitua o "p" por "pCATEGORIA", exemplo: "p17", "p22", "p3", sem aspas.
+Lucasmr
« Citoyen »
1387723080000
    • +Lucasmr#0000
    • Profil
    • Derniers messages
    • Tribu
#634
  0
http://pastebin.com/4xfFRUE0
ando eu digita !fogos aparece só uma vez, onde eu coloco o event Loop pra ir em varios lugares?
Yteizz
« Citoyen »
1387830480000
    • Yteizz#0000
    • Profil
    • Derniers messages
    • Tribu
#635
  0
+Lucasmr a dit :
http://pastebin.com/4xfFRUE0
ando eu digita !fogos aparece só uma vez, onde eu coloco o event Loop pra ir em varios lugares?

Tenta isso :


function eventChatCommand(player, command)
if command == "fogos" then
fogos(math.random(0, 800), math.random(200, 300))
end
end

function fogos(x, y)
local particle = math.random(0,2)
for i=0,2 do
tfm.exec.displayParticle(particle, x, y, 0.2F, 0.2F, 0.2F, 0.2F, nil)
tfm.exec.displayParticle(particle, x, y, -0.2F, -0.2F, -0.2F, -0.2F, nil)
tfm.exec.displayParticle(particle, x, y, 0F, 0.2F, 0F, 0.2F, nil)
tfm.exec.displayParticle(particle, x, y, 0F, -0.2F, 0F, -0.2F, nil)
tfm.exec.displayParticle(particle, x, y, 0.2F, 0F, 0.2F, 0F, nil)
tfm.exec.displayParticle(particle, x, y, -0.2F, 0F, -0.2F, 0F, nil)
particle = math.random(0,2)
end
end
+Lucasmr
« Citoyen »
1387831680000
    • +Lucasmr#0000
    • Profil
    • Derniers messages
    • Tribu
#636
  0
Yteizz a dit :
Tenta isso :


function eventChatCommand(player, command)
if command == "fogos" then
fogos(math.random(0, 800), math.random(200, 300))
end
end

function fogos(x, y)
local particle = math.random(0,2)
for i=0,2 do
tfm.exec.displayParticle(particle, x, y, 0.2F, 0.2F, 0.2F, 0.2F, nil)
tfm.exec.displayParticle(particle, x, y, -0.2F, -0.2F, -0.2F, -0.2F, nil)
tfm.exec.displayParticle(particle, x, y, 0F, 0.2F, 0F, 0.2F, nil)
tfm.exec.displayParticle(particle, x, y, 0F, -0.2F, 0F, -0.2F, nil)
tfm.exec.displayParticle(particle, x, y, 0.2F, 0F, 0.2F, 0F, nil)
tfm.exec.displayParticle(particle, x, y, -0.2F, 0F, -0.2F, 0F, nil)
particle = math.random(0,2)
end
end

continua do msm jeito.. qando eu digito !fogos, só aparece uma vez =/
Stheblindd
« Citoyen »
1387831800000
    • Stheblindd#0000
    • Profil
    • Derniers messages
    • Tribu
#637
  0
+Lucasmr a dit :
continua do msm jeito.. qando eu digito !fogos, só aparece uma vez =/

Tenta colocar isso no eventLoop:
fogos(math.random(0, 800), math.random(200, 300))
Byenamo
« Citoyen »
1387833840000
    • Byenamo#0000
    • Profil
    • Derniers messages
    • Tribu
#638
  0
Onde ta o erro:


function eventNewPlayer(name)
system.bindMouse(name,true)
end

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

function eventMouse(name,x,y)
if first_person==nil and f==0 then
fogos(math.random(0, 800), math.random(200, 300))
end
end

function fogos(x, y)
local particle = math.random(0,2)
for i=0,2 do
tfm.exec.displayParticle(particle, x, y, 0.2F, 0.2F, 0.2F, 0.2F, nil)
tfm.exec.displayParticle(particle, x, y, -0.2F, -0.2F, -0.2F, -0.2F, nil)
tfm.exec.displayParticle(particle, x, y, 0F, 0.2F, 0F, 0.2F, nil)
tfm.exec.displayParticle(particle, x, y, 0F, -0.2F, 0F, -0.2F, nil)
tfm.exec.displayParticle(particle, x, y, 0.2F, 0F, 0.2F, 0F, nil)
tfm.exec.displayParticle(particle, x, y, -0.2F, 0F, -0.2F, 0F, nil)
particle = math.random(0,2)
end
end
Cripitormito
« Citoyen »
1387834080000
    • Cripitormito#0000
    • Profil
    • Derniers messages
#639
  0
como cria um mini-game no transformice ?
Brenower
« Censeur »
1387850580000
    • Brenower#0000
    • Profil
    • Derniers messages
    • Tribu
#640
  0
Cripitormito a dit :
como cria um mini-game no transformice ?

Topic-545113
  • Forums
  • /
  • Transformice
  • /
  • Archives
  • /
  • Seção Editor de Mapas e Modules
  • /
  • Guia Module + Tópico de Dúvidas
« ‹ 32 / 55 › »
© Atelier801 2018

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

Version 1.27