Advertisement
CREAMPAN0408

Untitled

Feb 16th, 2019
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.28 KB | None | 0 0
  1. #!#############################
  2. #! #
  3. #! RPG-CLASSES #
  4. #! EV1lS3B4ST14N #
  5. #! #
  6. #!#############################
  7.  
  8. #rpg.class.selector
  9. #rpg.class.progress
  10. #rpg.class.set
  11.  
  12. #Open class selector to player
  13. on join:
  14. player has permission "rpg.class.selector":
  15. if {rpg.%player%.class} is not set:
  16. open chest with 1 rows named "&e&lCLASS SELECTOR" to player
  17. format slot 0 of player with diamond helmet named "&cWarrior" with lore "&eClick to choose &cWarrior &eclass" to close then run "setclass Warrior %player%"
  18. format slot 1 of player with bow named "&eArcher" with lore "&eClick to choose &cArcher &eclass" to close then run "setclass Archer %player%"
  19. else:
  20. message "&eWelcome back!"
  21. player doesn't have permission "rpg.class.slector":
  22.  
  23. command /clearclass:
  24. permission: rpg.class.clear
  25. trigger:
  26. clear {rpg.%player%.class}
  27. message "&cClass Cleared!"
  28.  
  29. command /setclass <text> <player>:
  30. permission: rpg.class.set
  31. trigger:
  32. set {rpg.%arg-2%.class} to "%arg 1%"
  33. set {rpg.%arg-2%.currentexp} to 0
  34. set {rpg.%arg-2%.level} to 1
  35. set {rpg.%arg-2%.lvlexp} to ({rpg.%arg-2%.level}*30)
  36. message "&eYour choice was the class &c%{rpg.%arg-2%.class}%" to arg 2
  37. set {rpg.%arg-2%.mobkills} to 0
  38. set {rpg.%arg-2%.playerkills} to 0
  39. set {rpg.%arg-2%.axelevel} to 0
  40. set {rpg.%arg-2%.pickaxelevel} to 0
  41. set {rpg.%arg-2%.damage} to 0
  42. set {rpg.%arg-2%.damage.venom} to 0
  43. set {rpg.%arg-2%.armor} to 0
  44. set {rpg.%arg-2%.axelevel} to 0
  45. set {rpg.%arg-2%.pickaxelevel} to 0
  46. wait 1 second
  47.  
  48. on inventory close:
  49. {rpg.%player%.class} is not set:
  50.  
  51. #See class progress
  52. command /class:
  53. trigger:
  54. {rpg.%player%.class} is set:
  55. player has permission "rpg.class.progress":
  56. open chest with 1 rows named "&e&lCLASS PROGRESS" to player
  57. format slot 0 of player with experience bottle named "&aClass Experience" with lore "&e%{rpg.%player%.currentexp}%/%{rpg.%player%.lvlexp}%" to be unstealable
  58. format slot 1 of player with skeleton head named "&bMob Kills" with lore "&e%{rpg.%player%.mobkills}%" to be unstealable
  59. format slot 2 of player with wither skeleton head named "&dPlayer Kills" with lore "&e%{rpg.%player%.playerkills}%" to be unstealable
  60. if {rpg.%player%.class} is "Warrior":
  61. format slot 4 of player with diamond helmet named "&c%{rpg.%player%.class}%&e level &a%{rpg.%player%.level}%" to close then run [message "&eYou chose the &c%{rpg.%player%.class}% &eclass"]
  62. else if {rpg.%player%.class} is "Archer":
  63. format slot 4 of player with bow named "&c%{rpg.%player%.class}%&e level &a%{rpg.%player%.level}%" to close then run [message "&eYou chose the &c%{rpg.%player%.class}% &eclass"]
  64. player doesn't have permission "rpg.class.progress":
  65. message "&cYou don't have the permission to check your progress"
  66.  
  67. #Set tools of player
  68. on join:
  69. slot 0 of player is not any chestplate:
  70. set slot 0 of player to leather chestplate of unbreaking 3 named "&bEquipment" with lore "&cRPG"
  71. slot 2 of player is not any axe:
  72. set slot 2 of player to wooden axe named "&7Default Axe" with lore "&cRPG"
  73. slot 3 of player is not any pickaxe:
  74. set slot 3 of player to wooden pickaxe named "&7Default Pickaxe" with lore "&cRPG"
  75. boot slot of player is not any boots:
  76. set boot slot of player to leather boots named "&7Default Boots" with lore "&cRPG"
  77. leggings slot of player is not any leggings:
  78. set leggings slot of player to leather leggings named "&7Default Leggings" with lore "&cRPG"
  79. chestplate slot of player is not any chestplate:
  80. set chestplate slot of player to leather chestplate named "&7Default Chestplate" with lore "&cRPG"
  81. helmet slot of player is not any helmet:
  82. set helmet slot of player to leather helmet named "&7Default Helmet" with lore "&cRPG"
  83. {rpg.%player%.class} is "Archer":
  84. slot 1 of player is not any bow:
  85. set slot 1 of player to bow named "&7Default Bow" with lore "&cRPG"
  86. {rpg.%player%.class} is "Warrior":
  87. slot 1 of player is not any sword:
  88. set slot 1 of player to wooden sword named "&7Default Bow" with lore "&cRPG"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement