SHARE
TWEET

Untitled

K2Rk1o Dec 11th, 2018 68 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. options:
  2.     #CONFIG
  3.     #---------------------------------------------------------------------------
  4.     #-----------------------------------Logo------------------------------------
  5.     logo: &8[&bK2RServer&8]&7|
  6.     #---------------------------------------------------------------------------
  7.    
  8.     #---------------------------------------------------------------------------
  9.     #-----------------------------------Types-----------------------------------
  10.     playerleveling: true
  11.     #---------------------------------------------------------------------------
  12.    
  13.     #---------------------------------------------------------------------------
  14.     #---------------------------------PLeveling---------------------------------
  15.     #PlayerLeveling (Reward uses vault!)
  16.     xpforlvlup: 500
  17.     lvlupreward: iron_ingot
  18.     #---------------------------------------------------------------------------
  19.  
  20.     #---------------------------------------------------------------------------
  21.     #----------------------------------MaxLvL-----------------------------------
  22.     maxlvl: 1000 #MaxXp is used to mark max level of player (eg. 100 Bob[Lv100])
  23.     #---------------------------------------------------------------------------
  24.  
  25.     #---------------------------------------------------------------------------
  26.     #----------------------------------Suffix-----------------------------------
  27.     suffix: true
  28.     setsuffix: &8[&7Lv%{lvl.%player%}%&8] #Do NOT touch %{lvl.%player%}%
  29.     #---------------------------------------------------------------------------
  30.  
  31. #------------------------------------------------------------------------------------------------------
  32. every 5 second:
  33.     loop all players:
  34.         wipe loop-player's sidebar
  35.         set name of sidebar of loop-player to "&6&l%loop-player% status"
  36.         set score " &b&lLV&f: &e%{lvl.%loop-player%}%" in sidebar of loop-player to 8
  37.         set score " &6&lMineLV&f: &e%{min.%loop-player%}% " in sidebar of loop-player to 7
  38.         set score " &e&lMineExp&f: &e%{mining.%loop-player%}% " in sidebar of loop-player to 6
  39.         set score " &a&lXP&f: &e%{xp.%loop-player%}%  " in sidebar of loop-player to 5
  40.         set score " &e&lランク≫ %{prefix::%uuid of loop-player%}%" in sidebar of loop-player to 4
  41.         set score " &3  " in sidebar of loop-player to 3
  42.         set score " &2 " in sidebar of loop-player to 2
  43.  
  44. #------------------------------------------------------------------------------------------------------
  45. #
  46. #&e&lランク≫ %{prefix::%uuid of loop-player%}%
  47. #
  48. #
  49. #
  50. #
  51. #
  52.  
  53. variables:
  54.     {mining.%player%} = 0
  55.     {min.%player%} = 0
  56.     {xp.%player%} = 0
  57.     {lvl.%player%} = 0
  58.  
  59.  
  60. on any movement:
  61.     if {@playerleveling} is true:
  62.         if {mining.%player%} is greater or equal to {@xpforlvlup}:
  63.             if {lvl.%player%} is greater or equal to {@maxlvl}:
  64.                 stop
  65.             else:
  66.                 remove {@xpforlvlup} from {mining.%player%}
  67.                 remove {@xpforlvlup} from {xp.%player%}
  68.                 add 1 to {lvl.%player%}
  69.                 add 1 to {min.%player%}
  70.                 send "{@logo} &7レベルアップ!現在のLV: &a%{min.%player%}%" to player
  71.                 execute console command "/give %player% {@lvlupreward}"
  72.                 stop
  73.             if {xp.%player%} is greater or equal to {@xpforlvlup}:
  74.             if {lvl.%player%} is greater or equal to {@maxlvl}:
  75.                 stop
  76.             else:
  77.                 remove {@xpforlvlup} from {xp.%player%}
  78.                 add 1 to {lvl.%player%}
  79.                 send "{@logo} &7レベルアップ!現在のLV: &a%{lvl.%player%}%" to player
  80.                 execute console command "/give %player% {@lvlupreward}"
  81.                 stop
  82.  
  83. on break of stone:
  84.     if {@playerleveling} is true:
  85.         chance of 100%:
  86.             add 1 to {mining.%player%}
  87.             add 1 to {xp.%player%}
  88.             send "{@logo} &7&l[&a&l+&7&l]&b 1 EXP " to player
  89.  
  90. on break of coal_ore:
  91.     if {@playerleveling} is true:
  92.         chance of 99%:
  93.             add 2 to {mining.%player%}
  94.             add 2 to {xp.%player%}
  95.             send "{@logo} &7&l[&a&l+&7&l]&b 2 EXP " to player
  96.  
  97. on break of lapis_ore:
  98.     if {@playerleveling} is true:
  99.         chance of 99%:
  100.             add 4 to {mining.%player%}
  101.             add 4 to {xp.%player%}
  102.             send "{@logo} &7&l[&a&l+&7&l]&b 4 EXP " to player
  103.  
  104. on break of iron_ore:
  105.     if {@playerleveling} is true:
  106.         chance of 80%:
  107.             add 5 to {mining.%player%}
  108.             add 5 to {xp.%player%}
  109.             send "{@logo} &7&l[&a&l+&7&l]&b 5 EXP " to player
  110.  
  111. on break of gold_ore:
  112.     if {@playerleveling} is true:
  113.         chance of 80%:
  114.             add 7 to {mining.%player%}
  115.             add 7 to {xp.%player%}
  116.             send "{@logo} &7&l[&a&l+&7&l]&b 7 EXP " to player
  117.  
  118. on break of redstone_ore:
  119.     if {@playerleveling} is true:
  120.         chance of 70%:
  121.             add 10 to {mining.%player%}
  122.             add 10 to {xp.%player%}
  123.             send "{@logo} &7&l[&a&l+&7&l]&b 10 EXP " to player
  124.  
  125. on break of diamond_ore:
  126.     if {@playerleveling} is true:
  127.         chance of 40%:
  128.             add 15 to {mining.%player%}
  129.             add 15 to {xp.%player%}
  130.             send "{@logo} &7&l[&a&l+&7&l]&b 15 EXP " to player
  131.  
  132. on break of emerald_ore:
  133.     if {@playerleveling} is true:
  134.         chance of 20%:
  135.             add 20 to {mining.%player%}
  136.             add 20 to {xp.%player%}
  137.             send "{@logo} &7&l[&a&l+&7&l]&b 20 EXP " to player
  138.  
  139. on break of quartz_ore:
  140.     if {@playerleveling} is true:
  141.         chance of 10%:
  142.             add 30 to {mining.%player%}
  143.             add 30 to {xp.%player%}
  144.             send "{@logo} &7&l[&a&l+&7&l]&b 30 EXP " to player
  145.  
  146. command /resetstatus [<offline player>]:
  147.     permission: skript.k2r
  148.     permission message: あなたは権限を持っていません。
  149.     trigger:
  150.         if arg-1 is not set:
  151.             set {mining.%player%} to 0
  152.             set {min.%player%} to 1
  153.             set {xp.%player%} to 0
  154.             set {lvl.%player%} to 1
  155.             send "%player%のステータスをリセットしました"
  156.         if arg-1 is set:
  157.             set {mining.%arg-1%} to 0
  158.             set {min.%arg-1%} to 1
  159.             set {xp.%arg-1%} to 0
  160.             set {lvl.%arg-1%} to 1
  161.             send "%arg-1%のステータスをリセットしました"
  162.  
  163. command /status [<offline player>]:
  164.     trigger:
  165.         if arg-1 is not set:
  166.             send "&a"
  167.             send "&7&l-:=|&6&l%player%&7&l|=:-:=&a&lstatus&7&l=:-|"
  168.             send "     &b&lLV&f: &e%{lvl.%player%}%           "
  169.             send "     &6&lMineLV&f: &e%{min.%player%}%          "
  170.             send "     &a&lXP&f: &e%{xp.%player%}%              "
  171.             send "     &e&lMineExp&f: &e%{mining.%player%}%  "
  172.             send "     &a&l{@xpforlvlup}までためるとLVUPします      "
  173.             send "&a"
  174.         if arg-1 is set:
  175.             send "&a"
  176.             send "&7&l-:=|&6&l%arg-1%&7&l|=:-:=&a&lstatus=:-|"
  177.             send "     &b&lLV&f: &e%{lvl.%arg-1%}%           "
  178.             send "     &6&lMineLV&f: &e%{min.%arg-1%}%          "
  179.             send "     &a&lXP&f: &e%{xp.%arg-1%}%              "
  180.             send "     &e&lMineExp&f: &e%{mining.%arg-1%}%  "
  181.             send "     &a&l{@xpforlvlup}までためるとLVUPします      "
  182.             send "&a"
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top