×

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
  • /
  • Hilos pasados
  • /
  • ¡Comparte tus códigos /lua!
1 / 19 › »
¡Comparte tus códigos /lua!
Shinlero
« Citoyen »
1380210540000
    • Shinlero#0000
    • Profil
    • Derniers messages
    • Tribu
#1
  1

http://i.imgur.com/YeqrxiL.png



http://i.imgur.com/lPAARLP.png





¡Comparte tus códigos! ...








Y aquí los códigos básicos:

Queso a dit :

tfm.exec.giveCheese("Playername")


Meep a dit :

tfm.exec.giveMeep("Playername")


Meeps a dit :


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


Vampiro a dit :

tfm.exec.setVampirePlayer("Playername")


Vampiros a dit :


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




RandomColor a dit :


function randomColor()
return "0x" .. string.format("%X", math.random(0x000000, 0xFFFFFF))
end

function eventLoop (currentTime, timeRemaining)
for i=1,100 do
for p,_ in pairs(tfm.get.room.playerList) do
tfm.exec.setNameColor(p, randomColor());
end
end
end


Texto a dit :

ui.addTextArea("1","Texto",name,"50","50","360","100","40","500")

Se puede ir cambiando las posiciones.


VolarConE a dit :

function eventNewPlayer(name)
for i,key in ipairs({83,40,69,16,8}) do
tfm.exec.bindKeyboard(name,key,true,true)
end
end

function eventKeyboard(name,key,down,x,y)
if key==83 or key==40 or key==69 then
tfm.exec.movePlayer(name,0,0,true,0,-50,true)
end
end

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


VolarEspacio a dit :

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.movePlayer(name,0,0,true,0,-50,false)
end
end


Respawnear a dit :


tfm.exec.respawnPlayer(Playername)


HacerATodosChaman a dit :


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



CambiarElColorDelNombreConHexadecimalesEjemploFFFFFF a dit :

tfm.exec.setNameColor("Playername", 0xffffff)


Nieve a dit :

tfm.exec.snow()


JugarMapasInnexistentes a dit :

http://pastebin.com/LjnwMTJG


ManzanasPorTodoElLugar a dit :

function eventChatCommand (player, command)
if command == "apples" then

size = 29;
width = 5;
height = 5;

x0 = tfm.get.room.playerList[player].x + 30 + size;
y0 = tfm.get.room.playerList[player].y + 30 - size;

for j=0, size*(height-1), size do
for i=0, size*(width-1), size do
tfm.exec.addShamanObject (39, x0+i, y0-j);
end
end

end
end


ClickParaObjetos a dit :

system.bindMouse("Playername");

function eventMouse(playerName, x, y)
tfm.exec.addShamanObject("X", x, y);
end

Donde dice "X" pongan un numero del 1 al 62.

Listado por Dolni y Meekymoose]

