×

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
  • /
  • Modules
  • /
  • Lua Snippets
« ‹ 5 / 33 › »
Lua Snippets
Xxninjazxx
« Citoyen »
1380314580000
    • Xxninjazxx#0000
    • Profil
    • Derniers messages
#81
  0
Oh I didn't realize you had to put elseif instead of if for the second command
Shamousey
« Consul »
1380315120000
    • Shamousey#0095
    • Profil
    • Derniers messages
    • Tribu
#82
  0
Xxninjazxx a dit :
Oh I didn't realize you had to put elseif instead of if for the second command

You could use another if statement, but generally elseifs have better performance.
Xxninjazxx
« Citoyen »
1380315240000
    • Xxninjazxx#0000
    • Profil
    • Derniers messages
#83
  0
Here's a small command line:
a dit :
function eventChatCommand(name,command)
if command=="sham" then
tfm.exec.setShaman(name) --makes a player shaman if !sham
elseif command=="death" then
tfm.exec.killPlayer(name) --Kills player if !death
elseif command=="vamp" then
tfm.exec.setVampirePlayer(name) --Makes a player vampire if !vamp
elseif command=="snow" then
tfm.exec.snow() --Snows if !snow
end
end

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
    • Tailtong#0000
    • Profil
    • Derniers messages
    • Tribu
#84
  0
last i checked tfm.exec.killPlayer doesn't work
Xxninjazxx
« Citoyen »
1380315480000
    • Xxninjazxx#0000
    • Profil
    • Derniers messages
#85
  0
works for me

But I'm alone so I don't know if it will work with others
Tailtong
« Citoyen »
1380315720000
    • Tailtong#0000
    • Profil
    • Derniers messages
    • Tribu
#86
  0
oh it works now
Zutto
« Citoyen »
1380316140000
    • Zutto#4451
    • Profil
    • Derniers messages
    • Tribu
#87
  0
Can someone say me the code for !help ?
Xxninjazxx
« Citoyen »
1380316260000
    • Xxninjazxx#0000
    • Profil
    • Derniers messages
#88
  0
a dit :
function eventChatCommand(name,command)
if command=="sham" then
tfm.exec.setShaman(name)
elseif command=="death" then
tfm.exec.killPlayer(name)
elseif command=="vamp" then
tfm.exec.setVampirePlayer(name)
elseif command=="snow" then
tfm.exec.snow()
elseif command=="meep" then
tfm.exec.giveMeep(name)
elseif command=="white" then
tfm.exec.setNameColor("name", 0xffffff)
elseif command=="black" then
tfm.exec.setNameColor("name", 0x000000)
elseif command=="red" then
tfm.exec.setNameColor("name", 0xFF0000)
elseif command=="blue" then
tfm.exec.setNameColor("name", 0x0D00FF)
elseif command=="yellow" then
tfm.exec.setNameColor("name", 0xFFEE00)
elseif command=="green" then
tfm.exec.setNameColor("name", 0x11FF00)
elseif command=="orange" then
tfm.exec.setNameColor("name", 0xFFAE00)
elseif command=="purple" then
tfm.exec.setNameColor("name", 0xD400FF)
end
end

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
Zutto
« Citoyen »
1380316620000
    • Zutto#4451
    • Profil
    • Derniers messages
    • Tribu
#89
  0
Xxninjazxx 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

Can you make a command !help and *your editable text saying help*
Xxninjazxx
« Citoyen »
1380316620000
    • Xxninjazxx#0000
    • Profil
    • Derniers messages
#90
  0
Will do

lol commands are the only things I know how to do
Zutto
« Citoyen »
1380316620000
    • Zutto#4451
    • Profil
    • Derniers messages
    • Tribu
#91
  0
Xxninjazxx a dit :
Will do

=o thankss!!
Tailtong
« Citoyen »
1380316800000
    • Tailtong#0000
    • Profil
    • Derniers messages
    • Tribu
#92
  0
ninjaz, wait i will do it for him
Xxninjazxx
« Citoyen »
1380316800000
    • Xxninjazxx#0000
    • Profil
    • Derniers messages
#93
  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
    • Shamousey#0095
    • Profil
    • Derniers messages
    • Tribu
#94
  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
    • Tailtong#0000
    • Profil
    • Derniers messages
    • Tribu
#95
  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
Zutto
« Citoyen »
1380317160000
    • Zutto#4451
    • Profil
    • Derniers messages
    • Tribu
#96
  0
Shamousey a dit :
--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("&lt;J&gt;Here is your help, good sir!",name)
end
end

[•] You don't have the right to use this function (tfm.exec.chatMessage).
Xxninjazxx
« Citoyen »
1380317160000
    • Xxninjazxx#0000
    • Profil
    • Derniers messages
#97
  0
I think you could use print("helphere")

I'm not sure though
Tailtong
« Citoyen »
1380317280000
    • Tailtong#0000
    • Profil
    • Derniers messages
    • Tribu
#98
  0
print prints it for the programmer only
Kittycattfm
« Citoyen »
1380317940000
    • Kittycattfm#0000
    • Profil
    • Derniers messages
    • Tribu
#99
  0
Xxninjazxx a dit :

!vamp for vampire

Ok.

http://i.imgur.com/1GP2yHp.png
Wings are cool.
Xxninjazxx
« Citoyen »
1380318420000
    • Xxninjazxx#0000
    • Profil
    • Derniers messages
#100
  0
Tailtong a dit :
print prints it for the programmer only

Well then the person who enters the program knows the commands (If you put it first)
  • Forums
  • /
  • Transformice
  • /
  • Modules
  • /
  • Lua Snippets
« ‹ 5 / 33 › »
© Atelier801 2018

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

Version 1.27