×

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
  • /
  • Script Requests
« ‹ 13 / 160 › »
Script Requests
Safwanrockz
« Censeur »
1382475000000
    • Safwanrockz#0095
    • Profil
    • Derniers messages
    • Tribu
#241
  0
Tomiek a dit :
How to made double jump? :O

Double Jump a dit :
function eventNewPlayer(name)
tfm.exec.bindKeyboard(name,38,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==38 then
tfm.exec.movePlayer(name,0,0,true,0,-50,false)
end
end

 
Epicshawty
« Citoyen »
1382480340000
    • Epicshawty#0000
    • Profil
    • Derniers messages
    • Tribu
#242
  0
Safwanrockz a dit :
 

But if you do it multiple time you can fly?
Jordy
« Consul »
1382485500000
    • Jordy#0015
    • Profil
    • Derniers messages
    • Tribu
#243
  0
Epicshawty a dit :
But if you do it multiple time you can fly?

Yeah it is a script that makes you able to fly.
Doneky
« Citoyen »
1382490720000
    • Doneky#0000
    • Profil
    • Derniers messages
    • Tribu
#244
  0
Somebody can help me?
Okay, is with this:
a dit :
function eventChatCommand(playerName,command)
if command == [[c]] then
ui.addPopup(0,2,[[mensagem]],playerName,300,100,200)

elseif command == [[cc]] then
ui.removeTextArea(0,NIL)
end
end

function eventPopupAnswer(id,playerName,answer)
if id == 0 then
ui.addTextArea(0,playerName.. answer,NIL,300,100,200)
end
end

The commands is okay, just don't is working the space when you receives the TextArea.
Issey
« Citoyen »
1382492400000
    • Issey#0000
    • Profil
    • Derniers messages
#245
  0
Doneky a dit :
Somebody can help me?
Okay, is with this:

The commands is okay, just don't is working the space when you receives the TextArea.

a dit :
ui.addTextArea(0,playerName..' '..answer,NIL,300,100,200)

...
Doneky
« Citoyen »
1382493180000
    • Doneky#0000
    • Profil
    • Derniers messages
    • Tribu
#246
  0
Issey a dit :
...

Thank you.
Mousechris
« Censeur »
1382498400000
    • Mousechris#0000
    • Profil
    • Derniers messages
    • Tribu
#247
  0
Could someone help me?

I'm trying to make it so if you press space bar, you die and turn turn into an Icecube, then when you repress space bar, you turn back into a mouse at the same X/Y cooridiates as your icecube.
Doneky
« Citoyen »
1382501760000
    • Doneky#0000
    • Profil
    • Derniers messages
    • Tribu
#248
  0
a dit :
Admins = {}

function eventChatCommand(name, command)
if command == "ret" then
ui.addPopup(1,2,"MENSAGEM",name,300,100,200)
end
end

function eventPopupAnswer(id, name, answer)
if id == 1 then
table.remove(Admins,1)
print("Jogador Retirado da tabela admins.")
end
end

Where is wrong?
Ziomacka
« Citoyen »
1382511360000
    • Ziomacka#0000
    • Profil
    • Derniers messages
#249
  0
Jordynl a dit :
Yeah it is a script that makes you able to fly.

script is cool but when i choose a vampire i can fly and vampire can`t o-o
Khkrian
« Citoyen »
1382524920000
    • Khkrian#0000
    • Profil
    • Derniers messages
#250
  0
tfm.exec.addConjuration(Int xPosition, Int yPosition, Int timeInMillis)
• Add conjuration to the map.
How to use this ? Can someone give me example
Safwanrockz
« Censeur »
1382525400000
    • Safwanrockz#0095
    • Profil
    • Derniers messages
    • Tribu
#251
  0
Khkrian a dit :
tfm.exec.addConjuration(Int xPosition, Int yPosition, Int timeInMillis)
• Add conjuration to the map.
How to use this ? Can someone give me example

Conj. a dit :
for name,player in pairs(tfm.get.room.playerList) do
system.bindMouse(name, true)
end

function eventMouse(name,x,y)
tfm.exec.addConjuration(x/10,y/10,10000)
end
Benbirkralm
« Citoyen »
1382536560000
    • Benbirkralm#0000
    • Profil
    • Derniers messages
    • Tribu
#252
  0
How to add clothes?
Safwanrockz
« Censeur »
1382536560000
    • Safwanrockz#0095
    • Profil
    • Derniers messages
    • Tribu
#253
  0
Benbirkralm a dit :
How to add clothes?

You can't.
Benbirkralm
« Citoyen »
1382536680000
    • Benbirkralm#0000
    • Profil
    • Derniers messages
    • Tribu
#254
  0
Safwanrockz a dit :
You can't.

Ediz said :
Clothing IDs
This is a list of all clothing and outfit IDs that tfm.get.room.playerList[name].look returns. Note that .look doesn't return the ID of a fur colour, if the player is wearing one.
(Topic-465671 )
Safwanrockz
« Censeur »
1382536680000
    • Safwanrockz#0095
    • Profil
    • Derniers messages
    • Tribu
#255
  0
Benbirkralm a dit :
Ediz said :
Clothing IDs
This is a list of all clothing and outfit IDs that tfm.get.room.playerList[name].look returns. Note that .look doesn't return the ID of a fur colour, if the player is wearing one.

This function (tfm.get.room.playerList[name].look) just returns the look of the specified player, you can't edit anything on it.
Benbirkralm
« Citoyen »
1382536680000
    • Benbirkralm#0000
    • Profil
    • Derniers messages
    • Tribu
#256
  0
Safwanrockz a dit :
This function (tfm.get.room.playerList[name].look) just returns the look of the specified player, you can't edit anything on it.

Oh,thanks...
(It is very bad :'( )
Nolast
« Citoyen »
1382548440000
    • Nolast#0000
    • Profil
    • Derniers messages
    • Tribu
#257
  0
how can i make a box appearing witha a text asking something and inside the box is a empty box, where u write the answer. if u answer correct, it teleports u to a cordinate.
Jordy
« Consul »
1382558460000
    • Jordy#0015
    • Profil
    • Derniers messages
    • Tribu
#258
  0
Nolast a dit :
how can i make a box appearing witha a text asking something and inside the box is a empty box, where u write the answer. if u answer correct, it teleports u to a cordinate.

How do you want them to trigger the popup box?
Doneky
« Citoyen »
1382562420000
    • Doneky#0000
    • Profil
    • Derniers messages
    • Tribu
#259
  0
a dit :
Admins = {}

function eventChatCommand(name, command)
if command == "ret" then
ui.addPopup(1,2,"MENSAGEM",name,300,100,200)
end
end

function eventPopupAnswer(id, name, answer)
if id == 1 then
table.remove(Admins,answer)
print("Jogador Retirado da tabela admins.")
end
end

Where is wrong?
Shamousey
« Consul »
1382567520000
    • Shamousey#0095
    • Profil
    • Derniers messages
    • Tribu
#260
  0
Doneky a dit :
Where is wrong?

table.remove only removes the key from a table, I recommend you look up how it works in the Lua Manual.


http://i.imgur.com/uUCnSyN.png
Some bugs are fun but can get annoying. I wrote a function to get the two top players and make them shaman, it works well for the most part but occasionally this happens, anyone care to come up with a foolproof method?
  • Forums
  • /
  • Transformice
  • /
  • Modules
  • /
  • Script Requests
« ‹ 13 / 160 › »
© Atelier801 2018

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

Version 1.27