Advertisement
Guest User

Skript Example

a guest
Aug 22nd, 2019
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.63 KB | None | 0 0
  1. on right click on entity:
  2. if clicked entity is citizen:
  3. if clicked entity is "&6Information":
  4. open chest with 6 rows named "&6Information" to player
  5. format slot 0 of player with black stained glass pane named "&8[&6-&8]" to be unstealable
  6. format slot 1 of player with black stained glass pane named "&8[&6-&8]" to be unstealable
  7. format slot 2 of player with black stained glass pane named "&8[&6-&8]" to be unstealable
  8. format slot 3 of player with black stained glass pane named "&8[&6-&8]" to be unstealable
  9. format slot 4 of player with skull of player named "&c&n&l%player%" to be unstealable
  10. format slot 5 of player with black stained glass pane named "&8[&6-&8]" to be unstealable
  11. format slot 6 of player with black stained glass pane named "&8[&6-&8]" to be unstealable
  12. format slot 7 of player with black stained glass pane named "&8[&6-&8]" to be unstealable
  13. format slot 8 of player with black stained glass pane named "&8[&6-&8]" to be unstealable
  14. format slot 9 of player with black stained glass pane named "&8[&6-&8]" to be unstealable
  15. format slot 13 of player with paper named "&b&lRank" with lore "&9%{rank.%player%}%" to be unstealable
  16. format slot 17 of player with black stained glass pane named "&8[&6-&8]" to be unstealable
  17. format slot 18 of player with black stained glass pane named "&8[&6-&8]" to be unstealable
  18. format slot 26 of player with black stained glass pane named "&8[&6-&8]" to be unstealable
  19. format slot 27 of player with black stained glass pane named "&8[&6-&8]" to be unstealable
  20. format slot 35 of player with black stained glass pane named "&8[&6-&8]" to be unstealable
  21. format slot 36 of player with black stained glass pane named "&8[&6-&8]" to be unstealable
  22. format slot 44 of player with black stained glass pane named "&8[&6-&8]" to be unstealable
  23. format slot 45 of player with black stained glass pane named "&8[&6-&8]" to be unstealable
  24. format slot 46 of player with black stained glass pane named "&8[&6-&8]" to be unstealable
  25. format slot 47 of player with black stained glass pane named "&8[&6-&8]" to be unstealable
  26. format slot 48 of player with black stained glass pane named "&8[&6-&8]" to be unstealable
  27. format slot 49 of player with black stained glass pane named "&8[&6-&8]" to be unstealable
  28. format slot 50 of player with black stained glass pane named "&8[&6-&8]" to be unstealable
  29. format slot 51 of player with black stained glass pane named "&8[&6-&8]" to be unstealable
  30. format slot 52 of player with black stained glass pane named "&8[&6-&8]" to be unstealable
  31. format slot 53 of player with black stained glass pane named "&8[&6-&8]" to be unstealable
  32. format slot 20 of player with paper named "&4&lKills" with lore "&c%{kills.%player%}%" to be unstealable
  33. format slot 24 of player with paper named "&4&lDeaths" with lore "&c%{deaths.%player%}%" to be unstealable
  34. format slot 31 of player with paper named "&b&lGems" with lore "&9&l%{gems.%player%}%" to be unstealable
  35.  
  36. command /rankreset [<offline player>]:
  37. permission: *
  38. permission message: &cNope.
  39. trigger:
  40. set {rank.%player%} to "Default"
  41. make console execute "/pex user %arg-1% group set default"
  42.  
  43. command /grant [<offline player>]:
  44. permission: *
  45. permission message: &cNope.
  46. trigger:
  47. if arg-1 is set:
  48. open chest with 6 rows named "&6Grant" to player
  49. format slot 0 of player with black stained glass pane named "&8[&6-&8]" to be unstealable
  50. format slot 1 of player with black stained glass pane named "&8[&6-&8]" to be unstealable
  51. format slot 2 of player with black stained glass pane named "&8[&6-&8]" to be unstealable
  52. format slot 3 of player with black stained glass pane named "&8[&6-&8]" to be unstealable
  53. format slot 4 of player with skull of arg-1 named "&c&n&l%arg-1%" with lore "&7Current Rank:" and "&c%{rank.%arg-1%}%" to be unstealable
  54. format slot 5 of player with black stained glass pane named "&8[&6-&8]" to be unstealable
  55. format slot 6 of player with black stained glass pane named "&8[&6-&8]" to be unstealable
  56. format slot 7 of player with black stained glass pane named "&8[&6-&8]" to be unstealable
  57. format slot 8 of player with black stained glass pane named "&8[&6-&8]" to be unstealable
  58. format slot 9 of player with black stained glass pane named "&8[&6-&8]" to be unstealable
  59. format slot 16 of player with red stained glass pane named "&6Page Two" with lore "&ePlayer Ranks" to run [make player execute command "/grant2 %arg-1%"]
  60. format slot 17 of player with black stained glass pane named "&8[&6-&8]" to be unstealable
  61. format slot 18 of player with black stained glass pane named "&8[&6-&8]" to be unstealable
  62. format slot 21 of player with blue wool named "&3Builder" with lore "&7Preview: %{prefix.builder}% %arg-1%" to close then run [execute console command "/pex user %arg-1% group set builder"]->[set {rank.%arg-1%} to "Builder"]
  63. format slot 23 of player with pink wool named "&dPartner" with lore "&7Preview: %{prefix.partner}% %arg-1%" to close then run [execute console command "/pex user %arg-1% group set partner"]->[set {rank.%arg-1%} to "Partner"]
  64. format slot 26 of player with black stained glass pane named "&8[&6-&8]" to be unstealable
  65. format slot 27 of player with black stained glass pane named "&8[&6-&8]" to be unstealable
  66. format slot 29 of player with gray wool named "&8Default" with lore "&7Preview: %{prefix.default}% %arg-1%" to close then run [execute console command "/pex user %arg-1% group set default"]->[set {rank.%arg-1%} to "Default"]
  67. format slot 31 of player with lime wool named "&2Jr Mod" with lore "&7Preview: %{prefix.jrmod}% %arg-1%" to close then run [execute console command "/pex user %arg-1% group set jrm"]->[set {rank.%arg-1%} to "Jr Mod"]
  68. format slot 33 of player with green wool named "&2Mod" with lore "&7Preview: %{prefix.mod}% %arg-1%" to close then run [execute console command "/pex user %arg-1% group set mod"]->[set {rank.%arg-1%} to "Mod"]
  69. format slot 35 of player with black stained glass pane named "&8[&6-&8]" to be unstealable
  70. format slot 36 of player with black stained glass pane named "&8[&6-&8]" to be unstealable
  71. format slot 38 of player with red wool named "&cAdmin" with lore "&7Preview: %{prefix.admin}% %arg-1%" to close then run [execute console command "/pex user %arg-1% group set admin"]->[set {rank.%arg-1%} to "Admin"]
  72. format slot 40 of player with orange wool named "&6Director" with lore "&7Preview: %{prefix.manager}% %arg-1%" to close then run [execute console command "/pex user %arg-1% group set manager"]->[set {rank.%arg-1%} to "Director"]
  73. format slot 42 of player with red wool named "&4Owner" with lore "&7Preview: %{prefix.owner}% %arg-1%" to close then run [execute console command "/pex user %arg-1% group set owner"]->[set {rank.%arg-1%} to "Owner"]
  74. format slot 44 of player with black stained glass pane named "&8[&6-&8]" to be unstealable
  75. format slot 45 of player with black stained glass pane named "&8[&6-&8]" to be unstealable
  76. format slot 46 of player with black stained glass pane named "&8[&6-&8]" to be unstealable
  77. format slot 47 of player with black stained glass pane named "&8[&6-&8]" to be unstealable
  78. format slot 48 of player with black stained glass pane named "&8[&6-&8]" to be unstealable
  79. format slot 49 of player with black stained glass pane named "&8[&6-&8]" to be unstealable
  80. format slot 50 of player with black stained glass pane named "&8[&6-&8]" to be unstealable
  81. format slot 51 of player with black stained glass pane named "&8[&6-&8]" to be unstealable
  82. format slot 52 of player with black stained glass pane named "&8[&6-&8]" to be unstealable
  83. format slot 53 of player with black stained glass pane named "&8[&6-&8]" to be unstealable
  84. else:
  85. send "&7Please specifiy a user." to player
  86.  
  87. command /grant2 [<offline player>]:
  88. permission: *
  89. permission message: &cNope.
  90. trigger:
  91. if arg-1 is set:
  92. open chest with 3 rows named "&6Grant Page Two" to player
  93. format slot 0 of player with black stained glass pane named "&8[&6-&8]" to be unstealable
  94. format slot 1 of player with black stained glass pane named "&8[&6-&8]" to be unstealable
  95. format slot 2 of player with black stained glass pane named "&8[&6-&8]" to be unstealable
  96. format slot 3 of player with black stained glass pane named "&8[&6-&8]" to be unstealable
  97. format slot 4 of player with skull of arg-1 named "&c&n&l%arg-1%" with lore "&7Current Rank:" and "&c%{rank.%arg-1%}%" to be unstealable
  98. format slot 5 of player with black stained glass pane named "&8[&6-&8]" to be unstealable
  99. format slot 6 of player with black stained glass pane named "&8[&6-&8]" to be unstealable
  100. format slot 7 of player with black stained glass pane named "&8[&6-&8]" to be unstealable
  101. format slot 8 of player with black stained glass pane named "&8[&6-&8]" to be unstealable
  102. format slot 9 of player with black stained glass pane named "&8[&6-&8]" to be unstealable
  103. format slot 11 of player with diamond block named "&3King" with lore "&7Preview: %{prefix.king}% %arg-1%" to close then run [execute console command "/pex user %arg-1% group set king"]->[set {rank.%arg-1%} to "King"]->[set {boughtking.%player%} to true]
  104. format slot 13 of player with emerald block named "&dHero" with lore "&7Preview: %{prefix.hero}% %arg-1%" to close then run [execute console command "/pex user %arg-1% group set hero"]->[set {rank.%arg-1%} to "Hero"]->[set {boughthero.%player%} to true]
  105. format slot 15 of player with gold block named "&4Overlord" with lore "&7Preview: %{prefix.overlord}% %arg-1%" to close then run [execute console command "/pex user %arg-1% group set overlord"]->[set {rank.%arg-1%} to "Overlord"]->[set {boughtoverlord.%player%} to true]
  106. format slot 17 of player with black stained glass pane named "&8[&6-&8]" to be unstealable
  107. format slot 18 of player with black stained glass pane named "&8[&6-&8]" to be unstealable
  108. format slot 19 of player with black stained glass pane named "&8[&6-&8]" to be unstealable
  109. format slot 20 of player with black stained glass pane named "&8[&6-&8]" to be unstealable
  110. format slot 21 of player with black stained glass pane named "&8[&6-&8]" to be unstealable
  111. format slot 22 of player with black stained glass pane named "&8[&6-&8]" to be unstealable
  112. format slot 23 of player with black stained glass pane named "&8[&6-&8]" to be unstealable
  113. format slot 24 of player with black stained glass pane named "&8[&6-&8]" to be unstealable
  114. format slot 25 of player with black stained glass pane named "&8[&6-&8]" to be unstealable
  115. format slot 26 of player with black stained glass pane named "&8[&6-&8]" to be unstealable
  116.  
  117. on load:
  118. if {prefix.default} is not set:
  119. set {prefix.default} to "&8[Default] &7"
  120. if {prefix.king} is not set:
  121. set {prefix.king} to "&3[King] &9"
  122. if {prefix.hero} is not set:
  123. set {prefix.hero} to "&d[Hero] &d"
  124. if {prefix.overlord} is not set:
  125. set {prefix.overlord} to "&4[Overlord] &c"
  126. if {prefix.builder} is not set:
  127. set {prefix.builder} to "&3[Builder] &f"
  128. if {prefix.partner} is not set:
  129. set {prefix.partner} to "&d[Partner] &f"
  130. if {prefix.headb} is not set:
  131. set {prefix.headb} to "&3[Head Builder] &f"
  132. if {prefix.jrmod} is not set:
  133. set {prefix.jrmod} to "&2[Jr Mod] &f"
  134. if {prefix.Mod} is not set:
  135. set {prefix.Mod} to "&2[Mod] &f"
  136. if {prefix.Admin} is not set:
  137. set {prefix.Admin} to "&c[Admin] &f"
  138. if {prefix.manager} is not set:
  139. set {prefix.manager} to "&6[Director] &f"
  140. if {prefix.Owner} is not set:
  141. set {prefix.Owner} to "&4[Owner] &f"
  142.  
  143. on join:
  144. if {rank.%player%} is not set:
  145. set {rank.%player%} to "default"
  146.  
  147. command /rpgreset:
  148. permission: *
  149. trigger:
  150. set player's max health to 10
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement