Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -------------------- System --------------------
- _, nickname = pcall(nil)
- admin = string.match(nickname, "(.-)%.")
- for _, v in next, {'AutoShaman', 'AutoNewGame', 'AutoTimeLeft', 'PhysicalConsumables','AfkDeath','AutoScore','MortCommand','MinimalistMode'} do
- tfm.exec['disable' .. v]()
- end
- system.disableChatCommandDisplay()
- -------------------- Editable --------------------
- -- Escolha o mapa dentro das aspas simples. Ex: '@0'
- local map = '@7575838'
- -- Organiza os cargos. Não esqueça de colocar vírgula e aspas simples/duplas. Ex: ['director'] = {'Nickname#2333','Outro#8390','Mod#2412'}
- local order = {['leader'] = {'Iho#5679'},
- ['director'] = {'Anji#7570','Avanicaa#0000','Deadmaze16#0000','Floquinho#5645','Konzozo#0000','Larry#7619','Merryzs#0000','Phi#1265','Rap#9678','Shikamaru#1961','Silver#1268','Stardays#3226','Zfalash#3334'},
- ['diamond'] = {'Mara120#9370'},
- ['emerald'] = {},
- ['gold'] = {'Akame#8949','Fox_fire#8405','Mitoflap#1844','Mostrodos#0000','Nikiha09#5353'},
- }
- -- Coordenada x e y de spawn.
- local coordinate = {['leader'] = {767,343},
- ['director'] = {714,214},
- ['diamond'] = {555,94},
- ['emerald'] = {326,94},
- ['gold'] = {96,92},
- }
- -- Cor representante dos cargos.
- local color = {['leader'] = 'CB546B',['director'] = 'ED67EA',['diamond'] = '00fffb',['emerald'] = '00ff03',['gold'] = 'feff00'}
- -- Partículas do fireworks.
- local particle = {0,1,2,9,11,13}
- -------------------- Not editable --------------------
- local active
- form = function() for k,v in next, order do for i,j in next, order[k] do order[k][j] = true end end end
- form()
- function formatText(txt,form)
- p = {} for k in txt:gmatch(form) do p[#p + 1] = k end return p
- end
- eventNewPlayer = function(name)
- tfm.exec.respawnPlayer(name)
- tfm.exec.movePlayer(name,324,341,false,0,0,false) tfm.exec.setNameColor (name,'0xC2C2DA')
- for k,v in next, {'leader','director','diamond','emerald','gold'} do for i,j in next, order[v] do if name == j then tfm.exec.movePlayer(name,coordinate[v][1],coordinate[v][2],false,0,0,false) tfm.exec.setNameColor (name,'0x'..color[v]) end end end
- collision()
- end
- eventNewGame = function()
- table.foreach(tfm.get.room.playerList, eventNewPlayer)
- end
- collision = function()
- local id,x,y = 0,400,200
- tfm.exec.addPhysicObject (id + 1,x - 340,y + 65,{type = 14, width = 10, height = 270, friction = 0, restitution = 0.2, angle = 0,color = '0x101010', miceCollision = true, groundCollision = false, foreground = false, dynamic = false,fixedRotation = false, mass = 0, linearDamping = 0, angularDamping = 0})
- tfm.exec.addPhysicObject (id + 2,x + 200,y + 65,{type = 14, width = 10, height = 270, friction = 0, restitution = 0.2, angle = 0,color = '0x101010', miceCollision = true, groundCollision = false, foreground = false, dynamic = false,fixedRotation = false, mass = 0, linearDamping = 0, angularDamping = 0})
- tfm.exec.addPhysicObject (id + 3,x + 405,y,{type = 14, width = 10, height = 400, friction = 0, restitution = 0.2, angle = 0,color = '0x101010', miceCollision = true, groundCollision = false, foreground = false, dynamic = false,fixedRotation = false, mass = 0, linearDamping = 0, angularDamping = 0})
- tfm.exec.addPhysicObject (id + 4,x + 245,y - 130,{type = 14, width = 10, height = 130, friction = 0, restitution = 0.2, angle = 0,color = '0x101010', miceCollision = true, groundCollision = false, foreground = false, dynamic = false,fixedRotation = false, mass = 0, linearDamping = 0, angularDamping = 0})
- tfm.exec.addPhysicObject (id + 5,x,y - 200,{type = 14, width = 800, height = 10, friction = 0, restitution = 0.2, angle = 0,color = '0x101010', miceCollision = true, groundCollision = false, foreground = false, dynamic = false,fixedRotation = false, mass = 0, linearDamping = 0, angularDamping = 0})
- tfm.exec.addPhysicObject (id + 6,x - 190,y - 120,{type = 14, width = 60, height = 170, friction = 0, restitution = 0.2, angle = 0,color = '0x101010', miceCollision = true, groundCollision = false, foreground = false, dynamic = false,fixedRotation = false, mass = 0, linearDamping = 0, angularDamping = 0})
- tfm.exec.addPhysicObject (id + 7,x + 40,y - 120,{type = 14, width = 60, height = 170, friction = 0, restitution = 0.2, angle = 0,color = '0x101010', miceCollision = true, groundCollision = false, foreground = false, dynamic = false,fixedRotation = false, mass = 0, linearDamping = 0, angularDamping = 0})
- tfm.exec.addPhysicObject (id + 8,x + 155,y - 70,{type = 14, width = 170, height = 10, friction = 0, restitution = 0.2, angle = 0,color = '0x101010', miceCollision = true, groundCollision = false, foreground = false, dynamic = false,fixedRotation = false, mass = 0, linearDamping = 0, angularDamping = 0})
- tfm.exec.addPhysicObject (id + 9,x - 75,y - 70,{type = 14, width = 166, height = 10, friction = 0, restitution = 0.2, angle = 0,color = '0x101010', miceCollision = true, groundCollision = false, foreground = false, dynamic = false,fixedRotation = false, mass = 0, linearDamping = 0, angularDamping = 0})
- tfm.exec.addPhysicObject (id + 10,x - 310,y - 70,{type = 14, width = 170, height = 10, friction = 0, restitution = 0.2, angle = 0,color = '0x101010', miceCollision = true, groundCollision = false, foreground = false, dynamic = false,fixedRotation = false, mass = 0, linearDamping = 0, angularDamping = 0})
- tfm.exec.addPhysicObject (id + 11,x - 395,y - 140,{type = 14, width = 10, height = 130, friction = 0, restitution = 0.2, angle = 0,color = '0x101010', miceCollision = true, groundCollision = false, foreground = false, dynamic = false,fixedRotation = false, mass = 0, linearDamping = 0, angularDamping = 0})
- tfm.exec.addPhysicObject (id + 12,x + 301,y + 30,{type = 14, width = 200, height = 10, friction = 0.3, restitution = 0.2, angle = 0,color = '0x101010', miceCollision = true, groundCollision = false, foreground = false, dynamic = false,fixedRotation = false, mass = 0, linearDamping = 0, angularDamping = 0})
- end
- fireworks = function(x,y)
- local current = particle[math.random(1,#particle)]
- for i = 1,math.random(3,12) do
- tfm.exec.displayParticle (current,(x - (5 * i)),(y),0,-(0.4 * i))
- tfm.exec.displayParticle (current,(x + (5 * i)),(y),0,(0.4 * i))
- tfm.exec.displayParticle (current,(x),(y - (5 * i)),(0.4 * i),0)
- tfm.exec.displayParticle (current,(x),(y + (5 * i)),-(0.4 * i),0)
- tfm.exec.displayParticle (current,(x + (5 * i)),(y),0,-(0.4 * i))
- tfm.exec.displayParticle (current,(x - (5 * i)),(y),0,(0.4 * i))
- tfm.exec.displayParticle (current,(x),(y + (5 * i)),(0.4 * i),0)
- tfm.exec.displayParticle (current,(x),(y - (5 * i)),-(0.4 * i),0)
- tfm.exec.displayParticle (current,(x),(y),0,-(0.5 * i))
- tfm.exec.displayParticle (current,(x),(y),0,(0.5 * i))
- tfm.exec.displayParticle (current,(x),(y),(0.5 * i),0)
- tfm.exec.displayParticle (current,(x),(y),-(0.5 * i),0)
- end
- end
- --[[
- Somente líder e sub-líder / 'leader' and 'director'
- Comando por chat.
- Ex: !comando valor
- !size 4
- Utilize size para alterar o tamanho do seu rato. Valores entre 0.1 a 5.
- !tp 400 400
- Utilize tp para teletransportar seu rato para uma determinada coordenada, x e y.
- !soulmate #soul#1234 activate / !soulmate #soul#1234 disable
- Utilize para criar/desfazer um vínculo com outro jogador.
- !transform activate / !transform disable
- Utilize para ativar/desativar o modo de transformação
- !consumable disable / !consumable activate
- Utilize para liberar/encerrar o uso de consumíveis no cafofo.
- !emote 10 br
- Utilize para quê todos realizem uma emoção. id da emoção e o parâmetro[br fr us].
- lista [ID Emoção
- 0 Dançar
- 1 Rir
- 2 Chorar
- 3 Beijar
- 4 Irritado
- 5 Bater palmas
- 6 Dormir
- 7 Facepalm
- 8 Sentar
- 9 Confete
- 10 Bandeira
- 11 Marshmallow
- 12 Self
- 13 Mão pra cima
- 14 Hive Five
- 15 Hive Five
- 16 Lingua de sogra
- ]
- !message Olá, como vocês estão?
- Utilize para criar uma Pop-up com alguma mensagem para todos jogadores.
- !fireworks
- Utilize para ativar/desativar a queima de fogos de artifício.
- !collision
- Utilize para ativar/desativar a colisão da barreira.
- !order
- Utilize para colocar tudo bem ordem.
- ]]--
- eventChatCommand = function(name,c)
- if order['leader'][name] or order['director'][name] then
- local c = formatText(c:lower(),'[^%s]+')
- if c[1] == 'size' then tfm.exec.changePlayerSize(name,c[2])
- elseif c[1] == 'tp' then tfm.exec.movePlayer(name,c[2],c[3],false,0,0,false)
- elseif c[1] == 'soulmate' then tfm.exec.linkMice (name,c[2],(c[3] == 'activate'))
- elseif c[1] == 'transform' then tfm.exec.giveTransformations (name, c[2] == 'activate')
- elseif c[1] == 'consumable' then tfm.exec.disablePhysicalConsumables(c[2] == 'disable' and true or c[2] == 'activate' and false)
- elseif c[1] == 'emote' then for k,v in next, tfm.get.room.playerList do tfm.exec.playEmote (k,c[2],c[3]) end
- elseif c[1] == 'message' then c[1] = '' ui.addPopup(1,0,'[<font color="#'..(order['leader'][name] and color['leader'] or order['director'][name] and color['director'])..'">'..name..'</font>]'..table.concat(c,' '),nil,275,175,250,true)
- elseif c[1] == 'fireworks' then active = (active and false or not active and true)
- elseif c[1] == 'collision' then if c[2] == 'disable' then for i = 1,15 do tfm.exec.removePhysicObject(i) end elseif c[2] == 'activate' then collision() end
- elseif c[1] == 'order' then table.foreach(tfm.get.room.playerList, eventNewPlayer) end
- end
- end
- eventLoop = function()
- if active then for i = 1,math.random(1,4) do fireworks(math.random(100,700),math.random(40,360)) end end
- end
- eventPlayerDied = function(name)
- tfm.exec.respawnPlayer(name)
- end
- eventPlayerWon = function(name)
- tfm.exec.respawnPlayer(name)
- end
- --tfm.exec.newGame(map)
- table.foreach(tfm.get.room.playerList, eventNewPlayer)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement