×

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
« ‹ 7 / 33 › »
Lua Snippets
Tailtong
« Citoyen »
1380363000000
    • Tailtong#0000
    • Profil
    • Derniers messages
    • Tribu
#121
  0
that'd be spammy and ugly though
Kirilkiril
« Citoyen »
1380363000000
    • Kirilkiril#0000
    • Profil
    • Derniers messages
#122
  0
Fly script doesnt work
Mymicemy
« Citoyen »
1380364140000
    • Mymicemy#0000
    • Profil
    • Derniers messages
    • Tribu
#123
  0
Edit2: How to change map with command(ex: !skip) randomly?
Xxninjazxx
« Citoyen »
1380371700000
    • Xxninjazxx#0000
    • Profil
    • Derniers messages
#124
  0
Kirilkiril a dit :
Can u make a command for revive player

and

Fly command?

I'm still working on it. I added instant respawning because why WOULDN'T you want that.
I also added
!cheese to get cheese
!hole to go to hole if you have cheeese
!win to instantly go in the hole no matter what
and !refresh to make everyone normal mice again

things I'm working on before I'm satisfied:
Fly command
Ffa command
ice yourself command
Tailtong
« Citoyen »
1380371700000
    • Tailtong#0000
    • Profil
    • Derniers messages
    • Tribu
#125
  0
!refresh in tribus the minigame refreshes the map
Xxninjazxx
« Citoyen »
1380371820000
    • Xxninjazxx#0000
    • Profil
    • Derniers messages
#126
  0
that's what I did
Ethanrockz
« Citoyen »
1380371820000
    • Ethanrockz#0000
    • Profil
    • Derniers messages
    • Tribu
#127
  0
HOW DO YOU MAKE A TELEPORT COMMAND?

(SRY CAPS)
Kirilkiril
« Citoyen »
1380371940000
    • Kirilkiril#0000
    • Profil
    • Derniers messages
#128
  0
Xxninjazxx a dit :
I'm still working on it. I added instant respawning because why WOULDN'T you want that.
I also added
!cheese to get cheese
!hole to go to hole if you have cheeese
!win to instantly go in the hole no matter what
and !refresh to make everyone normal mice again

things I'm working on before I'm satisfied:
Fly command
Ffa command
ice yourself command

where is it?
Manacer
« Citoyen »
1380373320000
    • Manacer#0000
    • Profil
    • Derniers messages
    • Tribu
#129
  0
http://i.imgur.com/jD5ABwKl.png

http://i.imgur.com/93Hjhwd.png
:B
Taleyes
« Citoyen »
1380374520000
    • Taleyes#0000
    • Profil
    • Derniers messages
#130
  0
ah i really need a !refresh thing what's the code?

and is it possible to fly (the shaman skill, not the spacebar thing.)
Tailtong
« Citoyen »
1380374640000
    • Tailtong#0000
    • Profil
    • Derniers messages
    • Tribu
#131
  0
Taleyes a dit :
ah i really need a !refresh thing what's the code?

function eventChatCommand(name,command)
if command=="refresh" then
tfm.exec.newGame()
end
end
Papero
« Citoyen »
1380376320000
    • Papero#9240
    • Profil
    • Derniers messages
    • Tribu
#132
  0
Mymicemy a dit :
Edit2: How to change map with command(ex: !skip) randomly?

call new game without any arguements

Tailtong a dit :
function eventChatCommand(name,command)
if command=="refresh" then
tfm.exec.newGame()
end
end

this code tailtong made should work fine just switch refresh for skip if you wanted it to be !skip
Xxninjazxx
« Citoyen »
1380376440000
    • Xxninjazxx#0000
    • Profil
    • Derniers messages
#133
  0
Here's the ever expanding command line that-I-don't-really-need-to-code-because-utility-has-all-this+more
a dit :
print("Commands are: !sham !death !vamp !snow ! meep and ![Color] !cheese !hole !win !noafk")
print("Acceptable colors are: Black, White, Red, orange, yellow, green, and blue")
print("Script by Xxninjazxx")

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)
elseif command=="refresh" then
tfm.exec.newGame()
elseif command=="cheese" then
tfm.exec.giveCheese(name)
elseif command=="hole" then
tfm.exec.playerVictory(name)
elseif command=="win" then
tfm.exec.giveCheese(name)
tfm.exec.playerVictory(name)
end
end
function eventPlayerDied(playerName)
tfm.exec.respawnPlayer(playerName)
end

a text

E: I think I'm going to work on something else now
Tailtong
« Citoyen »
1380377160000
    • Tailtong#0000
    • Profil
    • Derniers messages
    • Tribu
#134
  0
here is tribus the minigame 2.0 in its might
a dit :
function eventNewGame()
tfm.exec.setUIMapName("Map - <N><U>".. tfm.get.room.currentMap.. "</U>")
ui.addPopup(3, 0, "<font size='13.5' >Loaded map ".. tfm.get.room.currentMap.. ".", (name), 13, 277, 100)
end
function eventChatCommand(name, command)
if command=="cheese" then
tfm.exec.giveCheese(name)
elseif command=="win" then
tfm.exec.giveCheese(name)
tfm.exec.playerVictory(name)
elseif command=="death" then
tfm.exec.killPlayer(name)
elseif command=="respawn" then
tfm.exec.killPlayer(name)
tfm.exec.respawnPlayer(name)
elseif command=="vamp" then
tfm.exec.setVampirePlayer(name)
elseif command=="help" then
ui.addPopup(1, 0, "<font size='13.5' >Welcome to Tribes : The minigame by Tailtong! Command list : !cheese, !win, !death, !respawn, !vamp, !tfmVer, !apiVer.</font>", (name), 13, 30, 200)--!refresh is not shown here for reasons
elseif command=="refresh" then
tfm.exec.newGame()
elseif command=="tfmVer" then
ui.addPopup(2, 0, "<font size='13.5' >Running TFM : ".. tfm.get.misc.transformiceVersion, (name), 13, 277, 100)
elseif command=="apiVer" then
ui.addPopup(2, 0, "<font size='13.5' >Running API : ".. tfm.get.misc.apiVersion, (name), 13, 277, 100)
elseif command=="shaman" or command=="sham" then
tfm.exec.setShaman(name)
tfm.exec.setUIShamanName("<N>".. (name).. "</N>")
end
end
function eventNewPlayer(name)
tfm.exec.respawnPlayer(name)
ui.addPopup(4, 0, "<font size='13.5' >New to this minigame? <U>Type !help.</U></font>", (name), 13, 277, 100)
end

this version includes indents and more commands
feel free to run/edit it
Xxninjazxx
« Citoyen »
1380377700000
    • Xxninjazxx#0000
    • Profil
    • Derniers messages
#135
  0
I HAVE MORE COMMANDS THEN YOU TAILTONG
but you have fancy popups and stuff
Shamousey
« Consul »
1380377820000
    • Shamousey#0095
    • Profil
    • Derniers messages
    • Tribu
#136
  0
I have about 90 commands in #utility, do I win yet?
Zutto
« Citoyen »
1380377940000
    • Zutto#4451
    • Profil
    • Derniers messages
    • Tribu
#137
  0
Shamousey a dit :
I have about 90 commands in #utility, do I win yet?

OMG
Xxninjazxx
« Citoyen »
1380377940000
    • Xxninjazxx#0000
    • Profil
    • Derniers messages
#138
  0
No, because I only learned lua yesterday
Hophipmice
« Citoyen »
1380378060000
    • Hophipmice#0000
    • Profil
    • Derniers messages
    • Tribu
#139
  0
Shamousey a dit :
I have about 90 commands in #utility, do I win yet?

92 I have here :)
Tailtong
« Citoyen »
1380378360000
    • Tailtong#0000
    • Profil
    • Derniers messages
    • Tribu
#140
  0
Shamousey a dit :
I have about 90 commands in #utility, do I win yet?

yeah you get 0.00001 fraises
  • Forums
  • /
  • Transformice
  • /
  • Modules
  • /
  • Lua Snippets
« ‹ 7 / 33 › »
© Atelier801 2018

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

Version 1.27