Facebook
From Flying Bee, 9 Years ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 646
  1. #Skrypt napisany przez Msczosnal
  2.  
  3.  
  4. #żeby ustawic miejsce na spawn zombie trzeba stworzyc region, ktory ustawic mozna w opcjach.
  5.  
  6.  
  7. options:
  8.         czas: 5 #czas respawnu w sekundach, bedzie 1 sekunda wiecej poniewaz jest every 1 second!
  9.         limit: 20 #limit zombie do zrespienia
  10.         region: pomoc #Nazwa regionu w ktorym maja sie respic zombie
  11.        
  12.  
  13. variables:
  14.         {zombiaki} = 0
  15. command /spawnzombie:
  16.         trigger:
  17.                 if {zombie::*} is not set:
  18.                         if player is in "{@region}":
  19.                                 add location of player to {zombie::*}
  20.                                 send "&aUstawiles spawn zombie"
  21.                         else:
  22.                                 send "&cNie znajdujesz sie na regionie ''{@region}''"
  23.                 else:
  24.                         send "&cSpawn zombie jest ustawiony, jezeli chcesz go przeniesc wpisz /usun"
  25.                        
  26. on spawn:
  27.         if event-entity is not player:
  28.                 if event-entity is in "{@region}":
  29.                         cancel event
  30. on death of zombie:
  31.         if name of victim is "&7Zombie":
  32.                 remove 1 from {zombiaki}
  33. every 1 second:
  34.         if {zombiaki} is greater or equal to {@limit}:
  35.                 stop
  36.         else:
  37.                 loop {zombie::*}:
  38.                         add 1 to {zombiaki}
  39.                         wait {@czas} seconds
  40.                         spawn 1 zombie at location of loop-value
  41.                         set the name of last spawned entity to "&7Zombie"
  42. command /usun:
  43.         trigger:
  44.                 set {zombiaki} to 0
  45.                 loop {zombie::*}:
  46.                         remove loop-value from {zombie::*}
  47.                 loop all zombies:
  48.                         if name of loop-entity is "&7Zombie":
  49.                                 delete loop-entity
  50. every 5 second:
  51.         loop all zombies:
  52.                 if name of loop-zombies is "&7Zombie":
  53.                         loop-zombie is in "{@region}":
  54.                                 apply fire resistance to loop-entity for 10 second
  55.                         else:
  56.                                 kill loop-zombie
  57.