Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #--------------------------------------------------------------------------------
- #
- # K2R skript
- # RPG LEVEL SYSTEM
- #
- # 使うとき俺にいってね必ず
- # 無断使用はやめてね DISCORD: k1Ok2R#5702
- #使用許可をしている人
- #jukiさん
- #--------------------------------------------------------------------------------
- #
- #
- # configuration
- #
- #--------------------------------------------------------------------------------
- options:
- #---------------------------------------------------------------------------
- #-----------------------------------Logo------------------------------------
- #Logo will display before each message!
- logo: &8[&6System&8] &7&l|
- #---------------------------------------------------------------------------
- #---------------------------------------------------------------------------
- #-----------------------------------Types-----------------------------------
- playerleveling: true
- #---------------------------------------------------------------------------
- #---------------------------------------------------------------------------
- #---------------------------------PLeveling---------------------------------
- #PlayerLeveling (Reward uses vault!)
- xpforlvlup: 500
- lvlupreward: iron_ingot
- #---------------------------------------------------------------------------
- #---------------------------------------------------------------------------
- #----------------------------------MaxLvL-----------------------------------
- maxlvl: 500 #MaxXp is used to mark max level of player (eg. 100 Bob[Lv100])
- #---------------------------------------------------------------------------
- variables:
- {lvl.%player%} = 0
- {xp.%player%} = 0
- {sp.%player%} = 0
- {power.%player%} = 0
- {def.%player%} = 0
- #-------------------------------------------------------
- # side bar
- #-------------------------------------------------------
- every 2 second:
- loop all players:
- wipe loop-player's sidebar
- set name of sidebar of loop-player to "&7&l======&5&lL0SE-RPG&7&l======"
- set score " &6≫&b&lLV: %{lvl.%loop-player%}%" in sidebar of loop-player to 10
- set score " &6≫&a&lEXP: %{xp.%loop-player%}%&7&l/{@xpforlvlup}" in sidebar of loop-player to 9
- set score " &6≫&e&lSP: %{sp.%loop-player%}%" in sidebar of loop-player to 8
- set score " &e" in sidebar of loop-player to 7
- set score " &6≫&5&lお知らせ:" in sidebar of loop-player to 6
- set score " &6≫&a&l作成中" in sidebar of loop-player to 5
- set score " &7&l====================" in sidebar of loop-player to 4
- #------------------------------------------------------------
- # Player Leveling System
- #------------------------------------------------------------
- on any movement:
- if {@playerleveling} is true:
- if {xp.%player%} is greater or equal to {@xpforlvlup}:
- if {lvl.%player%} is greater or equal to {@maxlvl}:
- stop
- else:
- remove {@xpforlvlup} from {xp.%player%}
- add 1 to {lvl.%player%}
- add 1 to {sp.%player%}
- send "{@logo} &e&lレベルUP!現在の&a&lLV: &b%{lvl.%player%}%" to player
- execute console command "/give %player% {@lvlupreward}"
- stop
- command /pointstatus:
- trigger:
- open chest with 1 row named "§e§lステータス割り振り" to player
- wait 1 tick
- format slot 0 of player with iron sword named "§4力" with lore "§6%{power.%player%}%ポイント。攻撃力を上げます" to run [execute player command "statuspower"]
- format slot 1 of player with iron ingot named "§b守備" with lore "§6%{def.%player%}%ポイント。防御力を上げます" to run [execute player command "statusdef"]
- format slot 8 of player with experience bottle named "§a残り%{sp.%player%}%ポイント" to close
- command /statuspower:
- trigger:
- if {sp.%player%} = 0:
- message "§aスキルポイントがたりません" to player
- stop
- else:
- add -1 to {sp.%player%}
- add 1 to {power.%player%}
- message "§ePOWERに1SP割り振りました" to player
- execute player command "pointstatus"
- command /statusdef:
- trigger:
- if {sp.%player%} = 0:
- message "§aスキルポイントがたりません" to player
- stop
- else:
- add -1 to {sp.%player%}
- add 1 to {def.%player%}
- message "§eDefに1SP割り振りました" to player
- execute player command "pointstatus"
- command /playerstatus [<offline player>]:
- trigger:
- if arg-1 is not set:
- send "&e"
- send "&7&l-:=&6&l%player%&7&l=:-:=&b&lStatus&7&l=:-"
- send "&b&lLV: %{lvl.%player%}%"
- send "&a&lEXP: %{xp.%player%}%"
- send "&e&lSP: %{sp.%player%}%"
- send "&e"
- if arg-1 is set:
- send "&e"
- send "&7&l-:=&6&l%arg-1%&7&l=:-:=&b&lStatus&7&l=:-"
- send "&b&lLV: %{lvl.%arg-1%}%"
- send "&a&lEXP: %{xp.%arg-1%}%"
- send "&e&lSP: %{sp.%arg-1%}%"
- send "&e"
- command /resetstatus [<offline player>]:
- permission: skript.k2r
- trigger:
- if arg-1 is not set:
- set {lvl.%player%} to 1
- set {xp.%player%} to 0
- set {sp.%player%} to 1
- set {power.%player%} to 0
- set {def.%player%} to 0
- send "%player%のステータスをリセットしました"
- execute console command "/effect %player% clear"
- if arg-1 is set:
- set {lvl.%arg-1%} to 1
- set {xp.%arg-1%} to 0
- set {sp.%arg-1%} to 1
- set {power.%arg-1%} to 0
- set {def.%arg-1%} to 0
- execute console command "/effect %player% clear"
- send "%arg-1%のステータスをリセットしました"
- every seconds:
- loop all players:
- level of loop-player is less than 100
- if loop-player is sneaking:
- the block below loop-player is not air
- add 0.5 to level progress of loop-player
- add 0.05 to level progress of loop-player
- #---------------------------------------------------------------------
- #
- #Power
- #
- #---------------------------------------------------------------------
- on any movement:
- if {@playerleveling} is true:
- if {power.%player%} is greater or equal to 1:
- apply strength 0 to the player for 9999 seconds
- on any movement:
- if {@playerleveling} is true:
- if {power.%player%} is greater or equal to 10:
- apply strength 1 to the player for 9999 seconds
- on any movement:
- if {@playerleveling} is true:
- if {power.%player%} is greater or equal to 20:
- apply strength 2 to the player for 9999 seconds
- on any movement:
- if {@playerleveling} is true:
- if {power.%player%} is greater or equal to 30:
- apply strength 3 to the player for 9999 seconds
- #---------------------------------------------------------------------
- #
- # def
- #
- #---------------------------------------------------------------------
- on any movement:
- if {@playerleveling} is true:
- if {def.%player%} is greater or equal to 1:
- apply resistance 0 to the player for 9999 seconds
- on any movement:
- if {@playerleveling} is true:
- if {def.%player%} is greater or equal to 10:
- apply resistance 1 to the player for 9999 seconds
- on any movement:
- if {@playerleveling} is true:
- if {def.%player%} is greater or equal to 20:
- apply resistance 2 to the player for 9999 seconds
- on any movement:
- if {@playerleveling} is true:
- if {def.%player%} is greater or equal to 30:
- apply resistance 3 to the player for 9999 seconds
- #---------------------------------------------------------------------
- #
- # モブ EXP 設定
- #
- #---------------------------------------------------------------------
- #zombie(モンスターのID): (EXP量)
- options:
- zombie: 5
- skeleton: 10
- creeper: 7
- spider: 12
- enderman: 20
- witch: 14
- blaze: 24
- zombie pigman: 30
- slime: 2
- on death of a slime:
- if {@playerleveling} is true:
- if attacker is a player:
- add {@slime} to {xp.%attacker%}
- send "&f&l[&e&l+&f&l]&b{@slime}&6EXP" to the attacker
- on death of a zombie:
- if {@playerleveling} is true:
- if attacker is a player:
- add {@zombie} to {xp.%attacker%}
- send "&f&l[&e&l+&f&l]&b{@zombie}&6EXP" to the attacker
- on death of a skeleton:
- if {@playerleveling} is true:
- if attacker is a player:
- add {@skeleton} to {xp.%attacker%}
- send "&f&l[&e&l+&f&l]&b{@skeleton}&6EXP" to the attacker
- on death of a creeper:
- if {@playerleveling} is true:
- if attacker is a player:
- add {@creeper} to {xp.%attacker%}
- send "&f&l[&e&l+&f&l]&b{@creeper}&6EXP" to the attacker
- on death of a spider:
- if {@playerleveling} is true:
- if attacker is a player:
- add {@spider} to {xp.%attacker%}
- send "&f&l[&e&l+&f&l]&b{@spider}&6EXP" to the attacker
- on death of a enderman:
- if {@playerleveling} is true:
- if attacker is a player:
- add {@enderman} to {xp.%attacker%}
- send "&f&l[&e&l+&f&l]&b{@enderman}&6EXP" to the attacker
- on death of a witch:
- if {@playerleveling} is true:
- if attacker is a player:
- add {@witch} to {xp.%attacker%}
- send "&f&l[&e&l+&f&l]&b{@witch}&6EXP" to the attacker
- on death of a blaze:
- if {@playerleveling} is true:
- if attacker is a player:
- add {@blaze} to {xp.%attacker%}
- send "&f&l[&e&l+&f&l]&b{@blaze}&6EXP" to the attacker
- on death of a zombie pigman:
- if {@playerleveling} is true:
- if attacker is a player:
- add {@zombie pigman} to {xp.%attacker%}
- send "&f&l[&e&l+&f&l]&b{@zombie pigman}&6EXP" to the attacker
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement