| Lua Snippets |
| 1380298620000
| | ||
| [Modéré par Ramenfrog, raison : Spam.] |
| « Citoyen » 1380305760000
| 0 | ||
| I dig this |
| « Citoyen » 1380306300000
| 0 | ||
| How to add .!mort ? |
| « Consul » 1380306300000
| 0 | ||
a dit : |
| « Citoyen » 1380306900000
| 0 | ||
| a simpler way is just a dit : |
| « Citoyen » 1380306900000
| 0 | ||
| is it normal that the skills from a shaman don't work with the code to make everyone shaman? |
| « Citoyen » 1380306900000
| 0 | ||
| EDIT: Nevermind |
| « 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. |
| « 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 |
| « 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. |
| « Citoyen » 1380307560000
| 0 | ||
| What's wrong with this? (I want write !fly and fly) a dit : Help |
| « Citoyen » 1380307680000
| 0 | ||
Shamousey a dit : function eventChatCommand(name, death) tfm.exec.killPlayer(name) end function eventChatCommand(name, vamp) tfm.exec.setVampirePlayer(name) end |
| « Citoyen » 1380308040000
| 0 | ||
Shamousey a dit : is there a way to let them have their skills or not? |
| « Citoyen » 1380308040000
| 0 | ||
Taleyes a dit : nope |
| « Citoyen » 1380308340000
| 0 | ||
a dit : First (0th, actually) element is nil for some reason but it works fine otherwise. |
| « Citoyen » 1380309360000
| 0 | ||
| Here's a command to make people shaman if they type !sham (You can change it though) a dit : |
| « Citoyen » 1380309720000
| 0 | ||
Xxninjazxx a dit : function eventChatCommand(name, sham) tfm.exec.setShaman(name) end And this is simpler |
| « 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? ![]() |
| « Citoyen » 1380312300000
| 0 | ||
| Not sure |
| « 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. |