Lua Snippets |
Xxninjazxx « Citoyen » 1380314580000
| 0 | ||
Oh I didn't realize you had to put elseif instead of if for the second command |
Shamousey « Consul » 1380315120000
| 0 | ||
Xxninjazxx a dit : You could use another if statement, but generally elseifs have better performance. |
Xxninjazxx « Citoyen » 1380315240000
| 0 | ||
Here's a small command line: a dit : Commands are: !sham to become shaman !death to die !vamp to become a vampire !snow to make it snow I'm still adding more |
Tailtong « Citoyen » 1380315480000
| 0 | ||
last i checked tfm.exec.killPlayer doesn't work |
Xxninjazxx « Citoyen » 1380315480000
| 0 | ||
works for me But I'm alone so I don't know if it will work with others |
Tailtong « Citoyen » 1380315720000
| 0 | ||
oh it works now |
0 | ||
Can someone say me the code for !help ? |
Xxninjazxx « Citoyen » 1380316260000
| 0 | ||
a dit : Updated: !sham for shaman !vamp for vampire !death to die !snow to make it snow !meep to get meep ![color] to change name color where color is: black, white, red, orange, yellow, green, blue, or purple |
0 | ||
Xxninjazxx a dit : Can you make a command !help and *your editable text saying help* |
Xxninjazxx « Citoyen » 1380316620000
| 0 | ||
Will do lol commands are the only things I know how to do |
0 | ||
Xxninjazxx a dit : =o thankss!! |
Tailtong « Citoyen » 1380316800000
| 0 | ||
ninjaz, wait i will do it for him |
Xxninjazxx « Citoyen » 1380316800000
| 0 | ||
Okay I just realized he wanted it editable but I didn't know how to do that (I'll still add a help command to the list) |
Shamousey « Consul » 1380317040000
| 0 | ||
--U NEED SUM HELP?! If you want to edit the help, just change what's on the chatMessage line. Note that you can't use chatMessage in your tribe house, though. function eventChatCommand(name,command) if command=="help" then tfm.exec.chatMessage("<J>Here is your help, good sir!",name) end end |
Tailtong « Citoyen » 1380317160000
| 0 | ||
function eventChatCommand(name,command) if command=="help" then ui.addPopup(1, 0, "your help text here", nil, your x position here, your y position here, your width here) end end wow bad ninja |
0 | ||
Shamousey a dit : [•] You don't have the right to use this function (tfm.exec.chatMessage). |
Xxninjazxx « Citoyen » 1380317160000
| 0 | ||
I think you could use print("helphere") I'm not sure though |
Tailtong « Citoyen » 1380317280000
| 0 | ||
print prints it for the programmer only |
Kittycattfm « Citoyen » 1380317940000
| 0 | ||
Xxninjazxx a dit : Ok. Wings are cool. |
Xxninjazxx « Citoyen » 1380318420000
| 0 | ||
Tailtong a dit : Well then the person who enters the program knows the commands (If you put it first) |