×

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
« ‹ 12 / 33 › »
Lua Snippets
Shamousey
« Consul »
1380468060000
    • Shamousey#0095
    • Profil
    • Derniers messages
    • Tribu
#221
  0
Magicalorb a dit :
[•] Init Error : transformice.lua:274: [string "transformice.lua"]:93: 'end' expected (to close 'function' at line 51)

Showing us an error without seeing the rest of the code is pretty useless ;)

Unicorm a dit :
Could you add something to spawn balls everywhere every few milliseconds, maybe? -3-

That's possible, but you'd have to use other events like key presses if you wanted it, since the eventLoop only runs every 500ms, and you can't use timers.
Unicorm
« Citoyen »
1380468480000
    • Unicorm#0000
    • Profil
    • Derniers messages
    • Tribu
#222
  0
Shamousey a dit :
That's possible, but you'd have to use other events like key presses if you wanted it, since the eventLoop only runs every 500ms, and you can't use timers.

Well ok nevermind; we tried that bomb key-press thing a few pages back and it was horrible. -o-
Goldenlion
« Citoyen »
1380475980000
    • Goldenlion#0000
    • Profil
    • Derniers messages
#223
  0
How do you make one person teleport or generally any powers without having everyone in the room using the power?
Kidxdeath
« Citoyen »
1380477300000
    • Kidxdeath#0000
    • Profil
    • Derniers messages
    • Tribu
#224
  0
Shamousey do u remember that #utinity thing that you can put in ur tribe house by saying /module #ultininy
I spelled it wrong and i need the word #ulyininy


PLZ
Tailtong
« Citoyen »
1380477540000
    • Tailtong#0000
    • Profil
    • Derniers messages
    • Tribu
#225
  0
/module #utility
Shamousey
« Consul »
1380477540000
    • Shamousey#0095
    • Profil
    • Derniers messages
    • Tribu
#226
  0
Goldenlion a dit :
How do you make one person teleport or generally any powers without having everyone in the room using the power?

You can just put in a specific name if you like, such as tfm.exec.movePlayer("Goldenlion",400,200).

Kidxdeath a dit :
Shamousey do u remember that #utinity thing that you can put in ur tribe house by saying /module #ultininy
I spelled it wrong and i need the word #ulyininy

This isn't the place to ask, but it's #utility. Topic-451941
Bengalstar
« Citoyen »
1380478200000
    • Bengalstar#0000
    • Profil
    • Derniers messages
#227
  0
is the lua codes in the tribe house still down or is it up yet
Mikuhl
« Citoyen »
1380480840000
    • Mikuhl#3311
    • Profil
    • Derniers messages
    • Tribu
#228
  0
Added an Advanced Command (Setting the name color) that has more than 1 argument.
Manacer
« Citoyen »
1380481500000
    • Manacer#0000
    • Profil
    • Derniers messages
    • Tribu
#229
  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
Bengalstar
« Citoyen »
1380481740000
    • Bengalstar#0000
    • Profil
    • Derniers messages
#230
  0
Manacer a dit :
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 ! &lt;3

i'm not shamousey but this might work
--
function eventChatCommand(name,command)
if command=="fly" then
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) --makes mice fly by saying !fly
end
end
Manacer
« Citoyen »
1380482040000
    • Manacer#0000
    • Profil
    • Derniers messages
    • Tribu
#231
  0
Bengalstar a dit :
i'm not shamousey but this might work
--
function eventChatCommand(name,command)
if command=="fly" then
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) --makes mice fly by saying !fly
end
end

[•] Init Error : [string "transformice.lua"]:15: 'end' expected (to close 'if' at line 2)
[•] [Manacer] Lua script loaded in 1 ms (4000 max)
Bengalstar
« Citoyen »
1380482520000
    • Bengalstar#0000
    • Profil
    • Derniers messages
#232
  0
Manacer a dit :
[•] Init Error : [string "transformice.lua"]:15: 'end' expected (to close 'if' at line 2)
[•] [Manacer] Lua script loaded in 1 ms (4000 max)

oh

and another end I think
Manacer
« Citoyen »
1380482520000
    • Manacer#0000
    • Profil
    • Derniers messages
    • Tribu
#233
  0
Bengalstar a dit :
oh

and another end I think

Ok, can you post correction please?
Bengalstar
« Citoyen »
1380482640000
    • Bengalstar#0000
    • Profil
    • Derniers messages
#234
  0
Manacer a dit :
Ok, can you post correction please?

ok, this one might work

function eventChatCommand(name,command)
if command=="fly" then
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) --makes mice fly by saying !fly
end
end
end
Manacer
« Citoyen »
1380482640000
    • Manacer#0000
    • Profil
    • Derniers messages
    • Tribu
#235
  0
Bengalstar a dit :
ok, this one might work

function eventChatCommand(name,command)
if command=="fly" then
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) --makes mice fly by saying !fly
end
end
end

[•] Init Error : [string "transformice.lua"]:16: 'end' expected (to close 'function' at line 1)
[•] [Manacer] Lua script loaded in 1 ms (4000 max)
Bengalstar
« Citoyen »
1380482760000
    • Bengalstar#0000
    • Profil
    • Derniers messages
#236
  0
Manacer a dit :
[•] Init Error : [string "transformice.lua"]:16: 'end' expected (to close 'function' at line 1)
[•] [Manacer] Lua script loaded in 1 ms (4000 max)

oh oops (i'm bad at coding sorry e.e)

function eventChatCommand(name,command)
if command=="fly" then
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) --makes mice fly by saying !fly
end
end
end
end
Nicolasledu
« Citoyen »
1380482940000
    • Nicolasledu#0000
    • Profil
    • Derniers messages
    • Tribu
#237
  0
But , not work ^^
Manacer
« Citoyen »
1380482940000
    • Manacer#0000
    • Profil
    • Derniers messages
    • Tribu
#238
  0
Bengalstar a dit :
oh oops (i'm bad at coding sorry e.e)

function eventChatCommand(name,command)
if command=="fly" then
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) --makes mice fly by saying !fly
end
end
end
end

Not error and don't work (fly)
Bengalstar
« Citoyen »
1380483180000
    • Bengalstar#0000
    • Profil
    • Derniers messages
#239
  0
hmm, quite strange

I think a better coder would be able to help (rather than me)
I'm very nooby at coding things sorry
Manacer
« Citoyen »
1380483180000
    • Manacer#0000
    • Profil
    • Derniers messages
    • Tribu
#240
  0
Bengalstar a dit :
hmm, quite strange

I think a better coder would be able to help (rather than me)
I'm very nooby at coding things sorry

No problem, i wait Shamousey. ^^
  • Forums
  • /
  • Transformice
  • /
  • Modules
  • /
  • Lua Snippets
« ‹ 12 / 33 › »
© Atelier801 2018

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

Version 1.27