Guest User

RandomTPByKaVoGaming

a guest
Sep 21st, 2014
309
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.25 KB | None | 0 0
  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: gold block #Blok 1 na ktorym moze byc losowy teleport
  24. blok2: end stone #Blok 2 na ktorym moze byc losowy teleport
  25. permissions: losowe.tp #permisja dla gracza
  26. #--------------------------------------#
  27. # ======= Efekty / Sila / Czas ======= #
  28. #--------------------------------------#
  29. #Szybkosc
  30. efekt1: speed
  31. sila1: 3
  32. czas1: 40
  33. #Mdlosci
  34. efekt2: nausea
  35. sila2: 7
  36. czas2: 15
  37.  
  38. #--------------------------------------#
  39. # =======- KOD SKRYPTU -======= #
  40. #--------------------------------------#
  41.  
  42. command /ltpautor:
  43. trigger:
  44. send "&l----------&9LTP &6&lv1.0&f----------"
  45. send " &6Skrypt napisany dla &lMPCForum.pl &6Przez KaVoGaming"
  46. send " &cNie wolno ci podszywac sie pod Autora Skryptu"
  47. send "&l----------&9LTP &6&lv1.0&f----------"
  48.  
  49. on rightclick on stone button:
  50. block behind target block is {@blok1} or {@blok2}:
  51. if player has permissions "{@permissions}":
  52. set {_targetx} to a random integer between {@xMin} and {@xMax}
  53. set {_targetz} to a random integer between {@zMin} and {@zMax}
  54. execute console command "/tppos %player% %{_targetx}% {@yMin} %{_targetz}%"
  55. apply {@efekt1} {@sila1} to the player for {@czas1} seconds
  56. apply {@efekt2} {@sila2} to the player for {@czas2} seconds
  57. stop
Advertisement
Add Comment
Please, Sign In to add comment