×

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
« ‹ 17 / 160 › »
Script Requests
Issey
« Citoyen »
1382806500000
    • Issey#0000
    • Profil
    • Derniers messages
#321
  0
Shamousey a dit :
That's only really because they're limited as to how many you can use though, right?

nuh uh, you can do doublejumps every once in a while, probably uses timers like mine, so it's a little buggy
Papero
« Citoyen »
1382807160000
    • Papero#9240
    • Profil
    • Derniers messages
    • Tribu
#322
  0
Shamousey a dit :
That's only really because they're limited as to how many you can use though, right?

Still quite decent.
How about getting something like checking velocity while a button is pressed? to mess with double jumping
Zutto
« Citoyen »
1382807400000
    • Zutto#4451
    • Profil
    • Derniers messages
    • Tribu
#323
  0
Someone knows a simple script to see the admins?

a dit :
admin = {Aritxy = true}

*And a popup whit the list of admins*

Something like "..admins.."
Jordy
« Consul »
1382807760000
    • Jordy#0015
    • Profil
    • Derniers messages
    • Tribu
#324
  0
Aritxy a dit :
Someone knows a simple script to see the admins?
Something like "..admins.."

Yes.

Shamousey a dit :

function table.concat(tbl,delim)
local str=''
if delim==nil then delim='' end
for k,v in pairs(tbl) do
str=str..v..delim
end
return str
end

Jordynl a dit :

table.concat(admins, ", ")

Try this
Zutto
« Citoyen »
1382807760000
    • Zutto#4451
    • Profil
    • Derniers messages
    • Tribu
#325
  0
Jordynl a dit :
Yes.


Try this

Only put that?
Jordy
« Consul »
1382811000000
    • Jordy#0015
    • Profil
    • Derniers messages
    • Tribu
#326
  0
Aritxy a dit :
Only put that?

Yes use the table.concat functio and then use that line I gave you.
Zutto
« Citoyen »
1382813280000
    • Zutto#4451
    • Profil
    • Derniers messages
    • Tribu
#327
  0
Jordynl a dit :
Yes use the table.concat functio and then use that line I gave you.

Ooh tyy
Fuzzykeldeo
« Citoyen »
1382820840000
    • Fuzzykeldeo#0000
    • Profil
    • Derniers messages
#328
  0
Shamousey a dit :
Things like the valentines arrow and snowballs are actually classed as shaman objects and you can spawn them with tfm.exec.addShamanObject(), just find their IDs from the ID list.

Sorry to spam, but where can I find the ID list?
Safwanrockz
« Censeur »
1382821080000
    • Safwanrockz#0095
    • Profil
    • Derniers messages
    • Tribu
#329
  0
Fuzzykeldeo a dit :
Sorry to spam, but where can I find the ID list?

Even here Topic-465671 or a full one here
Orb
« Censeur »
1382863320000
    • Orb#0095
    • Profil
    • Derniers messages
    • Tribu
#330
  0
[quote=:)]function eventChatCommand(playerName, message)
local arg = {}
for argument in message:gmatch ("[^%s]+") do
table.insert (arg, argument);
end

if arg[1] == "autokill" then
function eventLoop(currentTime,timeRemaining)
tfm.exec.killPlayer(arg[2])
end
end[/quote]

Doesn't work. What can I do?
Jordy
« Consul »
1382870880000
    • Jordy#0015
    • Profil
    • Derniers messages
    • Tribu
#331
  0
Magicalorb a dit :
Doesn't work. What can I do?

You can't have function eventLoop() in function eventChatCommand()
You have to put it outside the eventChatCommand.

What do you want "autokill" to do? Kill a player directly?
Orb
« Censeur »
1382877660000
    • Orb#0095
    • Profil
    • Derniers messages
    • Tribu
#332
  0
Jordynl a dit :
You can't have function eventLoop() in function eventChatCommand()
You have to put it outside the eventChatCommand.

What do you want "autokill" to do? Kill a player directly?

Kill the selected player every round (just like !ban command in bafflua)
Safwanrockz
« Censeur »
1382881020000
    • Safwanrockz#0095
    • Profil
    • Derniers messages
    • Tribu
#333
  0
Magicalorb a dit :
Kill the selected player every round (just like !ban command in bafflua)

Hope this works.
Banning a dit :
isBanned={}
function table.contains(t,element)
if element==nil then
return false
end
for key,value in pairs(t) do
if value==element then
return true
end
end
return false
end

function eventNewGame()
for player,name in pairs(tfm.get.room.playerList) do
if table.contains(isBanned,player) then
tfm.exec.killPlayer(player)
end
end
end

function eventChatCommand(name,cmd)
local arg={}
for argument in cmd:gmatch("[^%s]+") do
table.insert(arg, argument);
end
if arg[1]=="ban" then
table.insert(isBanned, arg[2])
end
end

 
Enginfener
« Citoyen »
1382881380000
    • Enginfener#0000
    • Profil
    • Derniers messages
    • Tribu
#334
  0
Clothing how to?
Orb
« Censeur »
1382881500000
    • Orb#0095
    • Profil
    • Derniers messages
    • Tribu
#335
  0
Safwanrockz a dit :
Hope this works.

 

Nope, it doesnt.
Bengalstar
« Citoyen »
1382881500000
    • Bengalstar#0000
    • Profil
    • Derniers messages
#336
  0
Enginfener a dit :
Clothing how to?

You currently cannot add clothing to mice using Lua
it is impossible
Safwanrockz
« Censeur »
1382881620000
    • Safwanrockz#0095
    • Profil
    • Derniers messages
    • Tribu
#337
  0
Magicalorb a dit :
Nope, it doesnt.

How so? D: It's working fine for me whenever you type !ban player, that player will die on the start of every map q_q
Orb
« Censeur »
1382881740000
    • Orb#0095
    • Profil
    • Derniers messages
    • Tribu
#338
  0
Safwanrockz a dit :
How so? D: It's working fine for me whenever you type !ban player, that player will die on the start of every map q_q

Oh right, without my code it works. Gotta find the problem. Thanks!! ^^

e: Found the problem and it works perfect. Ty :3

e2: How can I have an unban command too?
Enginfener
« Citoyen »
1382882940000
    • Enginfener#0000
    • Profil
    • Derniers messages
    • Tribu
#339
  0
so how are we going to the Status board has set an Example,such as the type of Completion
Joaovictors
« Citoyen »
1382884680000
    • Joaovictors#0000
    • Profil
    • Derniers messages
    • Tribu
#340
  0
Magicalorb a dit :
Oh right, without my code it works. Gotta find the problem. Thanks!! ^^

e: Found the problem and it works perfect. Ty :3

e2: How can I have an unban command too?

try this to unban:

a dit :

elseif arg[1] == "deban" then
for n,p in pairs(isBanned) do
if arg[2] == isBanned[n] then
table.remove(isBanned, n)
end
end
end

--
  • Forums
  • /
  • Transformice
  • /
  • Modules
  • /
  • Script Requests
« ‹ 17 / 160 › »
© Atelier801 2018

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

Version 1.27