Advertisement
Guest User

Untitled

a guest
Feb 21st, 2020
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.14 KB | None | 0 0
  1. on rightclick on a entity:
  2. if name of entity is "&6Warrior":
  3. if {mission.%player%.warrior} is not set:
  4. open chest with 1 rows named "&6Warrior - Quest" to player
  5. wait 5 ticks
  6. format slot 4 of player with book named "&aMission" to close then run [execute console command "warriorquest %player%"]
  7. stop
  8. if {mission.%player%.warrior} is 1:
  9. if {missionkills.%player%.warrior} is 10:
  10. add 1 to {mission.%player%.warrior}
  11. else:
  12. message "&3Finish your mission, then come back to me."
  13. stop
  14. if {mission.%player%.warrior} is 2:
  15. message "&3Thank you for your service! Here is your reward"
  16. stop
  17.  
  18. command /warriorquest [<player>]:
  19. permission: *
  20. trigger:
  21. message "&6Warrior ยป &3So you are willing to do a quest?"
  22. wait 6 ticks
  23. message "Kill 10 zombies for me, and come back for a reward."
  24. wait 6 ticks
  25. message "&8[&6DuskQuest&8] ยป &3Quest started! Kill 10 zombies."
  26.  
  27. on death:
  28. attacker is a player:
  29. victim is a zombie:
  30. if {mission.%player%.warrior} is 1:
  31. add 1 to {missionkills.%player%.warrior}
  32. message "&a+ 1 zombie kill. Remaining: %10-{missionkills.%player%.warrior}%"
  33. stop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement