×

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
« ‹ 2 / 33 › »
Lua Snippets
Zfury
« Citoyen »
1380243420000
    • Zfury#0000
    • Profil
    • Derniers messages
#21
  0
Shamousey a dit :
I'm writing one right now!

Wonderful news! :D
Mymicemy
« Citoyen »
1380275040000
    • Mymicemy#0000
    • Profil
    • Derniers messages
    • Tribu
#22
  0
Make one mouse fly?
Xxninjazxx
« Citoyen »
1380279540000
    • Xxninjazxx#0000
    • Profil
    • Derniers messages
#23
  0
Can someone do:
Make the shaman a vampire
Make a selected amount of people a vampire
Immagetcheez
« Citoyen »
1380281340000
    • Immagetcheez#0000
    • Profil
    • Derniers messages
#24
  0
Aaaaaaaaaaah thank you I needed this so much

Mymicemy a dit :
Make one mouse fly?

function eventNewPlayer(name)
tfm.exec.bindKeyboard(name,32,true,true)
end

for name,player in pairs(tfm.get.room.playerList) do
eventNewPlayer(name)
end

function eventKeyboard(name,key,down,x,y)
if key==32 then
tfm.exec.movePlayer(name,0,0,true,0,-50,false)
end
end
Shamousey
« Consul »
1380285420000
    • Shamousey#0095
    • Profil
    • Derniers messages
    • Tribu
#25
  0
Xxninjazxx a dit :
Make the shaman a vampire

function eventNewGame()
for name,player in pairs(tfm.get.room.playerList) do
if player.isShaman then
tfm.exec.setVampirePlayer(name)
end
end
end
Abdeltif
« Citoyen »
1380287220000
    • Abdeltif#0000
    • Profil
    • Derniers messages
    • Tribu
#26
  0
Ban systeme
I really need it for thoose sillies aww
Mikuhl
« Citoyen »
1380287340000
    • Mikuhl#3311
    • Profil
    • Derniers messages
    • Tribu
#27
  0
Abdeltif a dit :
Ban systeme
I really need it for thoose sillies aww

Theres nothing you could do with lua right now for banning. Theres no way to kick the player or prevent them from joining the room.
Shamousey
« Consul »
1380287700000
    • Shamousey#0095
    • Profil
    • Derniers messages
    • Tribu
#28
  1
Abdeltif a dit :
Ban systeme
I really need it for thoose sillies aww

As Jaackster said, you can't really ban people (either kick them from the room or give them a mod-type ban. The closest you could do is kill them when they spawn, make sure they don't become shaman, stop them from using commands and other functionality, and occasionally ask them to leave (if you had chatMessage).
Soetdoring
« Citoyen »
1380288480000
    • Soetdoring#0000
    • Profil
    • Derniers messages
#29
  0
It's a bit laggy; is this just me?
Mikuhl
« Citoyen »
1380288480000
    • Mikuhl#3311
    • Profil
    • Derniers messages
    • Tribu
#30
  0
Soetdoring a dit :
It's a bit laggy; is this just me?

Im pretty sure that Tribe Houses are lower on the priority list for the TFM servers than the regular rooms are. Tribe Houses has always been laggy, I believe.
Championrs
« Citoyen »
1380288480000
    • Championrs#0000
    • Profil
    • Derniers messages
#31
  0
W
Abdeltif a dit :
Ban systeme
I really need it for thoose sillies aww

Well, my method is to spam message the guy until he crash. However, thats wrong i guess.
Taleyes
« Citoyen »
1380288600000
    • Taleyes#0000
    • Profil
    • Derniers messages
#32
  0
help the thing for the name colors doesn't work

[•] Init Error : For input string: "77BBAF"
[•] [Taleyes] Lua script loaded in 1 ms (4000 max)

and can you use multiple names with this?
Baasbase
« Citoyen »
1380288720000
    • Baasbase#0095
    • Profil
    • Derniers messages
#33
  0
Championrs a dit :
W

Well, my method is to spam message the guy until he crash. However, thats wrong i guess.

And people like you are the reason why tig had to disable tfm.exec.chatMessage
Abdeltif
« Citoyen »
1380288720000
    • Abdeltif#0000
    • Profil
    • Derniers messages
    • Tribu
#34
  0
I like this update it's so cool :D

http://i.imgur.com/WN2ke1J.png
Mikuhl
« Citoyen »
1380288840000
    • Mikuhl#3311
    • Profil
    • Derniers messages
    • Tribu
#35
  0
Taleyes a dit :

[•] Init Error : For input string: "77BBAF"

Make sure it still has the 0x

tfm.exec.setNameColor("Taleyes", 0x77BBAF)

And if you wanted to make everyones name this color just go to my 'make everyone ___' lua and replace what it does with that line of code.
Noobzaii
« Citoyen »
1380289380000
    • Noobzaii#0000
    • Profil
    • Derniers messages
    • Tribu
#36
  0
I got disconnected by "Activité Suspecte" everytime I try the flying.
Championrs
« Citoyen »
1380289380000
    • Championrs#0000
    • Profil
    • Derniers messages
#37
  0
Noobzaii a dit :
I got disconnected by "Activité Suspecte" everytime I try the flying.

Then stop
Mikuhl
« Citoyen »
1380289500000
    • Mikuhl#3311
    • Profil
    • Derniers messages
    • Tribu
#38
  0
Championrs a dit :
Then stop

Its not bad, I dont think the Tribe Houses were made to have lua in them, so tig probably forgot about that.
Championrs
« Citoyen »
1380289620000
    • Championrs#0000
    • Profil
    • Derniers messages
#39
  0
Jaackster a dit :
Its not bad, I dont think the Tribe Houses were made to have lua in them, so tig probably forgot about that.

Simply beacuse of the anti-hack tool tig has just like map 7?
Aslo:
[•] Init Error : transformice.lua:274: [string "transformice.lua"]:1: '=' expected
Abdeltif
« Citoyen »
1380289740000
    • Abdeltif#0000
    • Profil
    • Derniers messages
    • Tribu
#40
  0
Championrs a dit :
Simply beacuse of the anti-hack tool tig has just like map 7?
Aslo:
[•] Init Error : transformice.lua:274: [string "transformice.lua"]:1: '=' expected

Can u copy paste line 274 so we can see it please ?
  • Forums
  • /
  • Transformice
  • /
  • Modules
  • /
  • Lua Snippets
« ‹ 2 / 33 › »
© Atelier801 2018

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

Version 1.27