SHARE
TWEET

Untitled

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