Lua Snippets |
Mar4e 1380298620000
| | ||
[Modéré par Ramenfrog, raison : Spam.] |
Bumblet « Citoyen » 1380305760000
| 0 | ||
I dig this |
Moesappel « Citoyen » 1380306300000
| 0 | ||
How to add .!mort ? |
Shamousey « Consul » 1380306300000
| 0 | ||
a dit : |
Tailtong « Citoyen » 1380306900000
| 0 | ||
a simpler way is just a dit : |
Taleyes « Citoyen » 1380306900000
| 0 | ||
is it normal that the skills from a shaman don't work with the code to make everyone shaman? |
Mymicemy « Citoyen » 1380306900000
| 0 | ||
EDIT: Nevermind |
Typenick « Citoyen » 1380306900000
| 0 | ||
Tailtong a dit : Won't it just kill anyone who uses any command? As a side note, has anyone got an elegant way to split strings in lua? It'd be nice to have that in default library but duh. |
Tailtong « Citoyen » 1380307020000
| 0 | ||
well i had !vamp and !death in my tribe house and !vamp didn't kill, if that's what you're asking |
Shamousey « Consul » 1380307200000
| 0 | ||
Taleyes a dit : Yes, people made a shaman through tfm.exec.setShaman() aren't meant to have skills. This was Tig's idea for solving the fact we wanted a way to disable skills. Tailtong a dit : And what was the code you had for that? Typenick is right that it'd kill anyone that uses any command. |
Mymicemy « Citoyen » 1380307560000
| 0 | ||
What's wrong with this? (I want write !fly and fly) a dit : Help |
Tailtong « Citoyen » 1380307680000
| 0 | ||
Shamousey a dit : function eventChatCommand(name, death) tfm.exec.killPlayer(name) end function eventChatCommand(name, vamp) tfm.exec.setVampirePlayer(name) end |
Taleyes « Citoyen » 1380308040000
| 0 | ||
Shamousey a dit : is there a way to let them have their skills or not? |
Mikuhl « Citoyen » 1380308040000
| 0 | ||
Taleyes a dit : nope |
Typenick « Citoyen » 1380308340000
| 0 | ||
a dit : First (0th, actually) element is nil for some reason but it works fine otherwise. |
Xxninjazxx « Citoyen » 1380309360000
| 0 | ||
Here's a command to make people shaman if they type !sham (You can change it though) a dit : |
Mymicemy « Citoyen » 1380309720000
| 0 | ||
Xxninjazxx a dit : function eventChatCommand(name, sham) tfm.exec.setShaman(name) end And this is simpler |
Xxninjazxx « Citoyen » 1380309840000
| 0 | ||
How come you can't do two commands at the same time (Or how would you do it) And can someone show a simple example where this is used? |
Bumblet « Citoyen » 1380312300000
| 0 | ||
Not sure |
Shamousey « Consul » 1380313200000
| 0 | ||
Mymicemy a dit : That would work, but wouldn't allow for multiple commands. Xxninjazxx a dit : You can. If you were trying something like this, it wouldn't work. Multiple Commands a dit : Hopefully this example will help you out. Xxninjazxx a dit : Check the OP of the Module API thread, there's a flying example that uses keyboards. |