Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- variables:
- {Rank.%player%} = "訓練兵"
- {Rank.%player%.killc} = 0
- {Rank.up} = false
- options:
- prefix: <Gray>[<Orange>Rank<Gray>]
- #================================================================#
- #============================階級設定============================#
- #================================================================#
- on death of player:
- {Rank.up} is true
- wait 2 ticks
- add 1 to {Rank.%attacker%.killc}
- if {Rank.%victim%.killc} is more than 200:
- subtract 1 from {Rank.%victim%.killc}
- if {Rank.%attacker%.killc} is less than 30:
- stop
- if {Rank.%attacker%.killc} is less than 70:
- {Rank.%attacker%} is "二等兵":
- stop
- set {Rank.%attacker%} to "二等兵"
- message "{@prefix} <Reset>%{Rank.%attacker%}%になりました!" to the attacker
- stop
- if {Rank.%attacker%.killc} is less than 120:
- {Rank.%attacker%} is "一等兵":
- stop
- set {Rank.%attacker%} to "一等兵"
- message "{@prefix} <Reset>%{Rank.%attacker%}%になりました!" to the attacker
- stop
- if {Rank.%attacker%.killc} is less than 240:
- {Rank.%attacker%} is "上等兵":
- stop
- set {Rank.%attacker%} to "上等兵"
- message "{@prefix} <Reset>%{Rank.%attacker%}%になりました!" to the attacker
- stop
- if {Rank.%attacker%.killc} is less than 300:
- {Rank.%attacker%} is "兵長":
- stop
- set {Rank.%attacker%} to "兵長"
- message "{@prefix} <Reset>%{Rank.%attacker%}%になりました!" to the attacker
- stop
- if {Rank.%attacker%.killc} is less than 420:
- {Rank.%attacker%} is "伍長勤務上等兵":
- stop
- set {Rank.%attacker%} to "伍長勤務上等兵"
- message "{@prefix} <Reset>%{Rank.%attacker%}%になりました!" to the attacker
- stop
- if {Rank.%attacker%.killc} is less than 530:
- {Rank.%attacker%} is "伍長":
- stop
- set {Rank.%attacker%} to "伍長"
- message "{@prefix} <Reset>%{Rank.%attacker%}%になりました!" to the attacker
- stop
- if {Rank.%attacker%.killc} is less than 700:
- {Rank.%attacker%} is "軍曹":
- stop
- set {Rank.%attacker%} to "軍曹"
- message "{@prefix} <Reset>%{Rank.%attacker%}%になりました!" to the attacker
- stop
- if {Rank.%attacker%.killc} is less than 800:
- {Rank.%attacker%} is "曹長":
- stop
- set {Rank.%attacker%} to "曹長"
- message "{@prefix} <Reset>%{Rank.%attacker%}%になりました!" to the attacker
- stop
- if {Rank.%attacker%.killc} is less than 1000:
- {Rank.%attacker%} is "上級曹長":
- stop
- set {Rank.%attacker%} to "上級曹長"
- message "{@prefix} <Reset>%{Rank.%attacker%}%になりました!" to the attacker
- stop
- if {Rank.%attacker%.killc} is less than 1300:
- {Rank.%attacker%} is "特務曹長":
- stop
- set {Rank.%attacker%} to "特務曹長"
- message "{@prefix} <Reset>%{Rank.%attacker%}%になりました!" to the attacker
- stop
- if {Rank.%attacker%.killc} is less than 5000:
- {Rank.%attacker%} is "准尉":
- stop
- set {Rank.%attacker%} to "准尉"
- message "{@prefix} <Reset>%{Rank.%attacker%}%になりました!" to the attacker
- message "{@prefix} <Reset>あと3700キルで少尉!ここを超えたらいいことあるかも?"
- stop
- if {Rank.%attacker%.killc} is less than 6000:
- {Rank.%attacker%} is "少尉":
- stop
- set {Rank.%attacker%} to "少尉"
- message "{@prefix} <Reset>%{Rank.%attacker%}%になりました!" to the attacker
- stop
- if {Rank.%attacker%.killc} is less than 7000:
- {Rank.%attacker%} is "中尉":
- stop
- set {Rank.%attacker%} to "中尉"
- message "{@prefix} <Reset>%{Rank.%attacker%}%になりました!" to the attacker
- stop
- if {Rank.%attacker%.killc} is less than 10000:
- {Rank.%attacker%} is "大尉":
- stop
- set {Rank.%attacker%} to "大尉"
- message "{@prefix} <Reset>%{Rank.%attacker%}%になりました!" to the attacker
- stop
- if {Rank.%attacker%.killc} is less than 10000:
- {Rank.%attacker%} is "少佐":
- stop
- set {Rank.%attacker%} to "少佐"
- message "{@prefix} <Reset>%{Rank.%attacker%}%になりました!" to the attacker
- stop
- if {Rank.%attacker%.killc} is less than 12000:
- {Rank.%attacker%} is "中佐":
- stop
- set {Rank.%attacker%} to "中佐"
- message "{@prefix} <Reset>%{Rank.%attacker%}%になりました!" to the attacker
- stop
- if {Rank.%attacker%.killc} is less than 14500:
- {Rank.%attacker%} is "大佐":
- stop
- set {Rank.%attacker%} to "大佐"
- message "{@prefix} <Reset>%{Rank.%attacker%}%になりました!" to the attacker
- stop
- if {Rank.%attacker%.killc} is less than 15500:
- {Rank.%attacker%} is "准将":
- stop
- set {Rank.%attacker%} to "准将"
- message "{@prefix} <Reset>%{Rank.%attacker%}%になりました!" to the attacker
- stop
- if {Rank.%attacker%.killc} is less than 16000:
- {Rank.%attacker%} is "少将":
- stop
- set {Rank.%attacker%} to "少将"
- message "{@prefix} <Reset>%{Rank.%attacker%}%になりました!" to the attacker
- stop
- if {Rank.%attacker%.killc} is less than 17000:
- {Rank.%attacker%} is "中将":
- stop
- set {Rank.%attacker%} to "中将"
- message "{@prefix} <Reset>%{Rank.%attacker%}%になりました!" to the attacker
- stop
- if {Rank.%attacker%.killc} is less than 20000:
- {Rank.%attacker%} is "大大将":
- stop
- set {Rank.%attacker%} to "大大将"
- message "{@prefix} <Reset>%{Rank.%attacker%}%になりました!" to the attacker
- stop
- if {Rank.%attacker%.killc} is less than 50000:
- {Rank.%attacker%} is "元帥":
- stop
- set {Rank.%attacker%} to "元帥"
- message "{@prefix} <Reset>%{Rank.%attacker%}%になりました!" to the attacker
- stop
- if {Rank.%attacker%.killc} is less than 50001:
- {Rank.%attacker%} is "神":
- stop
- set {Rank.%attacker%} to "神"
- message "{@prefix} <Reset>%{Rank.%attacker%}%になりました!" to the attacker
- stop
- #================================================================#
- #========================階級コマンド設定========================#
- #================================================================#
- command /Rank <text> <player>:
- usage: <Green>/Rank view <Aqua>-show your rank <Green>/rank toggle <Aqua>-op only,階級をONにするかOFFにするか
- trigger:
- if arg 1 is "view":
- if player-arg is set:
- message "{@prefix} <Reset>%{Rank.%player-arg%}%" to the player
- else:
- message "{@prefix} <Reset>%{Rank.%player%}%" to the player
- stop
- player is op
- if arg 1 is "toggle":
- player-arg is not set
- if {Rank.up} is true:
- set {Rank.up} to false
- message "disable" to the player
- stop
- if {Rank.up} is false:
- set {Rank.up} to true
- message "enable" to the player
- command /Rankup <number>:
- permission: Rank.sk*
- trigger:
- player is "hiro_m"
- add number-arg 1 to {Rank.%player%.killc}
- message "%{Rank.%player%.killc}%" to the player
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement