TE1TO9_

Untitled

Mar 30th, 2019
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 7.89 KB | None | 0 0
  1. variables:
  2.     {Rank.%player%} = "Lv1"
  3.     {Rank.%player%.killc} = 0
  4.     {Rank.up} = false
  5.  
  6. options:
  7.     prefix: &7[&dRank&7]
  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 20:
  19.         subtract 1 from {Rank.%victim%.killc}
  20.  
  21.     if {Rank.%attacker%.killc} is less than 20:
  22.         stop
  23.  
  24.     if {Rank.%attacker%.killc} is less than 20:
  25.         {Rank.%attacker%} is "Lv2":
  26.             stop
  27.         set {Rank.%attacker%} to "Lv2"
  28.         message "{@prefix} <Reset>%{Rank.%attacker%}%になりました!" to the attacker
  29.         stop
  30.  
  31.     if {Rank.%attacker%.killc} is less than 40:
  32.         {Rank.%attacker%} is "Lv3":
  33.             stop
  34.         set {Rank.%attacker%} to "Lv3"
  35.         message "{@prefix} <Reset>%{Rank.%attacker%}%になりました!" to the attacker
  36.         stop
  37.  
  38.     if {Rank.%attacker%.killc} is less than 50:
  39.         {Rank.%attacker%} is "Lv4":
  40.             stop
  41.         set {Rank.%attacker%} to "Lv4"
  42.         message "{@prefix} <Reset>%{Rank.%attacker%}%になりました!" to the attacker
  43.         stop
  44.  
  45.     if {Rank.%attacker%.killc} is less than 60:
  46.         {Rank.%attacker%} is "Lv5":
  47.             stop
  48.         set {Rank.%attacker%} to "Lv5"
  49.         message "{@prefix} <Reset>%{Rank.%attacker%}%になりました!" to the attacker
  50.         stop
  51.  
  52.     if {Rank.%attacker%.killc} is less than 75:
  53.         {Rank.%attacker%} is "Lv6":
  54.             stop
  55.         set {Rank.%attacker%} to "Lv6"
  56.         message "{@prefix} <Reset>%{Rank.%attacker%}%になりました!" to the attacker
  57.         stop
  58.  
  59.     if {Rank.%attacker%.killc} is less than 85:
  60.         {Rank.%attacker%} is "Lv7":
  61.             stop
  62.         set {Rank.%attacker%} to "Lv7"
  63.         message "{@prefix} <Reset>%{Rank.%attacker%}%になりました!" to the attacker
  64.         stop
  65.  
  66.     if {Rank.%attacker%.killc} is less than 95:
  67.         {Rank.%attacker%} is "Lv8":
  68.             stop
  69.         set {Rank.%attacker%} to "Lv8"
  70.         message "{@prefix} <Reset>%{Rank.%attacker%}%になりました!" to the attacker
  71.         stop
  72.  
  73.     if {Rank.%attacker%.killc} is less than 105:
  74.         {Rank.%attacker%} is "Lv9":
  75.             stop
  76.         set {Rank.%attacker%} to "Lv9"
  77.         message "{@prefix} <Reset>%{Rank.%attacker%}%になりました!" to the attacker
  78.         stop
  79.  
  80.     if {Rank.%attacker%.killc} is less than 115:
  81.         {Rank.%attacker%} is "Lv10":
  82.             stop
  83.         set {Rank.%attacker%} to "Lv10"
  84.         message "{@prefix} <Reset>%{Rank.%attacker%}%になりました!" to the attacker
  85.         stop
  86.  
  87.     if {Rank.%attacker%.killc} is less than 130:
  88.         {Rank.%attacker%} is "Lv11":
  89.             stop
  90.         set {Rank.%attacker%} to "Lv11"
  91.         message "{@prefix} <Reset>%{Rank.%attacker%}%になりました!" to the attacker
  92.         stop
  93.  
  94.     if {Rank.%attacker%.killc} is less than 150:
  95.         {Rank.%attacker%} is "Lv12":
  96.             stop
  97.         set {Rank.%attacker%} to "Lv12"
  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 170:
  103.         {Rank.%attacker%} is "Lv13":
  104.             stop
  105.         set {Rank.%attacker%} to "Lv13"
  106.         message "{@prefix} <Reset>%{Rank.%attacker%}%になりました!" to the attacker
  107.         stop
  108.  
  109.     if {Rank.%attacker%.killc} is less than 190:
  110.         {Rank.%attacker%} is "Lv14":
  111.             stop
  112.         set {Rank.%attacker%} to "Lv14"
  113.         message "{@prefix} <Reset>%{Rank.%attacker%}%になりました!" to the attacker
  114.         stop
  115.  
  116.     if {Rank.%attacker%.killc} is less than 210:
  117.         {Rank.%attacker%} is "Lv15":
  118.             stop
  119.         set {Rank.%attacker%} to "Lv15"
  120.         message "{@prefix} <Reset>%{Rank.%attacker%}%になりました!" to the attacker
  121.         stop
  122.  
  123.     if {Rank.%attacker%.killc} is less than 230:
  124.         {Rank.%attacker%} is "Lv16":
  125.             stop
  126.         set {Rank.%attacker%} to "Lv16"
  127.         message "{@prefix} <Reset>%{Rank.%attacker%}%になりました!" to the attacker
  128.         stop
  129.  
  130.     if {Rank.%attacker%.killc} is less than 250:
  131.         {Rank.%attacker%} is "Lv17":
  132.             stop
  133.         set {Rank.%attacker%} to "Lv17"
  134.         message "{@prefix} <Reset>%{Rank.%attacker%}%になりました!" to the attacker
  135.         stop
  136.  
  137.     if {Rank.%attacker%.killc} is less than 270:
  138.         {Rank.%attacker%} is "Lv18":
  139.             stop
  140.         set {Rank.%attacker%} to "Lv18"
  141.         message "{@prefix} <Reset>%{Rank.%attacker%}%になりました!" to the attacker
  142.         stop
  143.  
  144.     if {Rank.%attacker%.killc} is less than 290:
  145.         {Rank.%attacker%} is "Lv19":
  146.             stop
  147.         set {Rank.%attacker%} to "Lv19"
  148.         message "{@prefix} <Reset>%{Rank.%attacker%}%になりました!" to the attacker
  149.         stop
  150.  
  151.     if {Rank.%attacker%.killc} is less than 300:
  152.         {Rank.%attacker%} is "Lv20":
  153.             stop
  154.         set {Rank.%attacker%} to "Lv20"
  155.         message "{@prefix} <Reset>%{Rank.%attacker%}%になりました!" to the attacker
  156.         stop
  157.  
  158.     if {Rank.%attacker%.killc} is less than 310:
  159.         {Rank.%attacker%} is "Lv21":
  160.             stop
  161.         set {Rank.%attacker%} to "Lv21"
  162.         message "{@prefix} <Reset>%{Rank.%attacker%}%になりました!" to the attacker
  163.         stop
  164.  
  165.     if {Rank.%attacker%.killc} is less than 320:
  166.         {Rank.%attacker%} is "Lv22":
  167.             stop
  168.         set {Rank.%attacker%} to "Lv22"
  169.         message "{@prefix} <Reset>%{Rank.%attacker%}%になりました!" to the attacker
  170.         stop
  171.  
  172.     if {Rank.%attacker%.killc} is less than 330:
  173.         {Rank.%attacker%} is "Lv23":
  174.             stop
  175.         set {Rank.%attacker%} to "Lv23"
  176.         message "{@prefix} <Reset>%{Rank.%attacker%}%になりました!" to the attacker
  177.         stop
  178.  
  179.     if {Rank.%attacker%.killc} is less than 350:
  180.         {Rank.%attacker%} is "Lv24":
  181.             stop
  182.         set {Rank.%attacker%} to "Lv24"
  183.         message "{@prefix} <Reset>%{Rank.%attacker%}%になりました!" to the attacker
  184.         stop
  185.  
  186.     if {Rank.%attacker%.killc} is less than 370:
  187.         {Rank.%attacker%} is "Lv25":
  188.             stop
  189.         set {Rank.%attacker%} to "Lv25"
  190.         message "{@prefix} <Reset>%{Rank.%attacker%}%になりました!" to the attacker
  191.         stop
  192.  
  193.     if {Rank.%attacker%.killc} is less than 390:
  194.         {Rank.%attacker%} is "Lv26":
  195.             stop
  196.         set {Rank.%attacker%} to "Lv26"
  197.         message "{@prefix} <Reset>%{Rank.%attacker%}%になりました!" to the attacker
  198.         stop
  199.  
  200.     if {Rank.%attacker%.killc} is less than 400:
  201.         {Rank.%attacker%} is "Lv27":
  202.             stop
  203.         set {Rank.%attacker%} to "Lv27"
  204.         message "{@prefix} <Reset>%{Rank.%attacker%}%になりました!" to the attacker
  205.         stop
  206.  
  207.     if {Rank.%attacker%.killc} is less than 410:
  208.         {Rank.%attacker%} is "Lv28":
  209.             stop
  210.         set {Rank.%attacker%} to "Lv28"
  211.         message "{@prefix} <Reset>%{Rank.%attacker%}%になりました!" to the attacker
  212.         stop
  213.  
  214.     if {Rank.%attacker%.killc} is less than 430:
  215.         {Rank.%attacker%} is "Lv29":
  216.             stop
  217.         set {Rank.%attacker%} to "Lv29"
  218.         message "{@prefix} <Reset>%{Rank.%attacker%}%になりました!" to the attacker
  219.         stop
  220.  
  221.     if {Rank.%attacker%.killc} is less than 450:
  222.         {Rank.%attacker%} is "Lv30":
  223.             stop
  224.         set {Rank.%attacker%} to "Lv30"
  225.         message "{@prefix} <Reset>%{Rank.%attacker%}%になりました!" to the attacker
  226.         stop
  227.  
  228. #================================================================#
  229. #========================階級コマンド設定========================#
  230. #================================================================#
  231.  
  232. command /Rank <text> <player>:
  233.     usage: <Green>/Rank view <Aqua>-show your rank   <Green>/rank toggle <Aqua>-op only,階級をONにするかOFFにするか
  234.     trigger:
  235.         if arg 1 is "view":
  236.             if player-arg is set:
  237.                 message "{@prefix} &r%{Rank.%player-arg%}%" to the player
  238.             else:
  239.                 message "{@prefix} &r%{Rank.%player%}%" to the player
  240.             stop
  241.  
  242.         player is op
  243.  
  244.         if arg 1 is "toggle":
  245.             player-arg is not set
  246.             if {Rank.up} is true:
  247.                 set {Rank.up} to false
  248.                 message "disable" to the player
  249.                 stop
  250.             if {Rank.up} is false:
  251.                 set {Rank.up} to true
  252.                 message "enable" to the player
  253.  
  254. command /Rankup <number>:
  255.     usage: this cmd is AOI0530 only use
  256.     permission: Rank.sk*
  257.     trigger:
  258.         player is ""
  259.         add number-arg 1 to {Rank.%player%.killc}
  260.         message "%{Rank.%player%.killc}%" to the player
Add Comment
Please, Sign In to add comment