variables: {wither::%player%} = 0 {mszkielety::%player%} = 0 {pigzombie::%player%} = 0 {misja1::%player%} = 0 {misja2::%player%} = 0 {misja3::%player%} = 0 {czas} = 24 every 1 hour: if {misje::czas} isn't 0: remove 1 from {misje::czas} else: set {wither::*} to 0 set {mszkielety::*} to 0 set {pigzombie::*} to 0 set {czas} to 24 set {misja1::*} to 0 set {misja2::*} to 0 set {misja3::*} to 0 options: nazwa npc: &e&lDzienne Netherowe Questy #- Tu ustawiasz nazwe npc nazwa gui: &8&lDzienne Netherowe Questy #- Tu ustawiasz nazwe wyswietlanego gui akceptacja: &2* &aPrzyjales misje. #- Tu ustawiasz wiadomosc o przyjeciu misji wykonano: &6* &eWykonales misje. Odbierz nagrode. #- Tu ustawiasz wiadomosc o wykonanej misji miejsce: &4* &cNie masz miejsca w ekwipunku. Przedmioty wypadly na ziemie. #- Tu ustawiasz wiadomosc o braku miejsca on right click on entity: if event-entity's name is "{@nazwa npc}": open chest with 1 row named "{@nazwa gui}" to player wait 1 tick if {misja1::%player%} is 0: set player's current inventory's slot 3 to ("Wither" parsed as offline player)'s skull named "&f&lZabij 1 withera" with lore "&7&oKliknij, aby przyjac misje." else: if {misja1::%player%} is 1: set player's current inventory's slot 3 to ("Wither" parsed as offline player)'s skull named "&f&lZabij 1 withera" with lore "&7&oKliknij, aby sprawdzic postep." else: if {misja1::%player%} is 2: set player's current inventory's slot 3 to ("Wither" parsed as offline player)'s skull named "&f&lZabij 1 withera" with lore "&6&oWykonales te misje." if {misja2::%player%} is 0: set player's current inventory's slot 4 to wither skeleton head named "&f&lZabij 20 Mrocznych Szkieletow" with lore "&7&oKliknij, aby przyjac misje." else: if {misja2::%player%} is 1: set player's current inventory's slot 4 to wither skeleton head named "&f&lZabij 20 Mrocznych Szkieletow" with lore "&7&oKliknij, aby sprawdzic postep." else: if {misja2::%player%} is 2: set player's current inventory's slot 4 to wither skeleton head named "&f&lZabij 20 Mrocznych Szkieletow" with lore "&6&oWykonales te misje." if {misja3::%player%} is 0: set player's current inventory's slot 5 to ("Pigman" parsed as offline player)'s skull named "&f&lZabij 20 PigZombie" with lore "&7&oKliknij, aby przyjac misje." else: if {misja3::%player%} is 1: set player's current inventory's slot 5 to ("Pigman" parsed as offline player)'s skull named "&f&lZabij 20 PigZombie" with lore "&7&oKliknij, aby sprawdzic postep." else: if {misja3::%player%} is 2: set player's current inventory's slot 5 to ("Pigman" parsed as offline player)'s skull named "&f&lZabij 20 PigZombie" with lore "&6&oWykonales te misje." on inventory click: if "%inventory name of player's current inventory%" contains "{@nazwa gui}": if clicked slot is 3: cancel event close player's inventory if {misja1::%player%} is 0: set {misja1::%player%} to 1 send "{@akceptacja}" to player else: if {misja1::%player%} is 1: if {wither::%player%} isn't 1: send "&7Postep misji: &6%{wither::%player%}%/1" to player else: set {misja1::%player%} to 2 send "{@wykonano}" if player can hold 5 diamond: give 5 diamond to player's inventory else: drop 5 diamond at location of player send "{@miejsce}" else: if {misja1::%player%} is 2: cancel event if clicked slot is 4: cancel event close player's inventory if {misja2::%player%} is 0: set {misja2::%player%} to 1 send "{@akceptacja}" to player else: if {misja2::%player%} is 1: if {mszkielety::%player%} isn't 20: send "&7Postep misji: &6%{mszkielety::%player%}%/20" to player else: set {misja2::%player%} to 2 send "{@wykonano}" if player can hold 5 diamond: give 5 diamond to player's inventory else: drop 5 diamond at location of player send "{@miejsce}" else: if {misja2::%player%} is 2: cancel event if clicked slot is 5: cancel event close player's inventory if {misja3::%player%} is 0: set {misja3::%player%} to 1 send "{@akceptacja}" to player else: if {misja3::%player%} is 1: if {pigzombie::%player%} isn't 20: send "&7Postep misji: &6%{pigzombie::%player%}%/20" to player else: set {misja3::%player%} to 2 send "{@wykonano}" if player can hold 5 diamond: give 5 diamond to player's inventory else: drop 5 diamond at location of player send "{@miejsce}" else: if {misja3::%player%} is 2: cancel event on death: if victim is wither: if {misja1::%attacker%} is 1: if {wither::%attacker%} isn't 1: add 1 to {wither::%attacker%} if victim is zombie pigman: if {misja3::%attacker%} is 1: if {pigzombie::%attacker%} isn't 20: add 1 to {pigzombie::%attacker%} if victim is wither skeleton: if {misja2::%attacker%} is 1: if {mszkielety::%attacker%} isn't 20: add 1 to {mszkielety::%attacker%} command /xdd: trigger: open chest with 1 row to player wait 2 ticks set player's current inventory's slot 0 to ("Pigman" parsed as offline player)'s skull