Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on rightclick on zombie:
- open chest with 3 row named "&rランクアップする" to player
- format slot 10 of player with stone named "&c&lBronze" with lore "&a必要なコイン: &65000||&eクリックでランクアップします" to close then run "rank set b %player%"
- format slot 11 of player with coal named "&7&lSilver" with lore "&a必要なコイン: &630000||&eクリックでランクアップします" to close then run "rank set s %player%"
- format slot 12 of player with iron ingot named "&6&lGold" with lore "&a必要なコイン: &6150000||&eクリックでランクアップします" to close then run "rank set g %player%"
- format slot 14 of player with gold ingot named "&f&lPlatinum" with lore "&a必要なコイン: &6500000||&eクリックでランクアップします" to close then run "rank set pla %player%"
- format slot 15 of player with emerald named "&b&lDiamond" with lore "&a必要なコイン: &62000000||&eクリックでランクアップします" to close then run "rank set d %player%"
- format slot 16 of player with emerald named "&d&lPlutonium" with lore "&a必要なコイン: &610000000||&eクリックでランクアップします" to close then run "rank set plu %player%"
- command /rank set [<text>] [<offline player>]:
- permission: skript.rank.set
- trigger:
- if arg 1 is "c":
- set {rank.%uuid of arg 2%} to "&4&lCopper"
- command "pex user %arg 2% group set copper"
- if arg 1 is "b":
- if {rank.%uuid of arg 2%} is "&4&lCopper":
- if {coin.uuid of arg 2} is more than 4999:
- remove 5000 from {coin.%uuid of arg 2%}
- set {rank.%uuid of arg 2%} to "&c&lBronze"
- command "pex user %arg 2% group set bronze"
- broadcast "%arg 2%さんが&c&lBronzeにランクアップしました!"
- else:
- send "&cお金が足りません"
- else:
- send "&cランクが足りません"
- if arg 1 is "s":
- if {rank.%uuid of arg 2%} is "&c&lBronze":
- if {coin.uuid of arg 2} is more than 29999:
- remove 30000 from {coin.%uuid of arg 2%}
- set {rank.%uuid of arg 2%} to "&7&lSilver"
- command "pex user %arg 2% group set silver"
- broadcast "%arg 2%さんが&7&lSilverにランクアップしました!"
- else:
- send "&cお金が足りません"
- else:
- send "&cランクが足りません"
- if arg 1 is "g":
- if {rank.%uuid of arg 2%} is "&7&lSilver":
- if {coin.uuid of arg 2} is more than 149999:
- remove 150000 from {coin.%uuid of arg 2%}
- set {rank.%uuid of arg 2%} to "&6&lGold"
- command "pex user %arg 2% group set gold"
- broadcast "%arg 2%さんが&6&lGoldにランクアップしました!"
- else:
- send "&cお金が足りません"
- else:
- send "&cランクが足りません"
- if arg 1 is "pla":
- if {rank.%uuid of arg 2%} is "&6&lGold":
- if {coin.uuid of arg 2} is more than 499999:
- remove 500000 from {coin.%uuid of arg 2%}
- set {rank.%uuid of arg 2%} to "&f&lPlatinum"
- command "pex user %arg 2% group set platinum"
- broadcast "%arg 2%さんが&f&lPlatinumにランクアップしました!"
- else:
- send "&cお金が足りません"
- else:
- send "&cランクが足りません"
- if arg 1 is "d":
- if {rank.%uuid of arg 2%} is "&f&lPlatinum":
- if {coin.uuid of arg 2} is more than 1999999:
- remove 2000000 from {coin.%uuid of arg 2%}
- set {rank.%uuid of arg 2%} to "&b&lDiamond"
- command "pex user %arg 2% group set diamond"
- broadcast "%arg 2%さんが&b&lDiamondにランクアップしました!"
- else:
- send "&cお金が足りません"
- else:
- send "&cランクが足りません"
- if arg 1 is "plu":
- if {rank.%uuid of arg 2%} is "&f&lPlatinum":
- if {coin.uuid of arg 2} is more than 9999999:
- remove 10000000 from {coin.%uuid of arg 2%}
- set {rank.%uuid of arg 2%} to "&d&lPlutonium"
- command "pex user %arg 2% group set plutonium"
- broadcast "%arg 2%さんが&d&lPlutoniumにランクアップしました!"
- else:
- send "&cお金が足りません"
- else:
- send "&cランクが足りません"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement