Module API FAQ |
0 | ||
Shamousey i have a problem whit the popups How i can inplement: function eventChatCommand(name,command) if name=="Aritxy" or name=="Shamousey" or name=="Tigrounette" then if command=="example" then print("Here you'd put any command you only want the admins to be able to use.") end end if command=="exampletwo" then print("Anyone would be able to use this command.") end end In: function eventChatCommand(name,command) if command=="ayuda" then ui.addPopup(0,0,"<b>Conjugation</b> es un mini juego con la rotación de los mapas de vanilla y en los mapas, no hay chamán, pero los ratones, podéis conjugar dando un click en el sitio que queráis conjugar. <b>Comandos:</b> <b>!mort</b> - Es lo mismo que /mort, mueres.",name,270,200,300) elseif command=="mort" then tfm.exec.killPlayer(name) --Kills player if !mort end end |
Shamousey « Consul » 1380405840000
| 0 | ||
a dit : |
Epicshawty « Citoyen » 1380406140000
| 0 | ||
Dharakoid a dit : OCD wrong ;) |
Shamousey « Consul » 1380406260000
| 0 | ||
Epicshawty a dit : Don't tell people that their code is wrong just if you want to format it differently. It'll put people off, you'll make them think that something is wrong with their syntax when there isn't. |
0 | ||
Shamousey i fixed thanks very much!! --- |
Epicshawty « Citoyen » 1380407040000
| 0 | ||
Shamousey a dit : Okay, but it'll look much neater and more organized if all the syntaxes were the same. I'm sorry if I ticked you off :/ |
Shamousey « Consul » 1380407280000
| 0 | ||
Aritxy a dit : |
Epicshawty « Citoyen » 1380407520000
| 0 | ||
Shamousey a dit : Okay. Well time to not correct people when they're already correct :D |
0 | ||
Someone know the code to the !np code ? |
Shamousey « Consul » 1380409800000
| 0 | ||
a dit : Again, there's better ways of doing this, but this should help you get started. |
Manacer « Citoyen » 1380416100000
| 0 | ||
How to add a second page in a pop up lua please? (utility help) |
Shamousey « Consul » 1380416460000
| 0 | ||
Manacer a dit : #utility's help isn't actually a popup - it's lots of separate text areas. I'll post the code for it some time soon. |
Manacer « Citoyen » 1380416640000
| 0 | ||
Shamousey a dit : Okay thank ! :) |
Fluffyshine « Citoyen » 1380416760000
| 0 | ||
How can I disable sham skills? |
Byenamo « Citoyen » 1380417240000
| 0 | ||
Help with: a dit : . |
Shamousey « Consul » 1380418020000
| 0 | ||
Fluffyshine a dit : You can't disable shaman skills, however anyone made a shaman with tfm.exec.setShaman() doesn't have any skills, so you can use that. Byenamo a dit : You need to bind the key for it to work. Try adding tfm.exec.bindKeyboard("Byenamo",66,true,true) |
Byenamo « Citoyen » 1380418920000
| 0 | ||
Shamousey a dit : no was Edit : get! |
Ethanrockz « Citoyen » 1380473340000
| 0 | ||
When will the module tutoruial thing happen? e.e |
0 | ||
Can i put in Lua music mp3 code? |
Bengalstar « Citoyen » 1380473820000
| 0 | ||
hi for some reason I can't load anything at my tribe house with the lua command even though I was given the powers |