Advertisement
Guest User

RandomTP (LTP)

a guest
Sep 21st, 2014
247
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # ------------------------------------------ #
  2. # ============== AUTOR / ZASADY ============ #
  3. # ------------------------------------------ #
  4.  
  5. #Autorem skryptu jest KaVoGaming.
  6.  
  7. #Nie Wolno Ci sie podszywac pod autora!
  8.  
  9. # ------------------------------------------------ #
  10. # ============== Ustawienia generalne ============ #
  11. # ------------------------------------------------ #
  12. options:
  13. xMin: -100 #Minimalny teleport dla X
  14. xMax: 4000 #Maksymalny teleport dla X
  15. zMin: -100 #Minimalny teleport dla Z
  16. zMax: 4000 #Maksymalny teleport dla Z
  17. yMin: 70 #Minimalny teleport dla Y
  18. yMax: 120 #Maksymalny teleport dla Y
  19. world: world #Swiat w ktorym to ma byc wykonywane. (domyslnie jest world: world)
  20. #--------------------------------------#
  21. # ======== Bloki / MSG / PEX ========= #
  22. #--------------------------------------#
  23. blok1: end stone #Blok na ktorym moze byc losowy teleport
  24. permissions: losowe.tp #permisja dla gracza
  25. #--------------------------------------#
  26. # ======= Efekty / Sila / Czas ======= #
  27. #--------------------------------------#
  28. #Szybkosc
  29. efekt1: speed
  30. sila1: 3
  31. czas1: 40
  32. #Mdlosci
  33. efekt2: nausea
  34. sila2: 7
  35. czas2: 15
  36.  
  37. #--------------------------------------#
  38. # =======- KOD SKRYPTU -======= #
  39. #--------------------------------------#
  40.  
  41. command /ltpautor:
  42. trigger:
  43. send "&l----------&9LTP &6&lv1.0&f----------"
  44. send " &6Skrypt napisany dla &lMPCForum.pl &6Przez KaVoGaming"
  45. send " &cNie wolno ci podszywac sie pod Autora Skryptu"
  46. send "&l----------&9LTP &6&lv1.0&f----------"
  47.  
  48. on rightclick on stone button:
  49. block behind target block is {@blok1}:
  50. if player has permissions "{@permissions}":
  51. set {_targetx} to a random integer between {@xMin} and {@xMax}
  52. set {_targetz} to a random integer between {@zMin} and {@zMax}
  53. execute console command "/tppos %player% %{_targetx}% {@yMin} %{_targetz}%"
  54. apply {@efekt1} {@sila1} to the player for {@czas1} seconds
  55. apply {@efekt2} {@sila2} to the player for {@czas2} seconds
  56. stop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement