×

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
  • /
  • Archives
  • /
  • Module API FAQ
« ‹ 17 / 38 › »
Module API FAQ
Tailtong
« Citoyen »
1380473820000
    • Tailtong#0000
    • Profil
    • Derniers messages
    • Tribu
#321
  0
Bengalstar a dit :
hi for some reason I can't load anything at my tribe house with the lua command even though I was given the powers

go to another room for 1-2 mins and then go back to th and reload
Bengalstar
« Citoyen »
1380474060000
    • Bengalstar#0000
    • Profil
    • Derniers messages
#322
  0
Tailtong a dit :
go to another room for 1-2 mins and then go back to th and reload

ok ty tail
still won't work
Shamousey
« Consul »
1380478800000
    • Shamousey#0095
    • Profil
    • Derniers messages
    • Tribu
#323
  0
Aritxy a dit :
Can i put in Lua music mp3 code?

No, you can't.

Bengalstar a dit :
hi for some reason I can't load anything at my tribe house with the lua command even though I was given the powers

Have you ever been banned for hacking?
Manacer
« Citoyen »
1380478920000
    • Manacer#0000
    • Profil
    • Derniers messages
    • Tribu
#324
  0
Shamousey help me please my code :

http://pastebin.com/UB9g5LyS

Can you add a command in my script :

- !fly : to fly
- And the help command with two page

Thank pro ! <3
Zyx
« Censeur »
1380578400000
    • Zyx#8690
    • Profil
    • Derniers messages
#325
  0
How do you change your name color if you can't do it since the new tribe member name color has come?
Nezemaaa
« Citoyen »
1380640740000
    • Nezemaaa#0000
    • Profil
    • Derniers messages
#326
  0
Helpfull. Thanks
Shamousey
« Consul »
1380644040000
    • Shamousey#0095
    • Profil
    • Derniers messages
    • Tribu
#327
  0
Tigrounette seems to have added something new to the tfm.exec package today relating to shaman skills. It only has one argument, true or false. The API is now on version 0.12.

a dit :
tfm.exec.disableAllShamanSkills(true)

 
Shinark
« Citoyen »
1380644700000
    • Shinark#0000
    • Profil
    • Derniers messages
#328
  0
Shamousey a dit :
Tigrounette seems to have added something new to the tfm.exec package today relating to shaman skills. It only has one argument, true or false. The API is now on version 0.12.

 

We'll soon be able to disable shaman skills.
Shamousey
« Consul »
1380644940000
    • Shamousey#0095
    • Profil
    • Derniers messages
    • Tribu
#329
  0
Shinark a dit :
We'll soon be able to disable shaman skills.

You already could using setShaman, but disableAllShamanSkills is already ingame.
Thewav
« Citoyen »
1380645600000
    • Thewav#0095
    • Profil
    • Derniers messages
    • Tribu
#330
  0
Shinark a dit :
We'll soon be able to disable shaman skills.

A way to fisable skilss http://pastebin.com/XAxKXfkb
Shamousey
« Consul »
1380646500000
    • Shamousey#0095
    • Profil
    • Derniers messages
    • Tribu
#331
  0
Thewav a dit :
A way to fisable skilss http://pastebin.com/XAxKXfkb

Or just use tfm.exec.disableAllShamanSkills(true)
Ethanrockz
« Citoyen »
1380736380000
    • Ethanrockz#0000
    • Profil
    • Derniers messages
    • Tribu
#332
  0
RIP MODULE API replaced with tribe hoyse lua snippets.
Shamousey
« Consul »
1380736380000
    • Shamousey#0095
    • Profil
    • Derniers messages
    • Tribu
#333
  0
Ethanrockz a dit :
RIP MODULE API replaced with tribe hoyse lua snippets.

What you can use inside the tribe house is still the Module API.
Ethanrockz
« Citoyen »
1380737100000
    • Ethanrockz#0000
    • Profil
    • Derniers messages
    • Tribu
#334
  0
yes but people hardly use this thread so rip module api thread.
Nathaan
« Citoyen »
1380965460000
    • Nathaan#0000
    • Profil
    • Derniers messages
    • Tribu
#335
  0
Please need help :

How to make commands only autorised for "admins" ?

Admins content :
{"Nathaan"}, {"Manacer"}, {"Nicolasledu"}

I know for a simple variable (test = "Username") but not for the {"Blabla"}...
Streamr
« Citoyen »
1380966480000
    • Streamr#0000
    • Profil
    • Derniers messages
#336
  0
Nathaan a dit :
Please need help :

How to make commands only autorised for "admins" ?

Admins content :
{"Nathaan"}, {"Manacer"}, {"Nicolasledu"}

I know for a simple variable (test = "Username") but not for the {"Blabla"}...

What about something like:

admins = {}

function eventChatCommand(playerName, message)
isAdmin = false

for i, name in ipairs(admins), do
if name == playerName
isAdmin = true
end

if isAdmin then
--parse command here
end
end
Jordy
« Consul »
1380966600000
    • Jordy#0015
    • Profil
    • Derniers messages
    • Tribu
#337
  0
Nathaan a dit :
Please need help :

How to make commands only autorised for "admins" ?

Admins content :
{"Nathaan"}, {"Manacer"}, {"Nicolasledu"}

I know for a simple variable (test = "Username") but not for the {"Blabla"}...

Try this.

Makinit a dit :

admins = {Nathaan = true, Manacer = true, Nicolasledu = true}

function eventChatCommand(name, message)
--add admin:
--admins[name] = true
--remove admin:
--admins[name] = nil
if admins[name] then
if message == "test" then
print("test!")
end
end
end
Streamr
« Citoyen »
1380966780000
    • Streamr#0000
    • Profil
    • Derniers messages
#338
  0
Jordynl a dit :
Try this.

Welp. That was easier
Impuredeath
« Citoyen »
1380980220000
    • Impuredeath#0095
    • Profil
    • Derniers messages
    • Tribu
#339
  0
I must say the lua coding developement part is really a lot of fun.
Abdeltif
« Citoyen »
1380980220000
    • Abdeltif#0000
    • Profil
    • Derniers messages
    • Tribu
#340
  0
Impuredeath a dit :
I must say the lua coding developement part is really a lot of fun.

Yay cool impure but it's boring ._.
  • Forums
  • /
  • Transformice
  • /
  • Archives
  • /
  • Module API FAQ
« ‹ 17 / 38 › »
© Atelier801 2018

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

Version 1.27