Entities

Untitled

Dec 16th, 2017
175
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.78 KB | None | 0 0
  1. on first join:
  2. set {level.%player's uuid%} to 1
  3. set {level.xp.cost.%player's uuid%} to random integer between 150 and 1000
  4. set {level.xp.%player's uuid%} to 0
  5. set {gold.%player's uuid%} to 50
  6. set {prestige.%player's uuid%} to 0
  7.  
  8. command /reset [<offline player>]:
  9. permission: restart.player
  10. trigger:
  11. set {level.%arg-1's uuid%} to 1
  12. set {level.xp.cost.%arg-1's uuid%} to random integer between 150 and 1000
  13. set {level.xp.%arg-1's uuid%} to 0
  14. set {gold.%arg-1's uuid%} to 50
  15. set {prestige.%arg-1's uuid%} to 0
  16.  
  17. every 5 seconds:
  18. if {level.xp.%player's uuid%} > {level.xp.cost.%player's uuid%}:
  19. make player execute "/levelup"
  20.  
  21. command /levelup:
  22. trigger:
  23. if {level.xp.%player's uuid%} > {level.xp.cost.%player's uuid%}:
  24. remove {level.xp.cost.%player's uuid%} from {level.xp.%player's uuid%}
  25. add 1 to {level.%player's uuid%}
  26. add random integer between 150 and 1000 to {level.xp.cost.%player's uuid%}
  27. add random integer between 50 and 100 to {gold.%player's uuid%}
  28.  
  29. command /set [<offline player>] <string> [<integer>]:
  30. permission: set.level.xp
  31. trigger:
  32. if arg-1 is set:
  33. if arg-2 is "level":
  34. if arg-3 is set:
  35. set {level.%player's uuid%} to arg-3
  36. if arg-2 is "xp":
  37. if arg-3 is set:
  38. set {level.xp.%player's uuid%} to arg-3
  39. if arg-2 is "xpcost":
  40. if arg-3 is set:
  41. set {level.xp.cost.%player's uuid%} to arg-3
  42.  
  43. command /reset..p..r..e..s..t:
  44. trigger:
  45. set {level.%player's uuid%} to 1
  46. set {level.xp.cost.%player's uuid%} to random integer between 250 and 2000
  47. add random integer between 20000 and 25000 {gold.%player's uuid%}
  48. add 1 to {prestige.%player's uuid%}
  49.  
  50. command /prestige:
  51. trigger:
  52. if {level.%player's uuid%} > 499:
  53. make player execute "reset..p..r..e..s..t"
Add Comment
Please, Sign In to add comment