Advertisement
Guest User

Untitled

a guest
Mar 26th, 2019
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 6.81 KB | None | 0 0
  1. variables:
  2.     {Rank.%player%} = "訓練兵"
  3.     {Rank.%player%.killc} = 0
  4.     {Rank.up} = false
  5.  
  6. options:
  7.     prefix: <Gray>[<Orange>Rank<Gray>]
  8. #================================================================#
  9. #============================階級設定============================#
  10. #================================================================#
  11.  
  12. on death of player:
  13.     {Rank.up} is true
  14.  
  15.     wait 2 ticks
  16.     add 1 to {Rank.%attacker%.killc}
  17.  
  18.     if {Rank.%victim%.killc} is more than 200:
  19.         subtract 1 from {Rank.%victim%.killc}
  20.  
  21.     if {Rank.%attacker%.killc} is less than 30:
  22.         stop
  23.  
  24.     if {Rank.%attacker%.killc} is less than 70:
  25.         {Rank.%attacker%} is "二等兵":
  26.             stop
  27.         set {Rank.%attacker%} to "二等兵"
  28.         message "{@prefix} <Reset>%{Rank.%attacker%}%になりました!" to the attacker
  29.         stop
  30.  
  31.     if {Rank.%attacker%.killc} is less than 120:
  32.         {Rank.%attacker%} is "一等兵":
  33.             stop
  34.         set {Rank.%attacker%} to "一等兵"
  35.         message "{@prefix} <Reset>%{Rank.%attacker%}%になりました!" to the attacker
  36.         stop
  37.  
  38.     if {Rank.%attacker%.killc} is less than 240:
  39.         {Rank.%attacker%} is "上等兵":
  40.             stop
  41.         set {Rank.%attacker%} to "上等兵"
  42.         message "{@prefix} <Reset>%{Rank.%attacker%}%になりました!" to the attacker
  43.         stop
  44.  
  45.     if {Rank.%attacker%.killc} is less than 300:
  46.         {Rank.%attacker%} is "兵長":
  47.             stop
  48.         set {Rank.%attacker%} to "兵長"
  49.         message "{@prefix} <Reset>%{Rank.%attacker%}%になりました!" to the attacker
  50.         stop
  51.  
  52.     if {Rank.%attacker%.killc} is less than 420:
  53.         {Rank.%attacker%} is "伍長勤務上等兵":
  54.             stop
  55.         set {Rank.%attacker%} to "伍長勤務上等兵"
  56.         message "{@prefix} <Reset>%{Rank.%attacker%}%になりました!" to the attacker
  57.         stop
  58.  
  59.     if {Rank.%attacker%.killc} is less than 530:
  60.         {Rank.%attacker%} is "伍長":
  61.             stop
  62.         set {Rank.%attacker%} to "伍長"
  63.         message "{@prefix} <Reset>%{Rank.%attacker%}%になりました!" to the attacker
  64.         stop
  65.  
  66.     if {Rank.%attacker%.killc} is less than 700:
  67.         {Rank.%attacker%} is "軍曹":
  68.             stop
  69.         set {Rank.%attacker%} to "軍曹"
  70.         message "{@prefix} <Reset>%{Rank.%attacker%}%になりました!" to the attacker
  71.         stop
  72.  
  73.     if {Rank.%attacker%.killc} is less than 800:
  74.         {Rank.%attacker%} is "曹長":
  75.             stop
  76.         set {Rank.%attacker%} to "曹長"
  77.         message "{@prefix} <Reset>%{Rank.%attacker%}%になりました!" to the attacker
  78.         stop
  79.  
  80.     if {Rank.%attacker%.killc} is less than 1000:
  81.         {Rank.%attacker%} is "上級曹長":
  82.             stop
  83.         set {Rank.%attacker%} to "上級曹長"
  84.         message "{@prefix} <Reset>%{Rank.%attacker%}%になりました!" to the attacker
  85.         stop
  86.  
  87.     if {Rank.%attacker%.killc} is less than 1300:
  88.         {Rank.%attacker%} is "特務曹長":
  89.             stop
  90.         set {Rank.%attacker%} to "特務曹長"
  91.         message "{@prefix} <Reset>%{Rank.%attacker%}%になりました!" to the attacker
  92.         stop
  93.  
  94.     if {Rank.%attacker%.killc} is less than 5000:
  95.         {Rank.%attacker%} is "准尉":
  96.             stop
  97.         set {Rank.%attacker%} to "准尉"
  98.         message "{@prefix} <Reset>%{Rank.%attacker%}%になりました!" to the attacker
  99.         message "{@prefix} <Reset>あと3700キルで少尉!ここを超えたらいいことあるかも?"
  100.         stop
  101.  
  102.     if {Rank.%attacker%.killc} is less than 6000:
  103.         {Rank.%attacker%} is "少尉":
  104.             stop
  105.         set {Rank.%attacker%} to "少尉"
  106.         message "{@prefix} <Reset>%{Rank.%attacker%}%になりました!" to the attacker
  107.         stop
  108.  
  109.     if {Rank.%attacker%.killc} is less than 7000:
  110.         {Rank.%attacker%} is "中尉":
  111.             stop
  112.         set {Rank.%attacker%} to "中尉"
  113.         message "{@prefix} <Reset>%{Rank.%attacker%}%になりました!" to the attacker
  114.         stop
  115.  
  116.     if {Rank.%attacker%.killc} is less than 10000:
  117.         {Rank.%attacker%} is "大尉":
  118.             stop
  119.         set {Rank.%attacker%} to "大尉"
  120.         message "{@prefix} <Reset>%{Rank.%attacker%}%になりました!" to the attacker
  121.         stop
  122.  
  123.     if {Rank.%attacker%.killc} is less than 10000:
  124.         {Rank.%attacker%} is "少佐":
  125.             stop
  126.         set {Rank.%attacker%} to "少佐"
  127.         message "{@prefix} <Reset>%{Rank.%attacker%}%になりました!" to the attacker
  128.         stop
  129.  
  130.     if {Rank.%attacker%.killc} is less than 12000:
  131.         {Rank.%attacker%} is "中佐":
  132.             stop
  133.         set {Rank.%attacker%} to "中佐"
  134.         message "{@prefix} <Reset>%{Rank.%attacker%}%になりました!" to the attacker
  135.         stop
  136.  
  137.     if {Rank.%attacker%.killc} is less than 14500:
  138.         {Rank.%attacker%} is "大佐":
  139.             stop
  140.         set {Rank.%attacker%} to "大佐"
  141.         message "{@prefix} <Reset>%{Rank.%attacker%}%になりました!" to the attacker
  142.         stop
  143.  
  144.     if {Rank.%attacker%.killc} is less than 15500:
  145.         {Rank.%attacker%} is "准将":
  146.             stop
  147.         set {Rank.%attacker%} to "准将"
  148.         message "{@prefix} <Reset>%{Rank.%attacker%}%になりました!" to the attacker
  149.         stop
  150.  
  151.     if {Rank.%attacker%.killc} is less than 16000:
  152.         {Rank.%attacker%} is "少将":
  153.             stop
  154.         set {Rank.%attacker%} to "少将"
  155.         message "{@prefix} <Reset>%{Rank.%attacker%}%になりました!" to the attacker
  156.         stop
  157.  
  158.     if {Rank.%attacker%.killc} is less than 17000:
  159.         {Rank.%attacker%} is "中将":
  160.             stop
  161.         set {Rank.%attacker%} to "中将"
  162.         message "{@prefix} <Reset>%{Rank.%attacker%}%になりました!" to the attacker
  163.         stop
  164.  
  165.     if {Rank.%attacker%.killc} is less than 20000:
  166.         {Rank.%attacker%} is "大大将":
  167.             stop
  168.         set {Rank.%attacker%} to "大大将"
  169.         message "{@prefix} <Reset>%{Rank.%attacker%}%になりました!" to the attacker
  170.         stop
  171.  
  172.     if {Rank.%attacker%.killc} is less than 50000:
  173.         {Rank.%attacker%} is "元帥":
  174.             stop
  175.         set {Rank.%attacker%} to "元帥"
  176.         message "{@prefix} <Reset>%{Rank.%attacker%}%になりました!" to the attacker
  177.         stop
  178.  
  179.     if {Rank.%attacker%.killc} is less than 50001:
  180.         {Rank.%attacker%} is "神":
  181.             stop
  182.         set {Rank.%attacker%} to "神"
  183.         message "{@prefix} <Reset>%{Rank.%attacker%}%になりました!" to the attacker
  184.         stop
  185.  
  186.  
  187. #================================================================#
  188. #========================階級コマンド設定========================#
  189. #================================================================#
  190.  
  191. command /Rank <text> <player>:
  192.     usage: <Green>/Rank view <Aqua>-show your rank   <Green>/rank toggle <Aqua>-op only,階級をONにするかOFFにするか
  193.     trigger:
  194.         if arg 1 is "view":
  195.             if player-arg is set:
  196.                 message "{@prefix} <Reset>%{Rank.%player-arg%}%" to the player
  197.             else:
  198.                 message "{@prefix} <Reset>%{Rank.%player%}%" to the player
  199.             stop
  200.  
  201.         player is op
  202.  
  203.         if arg 1 is "toggle":
  204.             player-arg is not set
  205.             if {Rank.up} is true:
  206.                 set {Rank.up} to false
  207.                 message "disable" to the player
  208.                 stop
  209.             if {Rank.up} is false:
  210.                 set {Rank.up} to true
  211.                 message "enable" to the player
  212.  
  213. command /Rankup <number>:
  214.     permission: Rank.sk*
  215.     trigger:
  216.         player is "hiro_m"
  217.         add number-arg 1 to {Rank.%player%.killc}
  218.         message "%{Rank.%player%.killc}%" to the player
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement