Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #===============================================================#
- #-J-RPG- Level System #
- #===============================================================#
- #===============================================================#
- #-CONFIG- #
- #===============================================================#
- options:
- #-------------------LOG-------------------#
- #LVLUP時の最初のメッセージに
- log: &8≫&7&lシステム&8≪
- #-----------------------------------------#
- #------------------Types------------------#
- maxlvl: 1000
- playerleveling: true
- #-----------------------------------------#
- #------------------Rank-------------------#
- rank: &2Player
- #-----------------------------------------#
- #===============================================================#
- #-Dont-Edit- #
- #===============================================================#
- variables:
- {lvl::%player%} = 1
- {xp::%player%} = 0
- {sp::%player%} = 1
- {str::%player%} = 0
- {def::%player%} = 0
- {spd::%player%} = 0
- {up::%player%} = 130
- command /rpg-status-reset [<offline player>]:
- permission: k2Rsk
- trigger:
- if arg-1 is not set:
- set {lvl::%player%} to 1
- set {xp::%player%} to 0
- set {sp::%player%} to 1
- set {str::%player%} to 0
- set {def::%player%} to 0
- set {hp::%player%} to 0
- set {up::%player%} to 130
- set {money::%player%} to 0
- execute console command "effect %player% clear"
- send "{@log}&e%player%のステータスをリセットしました"
- if arg-1 is set:
- set {lvl::%arg-1%} to 1
- set {xp::%arg-1%} to 0
- set {sp::%arg-1%} to 1
- set {str::%arg-1%} to 0
- set {def::%arg-1%} to 0
- set {hp::%arg-1%} to 0
- set {up::%arg-1%} to 130
- set {money::%player%} to 0
- execute console command "effect %arg-1% clear"
- send "{@log}&e%arg-1%のステータスをリセットしました"
- #===============================================================#
- #-Edit-OK- #
- #===============================================================#
- every 2 second:
- loop all players:
- wipe loop-player's sidebar
- set name of sidebar of loop-player to "&2| &6&lJ&f&l-&5&lRPG &2|"
- set score "§e§l---==[ステータス]==---" in sidebar of loop-player to 11
- set score "§eLv &7[&e&l%{lvl::%loop-player%}%&7&l&7]" in sidebar of loop-player to 10
- set score "§aExp &7[&a&l%{xp::%loop-player%}%&7&l/&6&l%{up::%loop-player%}%&7]" in sidebar of loop-player to 9
- set score "§5Sp &7[&5&l%{sp::%loop-player%}%&7]" in sidebar of loop-player to 8
- set score "§cRank &7[&c&l%{prefix::%loop-player%}%&7]" in sidebar of loop-player to 7
- set score "§cStr &7[&c&l%{str::%loop-player%}%&7]" in sidebar of loop-player to 5
- set score "§3Def &7[&3&l%{def::%loop-player%}%&7]" in sidebar of loop-player to 3
- set score "§dHp &7[&b&l%{hp::%loop-player%}%&7]" in sidebar of loop-player to 2
- set score "§eMoney &7[&e&l%{money::%loop-player%}%&7]" in sidebar of loop-player to 1
- #----------------------------------------------------------------------------------------------------
- on any movement:
- if {@playerleveling} is true:
- set the player's tablist name to "&c&lRank&9≫%{prefix::%uuid of player%}% &6&lLevel&f&l:&e&l%{lvl::%player%}% &f%player%"
- set display name of player to "&c&lRank&9≫%{prefix::%uuid of player%}% &6&lLevel&f&l:&e&l%{lvl::%player%}% &f%player%"
- on any movement:
- if {@playerleveling} is true:
- set tab header to "|&6&lQ&f&l-&5&lRPG&f|" and footer to "|&a%number of all players%&7/15&f|" for player
- on join:
- if {prefix::%uuid of player%} is not set:
- set {prefix::%uuid of player%} to "{@rank}"
- on any movement:
- if {@playerleveling} is true:
- if {xp::%player%} is greater or equal to {up::%player%}:
- if {lvl::%player%} is greater or equal to {@maxlvl}:
- stop
- else:
- add 1 to {lvl::%player%}
- add 1 to {sp::%player%}
- add 120 to {up::%player%}
- set {xp::%player%} to 0
- send "&l?? {@log} &f&l??"
- send "&l?? &b&lレベルアップ!! &f&l??"
- send "&8≫ &6&lLevel&a&l: &e&l%{lvl::%player%}%"
- send "&8≫ &5&lSP&a&l: &e&l+1"
- stop
- command /rpg-set-level [<offline player>] [<text>]:
- permission: admin
- trigger:
- if arg 1 is set:
- if arg 2 is set:
- set {lvl::%arg-1%} to arg-2
- set {sp::%arg-1%} to arg-2
- stop
- if arg 1 is set:
- if arg 2 is not set:
- send "使い方: /rpg-set-level k2R 1"
- stop
- if arg 1 is not set:
- send "使い方: /rpg-set-level k2R"
- stop
- #----------------------------------------------------------------------------------------------------
- on chat:
- cancel event
- if {mute::%uuid of player%} is set:
- {mute::%uuid of player%} is true
- send "あなたは発言できません。" to player
- add 1 to {checkchat::%player%}
- stop
- if {prefix::%uuid of player%} is set:
- if {suffix::%uuid of player%} is set:
- broadcast "&9≫%{prefix::%uuid of player%}% &f%player% %{suffix::%uuid of player%}%&a: &f&l%message%"
- else:
- broadcast "&9≫%{prefix::%uuid of player%}% &f%player%&a: &f&l%message%"
- else:
- if {suffix::%uuid of player%} is set:
- broadcast "&9≫ &f%player% %{suffix::%uuid of player%}%&a: &f&l%message%"
- else:
- broadcast "&9≫ &f%player%&a: &f&l%message%"
- on chat:
- if {mute::%uuid of player%} is true:
- if {checkchat::%player%} is more than 5:
- broadcast "&8[&fJ-RPG&8]&6%player%をKICKしました。 "
- kick the player
- stop
- command /mute [<offline player>] [<text>]:
- permission: admin
- trigger:
- if arg-1 is set:
- if arg-2 is set:
- set {mute::%uuid of arg-1%} to true
- broadcast "%arg-1%&6が%player%&cによってミュートされました"
- broadcast "理由: %arg-2% "
- if arg-1 is not set:
- send "使い方: /mute k2R_Options うるさい"
- command /mute-check [<offline player>]:
- trigger:
- send "MUTE: %arg-1% %{mute::%uuid of arg-1%}%"
- command /unmute [<offline player>] [<text>]:
- permission: admin
- trigger:
- if arg-1 is set:
- if arg 2 is set:
- set {mute::%uuid of arg-1%} to false
- broadcast "%arg-1%&6は&c%player%によってミュート解除されました"
- broadcast "理由: %arg-2% "
- if arg-1 is not set:
- send "使い方: /unmute k2R_Options 大好き"
- command /prefix [<offline player>] [<text>]:
- permission: admin
- permission message: あなたは権限を持っていません。
- trigger:
- set {prefix::%uuid of arg-1%} to colored arg-2
- send "&b%arg 1% の前を %colored arg 2% &bにしました!"
- command /clearprefix [<offline player>]:
- permission: admin
- permission message: あなたは権限を持っていません。
- trigger:
- clear {prefix::%uuid of arg-1%}
- send "&b%arg 1% の称号をリセットしました。"
- command /suffix [<offline player>] [<text>]:
- permission: admin
- permission message: あなたは権限を持っていません。
- trigger:
- set {suffix::%uuid of arg-1%} to coloured arg-2
- send "&b%arg 1% の称号を%colored arg 2% &bにしました!"
- command /clearsuffix [<offline player>]:
- permission: admin
- permission message: あなたは権限を持っていません。
- trigger:
- clear {suffix::%uuid of arg-1%}
- send "&b%arg 1% の称号をリセットしました。"
- command /prefixhelp:
- permission: skript.admin
- permission message: あなたは権限を持っていません。
- trigger:
- send "&b&m================================="
- send "&b&lPREFIX &eSKRIPT Version:1.12.2 "
- send "&b&l/prefix (名前) (称号) "
- send "&b&l/clearprefix (名前) "
- send "&b&l/suffix (名前) (称号) "
- send "&b&l/clearsuffix (名前)"
- send "&b&l/mute (名前) (理由)"
- send "&b&l/unmute (名前) (理由)"
- send "&b&l/mute-check (名前)"
- send "&b&m================================="
- #----------------------------------------------------------------------------------------------------
- command /rpg-status [<offline player>]:
- trigger:
- if arg-1 is not set:
- open chest with 3 row named "&e&l%player%'s &6&lStatus" to player
- wait 2 tick
- format slot 10 of player with beacon named "&eLv" with lore "&8[&6&l%{lvl::%player%}%&8]" to close
- format slot 11 of player with emerald named "&aExp" with lore "&8[&a&l%{xp::%player%}%&8]" to close
- format slot 12 of player with diamond named "&5Sp" with lore "&8[&6&l%{sp::%player%}%&8]" to close
- format slot 13 of player with stone sword named "&cStr" with lore "&8[&6&l%{str::%player%}%&8]" to close
- format slot 14 of player with iron chestplate named "&3Def" with lore "&8[&6&l%{def::%player%}%&8]" to close
- format slot 15 of player with feather named "&dHp" with lore "&8[&6&l%{Hp::%player%}%&8]" to close
- if arg-1 is set:
- open chest with 3 row named "&e&l%arg-1%'s &6&lStatus" to player
- wait 2 tick
- format slot 10 of player with beacon named "&eLv" with lore "&8[&6&l%{lvl::%arg-1%}%&8]" to close
- format slot 11 of player with emerald named "&aExp" with lore "&8[&a&l%{xp::%arg-1%}%&8]" to close
- format slot 12 of player with diamond named "&5Sp" with lore "&8[&6&l%{sp::%arg-1%}%&8]" to close
- format slot 13 of player with stone sword named "&cStr" with lore "&8[&6&l%{str::%arg-1%}%&8]" to close
- format slot 14 of player with iron chestplate named "&3Def" with lore "&8[&6&l%{def::%arg-1%}%&8]" to close
- format slot 15 of player with feather named "&dHp" with lore "&8[&6&l%{hp::%arg-1%}%&8]" to close
- #----------------------------------------------------------------------------------------------------
- command /rpg-status-up:
- trigger:
- open chest with 1 row named "&a&lStatus&f-&e&ldistribution" to player
- wait 2 tick
- format slot 1 of player with stone sword named "&cPower" to run [execute player command "rpg-status-up-str"]
- format slot 2 of player with iron chestplate named "&9Defense" to run [execute player command "rpg-status-up-def"]
- format slot 3 of player with feather named "&dHp" to run [execute player command "rpg-status-up-hp"]
- format slot 8 of player with diamond named "&bSp" with lore "&8[&a&l%{sp.%player%}%&8]" to close
- #----------------------------------------------------------------------------------------------------
- command /rpg-status-up-str:
- trigger:
- if {sp::%player%} = 0:
- message "&cSPがたりません" to player
- stop
- else:
- add -1 to {sp::%player%}
- add 1 to {str::%player%}
- message "&estrに1SP割り振りました" to player
- execute console command "replaceitem entity %player% slot.armor.head minecraft:leather_helmet 1 0 {""display"":{""Name"":""§c攻撃力"",""Lore"":[""§7[§c%{str::%player%}%§7]""],""color"":16711680},""Unbreakable"":1b,""ench"":[{""id"":10s,""lvl"":1s}],""AttributeModifiers"":[{""Name"":""HaruEditor"",""UUIDLeast"":1910767407l,""UUIDMost"":1910767407l,""Operation"":0,""AttributeName"":""generic.attackDamage"",""Amount"":%{str::%player%}%d,""Slot"":""head""}],""HideFlags"":39}"
- command /rpg-status-up-def:
- trigger:
- if {sp::%player%} = 0:
- message "&cSPがたりません" to player
- stop
- else:
- add -1 to {sp::%player%}
- add 1 to {def::%player%}
- message "&edefに1SP割り振りました" to player
- execute console command "replaceitem entity %player% slot.armor.chest minecraft:leather_chestplate 1 0 {""display"":{""Name"":""§3防御力"",""Lore"":[""§7[§3%{def::%player%}%§7]""],""color"":16512},""Unbreakable"":1b,""ench"":[{""id"":10s,""lvl"":1s}],""AttributeModifiers"":[{""Name"":""HaruEditor"",""UUIDLeast"":861001074l,""UUIDMost"":861001074l,""Operation"":0,""AttributeName"":""generic.armor"",""Amount"":%{def::%player%}%d,""Slot"":""chest""}],""HideFlags"":39}"
- command /rpg-status-up-hp:
- trigger:
- if {sp::%player%} = 0:
- message "&cSPがたりません" to player
- stop
- else:
- add -1 to {sp::%player%}
- add 1 to {hp::%player%}
- message "&eHpに1SP割り振りました" to player
- execute console command "replaceitem entity %player% slot.armor.legs minecraft:leather_leggings 1 0 {""display"":{""Name"":""§d体力"",""Lore"":[""§7[§d%{hp::%player%}%§7]""],""color"":16711808},""Unbreakable"":1b,""ench"":[{""id"":10s,""lvl"":1s}],""AttributeModifiers"":[{""Name"":""HaruEditor"",""UUIDLeast"":684236257l,""UUIDMost"":684236257l,""Operation"":0,""AttributeName"":""generic.maxHealth"",""Amount"":%{hp::%player%}%d,""Slot"":""legs""}],""HideFlags"":39}"
- #--------------------------------------------------------------------------------------------------
- #---------------------------------------------------------------------------------------------------
- #===============================================================#
- #-Edit-Ok- #
- #===============================================================#
- options:
- zombie: 5
- skeleton: 10
- creeper: 7
- spider: 12
- enderman: 20
- witch: 14
- blaze: 24
- zombie pigman: 30
- slime: 2
- TEST: 10
- on death of a slime:
- if {@playerleveling} is true:
- if attacker is a player:
- add {@slime} to {xp::%attacker%}
- send "{@log}&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 "{@log}&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 "{@log}&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 "{@log}&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 "{@log}&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 "{@log}&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 "{@log}&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 "{@log}&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 "{@log}&b{@zombie pigman}&6EXP" to the attacker
- on death of a blaze:
- if {@playerleveling} is true:
- if attacker is a player:
- add {@TEST} to {xp::%attacker%}
- send "{@log}&b{@TEST}&6EXP" to the attacker
- command /armorreload:
- trigger:
- execute console command "replaceitem entity %player% slot.armor.head minecraft:leather_helmet 1 0 {""display"":{""Name"":""§c攻撃力"",""Lore"":[""§7[§c%{str::%player%}%§7]""],""color"":16711680},""Unbreakable"":1b,""ench"":[{""id"":10s,""lvl"":1s}],""AttributeModifiers"":[{""Name"":""HaruEditor"",""UUIDLeast"":1910767407l,""UUIDMost"":1910767407l,""Operation"":0,""AttributeName"":""generic.attackDamage"",""Amount"":%{str::%player%}%d,""Slot"":""head""}],""HideFlags"":39}"
- execute console command "replaceitem entity %player% slot.armor.chest minecraft:leather_chestplate 1 0 {""display"":{""Name"":""§3防御力"",""Lore"":[""§7[§3%{def::%player%}%§7]""],""color"":16512},""Unbreakable"":1b,""ench"":[{""id"":10s,""lvl"":1s}],""AttributeModifiers"":[{""Name"":""HaruEditor"",""UUIDLeast"":861001074l,""UUIDMost"":861001074l,""Operation"":0,""AttributeName"":""generic.armor"",""Amount"":%{def::%player%}%d,""Slot"":""chest""}],""HideFlags"":39}"
- execute console command "replaceitem entity %player% slot.armor.legs minecraft:leather_leggings 1 0 {""display"":{""Name"":""§d体力"",""Lore"":[""§7[§d%{hp::%player%}%§7]""],""color"":16711808},""Unbreakable"":1b,""ench"":[{""id"":10s,""lvl"":1s}],""AttributeModifiers"":[{""Name"":""HaruEditor"",""UUIDLeast"":684236257l,""UUIDMost"":684236257l,""Operation"":0,""AttributeName"":""generic.maxHealth"",""Amount"":%{hp::%player%}%d,""Slot"":""legs""}],""HideFlags"":39}"
- command /1:
- permission: 1
- permission message: あなたはまだその村に行ってません
- trigger:
- execute console command "/tp %player% 263 7 -610"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement