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 {mission.%player%.warrior} is not set:
- 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%"]
- stop
- if {mission.%player%.warrior} is 1:
- if {missionkills.%player%.warrior} is 10:
- add 1 to {mission.%player%.warrior}
- else:
- message "&3Finish your mission, then come back to me."
- stop
- if {mission.%player%.warrior} is 2:
- message "&3Thank you for your service! Here is your reward"
- stop
- command /warriorquest [<player>]:
- permission: *
- trigger:
- message "&6Warrior » &3So you are willing to do a quest?"
- wait 6 ticks
- message "Kill 10 zombies for me, and come back for a reward."
- wait 6 ticks
- message "&8[&6DuskQuest&8] » &3Quest started! Kill 10 zombies."
- on death:
- attacker is a player:
- victim is a zombie:
- if {mission.%player%.warrior} is 1:
- add 1 to {missionkills.%player%.warrior}
- message "&a+ 1 zombie kill. Remaining: %10-{missionkills.%player%.warrior}%"
- stop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement