taktie0304

Untitled

May 31st, 2019
43
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.15 KB | None | 0 0
  1. on rightclick on zombie:
  2. open chest with 3 row named "&rランクアップする" to player
  3. format slot 10 of player with stone named "&c&lBronze" with lore "&a必要なコイン: &65000||&eクリックでランクアップします" to close then run "rank set b %player%"
  4. format slot 11 of player with coal named "&7&lSilver" with lore "&a必要なコイン: &630000||&eクリックでランクアップします" to close then run "rank set s %player%"
  5. format slot 12 of player with iron ingot named "&6&lGold" with lore "&a必要なコイン: &6150000||&eクリックでランクアップします" to close then run "rank set g %player%"
  6. format slot 14 of player with gold ingot named "&f&lPlatinum" with lore "&a必要なコイン: &6500000||&eクリックでランクアップします" to close then run "rank set pla %player%"
  7. format slot 15 of player with emerald named "&b&lDiamond" with lore "&a必要なコイン: &62000000||&eクリックでランクアップします" to close then run "rank set d %player%"
  8. format slot 16 of player with emerald named "&d&lPlutonium" with lore "&a必要なコイン: &610000000||&eクリックでランクアップします" to close then run "rank set plu %player%"
  9.  
  10. command /rank set [<text>] [<offline player>]:
  11. permission: skript.rank.set
  12. trigger:
  13. if arg 1 is "c":
  14. set {rank.%uuid of arg 2%} to "&4&lCopper"
  15. command "pex user %arg 2% group set copper"
  16. if arg 1 is "b":
  17. if {rank.%uuid of arg 2%} is "&4&lCopper":
  18. if {coin.uuid of arg 2} is more than 4999:
  19. remove 5000 from {coin.%uuid of arg 2%}
  20. set {rank.%uuid of arg 2%} to "&c&lBronze"
  21. command "pex user %arg 2% group set bronze"
  22. broadcast "%arg 2%さんが&c&lBronzeにランクアップしました!"
  23. else:
  24. send "&cお金が足りません" to arg 2
  25. else:
  26. send "&cランクが足りません" to arg 2
  27. if arg 1 is "s":
  28. if {rank.%uuid of arg 2%} is "&c&lBronze":
  29. if {coin.uuid of arg 2} is more than 29999:
  30. remove 30000 from {coin.%uuid of arg 2%}
  31. set {rank.%uuid of arg 2%} to "&7&lSilver"
  32. command "pex user %arg 2% group set silver"
  33. broadcast "%arg 2%さんが&7&lSilverにランクアップしました!"
  34. else:
  35. send "&cお金が足りません" to arg 2
  36. else:
  37. send "&cランクが足りません" to arg 2
  38. if arg 1 is "g":
  39. if {rank.%uuid of arg 2%} is "&7&lSilver":
  40. if {coin.uuid of arg 2} is more than 149999:
  41. remove 150000 from {coin.%uuid of arg 2%}
  42. set {rank.%uuid of arg 2%} to "&6&lGold"
  43. command "pex user %arg 2% group set gold"
  44. broadcast "%arg 2%さんが&6&lGoldにランクアップしました!"
  45. else:
  46. send "&cお金が足りません" to arg 2
  47. else:
  48. send "&cランクが足りません" to arg 2
  49. if arg 1 is "pla":
  50. if {rank.%uuid of arg 2%} is "&6&lGold":
  51. if {coin.uuid of arg 2} is more than 499999:
  52. remove 500000 from {coin.%uuid of arg 2%}
  53. set {rank.%uuid of arg 2%} to "&f&lPlatinum"
  54. command "pex user %arg 2% group set platinum"
  55. broadcast "%arg 2%さんが&f&lPlatinumにランクアップしました!"
  56. else:
  57. send "&cお金が足りません" to arg 2
  58. else:
  59. send "&cランクが足りません" to arg 2
  60. if arg 1 is "d":
  61. if {rank.%uuid of arg 2%} is "&f&lPlatinum":
  62. if {coin.uuid of arg 2} is more than 1999999:
  63. remove 2000000 from {coin.%uuid of arg 2%}
  64. set {rank.%uuid of arg 2%} to "&b&lDiamond"
  65. command "pex user %arg 2% group set diamond"
  66. broadcast "%arg 2%さんが&b&lDiamondにランクアップしました!"
  67. else:
  68. send "&cお金が足りません" to arg 2
  69. else:
  70. send "&cランクが足りません" to arg 2
  71. if arg 1 is "plu":
  72. if {rank.%uuid of arg 2%} is "&f&lPlatinum":
  73. if {coin.uuid of arg 2} is more than 9999999:
  74. remove 10000000 from {coin.%uuid of arg 2%}
  75. set {rank.%uuid of arg 2%} to "&d&lPlutonium"
  76. command "pex user %arg 2% group set plutonium"
  77. broadcast "%arg 2%さんが&d&lPlutoniumにランクアップしました!"
  78. else:
  79. send "&cお金が足りません" to arg 2
  80. else:
  81. send "&cランクが足りません" to arg 2
Add Comment
Please, Sign In to add comment