Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on join:
- wait a second
- command "/init %player%"
- command /hey <player>:
- trigger:
- set {hey::%arg 1%} to true
- message "&c&lHey! &7%player%さんに呼び出しされました" to arg 1
- message "&7動くとアラームは止まります" to arg 1
- message "&a%arg 1%さんを呼び出しました"
- while {hey::%arg 1%} is set:
- loop 7 times:
- command "execute %arg 1% ~ ~ ~ playsound minecraft:block.note.pling master @s ~ ~ ~ 1.0 1.5"
- wait 2 tick
- wait 7 tick
- on any movement:
- clear {hey::%player%}
- every 2 seconds:
- loop all players:
- set action bar of loop-player to coloured "&a&lRank %{fishing::%uuid of loop-player%::rank}% &f- %{fishing::%uuid of loop-player%::rankname}%"
- if stylish scoreboard "status.%loop-player%" does not exist:
- create new stylish scoreboard named "status.%loop-player%"
- if {fishing::%uuid of loop-player%::sidebar} is not set:
- set {fishing::%uuid of loop-player%} to "status"
- if {fishing::%uuid of loop-player%::sidebar} is "status":
- create a new id based score "status.%loop-player%.1" with text "&a&lRank %{fishing::%uuid of loop-player%::rank}% &f- %{fishing::%uuid of loop-player%::rankname}%" slot -1 for stylish scoreboard "status.%loop-player%"
- set {_rankup} to floor((10+{fishing::%uuid of loop-player%::rank})^1.7)
- if {fishing::%uuid of loop-player%::rank} < 320:
- create a new id based score "status.%loop-player%.2" with text "&d&lXP: &e&l%{fishing::%uuid of loop-player%::xp}%&7&l/&c&l&n%{_rankup}%" slot -2 for stylish scoreboard "status.%loop-player%"
- else:
- create a new id based score "status.%loop-player%.2" with text "&d&lXP: &e&l%{fishing::%uuid of loop-player%::xp}%&7&l/&c&l&oMAXRANK" slot -2 for stylish scoreboard "status.%loop-player%"
- set title of stylish scoreboard "status.%loop-player%" to "&c&lYour Status"
- if {fishing::%uuid of loop-player%::sidebar} is "ranking":
- set {_cnt} to {fishing::%uuid of loop-player%::sidebar.top}-1
- loop 10 times:
- add 1 to {_cnt}
- if {fishing::-sys::ranking.player::%{_cnt}%} is uuid of loop-player:
- create a new id based score "status.%loop-player%.%{_cnt}%" with text "&b&l%{_cnt}%. &c&l%loop-player% &7&l... &c&l%{fishing::-sys::ranking.value::%{_cnt}%}%" slot loop-number*-1 for stylish scoreboard "status.%loop-player%"
- else:
- set {_playername} to {fishing::-sys::ranking.player::%{_cnt}%} parsed as player
- if {_playername} is not set:
- set {_playername} to "-"
- create a new id based score "status.%loop-player%.%{_cnt}%" with text "&b&l%{_cnt}%. &e&l%{_playername}% &7&l... &6&l%{fishing::-sys::ranking.value::%{_cnt}%}%" slot loop-number*-1 for stylish scoreboard "status.%loop-player%"
- clear {_playername}
- create a new id based score "status.%loop-player%.11" with text "&e&l%{fishing::-sys::ranking.number::%uuid of loop-player%}%. &d&l%loop-player% &7&l... &d&l%{fishing::-sys::ranking.value::%{fishing::-sys::ranking.number::%uuid of loop-player%}%}%" slot -11 for stylish scoreboard "status.%loop-player%"
- set title of stylish scoreboard "status.%loop-player%" to "&d&lRank Ranking"
- set stylish scoreboard of loop-player to "status.%loop-player%"
- command /rk:
- trigger:
- loop 10 times:
- add 1 to {_cnt}
- message "%{_cnt}% %{fishing::-sys::ranking.value::%{_cnt}%}% %{fishing::-sys::ranking.player::%{_cnt}%}%"
- command /status:
- trigger:
- message "&aサイドバーを&7「&c&lYour Status&7」&aに変更しました"
- delete stylish scoreboard "status.%player%"
- set {fishing::%uuid of player%::sidebar} to "status"
- command /ranking [<text>]:
- trigger:
- if arg 1 is not set:
- message "&aサイドバーを&7「&c&lRank Ranking&7」&aに変更しました"
- delete stylish scoreboard "status.%player%"
- set {fishing::%uuid of player%::sidebar} to "ranking"
- set {fishing::%uuid of player%::sidebar.top} to 1
- else if arg 1 is "my":
- message "&aサイドバーを&7「&c&lRank Ranking&7」&aに変更しました"
- delete stylish scoreboard "status.%player%"
- set {fishing::%uuid of player%::sidebar} to "ranking"
- set {fishing::%uuid of player%::sidebar.top} to {fishing::-sys::ranking.number::%player%}-4
- if {fishing::%uuid of player%::sidebar.top} < 1:
- set {fishing::%uuid of player%::sidebar.top} to 1
- if {fishing::-sys::ranking.amount} < 10:
- set {fishing::%uuid of player%::sidebar.top} to 1
- else if {fishing::%uuid of player%::sidebar.top} > {fishing::-sys::ranking.amount}-9:
- set {fishing::%uuid of player%::sidebar.top} to {fishing::-sys::ranking.amount}-9
- else:
- set {_arg1} to arg 1 parsed as integer
- if {_arg1} is set:
- message "&aサイドバーを&7「&c&lRank Ranking&7」&aに変更しました"
- delete stylish scoreboard "status.%player%"
- set {fishing::%uuid of player%::sidebar} to "ranking"
- set {fishing::%uuid of player%::sidebar.top} to {_arg1}
- if {fishing::%uuid of player%::sidebar.top} < 1:
- set {fishing::%uuid of player%::sidebar.top} to 1
- if {fishing::-sys::ranking.amount} < 10:
- set {fishing::%uuid of player%::sidebar.top} to 1
- else if {fishing::%uuid of player%::sidebar.top} > {fishing::-sys::ranking.amount}-9:
- set {fishing::%uuid of player%::sidebar.top} to {fishing::-sys::ranking.amount}-9
- command /rankingreset:
- permission: fishing.command.rankingreset
- trigger:
- clear {fishing::-sys::*}
- set {fishing::-sys::ranking.amount} to 10
- loop 10 times:
- add "-%loop-number%" to {fishing::-sys::ranking.player::*}
- add -1 to {fishing::-sys::ranking.value::*}
- command /rankingset <player>:
- permission: fishing.command.rankingadd
- trigger:
- if arg 1 has permission "fishing.rankingset":
- stop
- set {_p} to {fishing::-sys::ranking.number::%uuid of arg 1%}
- if {_p} is set:
- set {fishing::-sys::ranking.value::%{_p}%} to {fishing::%uuid of arg 1%::rank}
- else:
- add 1 to {fishing::-sys::ranking.amount}
- set {fishing::-sys::ranking.value::%{fishing::-sys::ranking.amount}%} to {fishing::%uuid of arg 1%::rank}
- set {fishing::-sys::ranking.player::%{fishing::-sys::ranking.amount}%} to uuid of arg 1
- set {fishing::-sys::ranking.number::%uuid of arg 1%} to {fishing::-sys::ranking.amount}
- command "/rankingreplace"
- command /rankingreplace:
- permission: fishing.command.rankingreplace
- trigger:
- set {_high} to -2
- loop {fishing::-sys::ranking.value::*}:
- set {_value::%{fishing::-sys::ranking.player::%loop-index%}%} to loop-value
- add 1 to {_cnt}
- loop {fishing::-sys::ranking.amount} times:
- loop {_value::*}:
- loop-value-2 > {_high}
- set {_high} to loop-value-2
- set {_highplayer} to loop-index
- set {fishing::-sys::ranking.value::%loop-number%} to {_high}
- set {fishing::-sys::ranking.player::%loop-number%} to {_highplayer}
- set {fishing::-sys::ranking.number::%{_highplayer}%} to loop-number
- set {_high} to -2
- clear {_value::%{_highplayer}%}
- clear {_highplayer}
- command /init <player>:
- permission: fishing.command.init
- trigger:
- if {fishing::%uuid of player%::rank} is not set:
- command "/clearrank %player%"
- command /skr:
- permission: fishing.command.skr
- trigger:
- execute player command "skript reload scripts"
- command /givexp <player> <integer>:
- permission: fishing.command.givexp
- trigger:
- message "&b%arg 2%XP &aを獲得しました" to arg 1
- add arg-2 to {fishing::%uuid of arg-1%::xp}
- if {fishing::%uuid of arg-1%::rank} >= 320:
- stop
- set {_rankup} to floor((10+{fishing::%uuid of arg-1%::rank})^1.7)
- while {fishing::%uuid of arg-1%::xp} >= {_rankup}:
- if {fishing::%uuid of arg-1%::rank} = 320:
- exit loop
- remove {_rankup} from {fishing::%uuid of arg-1%::xp}
- add 1 to {fishing::%uuid of arg-1%::rank}
- set {_rankup} to floor((10+{fishing::%uuid of arg-1%::rank})^1.7)
- message "&c==============================" to arg 1
- broadcast "&e&l&o%arg-1% &c&lRANKUP! &6&l[ %{fishing::%uuid of arg-1%::rank}% ]"
- if {fishing::%uuid of arg-1%::rank} < 320:
- message "&d&lNEXT: &c&l&n%{_rankup}%" to arg 1
- else:
- message "&c&lMAX RANK!"
- message "&c==============================" to arg 1
- command "/rankingset %arg 1%"
- command "/setrankname %arg 1%"
- command /clearrank <player>:
- permission: fishing.command.clearrank
- trigger:
- command "/setxp %arg 1% 0"
- command "/setrank %arg 1% 0"
- command /setrank <player> <integer>:
- permission: fishing.command.setrank
- trigger:
- set {fishing::%uuid of arg-1%::rank} to arg 2
- command "/setrankname %arg 1%"
- command "/rankingset %arg 1%"
- command /setxp <player> <integer>:
- permission: fishing.command.setxp
- trigger:
- set {fishing::%uuid of arg-1%::xp} to arg 2
- command /setrankname <player>:
- permission: fishing.command.setrankname
- trigger:
- if {fishing::%uuid of arg-1%::rank} < 10:
- set {fishing::%uuid of arg-1%::rankname} to "&7Newbie"
- else if {fishing::%uuid of arg-1%::rank} < 20:
- set {fishing::%uuid of arg-1%::rankname} to "&9Beginner"
- else if {fishing::%uuid of arg-1%::rank} < 30:
- set {fishing::%uuid of arg-1%::rankname} to "&3Elementary"
- else if {fishing::%uuid of arg-1%::rank} < 40:
- set {fishing::%uuid of arg-1%::rankname} to "&aNovice"
- else if {fishing::%uuid of arg-1%::rank} < 50:
- set {fishing::%uuid of arg-1%::rankname} to "&bIntermediate"
- else if {fishing::%uuid of arg-1%::rank} < 60:
- set {fishing::%uuid of arg-1%::rankname} to "&eAdvanced"
- else if {fishing::%uuid of arg-1%::rank} < 70:
- set {fishing::%uuid of arg-1%::rankname} to "&6Expert"
- else if {fishing::%uuid of arg-1%::rank} < 80:
- set {fishing::%uuid of arg-1%::rankname} to "&dSpecialist"
- else if {fishing::%uuid of arg-1%::rank} < 90:
- set {fishing::%uuid of arg-1%::rankname} to "&cProfessional"
- else if {fishing::%uuid of arg-1%::rank} < 100:
- set {fishing::%uuid of arg-1%::rankname} to "&5Master"
- else if {fishing::%uuid of arg-1%::rank} < 110:
- set {fishing::%uuid of arg-1%::rankname} to "&f&lRe:&7Newbie"
- else if {fishing::%uuid of arg-1%::rank} < 120:
- set {fishing::%uuid of arg-1%::rankname} to "&f&lRe:&9Beginner"
- else if {fishing::%uuid of arg-1%::rank} < 130:
- set {fishing::%uuid of arg-1%::rankname} to "&f&lRe:&3Elementary"
- else if {fishing::%uuid of arg-1%::rank} < 140:
- set {fishing::%uuid of arg-1%::rankname} to "&f&lRe:&aNovice"
- else if {fishing::%uuid of arg-1%::rank} < 150:
- set {fishing::%uuid of arg-1%::rankname} to "&f&lRe:&bIntermediate"
- else if {fishing::%uuid of arg-1%::rank} < 160:
- set {fishing::%uuid of arg-1%::rankname} to "&f&lRe:&eAdvanced"
- else if {fishing::%uuid of arg-1%::rank} < 170:
- set {fishing::%uuid of arg-1%::rankname} to "&f&lRe:&6Expert"
- else if {fishing::%uuid of arg-1%::rank} < 180:
- set {fishing::%uuid of arg-1%::rankname} to "&f&lRe:&dSpecialist"
- else if {fishing::%uuid of arg-1%::rank} < 190:
- set {fishing::%uuid of arg-1%::rankname} to "&f&lRe:&cProfessional"
- else if {fishing::%uuid of arg-1%::rank} < 200:
- set {fishing::%uuid of arg-1%::rankname} to "&f&lRe:&5Master"
- else if {fishing::%uuid of arg-1%::rank} < 210:
- set {fishing::%uuid of arg-1%::rankname} to "&e&lRe:Re:&7Newbie"
- else if {fishing::%uuid of arg-1%::rank} < 220:
- set {fishing::%uuid of arg-1%::rankname} to "&e&lRe:Re:&9Beginner"
- else if {fishing::%uuid of arg-1%::rank} < 230:
- set {fishing::%uuid of arg-1%::rankname} to "&e&lRe:Re:&3Elementary"
- else if {fishing::%uuid of arg-1%::rank} < 240:
- set {fishing::%uuid of arg-1%::rankname} to "&e&lRe:Re:&aNovice"
- else if {fishing::%uuid of arg-1%::rank} < 250:
- set {fishing::%uuid of arg-1%::rankname} to "&e&lRe:Re:&bIntermediate"
- else if {fishing::%uuid of arg-1%::rank} < 260:
- set {fishing::%uuid of arg-1%::rankname} to "&e&lRe:Re:&eAdvanced"
- else if {fishing::%uuid of arg-1%::rank} < 270:
- set {fishing::%uuid of arg-1%::rankname} to "&e&lRe:Re:&6Expert"
- else if {fishing::%uuid of arg-1%::rank} < 280:
- set {fishing::%uuid of arg-1%::rankname} to "&e&lRe:Re:&dSpecialist"
- else if {fishing::%uuid of arg-1%::rank} < 290:
- set {fishing::%uuid of arg-1%::rankname} to "&e&lRe:Re:&cProfessional"
- else if {fishing::%uuid of arg-1%::rank} < 300:
- set {fishing::%uuid of arg-1%::rankname} to "&e&lRe:Re:&5Master"
- else if {fishing::%uuid of arg-1%::rank} < 310:
- set {fishing::%uuid of arg-1%::rankname} to "&2&lL&a&le&2&lg&a&le&2&ln&a&ld"
- else if {fishing::%uuid of arg-1%::rank} < 320:
- set {fishing::%uuid of arg-1%::rankname} to "&4&lM&c&ly&4<&c&lh&4&lo&c&ll&4&lo&c&lg&4&ly"
- else if {fishing::%uuid of arg-1%::rank} = 320:
- set {fishing::%uuid of arg-1%::rankname} to "&6&lThe &e&lGod"
- on chat:
- broadcast "&f&l&o(&7&l&o&n%{fishing::%uuid of player%::rank}%&f&l&o) &0[%{fishing::%uuid of player%::rankname}%&0] &f%player%&a: &7%message%"
- cancel event
Advertisement
Add Comment
Please, Sign In to add comment