×

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] #bubble
[Script] #bubble
Mateguti
« Citoyen »
1383165540000
    • Mateguti#0000
    • Profil
    • Derniers messages
    • Tribu
#1
  0
#bubble

este minijuego se basa en invocar burbujas y llegar al hole con el queso lo mas rapido posible,las burbujas desapareceran instantaneamente a los 7.000ms para no hacer el juego tan facil

code :

code a dit :


local maps = {521255,4387463,401434,4029628,679132,906121,993789,3346025,2143505,944010,3929757,4057745,3999304,4011106,3873429,3984472,4059199,4059533,4062197,2618050,1233889,2829765,4456202,99,4098580,4061028,4078520,
4151007,4264271,4011785,3806606,3216123,3,3269598}

tfm.exec.disableAutoShaman(true)
print("<N>Welcome to <font color='#89A7F5'>#bubble<N>,Press space for spawn one bubble and complete the map with them, the bubbles will disappear after 5 seconds to do so easy minigame <font color='#000000'>Diviertete !")
tfm.exec.disableAutoNewGame(true)
tfm.exec.disableAutoShaman(true)
players={}
toDespawn={}

function eventNewPlayer(name)
for i,key in ipairs({32,40,83}) do
tfm.exec.bindKeyboard(name,key,true,true)
end
players[name]={
timestamp=os.time(),
offsets={x=2, y=10}
}
end

function eventKeyboard(name,key,down,x,y)
if (key==32 or key==40 or key==83) and not tfm.get.room.playerList[name].isDead and started then
if players[name].timestamp < os.time()-1000 then
local id
if tfm.get.room.playerList[name].isFacingRight then
id=tfm.exec.addShamanObject(59,x+players[name].offsets.x,y+players[name].offsets.y)
else
id=tfm.exec.addShamanObject(59,x+players[name].offsets.x,y+players[name].offsets.y)
end
players[name].timestamp=os.time()
table.insert(toDespawn,{os.time(),id})
end
end
end

function eventChatCommand(name,command)
local arg={}
for argument in command:gmatch("[^%s]+") do
table.insert(arg,argument)
end
if arg[1]=="off" then
if tonumber(arg[2]) and tonumber(arg[3]) then
players[name].offsets.x=tonumber(arg[2])
players[name].offsets.y=tonumber(arg[3])
else
players[name].offsets.x=2
players[name].offsets.y=10
end
tfm.exec.chatMessage("Offsets changed to X:"..players[name].offsets.x.." Y:"..players[name].offsets.y,name)
end
end

function eventNewGame()
started=false
end

function eventLoop(time,remaining)
if time >= 3000 and not started then
started=true
end
if remaining<=0 then
tfm.exec.newGame(maps[math.random(#maps)])
end
for i,balloon in ipairs(toDespawn) do
if balloon[1] <= os.time()-5000 then
tfm.exec.removeObject(balloon[2])
table.remove(toDespawn,i)
end
end
end

function eventPlayerDied(name)
local i=0
local n
for pname,player in pairs(tfm.get.room.playerList) do
if not player.isDead then
i=i+1
n=pname
end
end
if i==0 then
tfm.exec.newGame(maps[math.random(#maps)])
elseif i==1 then
tfm.exec.giveCheese(90)
tfm.exec.playerVictory(90)
tfm.exec.setGameTime(10)
end
end

for name,player in pairs(tfm.get.room.playerList) do
eventNewPlayer(name)
end
tfm.exec.newGame(maps[math.random(#maps)])
tfm.exec.setUIMapName ("bubbles")

Precentacion de mapas abierta.Pueden ser mapas con scroll para arriba :D
Hfaundez
« Citoyen »
1383171420000
    • Hfaundez#0000
    • Profil
    • Derniers messages
    • Tribu
#2
  0
@4456202 OMG TY
Mateguti
« Citoyen »
1383171420000
    • Mateguti#0000
    • Profil
    • Derniers messages
    • Tribu
#3
  0
Hfaundez a dit :
@4456202 OMG TY

Agregado
Hfaundez
1383171420000
    • Hfaundez#0000
    • Profil
    • Derniers messages
    • Tribu
#4
[Modéré par Luyushi, raison : Doble post]
Hfaundez
« Citoyen »
1383171840000
    • Hfaundez#0000
    • Profil
    • Derniers messages
    • Tribu
#5
  0
@4456230

-LUEGO AGREGO MAS-
Mateguti
« Citoyen »
1383172080000
    • Mateguti#0000
    • Profil
    • Derniers messages
    • Tribu
#6
  0
Hfaundez a dit :
@4456230

-LUEGO AGREGO MAS-

No quiero que los afks mueran a los 3 segundos.
Olivaveles
« Citoyen »
1383180000000
    • Olivaveles#0000
    • Profil
    • Derniers messages
    • Tribu
#7
  0
donde esta la sala no esta mas, y el codigo donde lo pongo¿?
Thetroz
« Citoyen »
1383180120000
    • Thetroz#0000
    • Profil
    • Derniers messages
    • Tribu
#8
  0
Olivaveles a dit :
donde esta la sala no esta mas, y el codigo donde lo pongo¿?

No hay sala.
Vé a la casa de tu tribu, escribe /lua y copia el script(código)
Mateguti
« Citoyen »
1383325560000
    • Mateguti#0000
    • Profil
    • Derniers messages
    • Tribu
#9
  0
Agregados mapas :/
Picolloe
« Citoyen »
1410806580000
    • Picolloe#0000
    • Profil
    • Derniers messages
#10
  0
cual es el code copio el de arriba y no funciona
  • Forums
  • /
  • Transformice
  • /
  • Modules
  • /
  • [Script] #bubble
© Atelier801 2018

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

Version 1.27