×

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
« ‹ 92 / 93 › »
Pedidos de Scripts
Brandondito
« Citoyen »
1581518040000
    • Brandondito#0000
    • Profil
    • Derniers messages
#1821
  0
un scrip para matar a un raton cuando esta cerca como en #prophunt

Dernière modification le 1581715200000
Valenxd
« Citoyen »
1584398280000
    • Valenxd#3226
    • Profil
    • Derniers messages
#1822
  0
Aspirina
Valenxd
1584398280000
    • Valenxd#3226
    • Profil
    • Derniers messages
#1823
[Modéré par Ratacp, raison : Este tipo de chistes no están permitidos.]
Valenxd
1584398340000
    • Valenxd#3226
    • Profil
    • Derniers messages
#1824
[Modéré par Ratacp, raison : Fuera de tema]
Ratoncyt0
« Citoyen »
1584546780000
    • Ratoncyt0#0000
    • Profil
    • Derniers messages
    • Tribu
#1825
  0
Abel a dit :
Code Lua

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
admin = {["Soyloquisha#0000"]=true}

function eventChatCommand (player, command)
local args = {}
for arg in command:gmatch ("[^%s]+") do
table.insert (args, arg)
end

if args[1] == "meep" and admin[player] then
tfm.exec.giveMeep(args[2])
end
end

Para todos los de la sala;


function eventChatCommand (player, command)
if command == "meep" then
tfm.exec.giveMeep(player)
end
end

Yo buscando por todo internet alguna funcion que me convierta de string a variable y este tenia la forma en la primera linea de su codigo :)
Gracias <3
Admiire_me
« Citoyen »
1589975880000
    • Admiire_me#6770
    • Profil
    • Derniers messages
#1826
  0
Eliminado

Dernière modification le 1592588400000
Utsd
« Citoyen »
1590018840000
    • Utsd#2500
    • Profil
    • Derniers messages
    • Tribu
#1827
  0
Quisiera pedir un script para ver quién cambia el mapa en la casa tribu, osea, si alguien pone por ejemplo el module batata, yo cargo el script y me dice quién puso el module.
Shadow
« Censeur »
1590031800000
    • Shadow#3883
    • Profil
    • Derniers messages
    • Tribu
#1828
  0
Utsd a dit :
Quisiera pedir un script para ver quién cambia el mapa en la casa tribu, osea, si alguien pone por ejemplo el module batata, yo cargo el script y me dice quién puso el module.

No se puede realizar algo así :(.

Aunque puedes ver quién cambió el mapa de la casa de la tribu (el código identificador de un mapa, no un module) en el historial.
Queen
« Citoyen »
1591663320000
    • Queen#7526
    • Profil
    • Derniers messages
    • Tribu
#1829
  0
Algo relacionado con Jojo's Bizarre Adventure (?
Admiire_me
« Citoyen »
1591789140000
    • Admiire_me#6770
    • Profil
    • Derniers messages
#1830
  0
Sistema de vidas con textArea
Debo aclarar de que esto fue basado en el que está acá con imágenes, solo lo edité un poco
Script
Code Lua

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
local playersAlive = 0
local playersInRoom = 0
local mice = {}
local isAlive
local idLives = {}

function main()
tfm.exec.disableAutoNewGame()
tfm.exec.disableAutoTimeLeft()
tfm.exec.disableAutoShaman()
tfm.exec.disableAfkDeath()

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

startGame()
end

function startGame()
tfm.exec.newGame("#0")
end

function eventNewGame()
playersAlive = playersInRoom
isAlive = {}

for name,mouse in pairs(mice) do
isAlive[name] = true
mouse.lives = 3
updateLives(name, 3)
end
end

function endGame()
startGame()
end

function eventNewPlayer(name)
playersInRoom = playersInRoom + 1
mice[name] = {
lives = 0
}
end

function eventPlayerLeft(name)
playersInRoom = playersInRoom - 1
mice[name] = nil

-- A player can leave while still having lives remaining
if isAlive[name] then
setDeath(name)
end
end

function eventPlayerDied(name)
-- If their death is already set (e.g. by leaving the room), do nothing
if not isAlive[name] then return end

local mouse = mice[name]
mouse.lives = mouse.lives - 1

if mouse.lives == 0 then
setDeath(name)
else
tfm.exec.respawnPlayer(name)
end
end

function setDeath(name)
playersAlive = playersAlive - 1
isAlive[name] = nil
checkPlayers()
end

function eventPlayerRespawn(name)
local mouse = mice[name]
updateLives(name, mouse.lives)
end

function checkPlayers()
if playersAlive <= 1 then
endGame()
end
end

function updateLives(name, lives)
local mouse = mice[name]

if mouse.lives == 3 then
ui.addTextArea(394,"<font size='25'><R>❤❤❤",name,4,20)
elseif mouse.lives == 2 then
ui.updateTextArea(394,"<font size='25'><R>❤❤",name)
elseif mouse.lives == 1 then
ui.updateTextArea(394,"<font size='25'><R>❤",name)
end
end

function eventLoop(t, tr)
if tr <= 0 then
endGame()
end
end

main()


Por cierto, necesito un script donde pueda cambiar atributos del mapa (XML), intenté esto, funciona sin errores pero no pasa nada, el mapa se queda con su background (se debe cargar nuevo mapa para poder usar comandos, si no, da bug)
Script
Code Lua

1
2
3
function eventChatCommand(n,c)
xml = string.gsub(tfm.get.room.xmlMapInfo.xml:gsub("<", "&lt;"), '<P', '<P F="6"')
end

Dernière modification le 1593904800000
Crack
« Citoyen »
1595069220000
    • Crack#1390
    • Profil
    • Derniers messages
#1831
  0
Me podrían ayudar con algo, quiero invocar un objeto de chamán con click, pero que NO se puedan invocar durante la cuenta atrás antes de empezar la ronda
es decir añadirle como 3 segundos de retraso a la invocación y que cuando la cuenta regresiva de la ronda finalice, se pueda invocar instantaneamente.

Dernière modification le 1595069700000
Admiire_me
« Citoyen »
1595268000000
    • Admiire_me#6770
    • Profil
    • Derniers messages
#1832
  1
Crack a dit :
Me podrían ayudar con algo, quiero invocar un objeto de chamán con click, pero que NO se puedan invocar durante la cuenta atrás antes de empezar la ronda
es decir añadirle como 3 segundos de retraso a la invocación y que cuando la cuenta regresiva de la ronda finalice, se pueda invocar instantaneamente.

Código
Code Lua

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
system.bindMouse ("Crack#1390")
Spawn=false
ID=0--ID del objeto

eventNewGame=function ()
Spawn=false
end

eventMouse=function(n,x,y)
if Spawn then
tfm.exec.addShamanObject (ID,x,y)
end
end

eventLoop=function (t)
if not t<3000 then
Spawn=true
else
Spawn=false
end
end

Improvisado pero debería funcionar, cambia ID por la id del objeto

Dernière modification le 1595268120000
Mivale
« Citoyen »
1595615760000
    • Mivale#6763
    • Profil
    • Derniers messages
    • Tribu
#1833
  0
Hola buenas, necesitaria un codigo para una generacion de queso aleatorio (en x puntos) y para rotacion de mapa aleatoria (Pago con una buena cantidad de quesos en el juego al interesado uwu) Me hablarian al MD? pls
Crack
« Citoyen »
1595658060000
    • Crack#1390
    • Profil
    • Derniers messages
#1834
  0
Admiire_me a dit :
Crack a dit :
Me podrían ayudar con algo, quiero invocar un objeto de chamán con click, pero que NO se puedan invocar durante la cuenta atrás antes de empezar la ronda
es decir añadirle como 3 segundos de retraso a la invocación y que cuando la cuenta regresiva de la ronda finalice, se pueda invocar instantaneamente.

Código
Code Lua

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
system.bindMouse ("Crack#1390")

Spawn=false
ID=0--ID del objeto

eventNewGame=function ()
Spawn=false
end

eventMouse=function(n,x,y)
if Spawn then
tfm.exec.addShamanObject (ID,x,y)
end
end

eventLoop=function (t)
if not t<3000 then
Spawn=true
else
Spawn=false
end
end

Improvisado pero debería funcionar, cambia ID por la id del objeto

Me da error en la linea 17, pero gracias igualmente<3

Dernière modification le 1595658420000
Crack
« Citoyen »
1595658180000
    • Crack#1390
    • Profil
    • Derniers messages
#1835
  0
mmmmmm
Izzi_noob
« Citoyen »
1596235560000
    • Izzi_noob#0000
    • Profil
    • Derniers messages
#1836
  0
fuerza=20


for name,player in pairs(tfm.get.room.playerList) do
system.bindMouse(name, true)

eventMouse=function(n,x,y)
tfm.exec.explosion(x,y,fuerza,50,false)
end
end


Me podrían ayudar, necesito que la fuerza aumente a medida de que pasa el tiempo de la ronda.
Blood
« Citoyen »
1596584640000
    • Blood#3565
    • Profil
    • Derniers messages
    • Tribu
#1837
  0
Izzi_noob a dit :

Me podrían ayudar, necesito que la fuerza aumente a medida de que pasa el tiempo de la ronda.

Cada 5 segundos aumenta la fuerza en 5

Code Lua

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
fuerza=20
tiempo = 0
for name,player in pairs(tfm.get.room.playerList) do
system.bindMouse(name, true)
end
eventMouse=function(n,x,y)
tfm.exec.explosion(x,y,fuerza,50,false)
end


eventLoop = function ()
tiempo = tiempo + 1
if tiempo >= 10 then
fuerza = fuerza + 5
tiempo = 0
end
end

Dernière modification le 1598565840000
Arzxz
« Citoyen »
1598391780000
    • Arzxz#3836
    • Profil
    • Derniers messages
    • Tribu
#1838
  0
Me Pueden hacer Una script de Troll Donde Una Raton pueda Volar ?
Admiire_me
« Citoyen »
1599087780000
    • Admiire_me#6770
    • Profil
    • Derniers messages
#1839
  0
Jassiel_pros a dit :
Me Pueden hacer Una script de Troll Donde Una Raton pueda Volar ?

Explícate, ¿qué clase de troll? ¿qué contiene?
Nada más te ayudaré con lo de volar

Script
Code Lua

1
2
3
4
5
6
volar="Jassiel_pros#3836" -- Cámbialo por quien quieras que vuele, no quites las comillas
system.bindKeyboard(volar,32,true)

eventKeyboard=function(n)
tfm.exec.movePlayer(n,0,0,false,0,-50)
end
Xxxtentacion
« Citoyen »
1603267200000
    • Xxxtentacion#4851
    • Profil
    • Derniers messages
    • Tribu
#1840
  0
Pueden hacer un lua que sea como elimination, pero que se elimine únicamente a la última rata en entrar al hole. Y así hasta que quede solo una y gane.
  • Forums
  • /
  • Transformice
  • /
  • Modules
  • /
  • Pedidos de Scripts
« ‹ 92 / 93 › »
© Atelier801 2018

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

Version 1.27