1 : Cajas Pequeñas
2 : Cajas Grandes
3 : Tablas Pequeñas
4 : Tablas Grandes
5 : Nada :(
6 : Pelotas
7 : Trampolines
8 : Nada :(
9 : Nada :(
10 : Yunques
11 : Nada :(
12 : Nada :(
13 : Nada :(
14 : Nada :(
15 : Nada :(
16 : Nada :(
17 : Cañones Tiro Arriba
18 : Nada :(
19 : Cañones Tiro Derecho
20 : Cañones Tiro Izquierdo
21 : Nada :(
22 : Bombas
23 : Nada :(
24 : Chispas
25 : Queso (bug)
26 : Portales Azules
27 : Portales Rojos
28 : Globos
29 : Nada :(
30 : Nada :(
31 : Nada :(
32 : Runa Tiro Derecho
33 : Nada :(
34 : Bolas de Nieve
35 : Flechas
36 : Nada :(
37 : Nada :(
38 : Nada :(
39 : Manzanas
40 : Obejas
41 : Borrador de objetos (bug)
42 : Nada :(
43 : Nada :(
44 : Nada :8
45 : Tablas de Hielo
46 : Tablas de Chocolate
47 : Nada :(
48 : Ratón Caja Pequeña (bug)
49 : Ratón Caja Grande (bug)
50 : Ratón Yunque (bug)
51 : Nada :(
52 : Nada :(
53 : Nada :(
54 : Nada :(
55 : Nada :(
56 : Nada :(
57 : Nubes
58 : Nada :8
59 : Nada :(
60 : Tabla Diminuta
61 : Caja Pesada con el Corazon
62 : Runa Fija Tiro Derecho
101 - caja pequeña de san valentín
102 - caja pequeña steampunk
201 - caja grande de san valentín
202 - caja grande steampunk
301 - tabla pequeña de san valentín
302 - tabla pequeña steampunk
401 - tabla larga de san valentín
402 - tabla larga steampunk
1002 - yunque steampunk
2801 - globo de gato
2802 - globo de engranaje
2803 - globo a rayas rosadas y blancas
2804 - globo steampunk
2805 - globo de sapo
2806 - globo de corazón


ObjetosConClicks a dit :


Script (Click)
==========================

Para usarlo deben escribir como comando el nombre del objeto seguido de las dimensiones, en el siguiente formato: !Objeto ANCHOxALTO

Ejemplos:

!apples 5x5
!frozen mouse 8x6
!bubble 10x2
!balloon 14x4
!large box 3x3

Por el momento los objetos solo aparecen a la derecha del ratón, en la próxima versión aparecerán hacia donde esté mirando. Y puede que también cree un 'acceso rápido' donde se pueda guardar por ejemplo "!apples 3x3" y luego se coloque directamente con una tecla o comando más corto.

¡Gracias Hakureimouse!

OvejanizarUsuarios a dit :

function eventChatCommand (player, command)
local args = {}
for arg in command:gmatch ("[^%s]+") do
table.insert (args, arg)
end

if args[1] == "oveja" and args[2] == "todos" then
for name,mouse in pairs(tfm.get.room.playerList) do
tfm.exec.killPlayer (name)
tfm.exec.addShamanObject (40, mouse.x, mouse.y)
end
elseif args[1] == "oveja" and tfm.get.room.playerList[capitalize(args[2])] then
local mouse = tfm.get.room.playerList[capitalize(args[2])]
tfm.exec.killPlayer (capitalize(args[2]))
tfm.exec.addShamanObject (40, mouse.x, mouse.y)
end
end

function capitalize (word)
return string.upper (word:sub(1,1)) .. string.lower (word:sub(2));
end

============
!oveja Username


TeletransportarseConClicks a dit :

system.bindMouse("Playername")


function eventMouse(name, x, y)
tfm.exec.movePlayer(name, x, y, false, 0, 1, false)
end


NOTA: Algunos estaran en Pastebin porque sino al editar todo el primer post se modifican.

Dernière modification le 1403567160000
Kioxo
« Citoyen »
1380210900000
    • Kioxo#0000
    • Profil
    • Derniers messages
#2
  0
Yo no entendí lo de Lua
Redigit
« Citoyen »
1380211020000
    • Redigit#0000
    • Profil
    • Derniers messages
    • Tribu
#3
  0
tfm.exec.giveCheese("Redigit")

tfm.exec.giveMeep("Redigit")


Para tener queso y el meep, en vez de redigit pones tu nick
Kioxo
« Citoyen »
1380211320000
    • Kioxo#0000
    • Profil
    • Derniers messages
#4
  0
tfm.exec.setVampirePlayer("Kioxo")
Gaston
« Censeur »
1380211440000
    • Gaston#1499
    • Profil
    • Derniers messages
    • Tribu
#5
  0
De parte de Hakureimouse, que me servirá bastante a decir verdad

function randomColor()
return "0x" .. string.format("%X", math.random(0x000000, 0xFFFFFF))
end

function eventLoop (currentTime, timeRemaining)
for i=1,100 do
for p,_ in pairs(tfm.get.room.playerList) do
tfm.exec.setNameColor(p, randomColor());
end
end
end
Shinlero
« Citoyen »
1380212040000
    • Shinlero#0000
    • Profil
    • Derniers messages
    • Tribu
#6
  0
Gastuu a dit :
De parte de Hakureimouse, que me servirá bastante a decir verdad

function randomColor()
return "0x" .. string.format("%X", math.random(0x000000, 0xFFFFFF))
end

function eventLoop (currentTime, timeRemaining)
for i=1,100 do
for p,_ in pairs(tfm.get.room.playerList) do
tfm.exec.setNameColor(p, randomColor());
end
end
end

¿Ese es el de color random en los nombres, no?
Gaston
« Censeur »
1380212460000
    • Gaston#1499
    • Profil
    • Derniers messages
    • Tribu
#7
  0
Shinlero a dit :
¿Ese es el de color random en los nombres, no?

Ese mismo.
Nievesagrada
« Citoyen »
1380213240000
    • Nievesagrada#0000
    • Profil
    • Derniers messages
    • Tribu
#8
  0
Para que sirve? :O
Zutto
« Citoyen »
1380216180000
    • Zutto#4451
    • Profil
    • Derniers messages
    • Tribu
#9
  0
tfm.exec.giveCheese("Playername")

tfm.exec.giveMeep("Playername")

tfm.exec.setUIMapName("Text")

tfm.exec.setUIShamanName("Text")

tfm.exec.snow()

tfm.exec.setShaman("Playername")
Meekymoose
« Citoyen »
1380216780000
    • Meekymoose#0000
    • Profil
    • Derniers messages
    • Tribu
#10
  0
Para volar: :'3

http://pastebin.com/SJYvSrEb

No me agradezcan a mí, es gracias a Shamousey *-*
Kioxo
« Citoyen »
1380216960000
    • Kioxo#0000
    • Profil
    • Derniers messages
#11
  0
Meekymoose a dit :
Para volar: :'3

http://pastebin.com/SJYvSrEb

No me agradezcan a mí, es gracias a Shamousey *-*

Oh está bueno
http://pastebin.com/MkKNfbPg

Es de woterek recien lo puso en el chat lua
Urimg
« Citoyen »
1380217200000
    • Urimg#0000
    • Profil
    • Derniers messages
    • Tribu
#12
  0
Meekymoose a dit :
Para volar: :'3

http://pastebin.com/SJYvSrEb

No me agradezcan a mí, es gracias a Shamousey *-*

Ese como es no me sale xD
Hakureimouse
« Citoyen »
1380217440000
    • Hakureimouse#0000
    • Profil
    • Derniers messages
    • Tribu
#13
  0
Gastuu a dit :
De parte de Hakureimouse, que me servirá bastante a decir verdad

function randomColor()
return "0x" .. string.format("%X", math.random(0x000000, 0xFFFFFF))
end

function eventLoop (currentTime, timeRemaining)
for i=1,100 do
for p,_ in pairs(tfm.get.room.playerList) do
tfm.exec.setNameColor(p, randomColor());
end
end
end

Ahora lo bajé a 60 porque con 100 aún se me crasheaba la tribu de vez en cuando xD
(se laguea mucho y la gente termina en una sala fantasma)
Auzz
« Citoyen »
1380219240000
    • Auzz#9717
    • Profil
    • Derniers messages
    • Tribu
#14
  0
Meekymoose a dit :
Para volar: :'3

http://pastebin.com/SJYvSrEb

No me agradezcan a mí, es gracias a Shamousey *-*

Ayudenme no se como :C
Zutto
« Citoyen »
1380219600000
    • Zutto#4451
    • Profil
    • Derniers messages
    • Tribu
#15
  1
Codigo para volar presionando E:

function eventNewPlayer(name)
for i,key in ipairs({83,40,69}) do
tfm.exec.bindKeyboard(name,key,true,true)
end
end

function eventKeyboard(name,key,down,x,y)
if key==83 or key==40 or key==69 then
tfm.exec.movePlayer(name,0,0,true,0,-50,true)
end
end

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

Sólo copien eso y peguenlo en /lua en la casa de la tribu.
Auzz
« Citoyen »
1380220380000
    • Auzz#9717
    • Profil
    • Derniers messages
    • Tribu
#16
  0
Aritxy a dit :
Codigo para volar presionando E:

function eventNewPlayer(name)
for i,key in ipairs({83,40,69}) do
tfm.exec.bindKeyboard(name,key,true,true)
end
end

function eventKeyboard(name,key,down,x,y)
if key==83 or key==40 or key==69 then
tfm.exec.movePlayer(name,0,0,true,0,-50,true)
end
end

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

Sólo copien eso y peguenlo en /lua en la casa de la tribu.

Ty prah
Minstens
« Censeur »
1380222420000
    • Minstens#0000
    • Profil
    • Derniers messages
    • Tribu
#17
  0
function eventNewPlayer(name)
for i,key in ipairs({83,40,69}) do
tfm.exec.bindKeyboard(name,key,true,true)
end
end

function eventKeyboard(name,key,down,x,y)
if key==83 or key==40 or key==69 then
tfm.exec.movePlayer(name,0,0,true,0,-50,true)
end
end

ui.addTextArea("1","TEXTO",name,"50","50","360","100","40","500")

tfm.exec.giveMeep(name)

tfm.exec.respawnPlayer(name)

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

tfm.exec.newGame("@3060723","@3596569","@2898383","@3675074")
Zutto
« Citoyen »
1380223080000
    • Zutto#4451
    • Profil
    • Derniers messages
    • Tribu
#18
  0
Text Area:

ui.addTextArea("1","/c Aritxy Hello!",name,"50","50","360","100","40","500")
Lolyylucia
« Citoyen »
1380223980000
    • Lolyylucia#0000
    • Profil
    • Derniers messages
    • Tribu
#19
  0
Para que sirven los codigos lua?
Que es un codigo lua?
Donde se pone?
Como pongo el mío?
Como se hace?
Chidolitoo
« Citoyen »
1380228060000
    • Chidolitoo#0000
    • Profil
    • Derniers messages
#20
  1
Lolyylucia a dit :
Para que sirven los codigos lua?
Que es un codigo lua?
Donde se pone?
Como pongo el mío?
Como se hace?

Eso sirve para testear diferentes opciones que son utiles en salas como /module que son hechas a base de lua y se pone /lua y pones esos codigos y solo funciona en la casa de la tribu
  • Forums
  • /
  • Transformice
  • /
  • Archives
  • /
  • Hilos pasados
  • /
  • ¡Comparte tus códigos /lua!
1 / 19 › »
© Atelier801 2018

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

Version 1.27