Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[
- Script created by Tocutoeltuco and Yuir, and tested by Ultraspeedy
- Translate to EN: Ultraspeedy
- Translate to BR/PT: Bolodefchoco
- ]]
- loadXml=true--If you want, to load a XML first, put this option in true
- xml=''--XML here, between the two '
- if loadXml then
- tfm.exec.newGame(tostring(xml))
- end
- can={Yuir=true,Kelgood=true,Luucassssss=true}
- --If you aren't in the can list, put you with a comma (,) and your name (if you have a +, change it with __ (two _)), and a =true, for example, if your name is +Tigrounette, put: ,__Tigrounette=true
- mice={}
- images={}
- objects={}
- settings={
- ffa=false,
- fly=false,
- tp=false,
- tpall=false,
- spawn=false,
- speed=false,
- jump=false,
- coords=false,
- img="",
- imgp="",
- imgu="",
- imguu="",
- }
- tr={
- es={
- welcome="<V>[•]<rose> Bienvenido a una sala FunCorp, en las salas de FunCorp no cuentan las estadísticas (como el first, el queso), ¡Pero hay mucha diversión!</rose>",
- ffaOn="<VP>¡Ahora puedes lanzar cañones con la tecla <J>S<VP> o la tecla <J>↓<VP>!",
- ffaOff="<R>Ahora ya no puedes lanzar cañones :(",
- miceFfaOn="<VP>¡Diviértete lanzando cañones personalizados!",
- miceFfaOff="<VP>¡Diviértete lanzando cañones!",
- flyOn="<VP>¡Ahora puedes volar con la tecla espacio!",
- flyOff="<VP>Ahora no puedes volar :(",
- warning="ADVERTENCIA",
- vamp="<R>Argg... Ahora eres un vampiro ¡Vé a cazar ratoncitos!",
- respawn="<VP>¡Eres un muerto viviente!",
- jumpOn="<VP>¡Ahora tienes supersalto!",
- jumpOff="<R>Ahora tienes un salto normal :(",
- modLanguage="Modera tu lenguaje.",
- snow="<VP>¡Guerra de nieve!",
- speedOn="<VP>Bhm... Bhm... ¡Ahora tienes supervelocidad! ¡Apreta la tecla <VI>X</VI>!",
- speedOff="<R>¿Un poco cansado? Uff... Tómate un descanso de la supervelocidad",
- discoOn="<VP>¡<V>D<R>I<BV>S<BL>C<N>O <VI>T<ROSE>I<CH>M<G>E<J>! <T>¡</T>P</J>a</G>r</CH>t</ROSE>y</VI> h</N>a</BL>r</BV>d</R>!</V>",
- discoOff="<R>",
- imgU="<VP>¡Prepárate para ser un ratón personalizado!",
- admins={
- warned="<V>%s</V> ha advertido a %s por<R>%s",
- warnedSystem="El sistema ha advertido a %s por decir %s",
- funCorpEnter="El FunCorp <V>%s</V> ha entrado a la sala",
- funCorpLeave="El FunCorp <V>%s</V> ha salido de la sala",
- tpAllOn="<V>%s</V> se ha activado el tpall.",
- tpAllOff="<V>%s</V> se ha desactivado el tpall.",
- filtroOn="<V>%s</V> ha activado el filtro.",
- filtroOff="<V>%s</V> ha desactivado el filtro.",
- jumpAllOn="<V>%s</V> ha activado el supersalto para todos.",
- jumpAllOff="<V>%s</V> ha desactivado el supersalto para todos.",
- jumpOn="<V>%s</V> ha activado el supersalto para %s",
- jumpOff="<V>%s</V> ha desactivado el supersalto para %s",
- speedAllOn="<V>%s</V> ha activado la supervelocidad para todos.",
- speedAllOff="<V>%s</V> ha desactivado la supervelocidad para todos.",
- speedOn="<V>%s</V> ha activado la supervelocidad para %s",
- speedOff="<V>%s</V> ha desactivado la supervelocidad para %s",
- spawnObjectImage="<V>%s</V> ha invocado un objeto de chamán (ID LUA %s) (ID %s) en las coordenadas X: %s Y: %s con la imagen %s",
- spawnObject="<V>%s</V> ha invocado un objeto de chamán (ID LUA %s) (ID %s) en las coordenadas X: %s Y: %s",
- pwOn="<V>%s</V> ha cambiado la contraseña de la sala a <V>%s",
- pwOff="<V>%s</V> ha quitado la contraseña de la sala.",
- customSnow="<V>%s</V> ha activado la nieve durante %d segundos.",
- snow="<V>%s</V> ha activado la nieve durante 60 segundos.",
- discoOn="<V>%s</V> ha activado el disco.",
- discoOff="<V>%s</V> ha desactivado el disco.",
- funCorpMessage="<V>%s</V> ha enviado un mensaje como \"<font color='#E68D43'>FunCorp</font>\".",
- addImage="<V>%s</V> ha puesto la imagen (ID LUA %s) %s con el formato de %s",
- removeImage="<V>%s</V> ha quitado la imagen de la ID %s",
- ffaOnAll="<V>%s</V> ha activado el FFA para todos.",
- ffaOffAll="<V>%s</V> ha desactivado el FFA para todos.",
- ffaOnUser="<V>%s</V> ha activado el FFA para %s",
- ffaOffUser="<V>%s</V> ha desactivado el FFA para %s",
- flyOnAll="<V>%s</V> ha activado el FLY para todos.",
- flyOffAll="<V>%s</V> ha desactivado el FLY para todos.",
- flyOnUser="<V>%s</V> ha activado el FLY para %s",
- flyOffUser="<V>%s</V> ha desactivado el FLY para %s",
- vampAll="<V>%s</V> ha hecho vampiro a todos.",
- vampUser="<V>%s</V> ha hecho vampiro a %s",
- killAll="<V>%s</V> ha matado a todos.",
- killUser="<V>%s</V> ha matado a %s",
- map="<V>%s</V> ha cambiado el mapa a %d",
- respawnAll="<V>%s</V> ha respawneado a todos.",
- respawnUser="<V>%s</V> ha respawneado a %s",
- infiniteTime="<V>%s</V> ha hecho el tiempo infinito.",
- setTime="<V>%s</V> ha cambiado el tiempo a %d",
- help=[[<V>[•]<N> Ayuda del script
- <VP>!funchat MENSAJE</VP> -- Escribe en el chat privado de FunCorps
- <VP>!snow SEGUNDOS</VP> -- Hace nevar
- <VP>!disco</VP> -- Cambia el color de nombre de cada ratón cada un corto tiempo
- <VP>!warn NOMBRE MENSAJE</VP> -- Advierte a un usuario
- <VP>!msg MENSAJE</VP> -- Manda un mensaje al chat como [FunCorp]
- <VP>!image ID IMAGEN X Y VALOR</VP> -- Pone una imagen en el mapa, ID es el valor al cual se llamará para quitar la imagen, IMAGEN es el link de la imagen (usa solo lo que va después de la /, ejemplo: si el link es http://images.atelier801.com/1548703e16a.jpg, tienes que poner 1548703e16a.jpg), X es la posición horizontal a partir del punto 0 (si la X es 5, y la imagen está puesta para un jugador, es 5px en X, a partir del punto 0 del ratón, el centro), la Y es la posición vertical a partir del punto 0, VALOR es el valor de la imagen (_ es Z, ! es adelante del todo, ? es atrás del todo, & es como _, pero se queda según tu movimiento, $ es una imagen arriba del ratón, pero con su sprite y % es una imagen arriba del ratón, pero sin su sprite), si el valor es _ o &, tienes que poner la Z, por ejemplo: _1 o &2, si es ! o ? tienes que poner 1, por ejemplo: !1 o ?1, y si es $ o % es un nombre de ratón, como $Tocutoeltuco o %Ultraspeedy.
- <VP>!removeimage ID</VP> -- Quita la imagen con la id seleccionada
- <VP>!ffa NOMBRE ON/OFF</VP> -- Activa/desactiva el ffa
- <VP>!imgffa [link]</VP> -- Cambia la skin del cañón del FFA (LINK: opcional, cambia la skin)
- <VP>!fly NOMBRE ON/OFF</VP> -- Activa/desactiva el fly
- <VP>!vamp NOMBRE</VP> -- Hace vampiro a alguien
- <VP>!kill NOMBRE</VP> -- Mata a alguien
- <VP>!respawn NOMBRE</VP> -- Respawnea a alguien
- <VP>!time INF/SEGUNDOS</VP> -- Cambia el tiempo del mapa
- <VP>!help</VP> -- Te envía este mensaje
- <VP>!map MAPA</VP> -- Cambia el mapa actual (si pones una "@", será aleatorio, incluso si pones "@0", pero si pones "0" se pondrá el mapa 0
- <VP>!tpall</VP> -- Te activa/desactiva la opción de que si haces click teletransportes a todos los de la sala
- <VP>!spawn ID OID X Y IMAGEN</VP> -- ID, es la ID que se guardará en LUA para luego quitar el objeto, OID es la id de objeto, ejemplo: 0: caja pequeña, X es la posición horizontal a partir del punto 0, Y es la posición vertical a partir del punto 0, IMAGEN (opcional) link de la imagen para ponerle al objeto, subida a atelier801, si el link es http://images.atelier801.com/<VP>1548703e16a.jpg</VP>, se usa <VP>1548703e16a.jpg</VP>
- <VP>!despawn ID</VP> -- Quita un objeto del mapa
- <VP>!pw CONTRASEÑA</VP> -- Cambia la contraseña de la sala <R>(CUIDADO, NO SE PUEDE QUITAR)</R>
- <VP>!jump USUARIO ON/OFF</VP> -- Le activa/desactiva el supersalto al usuario seleccionado (si USUARIO es all, se seleccionan todos los usuarios)
- <VP>!speed USUARIO ON/OFF</VP> -- Le activa/desactiva la supervelocidad al usuario seleccionado (si USUARIO es all, se seleccionan todos los usuarios)
- <VP>!sham USUARIO</VP> -- Hace chamán al usuario seleccionado (si USUARIO es all, se seleccionan todos los usuarios)
- <VP>!filtro ON/OFF</VP> -- Activa/desactiva el filtro de malas palabras
- <VP>!miceimg ID USUARIO</VP> -- Le pone una imagen pre-hecha al usuario seleccionado (si USUARIO es all, se seleccionan todos los usuarios) <R>(CUIDADO, NO SE PUEDE QUITAR)</R>]],
- miceFfaOn="<V>%s</V> ha cambiado la skin del cañón.",
- miceFfaOff="<V>%s</V> ha vuelto a la normalidad la skin del cañón.",
- urlFfa="<V>%s</V> ha cambiado la skin del cañón a %s",
- shamanAll="<V>%s</V> ha hecho chamán a todos.",
- shamanUser="<V>%s</V> ha hecho chaman a %s",
- imageAll="",
- failImgU="<R>Esa ID no existe. (ID: <VI>%s</VI>)",
- imgUAll="<V>%s</V> ha puesto la imagen <VI>%s</VI> en todos los ratones.",
- imgU="<V>%s</V> ha puesto la imagen <VI>%s</VI> en %s",
- imgUAllOff="<V>%s</V> ha quitado una imagen en todos los ratones.",
- imgUOff="<V>%s</V> ha quitado una imagen en %s",
- despawnObject="<V>%s</V> despawneó el objeto de chamán con la ID %s",
- },
- },
- en={
- welcome="<V>[•]<rose> Welcome to a FunCorp room, in the FunCorp room the stats don't count (like the first, the cheese), But you have fun!</rose>",
- ffaOn="<VP>Now you can throw cannons with the <J>S<VP> key or the <J>↓<VP> key!",
- ffaOff="<R>You can't throw cannons anymore :(",
- miceFfaOn="<VP>Have fun throwing custom cannons!",
- miceFfaOff="<VP>Have fun throwing cannons!",
- flyOn="<VP>Now you can fly with the space key!",
- flyOff="<R>Now you can't fly :(",
- warning="WARNING",
- vamp="<R>Argg... You are now a vampire, Go hunt some mices!",
- respawn="<VP>You're a undead!",
- jumpOn="<VP>Now you have a super jump!",
- jumpOff="<R>Now you have a normal jump :(",
- modLanguage="Moderate your language.",
- snow="<VP>Snow war!",
- speedOn="<VP>Bhm... Bhm... You now have super speed! Press the <VI>X</VI> key!",
- speedOff="<R>A little bit tired? Uff... take a break of the super speed",
- discoOn="<VP><V>D<R>I<BV>S<BL>C<N>O <VI>T<ROSE>I<CH>M<G>E<J>! <T></T>P</J>a</G>r</CH>t</ROSE>y</VI> h</N>a</BL>r</BV>d</R>!</V>",
- discoOff="<R>",
- imgU="<VP>Prepare to be a custom mice!",
- admins={
- warned="<V>%s</V> warned %s for<R>%s",
- warnedSystem="The system warned %s for say %s",
- funCorpEnter="The FunCorp <V>%s</V> has enter the room",
- funCorpLeave="The FunCorp <V>%s</V> has leave the room",
- tpAllOn="<V>%s</V> turned on the tpall.",
- tpAllOff="<V>%s</V> turned off the tpall.",
- filtroOn="<V>%s</V> turned on the filter.",
- filtroOff="<V>%s</V> turned off the filter.",
- jumpAllOn="<V>%s</V> turned on the superjump to all.",
- jumpAllOff="<V>%s</V> turned off the superjump to all.",
- jumpOn="<V>%s</V> turned on the superjump to %s",
- jumpOff="<V>%s</V> turned off the superjump to %s",
- speedAllOn="<V>%s</V> turned on the superspeed to all.",
- speedAllOff="<V>%s</V> turned off the superspeed to all.",
- speedOn="<V>%s</V> turned on the superspeed to %s",
- speedOff="<V>%s</V> turned off the superspeed to %s",
- spawnObjectImage="<V>%s</V> invocated a shaman object (LUA ID %s) (ID %s) in the coordinates X: %s Y: %s with the image %s",
- spawnObject="<V>%s</V> invocated a shaman object (LUA ID %s) (ID %s) in the coordinates X: %s Y: %s",
- pwOn="<V>%s</V> changed the room password to <V>%s",
- pwOff="<V>%s</V> removed the room password.",
- customSnow="<V>%s</V> turned on the snow for %s seconds.",
- snow="<V>%s</V> turned on the snow for 60 seconds.",
- discoOn="<V>%s</V> turned on the disco.",
- discoOff="<V>%s</V> turned off the disco.",
- funCorpMessage="<V>%s</V> send a message like \"<font color='#E68D43'>FunCorp</font>\".",
- addImage="<V>%s</V> put the image (LUA ID %s) %s with the format of %s",
- removeImage="<V>%s</V> removed a image with the id %s",
- ffaOnAll="<V>%s</V> turned on the FFA to all.",
- ffaOffAll="<V>%s</V> turned off the FFA to all.",
- ffaOnUser="<V>%s</V> turned on the FFA to %s",
- ffaOffUser="<V>%s</V> turned off the FFA to %s",
- flyOnAll="<V>%s</V> turned on the FLY to all.",
- flyOffAll="<V>%s</V> turned off the FLY to all.",
- flyOnUser="<V>%s</V> turned on the FLY to %s",
- flyOffUser="<V>%s</V> turned off the FLY to %s",
- vampAll="<V>%s</V> just transformed all the mice in vampires.",--?
- vampUser="<V>%s</V> just transformed %s in vampire",--?
- killAll="<V>%s</V> killed all.",
- killUser="<V>%s</V> killed %s.",
- map="<V>%s</V> changed the map to %d",
- respawnAll="<V>%s</V> respawned all.",
- respawnUser="<V>%s</V> respawned %s",
- infiniteTime="<V>%s</V> made infinite the time.",
- setTime="<V>%s</V> changed the time to %d",
- help=[[DONT TRANSLATE THIS]],
- miceFfaOn="<V>%s</V> changed the cannon skin.",
- miceFfaOff="<V>%s</V> changed the cannon skin to default.",
- urlFfa="<V>%s</V> changed the cannon skin to %s",
- shamanAll="<V>%s</V> has made everyone a shaman.",
- shamanUser="<V>%s</V> has made %s a shaman.",
- imageAll="",
- failImgU="<R>This ID don't exists. (ID: <VI>%s</VI>)",
- imgUAll="<V>%s</V> put the image <VI>%s</VI> in every mice.",
- imgU="<V>%s</V> put the image <VI>%s</VI> in %s",
- imgUAllOff="<V>%s</V> deleted a image in every mice.",
- imgUOff="<V>%s</V> deleted a image in %s",
- despawnObject="<V>%s</V> despawned the shaman object with ID %s",
- },
- },
- br={
- welcome="<V>[•]<rose> Bem-vindo(a) à sala Funcorp, nas salas Funcorp as estatísticas não contam (firsts, queijos, etc), mas você se diverte!</rose>",
- ffaOn="<VP>Agora você pode atirar canhões pressionando as teclas <J>S<VP> e <J>↓<VP>!",
- ffaOff="<R>Você não pode jogar mais canhões :(",
- miceFfaOn="<VP>Divirta-se atirando canhões customizados!",
- miceFfaOff="<VP>Divirta-se atirando canhões!",
- flyOn="<VP>Agora você pode voar pressionando a tecla Espaço.",
- flyOff="<R>Agora você não pode voar :(",
- warning="ATENÇÃO",
- vamp="<R>Argg... Agora você é um vampiro, vá caçar alguns ratos!",
- respawn="<VP>Você é um zumbi!",
- jumpOn="<VP>Agora você tem um super-pulo!",
- jumpOff="<R>Agora você tem um pulo normal :(",
- modLanguage="Modere seu linguajar.",
- snow="<VP>Guerra de neve.",
- speedOn="<VP>Bruuum... Bruuum... Agora você tem super velocidade! Pressione a tecla <VI>X</VI>!",
- speedOff="<R>Um pouco cançado? Ufa... dê um tempo à super velocidade!",
- discoOn="<VP><V>D<R>I<BV>S<BL>C<N>O <VI>T<ROSE>I<CH>M<G>E<J>! <T></T>P</J>a</G>r</CH>t</ROSE>y</VI> h</N>a</BL>r</BV>d</R>!</V>",
- discoOff="<R>",
- imgU="<VP>Prepare-se para ser um rato customizado!",
- admins={
- warned="<V>%s</V> advertido %s por<R>%s",
- warnedSystem="O sistema advertiu %s por dizer %s",
- funCorpEnter="O FunCorp <V>%s</V> entrou na sala.",
- funCorpLeave="O FunCorp <V>%s</V> deixou a sala.",
- tpAllOn="<V>%s</V> ativou o tpall.",
- tpAllOff="<V>%s</V> desativou o tpall.",
- filtroOn="<V>%s</V> ativou o filtro.",
- filtroOff="<V>%s</V> desativou o filtro.",
- jumpAllOn="<V>%s</V> ativou o super-pulo para todos.",
- jumpAllOff="<V>%s</V> desativou o super-pulo para todos.",
- jumpOn="<V>%s</V> ativou o super-pulo para %s",
- jumpOff="<V>%s</V> desativou o super-pulo para %s",
- speedAllOn="<V>%s</V> ativou a super velocidade para todos.",
- speedAllOff="<V>%s</V> desativou a super velocidade para todos.",
- speedOn="<V>%s</V> ativou a super velocidade para %s",
- speedOff="<V>%s</V> desativou a super velocidade para %s",
- spawnObjectImage="<V>%s</V> invocou um objeto shaman (ID LUA %s) (ID %s) nas coordenadas X: %s Y: %s com a imagem %s",
- spawnObject="<V>%s</V> invocou um objeto shaman (ID LUA %s) (ID %s) nas coordenadas X: %s Y: %s",
- pwOn="<V>%s</V> mudou a senha da sala para <V>%s",
- pwOff="<V>%s</V> removeu a senha da sala.",
- customSnow="<V>%s</V> ativou a neve por %s segundos.",
- snow="<V>%s</V> ativou a neve por 60 segundo.",
- discoOn="<V>%s</V> ativou o disco.",
- discoOff="<V>%s</V> desativou o disco.",
- funCorpMessage="<V>%s</V> enviu uma mensagem como \"<font color='#E68D43'>FunCorp</font>\".",
- addImage="<V>%s</V> colocou a imagem (ID LUA %s) %s com o formato %s",
- removeImage="<V>%s</V> removeu uma imagem com o id %s",
- ffaOnAll="<V>%s</V> ativou o FFA para todos.",
- ffaOffAll="<V>%s</V> desativou o FFA para todos.",
- ffaOnUser="<V>%s</V> ativou o FFA para %s",
- ffaOffUser="<V>%s</V> desativou o FFA para %s",
- flyOnAll="<V>%s</V> ativou o FLY para todos.",
- flyOffAll="<V>%s</V> desativou o FLY para todos.",
- flyOnUser="<V>%s</V> ativou o FLY para %s",
- flyOffUser="<V>%s</V> desativou o FLY para %s",
- vampAll="<V>%s</V> fez todos os ratos de vampiros.",--?
- vampUser="<V>%s</V> fez %s um vampiro.",--?
- killAll="<V>%s</V> matou todos.",
- killUser="<V>%s</V> matou %s.",
- map="<V>%s</V> mudou o mapa para %d",
- respawnAll="<V>%s</V> reviveu todos.",
- respawnUser="<V>%s</V> reviveu %s",
- infiniteTime="<V>%s</V> fez o tempo infinito.",
- setTime="<V>%s</V> mudou o tempo para %d",
- help=[[DONT TRANSLATE THIS]],
- miceFfaOn="<V>%s</V> mudou a skin do canhão.",
- miceFfaOff="<V>%s</V> mudou a skin do canhão para padrão.",
- urlFfa="<V>%s</V> mudou a skin do canhão para %s",
- shamanAll="<V>%s</V> fez todo mundo shaman.",
- shamanUser="<V>%s</V> fez %s shaman.",
- imageAll="",
- failImgU="<R>Esta ID não existe. (ID: <VI>%s</VI>)",
- imgUAll="<V>%s</V> colocou a imagem <VI>%s</VI> em todos os ratos.",
- imgU="<V>%s</V> colocou a imagem <VI>%s</VI> em %s",
- imgUAllOff="<V>%s</V> removeu a imagem em todos os ratos.",
- imgUOff="<V>%s</V> removeu a imagem em %s",
- despawnObject="<V>%s</V> removeu o objeto shaman de ID %s",
- },
- },
- }
- tr.pt=tr.br
- filtro={"puto"}--Para añadir palabras al filtro, tienes que poner una coma (,) dos comillas (") y adentro de esas dos comillas la palabra, pero en minúscula, si quieres usar comillas en el texto, usa \"
- keys={32,0,1,2,3,16,17,88}
- fireTS={}
- facingLeft={}
- toDespawn={}
- goTo={}
- goToImages={}
- iAT="imageAll"
- images[iAT]={}
- filtre=false
- id=""
- idd=""
- spawn=""
- disco=false
- despawnTime=1000
- fireDelay=3000--Delay (IN MS) to throw cannons in FFA, 1000ms = 1 second
- mouseCannons=false
- cannon="153d3352946.png"
- offsetX = 0
- offsetY = 0
- micesImg={
- pink_kitty={"153ec4eef26.png", -23, -30, "153ec4ec77d.png", -26, -30},
- nekoburger={"153ec7e82d6.png", -23, -26, "153ec7e664b.png", -26, -26},
- kitty={"154c592261e.png", -30, -32, "154c5925a15.png", -27, -32},
- mice={"154d0db2d3d.png",-30,-52,"154d0db0d8c.png",-27,-52},
- pokeball={"1507b1faa2a",-8,-9,"1507b1faa2a",-8,-9},
- egg={"1507b1fbc31",-40,-40,"1507b1fbc31",-40,-40},
- missingno1={"1507b1fcd7a",-40,-40,"1507b1fcd7a",-40,-40},
- missingno2={"1507b1fde7a",-28,-28,"1507b1fde7a",-28,-28},
- missingno3={"1507b1fef38",-30,-30,"1507b1fef38",-30,-30},
- missingno4={"1507b2002ac",-30,-30,"1507b2002ac",-30,-30},
- peppa={"155777ce1ab",-40,-50,"155777cc660",-40,-50},
- slowpoke={"155777d20fc",-35,-50,"155777d4247",-35,-50},
- nyan_cat={"155c9b28b20",-35,-30,"155c9b2a3d1",-90,-30},
- justin_bieber={"155ca086a04",-25,-40,"155ca086a04",-25,-40},
- mouse={"1557c362613",-65,-50,"1557c364a52",-85,-50},
- dora={"155c4d1de05",-25,-46,"155c4d1f100",-25,-46},
- toilet={"155c9ec2886",-20,-40,"155c9ec40ff",-30,-40},
- waddles={"155c51325da",-40,-28,"155c5133917",-35,-26},
- bus={"155ca4312a0",-40,-30,"155ca432666",-40,-30},
- minion={"155ca547459",-26,-30,"155ca54900a",-28,-30},
- kenny={"155ca4bdc51",-25,-42,"155ca4bdc51",-25,-42},
- computer_mouse={"155ca47030c",-30,-25,"155ca47179a",-40,-25},
- annoying_orange={"155ca0f4af3",-25,-25,"155ca0f5ca7",-25,-25},
- annoying_dog={"155ca0da03c",-25,-28,"155ca0db1f4",-25,-28},
- broom_mouse={"155c9fa9ef2",-35,-35,"155c9fab3f1",-38,-35},
- package_pony={"155c9ca6f74",-24,-40,"155c9ca85bd",-22,-40},
- copatych={"155c9c3b2d6",-22,-28,"155c9c3c8cd",-22,-28},
- homunculus={"155c9ba73b5",-22,-28,"155c9ba84e0",-40,-28},
- thomas={"155c50812d1",-28,-32,"155c50829b0",-20,-32},
- cock_a_doodle_doo={"155c4cdbb4c",-14,-32,"155c4cdd0e3",-37,-32},
- shawarma={"155c4b131dc",-36,-38,"155c4b14458",-24,-38},
- wild_sponge_bob={"155c4aac0b4",-18,-34,"155c4aadc1c",-24,-34},
- pony={"155c49ce65c",-35,-16,"155c49d0331",-25,-16},
- sponge_bob={"155c49750bd",-27,-26,"155c4976244",-33,-26},
- squirrel={"155c48fadff",-28,-42,"155c48fbfea",-32,-42},
- peter_pig={"155c4890ec0",-26,-42,"155c4892353",-32,-42},
- emote1={"150ab0c288e",-15,-10,"150ab0c288e",-15,-10},
- emote2={"150ab0c4bd0",-15,-10,"150ab0c4bd0",-15,-10},
- emote3={"150ab0c6e66",-15,-10,"150ab0c6e66",-15,-10},
- emote4={"150ab0d3ac2",-15,-10,"150ab0d3ac2",-15,-10},
- emote5={"150ab0cd43a",-15,-10,"150ab0cd43a",-15,-10},
- emote6={"150ab0d18c5",-15,-10,"150ab0d18c5",-15,-10},
- emote7={"150ab0cb1d1",-15,-10,"150ab0cb1d1",-15,-10},
- emote8={"150ab0c9044",-15,-10,"150ab0c9044",-15,-10},
- emote9={"150ab0cf763",-15,-10,"150ab0cf763",-15,-10},
- emote0={"150ab0d5da4",-15,-10,"150ab0d5da4",-15,-10},
- --[[ You can add more images, following the next instructions:
- id={"link",x,y,"link",x,y},
- the first link, is the link of image when the mice is facing left, and the first x & y are the coords
- the second link, is the link of image when the mice is facing right, and the second x & y are the coords
- ( all the link's must be in the middle of two " ) ]]
- }
- for a,b in next,micesImg do
- for i,v in next,b do
- if type(v)=="string" then
- if v:sub(#v-3,#v-3)~="." then
- micesImg[a][i]=micesImg[a][i]..".png"
- end
- end
- end
- end
- function t(x,n)
- q=tfm.get.room.playerList[n].community
- if x:sub(0,7)=="admins." then
- if tr[q] then
- return tr[q].admins[x:sub(8)]
- else
- return tr.en.admins[x:sub(8)]
- end
- else
- if tr[q] then
- return tr[q][x]
- else
- return tr.en[x]
- end
- end
- end
- function eventGoTo()
- goTo={}
- for a in pairs(tfm.get.room.playerList) do
- if can[a:gsub("+","__")] then
- table.insert(goTo,a)
- end
- end
- end
- function funChat(n,m,to)
- if n=="LUA" then
- tfm.exec.chatMessage("<V>[•]<N> "..m,to)
- else
- eventGoTo()
- for i=1,#goTo do
- tfm.exec.chatMessage("<N>></N> <font color='#E68D43'><b>FunCorp</b> <N>></N> <CH>"..string.upper(tfm.get.room.playerList[n].community).."</CH> <V>"..n.."</V> <N>></N>"..m.."</font>",goTo[i])
- end
- end
- end
- function eventNewPlayer(n)
- mice[n]={
- ffa=settings.ffa,
- fly=settings.fly,
- tp=settings.tp,
- tpall=settings.tpall,
- spawn=settings.spawn,
- speed=settings.speed,
- jump=settings.jump,
- coords=settings.coords,
- img=settings.img,
- imgp=settings.imgp,
- imgu=settings.imgu,
- imguu=settings.imguu,
- time=os.time()+300,
- }
- facingLeft[n] = false
- fireTS[n] = 0
- for i=1,#keys do
- system.bindKeyboard(n,keys[i],true,true)
- end
- if can[n:gsub("+","__")] then
- eventGoTo()
- for i=1,#goTo do
- funChat("LUA",string.format(t("admins.funCorpEnter",goTo[i]),n),goTo[i])
- end
- end
- system.bindMouse(n)
- if tr[tfm.get.room.playerList[n].community] then
- tfm.exec.chatMessage(t("welcome",n),n)
- else
- tfm.exec.chatMessage("<V>[•]<R> I'm so sorry, but I don't have your language in my system, I will use english language.",n)
- tfm.exec.chatMessage(t("welcome",n),n,goTo[i])
- end
- end
- table.foreach(tfm.get.room.playerList, eventNewPlayer)
- function eventPlayerLeft(n)
- if can[n:gsub("+","__")] then
- eventGoTo()
- for i=1,#goTo do
- funChat("LUA",string.format(t("admins.funCorpLeave",goTo[i]),n),goTo[i])
- end
- end
- end
- function eventMouse(n,x,y)
- if mice[n].tp==true then
- tfm.exec.movePlayer(n,x,y)
- end
- if mice[n].tpall==true then
- table.foreach(tfm.get.room.playerList,function(a) tfm.exec.movePlayer(a,x,y) end)
- mice[n].tpall=false
- eventGoTo()
- for i=1,#goTo do
- funChat("LUA",string.format(t("admins.tpAllOff",goTo[i]),n),goTo[i])
- end
- end
- if mice[n].coords==true then
- tfm.exec.chatMessage("<V>[•]<N> X: "..x.." Y: "..y,n)
- end
- end
- function eventKeyboard(n,k,d,x,y)
- if mice[n].fly==true then
- if k==32 then
- tfm.exec.movePlayer(n,0,0,true,0,-50)
- end
- end
- if k==0 then
- facingLeft[n] = true
- if micesImg[mice[n].imgu] then
- tfm.exec.removeImage(mice[n].imguu)
- mice[n].imguu=tfm.exec.addImage(micesImg[mice[n].imgu][1],"%"..n,micesImg[mice[n].imgu][2],micesImg[mice[n].imgu][3])
- else
- tfm.exec.removeImage(mice[n].imguu)
- end
- end
- if k==2 then
- facingLeft[n] = false
- if micesImg[mice[n].imgu] then
- tfm.exec.removeImage(mice[n].imguu)
- mice[n].imguu=tfm.exec.addImage(micesImg[mice[n].imgu][4],"%"..n,micesImg[mice[n].imgu][5],micesImg[mice[n].imgu][6])
- else
- tfm.exec.removeImage(mice[n].imguu)
- end
- end
- if mice[n].ffa==true then
- if k==3 and os.time() > fireTS[n] + fireDelay then
- fireTS[n] = os.time()
- local dx,a,id
- if facingLeft[n]==true then
- dx,dy,a = -30,0,-90
- else
- dx,dy,a = 30,0,90
- end
- id = tfm.exec.addShamanObject(17, x+dx+offsetX, y+offsetY, a)
- table.insert(toDespawn, {id, os.time()})
- if mouseCannons then
- tfm.exec.addImage(cannon, "#"..id, -37, -19)
- --tfm.exec.addImage("153a43d39b8.png", "#"..id, -14, -13)
- end
- end
- end
- if mice[n].jump==true then
- if k==1 then
- if tfm.get.room.playerList[n].isJumping==true then
- else
- tfm.exec.movePlayer(n, 0, 0, true, 0, -70, false)
- end
- end
- end
- if can[n:gsub("+","__")] then
- if k==17 then
- if mice[n].tp==true then
- mice[n].tp=false
- else
- mice[n].tp=true
- end
- end
- if k==16 then
- if mice[n].coords==true then
- mice[n].coords=false
- else
- mice[n].coords=true
- end
- end
- end
- if k==88 then
- if mice[n].speed==true then
- local vx = facingLeft[n] and -50 or 50
- tfm.exec.movePlayer(n, 0, 0, true, vx, 0, true)
- end
- end
- end
- function randomColor()
- return "0x" .. string.format("%X", math.random(0x000000, 0xFFFFFF))
- end
- function eventLoop()
- if disco==true then
- for p in pairs(tfm.get.room.playerList) do
- tfm.exec.setNameColor(p, randomColor());
- end
- end
- for i,o in ipairs(toDespawn) do
- if os.time() > o[2]+despawnTime then
- tfm.exec.removeObject (o[1])
- table.remove (toDespawn, i)
- end
- end
- end
- function comando(q,n,v)
- if q=="ffa" then
- if n~="all" then
- if v=="on" then
- mice[n].ffa=true
- tfm.exec.chatMessage(t("ffaOn",n),n)
- else
- tfm.exec.chatMessage(tostring(t("ffaOff",n)),tostring(n))
- mice[n].ffa=false
- end
- else
- if v=="on" then
- table.foreach(tfm.get.room.playerList,function(a) mice[a].ffa=true tfm.exec.chatMessage(tostring(t("ffaOn",a)),a) end)
- else
- table.foreach(tfm.get.room.playerList,function(a) mice[a].ffa=false tfm.exec.chatMessage(tostring(t("ffaOff",a)),a) end)
- end
- end
- end
- if q=="fly" then
- if n~="all" then
- if v=="on" then
- mice[n].fly=true
- tfm.exec.chatMessage(t("flyOn",n),n)
- else
- mice[n].fly=false
- tfm.exec.chatMessage(t("flyOff",n),n)
- end
- else
- if v=="on" then
- table.foreach(tfm.get.room.playerList,function(a) mice[a].fly=true tfm.exec.chatMessage(t("flyOn",a),a) end)
- else
- table.foreach(tfm.get.room.playerList,function(a) mice[a].fly=false tfm.exec.chatMessage(t("flyOff",a),a) end)
- end
- end
- end
- end
- function eventChatCommand(n,c)
- local a = {}
- for arg in c:gmatch ("[^%s]+") do
- table.insert (a, arg)
- end
- a[1]=a[1]:lower()
- if can[n:gsub("+","__")] then
- if a[1]=="filtro" then
- if filtre==true then
- filtre=false
- eventGoTo()
- for i=1,#goTo do
- funChat("LUA",string.format(t("admins.filtroOff",goTo[i]),n),goTo[i])
- end
- else
- filtre=true
- eventGoTo()
- for i=1,#goTo do
- funChat("LUA",string.format(t("admins.filtroOn",goTo[i]),n),goTo[i])
- end
- end
- end
- if a[1]=="speed" then
- if a[3] then
- if a[3]=="on" then
- if a[2]=="all" then
- table.foreach(tfm.get.room.playerList,function(a) mice[a].speed=true tfm.exec.chatMessage(t("speedOn",a),a) end)
- settings.speed=true
- eventGoTo()
- for i=1,#goTo do
- funChat("LUA",string.format(t("admins.speedAllOn",goTo[i]),n),goTo[i])
- end
- else
- mice[a[2]].speed=true
- tfm.exec.chatMessage(t("speedOn",a[2]),a[2])
- eventGoTo()
- for i=1,#goTo do
- funChat("LUA",string.format(t("admins.speedOn",goTo[i]),n,a[2]),goTo[i])
- end
- end
- else
- if a[2]=="all" then
- table.foreach(tfm.get.room.playerList,function(a) mice[a].speed=false tfm.exec.chatMessage(t("speedOff",a),a) end)
- settings.speed=false
- eventGoTo()
- for i=1,#goTo do
- funChat("LUA",string.format(t("admins.speedAllOff",goTo[i]),n),goTo[i])
- end
- else
- mice[a[2]].speed=false
- tfm.exec.chatMessage(t("speedOff",a[2]),a[2])
- eventGoTo()
- for i=1,#goTo do
- funChat("LUA",string.format(t("admins.speedOff",goTo[i]),n,a[2]),goTo[i])
- end
- end
- end
- end
- end
- if a[1]=="jump" then
- if a[3] then
- if a[3]=="on" then
- if a[2]=="all" then
- settings.jump=true
- table.foreach(tfm.get.room.playerList,function(a) mice[a].jump=true tfm.exec.chatMessage(t("jumpOn",a),a) end)
- eventGoTo()
- for i=1,#goTo do
- funChat("LUA",string.format(t("admins.jumpAllOn",goTo[i]),n),goTo[i])
- end
- else
- mice[a[2]].jump=true
- tfm.exec.chatMessage(t("jumpOn",a[2]),a[2])
- eventGoTo()
- for i=1,#goTo do
- funChat("LUA",string.format(t("admins.jumpOn",goTo[i]),n,a[2]),goTo[i])
- end
- end
- else
- if a[2]=="all" then
- settings.jump=false
- table.foreach(tfm.get.room.playerList,function(a) mice[a].jump=false tfm.exec.chatMessage(t("jumpOff",a),a) end)
- eventGoTo()
- for i=1,#goTo do
- funChat("LUA",string.format(t("admins.jumpAllOff",goTo[i]),n),goTo[i])
- end
- else
- mice[a[2]].jump=false
- tfm.exec.chatMessage(t("jumpOff",a[2]),a[2])
- eventGoTo()
- for i=1,#goTo do
- funChat("LUA",string.format(t("admins.jumpOff",goTo[i]),n,a[2]),goTo[i])
- end
- end
- end
- end
- end
- if a[1]=="spawn" then
- if a[5] then
- if objects[a[2]] then
- tfm.exec.removeImage(objects[a[2]].image)
- tfm.exec.removeObject(objects[a[2]].object)
- end
- objects[a[2]]={}
- objects[a[2]].object=tfm.exec.addShamanObject(tonumber(a[3]),tonumber(a[4]),tonumber(a[5]))
- if a[6] then
- objects[a[2]].image=tfm.exec.addImage(a[6],"#"..objects[a[2]].object,(a[7] and tonumber(a[7]) or 0),(a[8] and tonumber(a[8]) or 0))
- eventGoTo()
- for i=1,#goTo do
- funChat("LUA",string.format(t("admins.spawnObjectImage",goTo[i]),n,a[2],a[3],a[4],a[5],a[6]),goTo[i])
- end
- else
- objects[a[2]].image=""
- eventGoTo()
- for i=1,#goTo do
- funChat("LUA",string.format(t("admins.spawnObject",goTo[i]),n,a[2],a[3],a[4],a[5]),goTo[i])
- end
- end
- end
- end
- if a[1]=="despawn" then
- if a[2] then
- if objects[a[2]] then
- tfm.exec.removeImage(objects[a[2]].image)
- tfm.exec.removeObject(objects[a[2]].object)
- eventGoTo()
- for i=1,#goTo do
- funChat("LUA",string.format(t("admins.despawnObject",goTo[i]),n,a[2]),goTo[i])
- end
- end
- end
- end
- if a[1]=="pw" then
- if a[2] then
- local msg=a[2]
- if a[3] then
- for i=3,#a do
- msg=msg.." "..a[i]
- end
- end
- tfm.exec.setRoomPassword(msg)
- eventGoTo()
- for i=1,#goTo do
- funChat("LUA",string.format(t("admins.pwOn",goTo[i]),n,msg),goTo[i])
- end
- else
- tfm.exec.setRoomPassword("")
- eventGoTo()
- for i=1,#goTo do
- funChat("LUA",string.format(t("admins.pwOff",goTo[i]),n),goTo[i])
- end
- end
- end
- if a[1]=="tpall" then
- if mice[n].tpall==true then
- mice[n].tpall=false
- eventGoTo()
- for i=1,#goTo do
- funChat("LUA",string.format(t("admins.tpAllOff",goTo[i]),n),goTo[i])
- end
- else
- mice[n].tpall=true
- eventGoTo()
- for i=1,#goTo do
- funChat("LUA",string.format(t("admins.tpAllOn",goTo[i]),n),goTo[i])
- end
- end
- end
- if a[1]=="sham" then
- if a[2] then
- if a[2]=="all" then
- table.foreach(tfm.get.room.playerList,function(a) tfm.exec.setShaman(a) end)
- eventGoTo()
- for i=1,#goTo do
- funChat("LUA",string.format(t("admins.shamanAll",goTo[i]),n),goTo[i])
- end
- else
- tfm.exec.setShaman(a[2])
- eventGoTo()
- for i=1,#goTo do
- funChat("LUA",string.format(t("admins.shamanUser",goTo[i]),n,a[2]),goTo[i])
- end
- end
- end
- end
- if a[1]=="funchat" then
- local msg=""
- for i=2,#a do
- msg=msg.." "..a[i]
- end
- funChat(n,msg)
- end
- if a[1]=="snow" then
- if a[2] then
- tfm.exec.snow(tonumber(a[2]))
- table.foreach(tfm.get.room.playerList,function(a) tfm.exec.chatMessage(t("snow",a),a) end)
- eventGoTo()
- for i=1,#goTo do
- funChat("LUA",string.format(t("admins.customSnow",goTo[i]),n,tonumber(a[2])),goTo[i])
- end
- else
- tfm.exec.snow()
- table.foreach(tfm.get.room.playerList,function(a) tfm.exec.chatMessage(t("snow",a),a) end)
- eventGoTo()
- for i=1,#goTo do
- funChat("LUA",string.format(t("admins.snow",goTo[i]),n),goTo[i])
- end
- end
- end
- if a[1]=="disco" then
- if disco==false then
- disco=true
- table.foreach(tfm.get.room.playerList,function(a) tfm.exec.chatMessage(t("discoOn",a),a) end)
- eventGoTo()
- for i=1,#goTo do
- funChat("LUA",string.format(t("admins.discoOn",goTo[i]),n),goTo[i])
- end
- else
- disco=false
- table.foreach(tfm.get.room.playerList,function(a) tfm.exec.chatMessage(t("discoOff",a),a) end)
- eventGoTo()
- for i=1,#goTo do
- funChat("LUA",string.format(t("admins.discoOff",goTo[i]),n),goTo[i])
- end
- end
- end
- if a[1]=="warn" then
- local msg=""
- for i=3,#a do
- msg=msg.." "..a[i]
- end
- tfm.exec.chatMessage("<font color='#EB0000'>[FunCorp] "..t("warning",a[2])..":"..msg,a[2])
- eventGoTo()
- for i=1,#goTo do
- funChat("LUA",string.format(t("admins.warned",goTo[i]),n,a[2],msg),goTo[i])
- end
- end
- if a[1]=="msg" then
- local msg=""
- for i=2,#a do
- msg=msg.." "..a[i]
- end
- eventGoTo()
- for i=1,#goTo do
- funChat("LUA",string.format(t("admins.funCorpMessage",goTo[i]),n),goTo[i])
- end
- tfm.exec.chatMessage("<font color='#E68D43'>[FunCorp]"..msg.."</font>")
- end
- if a[1]=="image" then
- if a[6] then
- if not images[a[2]] or images[a[2]]==nil then
- else
- tfm.exec.removeImage(images[a[2]])
- m=a[2].."aNa"
- images[m]=nil
- end
- m=a[2].."a"
- images[m]={a[3],a[6],a[4],a[5]}
- images[a[2]]=tfm.exec.addImage(a[3],a[6],a[4],a[5])
- eventGoTo()
- for i=1,#goTo do
- funChat("LUA",string.format(t("admins.addImage",goTo[i]),n,a[2],a[3],a[6]),goTo[i])
- end
- end
- end
- if a[1]=="removeimage" then
- if a[2] then
- if images[a[2]] then
- tfm.exec.removeImage(images[a[2]])
- m=a[2].."a"
- images[m]=nil
- eventGoTo()
- for i=1,#goTo do
- funChat("LUA",string.format(t("admins.removeImage",goTo[i]),n,a[2]),goTo[i])
- end
- end
- end
- end
- if a[1]=="listaimagen" then
- local lista="<V>[•]</V> Lista de imágenes\n"
- local signo="•"
- for k,v in pairs(images) do
- lista=lista.."• <VP>"..k.."</VP>: "
- local asd={}
- for lol in v:gmatch("[^,]+") do
- lol=tostring(lol)
- if lol:sub(0,18)=="tfm.exec.addImage(" then
- lol=lol:sub(19)
- end
- if lol:sub(#lol-1)==")" then
- lol=lol:sub(0,#lol-1)
- end
- table.insert(asd,lol)
- end
- lista=lista.."<VP>"..asd[1].."</VP>, X: <VP>"..asd[3].."</VP>, Y: <VP>"..asd[4].."</VP>, Formato: <VP>"..asd[2].."</VP>\n"
- end
- tfm.exec.chatMessage(lista,n)
- end
- if a[1]=="ffa" then
- if a[3] then
- if a[2]~="all" then
- if a[3]=="on" then
- comando("ffa",a[2],"on")
- eventGoTo()
- for i=1,#goTo do
- funChat("LUA",string.format(t("admins.ffaOnUser",goTo[i]),n,a[2]),goTo[i])
- end
- else
- comando("ffa",a[2],"off")
- eventGoTo()
- for i=1,#goTo do
- funChat("LUA",string.format(t("admins.ffaOffUser",goTo[i]),n,a[2]),goTo[i])
- end
- end
- else
- if a[3]=="on" then
- comando("ffa",a[2],"on")
- settings.ffa=true
- eventGoTo()
- for i=1,#goTo do
- funChat("LUA",string.format(t("admins.ffaOnAll",goTo[i]),n,a[2]),goTo[i])
- end
- else
- settings.ffa=false
- comando("ffa",a[2],"off")
- eventGoTo()
- for i=1,#goTo do
- funChat("LUA",string.format(t("admins.ffaOffAll",goTo[i]),n,a[2]),goTo[i])
- end
- end
- end
- end
- end
- if a[1]=="fly" then
- if a[3] then
- if a[2]=="all" then
- if a[3]=="on" then
- comando("fly",a[2],"on")
- settings.fly=true
- eventGoTo()
- for i=1,#goTo do
- funChat("LUA",string.format(t("admins.flyOnAll",goTo[i]),n),goTo[i])
- end
- else
- comando("fly",a[2],"off")
- settings.fly=true
- eventGoTo()
- for i=1,#goTo do
- funChat("LUA",string.format(t("admins.flyOffAll",goTo[i]),n),goTo[i])
- end
- end
- else
- if a[3]=="on" then
- comando("fly",a[2],"on")
- eventGoTo()
- for i=1,#goTo do
- funChat("LUA",string.format(t("admins.flyOnUser",goTo[i]),n,a[2]),goTo[i])
- end
- else
- comando("fly",a[2],"off")
- eventGoTo()
- for i=1,#goTo do
- funChat("LUA",string.format(t("admins.flyOffUser",goTo[i]),n,a[2]),goTo[i])
- end
- end
- end
- end
- end
- if a[1]=="vamp" then
- if a[2] then
- if a[2]=="all" then
- table.foreach(tfm.get.room.playerList,function(a) tfm.exec.setVampirePlayer(a) tfm.exec.chatMessage(t("vamp",a),a) end)
- eventGoTo()
- for i=1,#goTo do
- funChat("LUA",string.format(t("admins.vampAll",goTo[i]),n),goTo[i])
- end
- else
- tfm.exec.setVampirePlayer(a[2])
- tfm.exec.chatMessage(t("vamp",a[2]),a[2])
- eventGoTo()
- for i=1,#goTo do
- funChat("LUA",string.format(t("admins.vampUser",goTo[i]),n,a[2]),goTo[i])
- end
- end
- end
- end
- if a[1]=="kill" then
- if a[2] then
- if a[2]=="all" then
- table.foreach(tfm.get.room.playerList,function(a) tfm.exec.killPlayer(a) end)
- eventGoTo()
- for i=1,#goTo do
- funChat("LUA",string.format(t("admins.killAll",goTo[i]),n),goTo[i])
- end
- else
- tfm.exec.killPlayer(a[2])
- eventGoTo()
- for i=1,#goTo do
- funChat("LUA",string.format(t("admins.killUser",goTo[i]),n,a[2]),goTo[i])
- end
- end
- end
- end
- if a[1]=="map" then
- if a[2] then
- if a[2]:sub(1,1)=="@" then a[2]=tonumber(a[2]:sub(2)) else for i=0,9 do if a[2]:sub(1,1)==tostring(i) then a[2]=tonumber(a[2]) end end end
- tfm.exec.newGame(a[2])
- eventGoTo()
- for i=1,#goTo do
- funChat("LUA",string.format(t("admins.map",goTo[i],tonumber(a[2])),n,tonumber(a[2])),goTo[i])
- end
- end
- end
- if a[1]=="respawn" then
- if a[2] then
- if a[2]=="all" then
- table.foreach(tfm.get.room.playerList,function(a) tfm.exec.respawnPlayer(a) tfm.exec.chatMessage(t("respawn",a),a) end)
- eventGoTo()
- for i=1,#goTo do
- funChat("LUA",string.format(t("admins.respawnAll",goTo[i]),n),goTo[i])
- end
- else
- tfm.exec.respawnPlayer(a[2])
- tfm.exec.chatMessage(t("respawn",a[2]),a[2])
- eventGoTo()
- for i=1,#goTo do
- funChat("LUA",string.format(t("admins.respawnUser",goTo[i]),n,a[2]),goTo[i])
- end
- end
- end
- end
- if a[1]=="time" then
- if a[2] then
- if a[2]=="inf" then
- tfm.exec.setGameTime(99999)
- eventGoTo()
- for i=1,#goTo do
- funChat("LUA",string.format(t("admins.infiniteTime",goTo[i]),n),goTo[i])
- end
- else
- tfm.exec.setGameTime(tonumber(a[2]))
- eventGoTo()
- for i=1,#goTo do
- funChat("LUA",string.format(t("admins.setTime",goTo[i]),n,tonumber(a[2])),goTo[i])
- end
- end
- end
- end
- if a[1]=="help" then
- tfm.exec.chatMessage(t("admins.help",n),n)
- end
- if a[1]=="imgffa" then
- if a[2] then
- cannon=a[2]
- eventGoTo()
- for i=1,#goTo do
- funChat("LUA",string.format(t("admins.urlFfa",goTo[i]),n,a[2]),goTo[i])
- end
- else
- if mouseCannons==false then
- eventGoTo()
- for i=1,#goTo do
- funChat("LUA",string.format(t("admins.miceFfaOn",goTo[i]),n),goTo[i])
- end
- table.foreach(tfm.get.room.playerList,function(a) tfm.exec.chatMessage(t("miceFfaOn",a),a) end)
- mouseCannons=true
- else
- eventGoTo()
- for i=1,#goTo do
- funChat("LUA",string.format(t("admins.miceFfaOff",goTo[i]),n),goTo[i])
- end
- table.foreach(tfm.get.room.playerList,function(a) tfm.exec.chatMessage(t("miceFfaOff",a),a) end)
- mouseCannons=false
- end
- end
- end
- if a[1]=="imgall" then
- if a[5] then
- local q={}
- for a in pairs(tfm.get.room.playerList) do
- table.insert(q,a)
- end
- for i=1,#q do
- if images[iAT][q[i]] then
- tfm.exec.removeImage(images[iAT][q[i]])
- end
- images[iAT][q[i]]=tfm.exec.addImage(a[2],a[5]..q[i],a[3],a[4])
- end
- end
- end
- if a[1]=="imgalloff" then
- local q={}
- for a in pairs(tfm.get.room.playerList) do
- table.insert(q,a)
- end
- for i=1,#q do
- tfm.exec.removeImage(images[iAT][q[i]])
- images[iAT][q[i]]=nil
- end
- end
- if a[1]=="miceimg" then
- if a[3] then
- if a[3]=="all" then
- if a[2]=="off" then
- table.foreach(tfm.get.room.playerList,function(b) mice[b].imgu="none" end)
- settings.imgu="none"
- eventGoTo()
- for i=1,#goTo do
- funChat("LUA",string.format(t("admins.imgUAllOff",goTo[i]),n),goTo[i])
- end
- else
- if micesImg[a[2]] then
- table.foreach(tfm.get.room.playerList,function(b) mice[b].imgu=a[2] tfm.exec.chatMessage(t("imgU",b),b) end)
- settings.imgu=a[2]
- eventGoTo()
- for i=1,#goTo do
- funChat("LUA",string.format(t("admins.imgUAll",goTo[i]),n,a[2]),goTo[i])
- end
- else
- tfm.exec.chatMessage(string.format(t("admins.failImgU",n),a[2]),n)
- end
- end
- else
- if a[3]:sub(1,1)=="+" then a[3]="+"..a[3]:sub(2,2):upper()..a[3]:sub(3):lower() else a[3]=a[3]:sub(1,1):upper()..a[3]:sub(2):lower() end
- if a[2]=="off" then
- mice[a[3]].imgu="none"
- eventGoTo()
- for i=1,#goTo do
- funChat("LUA",string.format(t("admins.imgUOff",goTo[i]),n,a[3]),goTo[i])
- end
- else
- if micesImg[a[2]] then
- mice[a[3]].imgu=a[2]
- tfm.exec.chatMessage(t("imgU",a[3]),a[3])
- eventGoTo()
- for i=1,#goTo do
- funChat("LUA",string.format(t("admins.imgU",goTo[i]),n,a[2],a[3]),goTo[i])
- end
- else
- tfm.exec.chatMessage(string.format(t("admins.failImgU",n),a[2]),n)
- end
- end
- end
- end
- end
- end
- end
- cmds={"funchat","snow","disco","warn","msg","image","removeimage","listaimagen","ffa","fly","vamp","kill","map","respawn","time","imgffa","help","tpall","spawn","pw","jump","speed","sham","imgall","imgalloff","filtro","miceimg","despawn"}
- for i=1,#cmds do
- system.disableChatCommandDisplay(cmds[i])
- end
- function eventChatMessage(n,m)
- if filtre==true then
- m=m:lower()
- local a = {}
- for arg in m:gmatch ("[^%s]+") do
- table.insert (a, arg)
- end
- for i=1,#filtro do
- for v=1,#a do
- if a[v]==filtro[i] then
- tfm.exec.chatMessage("<font color='#EB0000'>[FunCorp] "..t("warning",n)..": "..t("modLanguage",n),n)
- eventGoTo()
- for i=1,#goTo do
- funChat("LUA",string.format(t("admins.warnedSystem",goTo[i]),n,m),goTo[i])
- end
- end
- end
- end
- end
- end
- function eventGoToImages()
- goToImages={}
- for a in pairs(images) do
- local q=(#a-3)
- if a:sub(q)=="aNa" then
- if images[a]~=nil then
- table.insert(goToImages,a)
- end
- end
- end
- end
- function eventNewGame()
- eventGoToImages()
- for i=1,#goToImages do
- images[goToImages[i]]=tfm.exec.addImage(images[goToImages[i]][1],images[goToImages[i]][2],images[goToImages[i]][3],images[goToImages[i]][4])
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement