Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- options:
- #-------------------LOG-------------------#
- #LVLUP時の最初のメッセージに
- log: &8&l[&6&lLevel&f&l-&a&lSystem&8&l]
- #-----------------------------------------#
- #------------------Types------------------#
- playerleveling: true
- #LVを名前の前に表示します 例: [LV:1] k1Ok2R
- prefix: true
- prefixmsg: &8[&aLV&8:&6%{lvl.%player%}%&8]
- #LVを名前の後に表示します 例: k1Ok2R [LV:1]
- suffix: false
- suffixmsg: &2&l[&a&lLV&e&l:&6&l%{lvl.%player%}%&2&l]
- #-----------------------------------------#
- #------------------Level------------------#
- #レベルUPに必要なXPを設定できます
- xpforlvlup: 800
- #最大LVを設定できます
- maxlvl: 500
- #-----------------------------------------#
- variables:
- {lvl.%player%} = 1
- {xp.%player%} = 0
- {sp.%player%} = 1
- {str.%player%} = 0
- {def.%player%} = 0
- {spd.%player%} = 0
- 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 {spd.%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 {spd.%arg-1%} to 0
- execute console command "effect %arg-1% clear"
- send "{@log}&e%arg-1%のステータスをリセットしました"
- every 2 second:
- loop all players:
- wipe loop-player's sidebar
- set name of sidebar of loop-player to "&8&l-----------------"
- set score "&5Owner:_WARABI_" in sidebar of loop-player to 9
- set score "&a" in sidebar of loop-player to 8
- set score "&aLV&f>>&6 %{lvl.%loop-player%}%" in sidebar of loop-player to 7
- set score "&eXP&8>>&6 %{xp.%loop-player%}%&a/&7800" in sidebar of loop-player to 6
- set score "&a" in sidebar of loop-player to 5
- set score "&3お知らせ" in sidebar of loop-player to 4
- set score "&3完成日:未定" in sidebar of loop-player to 3
- set score " &8&l-----------------" in sidebar of loop-player to 2
- #----------------------------------------------------------------------------------------------------
- on any movement:
- if {@suffix} is true:
- set {suffix::%uuid of player%} to " &8&l[&e&l%{lvl.%player%}%&8&l]"
- on any movement:
- if {@prefix} is true:
- set {prefix::%uuid of player%} to " &8&l[&e&l%{lvl.%player%}%&8&l]"
- 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 "{@log} &e&lレベルUP!現在の&a&lLV: &b%{lvl.%player%}%" to player
- stop
- #----------------------------------------------------------------------------------------------------
- on chat:
- cancel event
- if {prefix::%uuid of player%} is set:
- if {suffix::%uuid of player%} is set:
- broadcast "%{prefix::%uuid of player%}%%player%%{suffix::%uuid of player%}% &f≫ %message%"
- else:
- broadcast "%{prefix::%uuid of player%}%%player% &f≫ %message%"
- else:
- if {suffix::%uuid of player%} is set:
- broadcast "&7%player%%{suffix::%uuid of player%}% &f≫ %message%"
- else:
- broadcast "&7%player% &f≫ %message%"
- 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&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 "&aLevel" with lore "&8[&6&l%{lvl.%player%}%&8]" to close
- format slot 11 of player with emerald named "&eXP" with lore "&8[&a&l%{xp.%player%}%&8]" to close
- format slot 12 of player with diamond named "&bSP" with lore "&8[&6&l%{sp.%player%}%&8]" to close
- format slot 13 of player with stone sword named "&cPower" with lore "&8[&6&l%{str.%player%}%&8]" to close
- format slot 14 of player with iron chestplate named "&9Defense" with lore "&8[&6&l%{def.%player%}%&8]" to close
- format slot 15 of player with feather named "&bSpeed" with lore "&8[&6&l%{spd.%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 "&aLevel" with lore "&8[&6&l%{lvl.%arg-1%}%&8]" to close
- format slot 11 of player with emerald named "&eXP" with lore "&8[&a&l%{xp.%arg-1%}%&8]" to close
- format slot 12 of player with diamond named "&bSP" with lore "&8[&6&l%{sp.%arg-1%}%&8]" to close
- format slot 13 of player with stone sword named "&cPower" with lore "&8[&6&l%{str.%arg-1%}%&8]" to close
- format slot 14 of player with iron chestplate named "&9Defense" with lore "&8[&6&l%{def.%arg-1%}%&8]" to close
- format slot 15 of player with feather named "&bSpeed" with lore "&8[&6&l%{spd.%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 "&bSpeed" to run [execute player command "rpg-status-up-speed"]
- 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 player command "rpg-status-up"
- 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 player command "rpg-status-up"
- command /rpg-status-up-speed:
- trigger:
- if {sp.%player%} = 0:
- message "&cSPがたりません" to player
- stop
- else:
- add -1 to {sp.%player%}
- add 1 to {spd.%player%}
- message "&eSpeedに1SP割り振りました" to player
- execute player command "rpg-status-up"
- #--------------------------------------------------------------------------------------------------
- #Strength
- on any movement:
- if {@playerleveling} is true:
- if {str.%player%} is greater or equal to 1:
- apply strength 1 to the player for 10 seconds
- on any movement:
- if {@playerleveling} is true:
- if {str.%player%} is greater or equal to 20:
- apply strength 2 to the player for 10 seconds
- on any movement:
- if {@playerleveling} is true:
- if {str.%player%} is greater or equal to 50:
- apply strength 3 to the player for 10 seconds
- on any movement:
- if {@playerleveling} is true:
- if {str.%player%} is greater or equal to 100:
- apply strength 4 to the player for 10 seconds
- #Defense
- on any movement:
- if {@playerleveling} is true:
- if {def.%player%} is greater or equal to 1:
- apply resistance 1 to the player for 10 seconds
- on any movement:
- if {@playerleveling} is true:
- if {def.%player%} is greater or equal to 20:
- apply resistance 2 to the player for 10 seconds
- on any movement:
- if {@playerleveling} is true:
- if {def.%player%} is greater or equal to 50:
- apply resistance 3 to the player for 10 seconds
- on any movement:
- if {@playerleveling} is true:
- if {def.%player%} is greater or equal to 100:
- apply resistance 4 to the player for 10 seconds
- #speed
- on any movement:
- if {@playerleveling} is true:
- if {spd.%player%} is greater or equal to 1:
- apply speed 1 to the player for 10 seconds
- on any movement:
- if {@playerleveling} is true:
- if {spd.%player%} is greater or equal to 100:
- apply speed 2 to the player for 10 seconds
- #---------------------------------------------------------------------------------------------------
- options:
- zombie: 11
- skeleton: 15
- creeper: 17
- spider: 15
- enderman: 21
- witch: 16
- blaze: 32
- zombie pigman: 52
- slime: 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
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement