Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on rightclick on a entity:
- if name of entity is "&6Warrior":
- if {currentQuests::%player%::*} does not contain "warriorQuest1":
- open chest with 1 rows named "&6Warrior - Quest" to player
- wait 5 ticks
- format slot 4 of player with book named "&aMission" to close then run [execute console command "warriorquest %player%"]
- if {currentQuests::%player%::*} contains "warriorQuest1":
- if {missionkills.%player%.warrior} >= 10:
- remove "warriorQuest1" from {currentQuests::%player%::*}
- add "warriorQuest2" to {currentQuests::%player%::*}
- message "&6Warrior&7 » &3You finished your quest, click again to claim your reward." to player
- else:
- message "&6Warrior &7» &3Finish your mission, then come back to me." to player
- if {currentQuests::%player%::*} contains "warriorQuest2":
- message "&6Warrior&7 » &3Thank you for your service! Here is your reward" to player
- remove "warriorQuest2" from {currentQuests::%player%::*}
- add "warriorQuest3" to {currentQuests::%player%::*}
- if {currentQuests::%player%::*} contains "warriorQuest3":
- message "&6Warrior&7 » &3You already completed this quest!"
- command /warriorquest [<player>]:
- permission: *
- trigger:
- add "warriorQuest1" to {currentQuests::%player%::*}
- set {missionkills.%player%.warrior} to 0
- message "&6Warrior &7» &3So.. you are willing to do a quest?" to arg-1
- wait 12 ticks
- message "&6Warrior&7 » &3Kill 10 zombies for me, and come back for a reward." to arg-1
- wait 12 ticks
- message "&8[&6DuskQuest&8] » &3Quest started! Kill 10 zombies." to arg-1
- on death:
- attacker is a player:
- victim is a zombie:
- if {currentQuests::%player%::*} contains "warriorQuest1":
- if {missionkills.%attacker%.warrior} < 11:
- add 1 to {missionkills.%attacker%.warrior}
- message "&a+ 1 zombie kill. Remaining: %10-{missionkills.%player%.warrior}%" to attacker
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement