taktie0304

Untitled

May 29th, 2019
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.82 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必要なコイン: &62000 &eクリックでランクアップします" to close then run "rank set b %player%"
  4. format slot 11 of player with coal named "&7&lSilver" with lore "&a必要なコイン: &615000 &eクリックでランクアップします" to close then run "rank set s %player%"
  5. format slot 12 of player with iron ingot named "&6&lGold" with lore "&a必要なコイン: &650000 &eクリックでランクアップします" to close then run "rank set g %player%"
  6. format slot 14 of player with gold ingot named "&f&lPlatinum" with lore "&a必要なコイン: &6300000 &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必要なコイン: &65000000 &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. if arg 1 is "b":
  16. if {rank.%uuid of arg 2%} is "&4&lCopper":
  17. if {coin.%uuid of arg 2%} is more than 1999:
  18. remove 2000 from {coin.%uuid of arg 2%}
  19. set {rank.%uuid of arg 2%} to "&c&lBronze"
  20. broadcast "&a%arg 2%さんが&c&lBronze&aにランクアップしました!"
  21. else:
  22. send "&cお金が足りません" to arg 2
  23. else:
  24. send "&cランクが足りません" to arg 2
  25. if arg 1 is "s":
  26. if {rank.%uuid of arg 2%} is "&c&lBronze":
  27. if {coin.uuid of arg 2} is more than 14999:
  28. remove 15000 from {coin.%uuid of arg 2%}
  29. set {rank.%uuid of arg 2%} to "&7&lSilver"
  30. broadcast "&a%arg 2%さんが&7&lSilver&aにランクアップしました!"
  31. else:
  32. send "&cお金が足りません" to arg 2
  33. else:
  34. send "&cランクが足りません" to arg 2
  35. if arg 1 is "g":
  36. if {rank.%uuid of arg 2%} is "&7&lSilver":
  37. if {coin.uuid of arg 2} is more than 49999:
  38. remove 50000 from {coin.%uuid of arg 2%}
  39. set {rank.%uuid of arg 2%} to "&6&lGold"
  40. broadcast "&a%arg 2%さんが&6&lGold&aにランクアップしました!"
  41. else:
  42. send "&cお金が足りません" to arg 2
  43. else:
  44. send "&cランクが足りません" to arg 2
  45. if arg 1 is "pla":
  46. if {rank.%uuid of arg 2%} is "&6&lGold":
  47. if {coin.uuid of arg 2} is more than 299999:
  48. remove 300000 from {coin.%uuid of arg 2%}
  49. set {rank.%uuid of arg 2%} to "&f&lPlatinum"
  50. broadcast "&a%arg 2%さんが&f&lPlatinum&aにランクアップしました!"
  51. else:
  52. send "&cお金が足りません" to arg 2
  53. else:
  54. send "&cランクが足りません" to arg 2
  55. if arg 1 is "d":
  56. if {rank.%uuid of arg 2%} is "&f&lPlatinum":
  57. if {coin.uuid of arg 2} is more than 1999999:
  58. remove 2000000 from {coin.%uuid of arg 2%}
  59. set {rank.%uuid of arg 2%} to "&b&lDiamond"
  60. broadcast "&a%arg 2%さんが&b&lDiamond&aにランクアップしました!"
  61. else:
  62. send "&cお金が足りません" to arg 2
  63. else:
  64. send "&cランクが足りません" to arg 2
  65. if arg 1 is "plu":
  66. if {rank.%uuid of arg 2%} is "&b&lDiamond":
  67. if {coin.uuid of arg 2} is more than 4999999:
  68. remove 5000000 from {coin.%uuid of arg 2%}
  69. set {rank.%uuid of arg 2%} to "&d&lPlutonium"
  70. broadcast "&a%arg 2%さんが&d&lPlutonium&aにランクアップしました!"
  71. else:
  72. send "&cお金が足りません" to arg 2
  73. else:
  74. send "&cランクが足りません" to arg 2
Advertisement
Add Comment
Please, Sign In to add comment