Zeldaboy111

Skript #144

Apr 11th, 2019
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.73 KB | None | 0 0
  1. options:
  2. {quest::%attacker%::zombieskilled} = {quest::%{_p}%::zombieskilled}
  3. {quest::%player%::dirtmined} = {quest::%{_p}%::dirtmined}
  4.  
  5. function scoreboard(p: player):
  6.  
  7. wipe {_p}'s sidebar
  8.  
  9. set name of sidebar of {_p} to "&3Quests"
  10. set score "&bZombies:" in sidebar of {_p} to 10
  11.  
  12. if {quest::%{_p}%::zombieskilled} is not set:
  13. set score "&90/10 Zombies" in sidebar of {_p} to 9
  14.  
  15. else:
  16. if {quest::%{_p}%::zombieskilled} is more than 9:
  17. set score "&910/10 Zombies" in sidebar of {_p} to 9
  18.  
  19. else:
  20. set score "&9%{quest::%{_p}%::zombieskilled}%/10 Zombies" in sidebar of {_p} to 9
  21.  
  22. set score "" in sidebar of {_p} to 8
  23. set score "&bDirt" in sidebar of {_p} to 7
  24.  
  25. if {quest::%{_p}%::dirtmined} is not set:
  26. set score "&90/10 Dirt" in sidebar of {_p} to 6
  27.  
  28. else:
  29. if {quest::%{_p}%::dirtmined} is more than 9:
  30. set score "&910/10 Dirt" in sidebar of {_p} to 6
  31.  
  32. else:
  33. set score "&9%{quest::%{_p}%::dirtmined}%/10 Dirt" in sidebar of {_p} to 6
  34.  
  35.  
  36.  
  37. on death:
  38. victim is a zombie:
  39. if {quest::%attacker%::zombieskilled} is 9:
  40. add 1 to {quest::%attacker%::zombieskilled}
  41. drop 1 diamond at victim
  42.  
  43. if {quest::%attacker%::zombieskilled} is less than 9:
  44. add 1 to {quest::%attacker%::zombieskilled}
  45.  
  46. if {quest::%attacker%::zombieskilled} is not set:
  47. add 1 to {quest::%attacker%::zombieskilled}
  48.  
  49. on mine of dirt:
  50. if {quest::%player%::dirtmined} is 9:
  51. add 1 to {quest::%player%::dirtmined}
  52. drop 1 diamond at block
  53.  
  54. if {quest::%player%::dirtmined} is less than 9:
  55. add 1 to {quest::%player%::dirtmined}
  56.  
  57. if {quest::%player%::dirtmined} is not set:
  58. add 1 to {quest::%player%::dirtmined}
  59.  
  60.  
  61. every 1 tick:
  62. loop all players in world "CraftWars":
  63. scoreboard(loop-player)
Advertisement
Add Comment
Please, Sign In to add comment