Bu9M27DJ
Język: Skript
|
Autor: Anonimowy
on right click on entity: if name of event-entity is "&e&lQuesty": wait tick open virtual chest with 3 rows named "&e&lQuesty" to player wait tick set {_} to 0 loop 27 times: format gui slot {_} of player with stained glass pane named " &a " add 1 to {_} format gui slot 13 of player with book named "&e&lQuest 1" with lore "&7&oZniszcz 10 stone" to close then run function quest(player) function quest(p: player): if {quest1.%{_p}%} is not set: set {quest1.%{_p}%} to 1 set {wykonane.quest1.%{_p}%} to 0 send "&a&lRozpoczales pierwszego questa! Zniszcz 10 stone!" to {_p} stop if {quest1.%{_p}%} is 1: if {wykonane.quest1.%{_p}%} is 1: send "&a&lWykonales questa! Otrzymales &8&lKilof!" to {_p} give 1 diamond pickaxe named "&8&lKilof &e&lz Questu 1" to {_p} set {quest1.%{_p}%} to 2 else: send "&c&lNie wykonales jeszcze questa!" to {_p} stop if {quest1.%{_p}%} is 2: send "&c&lWykonales juz tego questa!" to {_p} stop on mine of stone: if {quest1.%player%} is 1: if {wykonane.quest1.%player%} is 0: if {kopansko.quest1.%player%} is not set: set {kopansko.quest1.%player%} to 0 add 1 to {kopansko.quest1.%player%} if {kopansko.quest1.%player%} is 10: set {wykonane.quest1.%player%} to 1 send "&a&lWykonano misje, idz do npc &e&lQuesty&a&l, by odebrac nagrode!" to player