×

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
  • /
  • Pedidos de Scripts
« ‹ 16 / 93 › »
Pedidos de Scripts
Alejocapocr
« Citoyen »
1387590480000
    • Alejocapocr#0000
    • Profil
    • Derniers messages
#301
  0
Marctilo a dit :
puedes pasarme todos los codes k ai plis me arias un super gran favor

entonces serian... 100 codes basicos mas la combinacion infinita.....
1000000000000000000000000000000000 ._.
Thetroz
« Citoyen »
1387591500000
    • Thetroz#0000
    • Profil
    • Derniers messages
    • Tribu
#302
  0
Marctilo a dit :
puedes pasarme todos los codes k ai plis me arias un super gran favor

Topic-526201
Marctilo
« Citoyen »
1387593180000
    • Marctilo#0000
    • Profil
    • Derniers messages
#303
  0
hoa porfavor me podeis pasar el code de revivirme i el delos cañones como en deatchmat ese porfavor
Quizhelper
« Citoyen »
1387598580000
    • Quizhelper#0000
    • Profil
    • Derniers messages
    • Tribu
#304
  0
Marctilo a dit :
hoa porfavor me podeis pasar el code de revivirme i el delos cañones como en deatchmat ese porfavor

Deathmatch - Código a dit :
tfm.exec.disableAutoNewGame(true)
tfm.exec.disableAutoShaman(true)
players={}
toDespawn={}
maps={521833,401421,541917,541928,541936,541943,527935,559634,559644,888052,878047,885641,770600,770656,772172,891472,589736,589800,589708,900012,901062,754380,901337,901411,907870,910078,1190467,1252043,1124380,1016258,1252299,1255902,1256808,986790,1285380,1271249,1255944,1255983,1085344,1273114,1276664,1279258,1286824,1280135,1280342,1284861,1287556,1057753,1196679,1288489,1292983,1298164,1298521,1293189,1296949,1308378,1311136,1314419,1314982,1318248,1312411,1312589,1312845,1312933,1313969,1338762,1339474,1349878,1297154,644588,1351237,1354040,1354375,1362386,1283234,1370578,1306592,1360889,1362753,1408124,1407949,1407849,1343986,1408028,1441370,1443416,1389255,1427349,1450527,1424739,869836,1459902,1392993,1426457,1542824,1533474,1561467,1563534,1566991,1587241,1416119,1596270,1601580,1525751,1582146,1558167,1420943,1466487,1642575,1648013,1646094,1393097,1643446,1545219,1583484,1613092,1627981,1633374,1633277,1633251,1585138,1624034,1616785,1625916,1667582,1666996,1675013,1675316,1531316,1665413,1681719,1699880,1688696,623770,1727243,1531329,1683915,1689533,1738601,3756146,912118,3326933,3722005,3566478,1456622,1357994,1985670,1884075,1708065,1700322,2124484,3699046,2965313,4057963,4019126,3335202,2050466}

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(19,x+players[name].offsets.x,y+players[name].offsets.y)
else
id=tfm.exec.addShamanObject(20,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,cannon in ipairs(toDespawn) do
if cannon[1] <= os.time()-3000 then
tfm.exec.removeObject(cannon[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(n)
tfm.exec.playerVictory(n)
tfm.exec.setGameTime(5)
end
end

for name,player in pairs(tfm.get.room.playerList) do
eventNewPlayer(name)
end

tfm.exec.newGame(maps[math.random(#maps)])

Este es el código de #Deathmatch, tal cual.


Revivir cada vez que mueres a dit :
function eventPlayerDied (playerName)
tfm.exec.respawnPlayer (playerName);
end

Si solo quieres revivirte a ti mismo y cuando quieras, tendrás que hacerlo manualmente así:

[quote=así:] tfm.exec.respawnPlayer (Marctilo); [/quote]

Cualquier duda, susurrame :]
Marctilo
« Citoyen »
1387599840000
    • Marctilo#0000
    • Profil
    • Derniers messages
#305
  0
ok si tengo algun problema te susurrare
Thetroz
« Citoyen »
1387599960000
    • Thetroz#0000
    • Profil
    • Derniers messages
    • Tribu
#306
  0
Quiz, no necesariamente así
puede hacer un comando:

a dit :
function eventPlayerDied(Marctilo)
print ("Has muerto. Puedes revivir escribiendo: <b>!respawn</b>")
end

function eventChatCommand (name, command)
if command == "respawn" then
tfm.exec.respawnPlayer ("Marctilo")
print ("Has revivido!")
end
end

Eso hace que si muere, te da un mensaje de que has muerto y que lo que debes hacer para revivir.
Marctilo
« Citoyen »
1387638120000
    • Marctilo#0000
    • Profil
    • Derniers messages
#307
  0
no me refiero a eseo merefiero a en casa trivu poder disparara cañones como en esa sala
Thetroz
« Citoyen »
1387641600000
    • Thetroz#0000
    • Profil
    • Derniers messages
    • Tribu
#308
  0
Marctilo a dit :
no me refiero a eseo merefiero a en casa trivu poder disparara cañones como en esa sala

ah
escribes: /module deathmatch
Quizhelper
« Citoyen »
1387647840000
    • Quizhelper#0000
    • Profil
    • Derniers messages
    • Tribu
#309
  0
Thetroz a dit :
Quiz, no necesariamente así
puede hacer un comando:
Eso hace que si muere, te da un mensaje de que has muerto y que lo que debes hacer para revivir.

Hay otras cuantas más para hacer un respawn, pero sí, tienes razón, me faltó ese q_q
Marctilo
« Citoyen »
1387656300000
    • Marctilo#0000
    • Profil
    • Derniers messages
#310
  0
hola es code de camviar el nombre de color lo teneis i el de explosion en casa trivu para usarlo ai ??????' plis si lo teneis dirmelo
Dragongato
« Citoyen »
1387674720000
    • Dragongato#0000
    • Profil
    • Derniers messages
#311
  0
Marctilo a dit :
hola es code de camviar el nombre de color lo teneis i el de explosion en casa trivu para usarlo ai ??????' plis si lo teneis dirmelo

Si no mal recuerdo es este
Colores ramdoms por hakureimouse a dit :

function randomColor()
return "0x" .. string.format("%X", math.random(0x000000, 0xFFFFFF))
end

function eventLoop (currentTime, timeRemaining)
for i=1,60 do
for p,_ in pairs(tfm.get.room.playerList) do
tfm.exec.setNameColor(p, randomColor());
end
end
end

^Creditos a haku que creo el script., lo de explosión no lo entendí

~~

Script para que los dos equipos spawn en dos lugares diferentes?
Sergalio
« Citoyen »
1387735500000
    • Sergalio#0000
    • Profil
    • Derniers messages
    • Tribu
#312
  0
Necesito el Script donde en vez de que aparezca el código del mapa o al lado, aparezca #Cheesegrabber.
Zutto
« Citoyen »
1387736400000
    • Zutto#4451
    • Profil
    • Derniers messages
    • Tribu
#313
  0
Sergalio a dit :
Necesito el Script donde en vez de que aparezca el código del mapa o al lado, aparezca #Cheesegrabber.

~

a dit :
function eventNewGame()
tfm.exec.setUIMapName("#Cheesegrabber")
end

~~
Sergalio
« Citoyen »
1387757160000
    • Sergalio#0000
    • Profil
    • Derniers messages
    • Tribu
#314
  0
Aritxy a dit :
~
~~

¡Gracias! Igual necesito el Script para que nieve cada 7 minutos.
Zutto
« Citoyen »
1387802880000
    • Zutto#4451
    • Profil
    • Derniers messages
    • Tribu
#315
  0
Sergalio a dit :
¡Gracias! Igual necesito el Script para que nieve cada 7 minutos.

~

a dit :

t=0
function eventLoop(time,remaining)
t=t+0.5
if t==420 then
tfm.exec.snow()
t=0
end
end

~

El tiempo va en segundos, 420 segundos = 7 minutos

~

Aunque creo que la función empieza cada ronda D=
Alejocapocr
« Citoyen »
1387818840000
    • Alejocapocr#0000
    • Profil
    • Derniers messages
#316
  0
Existe la funcion de que al decir
!Ban
se abra una ventana, escribas el nombre del jugador, y lo banee?

(como en utillity)

si existe eso pasen el script :D
Thetroz
« Citoyen »
1387821420000
    • Thetroz#0000
    • Profil
    • Derniers messages
    • Tribu
#317
  0
Alejocapocr a dit :
Existe la funcion de que al decir
!Ban
se abra una ventana, escribas el nombre del jugador, y lo banee?

(como en utillity)

si existe eso pasen el script :D

Topic-463218
Dragongato
« Citoyen »
1387823340000
    • Dragongato#0000
    • Profil
    • Derniers messages
#318
  0
Script de equipos? si pueden completo pls
Osea que unos de rojos y otros de azules y que cuando un equipo gane diga "X" equipo wins
Sergalio
« Citoyen »
1387826400000
    • Sergalio#0000
    • Profil
    • Derniers messages
    • Tribu
#319
  0
Aritxy a dit :
~


~

El tiempo va en segundos, 420 segundos = 7 minutos

~

Aunque creo que la función empieza cada ronda D=

Oye, tengo 2 eventLoop. ¿Cómo tengo que incluir el de la nieve sin repetir el eventLoop? (Cuando lo repetí, no me pasaba a la siguiente ronda al acabar el tiempo)
Acá te dejo el Script:
a dit :
function eventLoop (t, tr)
if tr <= 0 then
startNewGame()
end
end

t=0
function eventLoop(time,remaining)
t=t+0.5
if t==60 then
tfm.exec.snow()
t=0
end
end

Así lo tengo ahora.
Zutto
« Citoyen »
1387828200000
    • Zutto#4451
    • Profil
    • Derniers messages
    • Tribu
#320
  0
Sergalio a dit :
Oye, tengo 2 eventLoop. ¿Cómo tengo que incluir el de la nieve sin repetir el eventLoop? (Cuando lo repetí, no me pasaba a la siguiente ronda al acabar el tiempo)
Acá te dejo el Script:

Así lo tengo ahora.

~

a dit :

t=0
function eventLoop(t, tr)
t=t+0.5
if t==60 then
tfm.exec.snow()
t=0
elseif tr <= 0 then
startNewGame()
end
end

Está sin testear
  • Forums
  • /
  • Transformice
  • /
  • Modules
  • /
  • Pedidos de Scripts
« ‹ 16 / 93 › »
© Atelier801 2018

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

Version 1.27