×

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
« ‹ 3 / 33 › »
Lua Snippets
Taleyes
« Citoyen »
1380289740000
    • Taleyes#0000
    • Profil
    • Derniers messages
#41
  1
Jaackster a dit :
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.

ahh, i accidently deleted it in some places, thanks.
Championrs
« Citoyen »
1380289740000
    • Championrs#0000
    • Profil
    • Derniers messages
#42
  1
abdeltif its the fly thingy
Benbirkralm
« Citoyen »
1380289740000
    • Benbirkralm#0000
    • Profil
    • Derniers messages
    • Tribu
#43
  0
lol It's Perfect!
Mikuhl
« Citoyen »
1380290520000
    • Mikuhl#3311
    • Profil
    • Derniers messages
    • Tribu
#44
  0
Abdeltif a dit :
Can u copy paste line 274 so we can see it please ?

Its not line 274, its line 1.
Abdeltif
« Citoyen »
1380291840000
    • Abdeltif#0000
    • Profil
    • Derniers messages
    • Tribu
#45
  0
Eh , how to spawn random balls in random places ? :(
Rabidfish
« Citoyen »
1380291840000
    • Rabidfish#0000
    • Profil
    • Derniers messages
#46
  0
Really great thread, thanks :D
Shamousey
« Consul »
1380291840000
    • Shamousey#0095
    • Profil
    • Derniers messages
    • Tribu
#47
  0
Tigrounette a dit :
function eventLoop()
tfm.exec.addShamanObject(tfm.enum.shamanObject.ball, math.random()*800, 30)
end

Hope this helps, Abdeltif.
Alishakouri
« Citoyen »
1380295020000
    • Alishakouri#0000
    • Profil
    • Derniers messages
    • Tribu
#48
  0
i want that aut o - spawning objects but slwoer. amm . one object every 5 sec NOT randomized
Shamousey
« Consul »
1380295380000
    • Shamousey#0095
    • Profil
    • Derniers messages
    • Tribu
#49
  0
a dit :
timer=0
function eventLoop()
timer=timer+1
if timer==10 then
tfm.exec.addShamanObject(tfm.enum.shamanObject.ball,400,200)
timer=0
end
end

Since eventLoop runs every half a second, it'll increase the "timer" variable by 1 then. This means that once it reaches 10, 5 seconds will have passed and it'll excecute the code inside the if statement, including resetting the timer variable.
Abdeltif
« Citoyen »
1380295500000
    • Abdeltif#0000
    • Profil
    • Derniers messages
    • Tribu
#50
  0
a dit :
tfm.exec.setUIShamanName("<T>Abdeltif")
tfm.exec.setUIMapName("<T>Hidenseek - Random")
ui.addPopup("1", 2, "what's sydoline name", Abdeltif, NIL, 200, 400, 200)
function eventPopupAnswer("1", playerName, tig)
tfm.exec.movePlayer(playerName, 90, -40, true, 50, 50, false)
end

I have a problem , line 4 it says :
[•] Init Error : [string "transformice.lua"]:4: or '...' expected

I don't know what ID must be the popup :(
Mikuhl
« Citoyen »
1380295500000
    • Mikuhl#3311
    • Profil
    • Derniers messages
    • Tribu
#51
  0
Your making the Int a String, dont use "1" use 1
Abdeltif
« Citoyen »
1380295680000
    • Abdeltif#0000
    • Profil
    • Derniers messages
    • Tribu
#52
  0
Jaackster a dit :
Your making the Int a String, dont use "1" use 1

I did befor as
function eventPopupAnswer(1, playerName, tig)
and it says the same thing o/
Shamousey
« Consul »
1380295800000
    • Shamousey#0095
    • Profil
    • Derniers messages
    • Tribu
#53
  0
a dit :
ui.addPopup(1, 2, "what's sydoline name", "Abdeltif", NIL, 200, 400, 200)

function eventPopupAnswer(id, playerName, answer)
if id==1 then
tfm.exec.movePlayer(playerName, 90, -40, true, 50, 50, false)
end
end

 
Mikuhl
« Citoyen »
1380296040000
    • Mikuhl#3311
    • Profil
    • Derniers messages
    • Tribu
#54
  0
Shamousey a dit :
 

shamoosey to the rescue.
Ghjxpain
« Citoyen »
1380296700000
    • Ghjxpain#0000
    • Profil
    • Derniers messages
#55
  0
Hey i want a code that if i typed !mapname text the map name would change to what i typed thanks.
Mikuhl
« Citoyen »
1380296820000
    • Mikuhl#3311
    • Profil
    • Derniers messages
    • Tribu
#56
  0
Ghjxpain a dit :
Hey i want a code that if i typed !mapname text the map name would change to what i typed thanks.

Check the Simple Command, I just added notes on what the subs do. You can easily edit if you have common sense.
Arber
« Citoyen »
1380296940000
    • Arber#0000
    • Profil
    • Derniers messages
    • Tribu
#57
  0
Shamousey a dit :
 

well i just loaded that now but its saying [•] [Arber] Lua script loaded in 1 ms (4000 max)
but not showing anything


edit : NVM
Ghjxpain
« Citoyen »
1380297600000
    • Ghjxpain#0000
    • Profil
    • Derniers messages
#58
  0
Jaackster a dit :
Check the Simple Command, I just added notes on what the subs do. You can easily edit if you have common sense.

|Didnt work
Baasbase
« Citoyen »
1380298080000
    • Baasbase#0095
    • Profil
    • Derniers messages
#59
  0
Ghjxpain a dit :
Hey i want a code that if i typed !mapname text the map name would change to what i typed thanks.

Jaackster a dit :
Check the Simple Command, I just added notes on what the subs do. You can easily edit if you have common sense.

Baasbase a dit :

function eventChatCommand(p, c)
if string.sub(c, 0, 7) == "mapname" then
tfm.exec.setUIMapName(string.sub(c, 9))
end
end
Ghjxpain
« Citoyen »
1380298440000
    • Ghjxpain#0000
    • Profil
    • Derniers messages
#60
  0
Baasbase a dit :

thanks
  • Forums
  • /
  • Transformice
  • /
  • Modules
  • /
  • Lua Snippets
« ‹ 3 / 33 › »
© Atelier801 2018

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

Version 1.27