Advertisement
Guest User

Untitled

a guest
Jan 21st, 2018
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.52 KB | None | 0 0
  1. -- Coloca el nombre de tu víctima (persona que será manipulada) sin borrar los "asteriscos".
  2. doll = "Víctima"
  3.  
  4. -- Escribe tu nombre SIN BORRAR los "asteriscos".
  5. god = "Tunombre"
  6. -- LISTO! Ahora puedes manipilar!
  7.  
  8. -- Controla a tu víctima usando los comandos:
  9. -- U - Arriba
  10. -- J - Abajo
  11. -- H - Izquierda
  12. -- K - Derecha
  13.  
  14. for name in pairs(tfm.get.room.playerList) do
  15. -- Instead of binding each key seperately, we put them all in a group.
  16. for keys, k in pairs({85, 74, 72, 75}) do
  17. --And now the keys are binded!
  18. tfm.exec.bindKeyboard(god, k, true, true)
  19. end
  20. end
  21.  
  22. -- Listening for keyboard events.
  23. -- You'll notice that move values are different because it makes the doll easier to control.
  24.  
  25. function eventKeyboard(god, key, down, x, y)
  26. if key == 85 then
  27. --Moves the player Up by 50 pixels
  28. tfm.exec.movePlayer(doll, 0, 0, true, 0, -50, false)
  29. elseif key == 74 then
  30. -- Moves the player Down by 40 pixels
  31. tfm.exec.movePlayer(doll, 0, 0, true, 0, 40, false)
  32. elseif key == 72 then
  33. -- Moves the player Left by 40 pixels
  34. tfm.exec.movePlayer(doll, 0, 0, true, -40, 0, false)
  35. elseif key == 75 then
  36. -- Moves the player Right by 40 pixels
  37. tfm.exec.movePlayer(doll, 0, 0, true, 40, 0, false)
  38. end
  39. end
  40.  
  41. -- El nombre de la víctima aparece solo para ti:
  42.  
  43. print("<font color='#FF0000'>"..doll.."<font color='#FFFF'> es ahora tu muñeco boodo!!")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement