×

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
« ‹ 31 / 160 › »
Script Requests
Abdeltif
1386418680000
    • Abdeltif#0000
    • Profil
    • Derniers messages
    • Tribu
#601
[Modéré par Icewolfbob, raison : There is no need to post your question again after only a few hours. Please be patient!]
Enginfener
« Citoyen »
1386420180000
    • Enginfener#0000
    • Profil
    • Derniers messages
    • Tribu
#602
  0
Jordynl a dit :
I loaded an old script from my archive there.
Enjoy.

Thank you Very much Jordy :))
Shamousey
« Consul »
1386428520000
    • Shamousey#0095
    • Profil
    • Derniers messages
    • Tribu
#603
  0
Juliantwofan a dit :
Teleporting yourself with a mouse click?

Bushmeister's script has a lot of unnecessary stuff it seems, for the very basics you can do this.

system.bindMouse("Juliantwofan",true)

function eventMouse(name,x,y)
tfm.exec.movePlayer(name,x,y)
end

Abdeltif a dit :
I want to make a popup where You can find the names of players seperated with a comma , can we ?

I'm a bit confused at what you mean with this, could you elaborate a little?

Bushmeister a dit :
function eventNewGame()
if tfm.get.room.currentMap("@868686") then
print("Okay!")
end
end

tfm.get.room.currentMap isn't a function, that wouldn't work.

function eventNewGame()
if tfm.get.room.currentMap=="@868686" then
print("Okay!")
end
end
Papero
« Citoyen »
1386429000000
    • Papero#9240
    • Profil
    • Derniers messages
    • Tribu
#604
  0
Shamousey a dit :

I'm a bit confused at what you mean with this, could you elaborate a little?

I understood it as using delimiters from a string of text?
Safwanrockz
« Censeur »
1386430080000
    • Safwanrockz#0095
    • Profil
    • Derniers messages
    • Tribu
#605
  0
Abdeltif a dit :

I want to make a popup where You can find the names of players seperated with a comma , can we ?

I assume you can only do that with your playerlist table.
a dit :

Players={}

for name,player in pairs(tfm.get.room.playerList) do
table.insert(Players, name)
end

print(table.concat(Players,", "))

 
Splashclaweh
« Citoyen »
1386446820000
    • Splashclaweh#0000
    • Profil
    • Derniers messages
    • Tribu
#606
  0
When someone cries it says on the chat ''(person that's crying) cheer up! :)''
(If it can't be on chat then make it a 30 second pop-up)
Thank you :D
Enginfener
« Citoyen »
1386448620000
    • Enginfener#0000
    • Profil
    • Derniers messages
    • Tribu
#607
  0
ty safwan
Safwanrockz
« Censeur »
1386451920000
    • Safwanrockz#0095
    • Profil
    • Derniers messages
    • Tribu
#608
  0
Splashclaweh a dit :
When someone cries it says on the chat ''(person that's crying) cheer up! :)''
(If it can't be on chat then make it a 30 second pop-up)
Thank you :D

a dit :

timer=60
function eventEmotePlayed(name,id)
if id==2 then
ui.addTextArea(0, name.." is crying, cheer up! :)", nil)
timer=60
end
end

function eventLoop(ct,tr)
timer = timer - 1
if timer==0 then
ui.removeTextArea(0)
timer=60
end
end

 
Mymicemy
« Citoyen »
1386501720000
    • Mymicemy#0000
    • Profil
    • Derniers messages
    • Tribu
#609
  0
I want to draw conjuration,not with one dot like this script
script 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

is this possible?
Safwanrockz
« Censeur »
1386511200000
    • Safwanrockz#0095
    • Profil
    • Derniers messages
    • Tribu
#610
  0
It's not possible since eventMouse only triggers upon one mouse click.
Htsloko
1386546900000
    • Htsloko#0000
    • Profil
    • Derniers messages
#611
[Modéré par Takumisyn, raison : Spam]
Bloncked
« Citoyen »
1386554580000
    • Bloncked#0000
    • Profil
    • Derniers messages
#612
  0
does anyone have a bootcmaps maps table ?
like many many maps ?
thanks
Bushmeister
« Consul »
1386572640000
    • Bushmeister#0000
    • Profil
    • Derniers messages
    • Tribu
#613
  0
Bloncked a dit :
does anyone have a bootcmaps maps table ?
like many many maps ?
thanks

http://pastebin.com/C9ZjWAC5
Mymicemy
« Citoyen »
1386705240000
    • Mymicemy#0000
    • Profil
    • Derniers messages
    • Tribu
#614
  0
If shaman object hit mouse, make the popup say: Box (or other shaman object) hit you!

Is this even possible?
Safwanrockz
« Censeur »
1386705660000
    • Safwanrockz#0095
    • Profil
    • Derniers messages
    • Tribu
#615
  0
Mymicemy a dit :
If shaman object hit mouse, make the popup say: Box (or other shaman object) hit you!

Is this even possible?

It's possible but quite hard to code. Will try to do something for it.
Shamousey
« Consul »
1386775260000
    • Shamousey#0095
    • Profil
    • Derniers messages
    • Tribu
#616
  0
Mymicemy a dit :
If shaman object hit mouse, make the popup say: Box (or other shaman object) hit you!

Is this even possible?

As Safwanrockz said, it's possible but hard to code. The only way you could do this is by checking the player and object's co-ordinats with the playerList and objectList tables respectively, and unfortunately these don't update often so they end up having incorrect, outdated co-ordinates. Because of that, you can't easily tell if something's touching, or near a player, unless they're by eachother for about half a second. This makes detecting getting hit by a cannon almost impossible.
Bushmeister
« Consul »
1386857940000
    • Bushmeister#0000
    • Profil
    • Derniers messages
    • Tribu
#617
  0
How can i make lua that will transform specified player into vampire when i input !vampire [nick] command?
Shamousey
« Consul »
1386858360000
    • Shamousey#0095
    • Profil
    • Derniers messages
    • Tribu
#618
  0
Bushmeister a dit :
How can i make lua that will transform specified player into vampire when i input !vampire [nick] command?

function eventChatCommand(name,command)
local arg={}
for argument in command:gmatch("[^%s]+") do
table.insert(arg,argument)
end
if arg[1]=="vampire" and arg[2] then
tfm.exec.setVampirePlayer(arg[2])
end
end
Bushmeister
« Consul »
1386859860000
    • Bushmeister#0000
    • Profil
    • Derniers messages
    • Tribu
#619
  0
Shamousey a dit :
function eventChatCommand(name,command)
local arg={}
for argument in args:gmatch("[^%s]+") do
table.insert(arg,argument)
end
if arg[1]=="vampire" and arg[2] then
tfm.exec.setVampirePlayer(arg[2])
end
end

start new round and not worked a dit :

Вы - шаман! Помогите Вашим последователям взять сыр!
[18:46] [•] [Bushmeister] Lua script loaded in 1 ms (4000 max)
[18:46] [Bushmeister] !vampire bushmeister
Благодаря Bushmeister,мы собрали 0 сыра!

not worked :C
Shamousey
« Consul »
1386862320000
    • Shamousey#0095
    • Profil
    • Derniers messages
    • Tribu
#620
  0
Bushmeister a dit :
not worked :C

Oops, fixed.
  • Forums
  • /
  • Transformice
  • /
  • Modules
  • /
  • Script Requests
« ‹ 31 / 160 › »
© Atelier801 2018

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

Version 1.27