Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- vitima= "Bote sua vitima aqui"
- troll = "Seu nick aqui"
- -- pronto agora você pode trollar as pessoas c:
- -- Comandos:
- -- 73 é I: a tecla pra pular sua vitima
- -- 75 é K: tecla para abaixar sua vitima(obs: nao é agaixar é faze-lo cair forçando rato pra baixo).
- -- 74 é J: tecla para esquerda.
- -- 76 é L: tecla para direita.
- for name in pairs(tfm.get.room.playerList) do
- -- Instead of binding each key seperately, we put them all in a group.
- for keys, k in pairs({73, 74, 75, 76}) do
- --And now the keys are binded!
- tfm.exec.bindKeyboard(troll, k, true, true)
- end
- end
- function eventKeyboard(troll, key, down, x, y)
- if key == 73 then
- -- Move Vitima para Cima: 50 pixels
- tfm.exec.movePlayer(vitima, 0, 0, true, 0, -50, false)
- elseif key == 75 then
- -- Move Vitima para Baixo: 40pixels
- tfm.exec.movePlayer(vitima, 0, 0, true, 0, 40, false)
- elseif key == 74 then
- -- Move Vitima para Esquerda: 40pixels
- tfm.exec.movePlayer(vitima, 0, 0, true, -40, 0, false)
- elseif key == 76 then
- -- Move Vitima para Direita: 40pixels
- tfm.exec.movePlayer(vitima, 0, 0, true, 40, 0, false)
- end
- end
- -- Avisa quem é sua vitima.
- print("<font color='#FFFF00'>"..vitima.."<font color='#FFFF00'> ser sua vitima!")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement