SHARE
TWEET

Untitled

K2Rk1o Dec 6th, 2018 67 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #--------------------------------------------------------------------------------
  2. #                                                                              
  3. #      K2R skript                                                              
  4. #           RPG LEVEL SYSTEM                                                    
  5. #                                                                              
  6. #                                                                        
  7. #                                                                      
  8. #--------------------------------------------------------------------------------
  9. #                                                                              
  10. #                                                                              
  11. #         configuration                                                        
  12. #                                                                              
  13. #--------------------------------------------------------------------------------
  14. options:
  15.     #---------------------------------------------------------------------------
  16.     #-----------------------------------Logo------------------------------------
  17.     #Logo will display before each message!
  18.     logo: &8[&6System&8] &7&l|
  19.     #---------------------------------------------------------------------------
  20.    
  21.     #---------------------------------------------------------------------------
  22.     #-----------------------------------Types-----------------------------------
  23.     playerleveling: true
  24.     #---------------------------------------------------------------------------
  25.    
  26.     #---------------------------------------------------------------------------
  27.     #---------------------------------PLeveling---------------------------------
  28.     #PlayerLeveling (Reward uses vault!)
  29.     xpforlvlup: 500
  30.     lvlupreward: iron_ingot
  31.     #---------------------------------------------------------------------------
  32.    
  33.     #---------------------------------------------------------------------------
  34.     #----------------------------------MaxLvL-----------------------------------
  35.     maxlvl: 500 #MaxXp is used to mark max level of player (eg. 100 Bob[Lv100])
  36.     #---------------------------------------------------------------------------
  37.  
  38. variables:
  39.     {lvl.%player%} = 0
  40.     {xp.%player%} = 0
  41.     {sp.%player%} = 0
  42.     {power.%player%} = 0
  43.     {def.%player%} = 0
  44. #-------------------------------------------------------
  45. # side bar
  46. #-------------------------------------------------------
  47.  
  48. every 2 second:
  49.     loop all players:
  50.         wipe loop-player's sidebar
  51.         set name of sidebar of loop-player to "&7&l======&5&lL0SE-RPG&7&l======"
  52.         set score "  &6≫&b&lLV: %{lvl.%loop-player%}%" in sidebar of loop-player to 10
  53.         set score "  &6≫&a&lEXP: %{xp.%loop-player%}%&7&l/{@xpforlvlup}" in sidebar of loop-player to 9
  54.         set score "  &6≫&e&lSP: %{sp.%loop-player%}%" in sidebar of loop-player to 8
  55.         set score "  &e" in sidebar of loop-player to 7
  56.         set score "  &6≫&5&lお知らせ:" in sidebar of loop-player to 6
  57.         set score "  &6≫&a&l作成中" in sidebar of loop-player to 5
  58.         set score "  &7&l====================" in sidebar of loop-player to 4
  59. #------------------------------------------------------------
  60. #                 Player Leveling System
  61. #------------------------------------------------------------
  62.  
  63. on any movement:
  64.     if {@playerleveling} is true:
  65.         if {xp.%player%} is greater or equal to {@xpforlvlup}:
  66.             if {lvl.%player%} is greater or equal to {@maxlvl}:
  67.                 stop
  68.             else:
  69.                 remove {@xpforlvlup} from {xp.%player%}
  70.                 add 1 to {lvl.%player%}
  71.                 add 1 to {sp.%player%}
  72.                 send "{@logo} &e&lレベルUP!現在の&a&lLV: &b%{lvl.%player%}%" to player
  73.                 execute console command "/give %player% {@lvlupreward}"
  74.                 stop
  75.  
  76. command /pointstatus:
  77.     trigger:
  78.         open chest with 1 row named "§e§lステータス割り振り" to player
  79.         wait 1 tick
  80.         format slot 0 of player with iron sword named "§4力" with lore "§6%{power.%player%}%ポイント。攻撃力を上げます" to run [execute player command "statuspower"]
  81.         format slot 1 of player with iron ingot named "§b守備" with lore "§6%{def.%player%}%ポイント。防御力を上げます" to run [execute player command "statusdef"]
  82.         format slot 8 of player with experience bottle named "§a残り%{sp.%player%}%ポイント" to close
  83.  
  84. command /statuspower:
  85.     trigger:
  86.         if {sp.%player%} = 0:
  87.             message "§aスキルポイントがたりません" to player
  88.             stop
  89.         else:
  90.             add -1 to {sp.%player%}
  91.             add 1 to {power.%player%}
  92.             message "§ePOWERに1SP割り振りました" to player
  93.             execute player command "pointstatus"
  94.  
  95. command /statusdef:
  96.     trigger:
  97.         if {sp.%player%} = 0:
  98.             message "§aスキルポイントがたりません" to player
  99.             stop
  100.         else:
  101.             add -1 to {sp.%player%}
  102.             add 1 to {def.%player%}
  103.             message "§eDefに1SP割り振りました" to player
  104.             execute player command "pointstatus"
  105.  
  106. command /playerstatus [<offline player>]:
  107.     trigger:
  108.         if arg-1 is not set:
  109.             send "&e"
  110.             send "&7&l-:=&6&l%player%&7&l=:-:=&b&lStatus&7&l=:-"
  111.             send "&b&lLV: %{lvl.%player%}%"
  112.             send "&a&lEXP: %{xp.%player%}%"
  113.             send "&e&lSP: %{sp.%player%}%"
  114.             send "&e"
  115.         if arg-1 is set:
  116.             send "&e"
  117.             send "&7&l-:=&6&l%arg-1%&7&l=:-:=&b&lStatus&7&l=:-"
  118.             send "&b&lLV: %{lvl.%arg-1%}%"
  119.             send "&a&lEXP: %{xp.%arg-1%}%"
  120.             send "&e&lSP: %{sp.%arg-1%}%"
  121.             send "&e"
  122.  
  123. command /resetstatus [<offline player>]:
  124.     permission: skript.k2r
  125.     trigger:
  126.         if arg-1 is not set:
  127.             set {lvl.%player%} to 1
  128.             set {xp.%player%} to 0
  129.             set {sp.%player%} to 1
  130.             set {power.%player%} to 0
  131.             set {def.%player%} to 0
  132.             send "%player%のステータスをリセットしました"
  133.             execute console command "/effect %player% clear"
  134.         if arg-1 is set:
  135.             set {lvl.%arg-1%} to 1
  136.             set {xp.%arg-1%} to 0
  137.             set {sp.%arg-1%} to 1
  138.             set {power.%arg-1%} to 0
  139.             set {def.%arg-1%} to 0
  140.             execute console command "/effect %player% clear"
  141.             send "%arg-1%のステータスをリセットしました"
  142.  
  143. #---------------------------------------------------------------------
  144. #
  145. #Power
  146. #
  147. #---------------------------------------------------------------------
  148. on any movement:
  149.     if {@playerleveling} is true:
  150.         if {power.%player%} is greater or equal to 1:
  151.             apply strength 0 to the player for 9999 seconds
  152.  
  153. on any movement:
  154.     if {@playerleveling} is true:
  155.         if {power.%player%} is greater or equal to 10:
  156.             apply strength 1 to the player for 9999 seconds
  157.  
  158. on any movement:
  159.     if {@playerleveling} is true:
  160.         if {power.%player%} is greater or equal to 20:
  161.             apply strength 2 to the player for 9999 seconds
  162.  
  163. on any movement:
  164.     if {@playerleveling} is true:
  165.         if {power.%player%} is greater or equal to 30:
  166.             apply strength 3 to the player for 9999 seconds
  167.  
  168. #---------------------------------------------------------------------
  169. #
  170. # def
  171. #
  172. #---------------------------------------------------------------------
  173. on any movement:
  174.     if {@playerleveling} is true:
  175.         if {def.%player%} is greater or equal to 1:
  176.             apply resistance 0 to the player for 9999 seconds
  177.  
  178. on any movement:
  179.     if {@playerleveling} is true:
  180.         if {def.%player%} is greater or equal to 10:
  181.             apply resistance 1 to the player for 9999 seconds
  182.  
  183. on any movement:
  184.     if {@playerleveling} is true:
  185.         if {def.%player%} is greater or equal to 20:
  186.             apply resistance 2 to the player for 9999 seconds
  187.  
  188. on any movement:
  189.     if {@playerleveling} is true:
  190.         if {def.%player%} is greater or equal to 30:
  191.             apply resistance 3 to the player for 9999 seconds
  192.  
  193. #---------------------------------------------------------------------
  194. #
  195. # モブ EXP 設定
  196. #
  197. #---------------------------------------------------------------------
  198. #zombie(モンスターのID): (EXP量)
  199.  
  200. options:
  201.     zombie: 5
  202.     skeleton: 10
  203.     creeper: 7
  204.     spider: 12
  205.     enderman: 20
  206.     witch: 14
  207.     blaze: 24
  208.     zombie pigman: 30
  209.     slime: 2
  210.    
  211. on death of a slime:
  212.     if {@playerleveling} is true:
  213.         if attacker is a player:
  214.             add {@slime} to {xp.%attacker%}
  215.             send "&f&l[&e&l+&f&l]&b{@slime}&6EXP" to the attacker
  216.  
  217. on death of a zombie:
  218.     if {@playerleveling} is true:
  219.         if attacker is a player:
  220.             add {@zombie} to {xp.%attacker%}
  221.             send "&f&l[&e&l+&f&l]&b{@zombie}&6EXP" to the attacker
  222.  
  223. on death of a skeleton:
  224.     if {@playerleveling} is true:
  225.         if attacker is a player:
  226.             add {@skeleton} to {xp.%attacker%}
  227.             send "&f&l[&e&l+&f&l]&b{@skeleton}&6EXP" to the attacker
  228.  
  229. on death of a creeper:
  230.     if {@playerleveling} is true:
  231.         if attacker is a player:
  232.             add {@creeper} to {xp.%attacker%}
  233.             send "&f&l[&e&l+&f&l]&b{@creeper}&6EXP" to the attacker
  234.  
  235. on death of a spider:
  236.     if {@playerleveling} is true:
  237.         if attacker is a player:
  238.             add {@spider} to {xp.%attacker%}
  239.             send "&f&l[&e&l+&f&l]&b{@spider}&6EXP" to the attacker
  240.  
  241. on death of a enderman:
  242.     if {@playerleveling} is true:
  243.         if attacker is a player:
  244.             add {@enderman} to {xp.%attacker%}
  245.             send "&f&l[&e&l+&f&l]&b{@enderman}&6EXP" to the attacker
  246.  
  247. on death of a witch:
  248.     if {@playerleveling} is true:
  249.         if attacker is a player:
  250.             add {@witch} to {xp.%attacker%}
  251.             send "&f&l[&e&l+&f&l]&b{@witch}&6EXP" to the attacker
  252.  
  253. on death of a blaze:
  254.     if {@playerleveling} is true:
  255.         if attacker is a player:
  256.             add {@blaze} to {xp.%attacker%}
  257.             send "&f&l[&e&l+&f&l]&b{@blaze}&6EXP" to the attacker
  258.  
  259. on death of a zombie pigman:
  260.     if {@playerleveling} is true:
  261.         if attacker is a player:
  262.             add {@zombie pigman} to {xp.%attacker%}
  263.             send "&f&l[&e&l+&f&l]&b{@zombie pigman}&6EXP" to the attacker
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