Guest User

Elektryczny płot KLL4R

a guest
Jun 11th, 2017
227
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #---------------------------------------#
  2. #Autorem skryptu jest Killer22 tzw KLL4R#
  3. #---------------------------------------#
  4.  
  5.  
  6. options:
  7. # co ile zapetla graczy przy plocie, jezepi powyzej 0.5 powoduje, ze mozna podejsc, uciec i uniknac kopniecia przez prad
  8.     czas: 0.3
  9.  
  10. variables:
  11.     {kopniecie.%player%} = false
  12.  
  13. #--------------------------------------#
  14. #  dodawanie plotkow do elektrcznych   #
  15. #--------------------------------------#
  16. on place of fence:
  17.     name of player's tool is "&bElektryczny Plot":
  18.         player can build at targeted block:
  19.             send "&7Postawiles &bElektyczny Plot &7Uwazaj"
  20.             set {wlasciciel.%location of block%} to player
  21. #--------------------------------------#
  22. #    porazenie przy dotknieciu reka    #
  23. #--------------------------------------#
  24.  
  25. on break of fence:
  26.     {wlasciciel.%location of block%} is set:
  27.         clear {wlasciciel.%location of block%}
  28.  
  29. #--------------------------------------#
  30. #    porazenie przy styku z plotem     #
  31. #--------------------------------------#
  32. every 0.3 second:
  33.     loop all players:
  34.         {kopniecie.%loop-player%} is false
  35.         loop blocks in radius 1 of loop-player:
  36.             loop-block is fence:
  37.                 {wlasciciel.%location of loop-block%} is set:
  38.                     {wlasciciel.%location of loop-block%} isn't loop-player:
  39.                         strike lightning effect at loop-player
  40.                         send "&7Zostales Porazony Przez &bElektryczny Plot" to loop-player
  41.                         damage loop-player by 2 hearts
  42.                         remove  Nausea from loop-player
  43.                         remove Blindness from loop-player
  44.                         apply Nausea to loop-player for 7 seconds
  45.                         apply Blindness to loop-player for 5 seconds
  46.                         set {kopniecie.%loop-player%} to true
  47.                         wait 3 seconds
  48.                         set {kopniecie.%loop-player%} to false
  49.             loop-block is fence gate:
  50.                 {wlasciciel.%location of loop-block%} is set:
  51.                     {wlasciciel.%location of loop-block%} isn't loop-player:
  52.                         strike lightning effect at loop-player
  53.                         send "&7Zostales Porazony Przez &bElektryczny Plot" to loop-player
  54.                         damage loop-player by 2.5 hearts
  55.                         remove  Nausea from loop-player
  56.                         remove Blindness from loop-player
  57.                         apply Nausea to loop-player for 7 seconds
  58.                         apply Blindness to loop-player for 5 seconds
  59.                         set {kopniecie.%loop-player%} to true
  60.                         wait 3 seconds
  61.                         set {kopniecie.%loop-player%} to false
Advertisement
Add Comment
Please, Sign In to add comment