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: false
- prefixmsg: &8&l[&a&lLV&e&l:&6&l%{lvl.%player%}%&8&l]
- #LVを名前の後に表示します 例: k1Ok2R [LV:1]
- suffix: true
- suffixmsg: &2&l[&a&lLV&e&l:&6&l%{lvl.%player%}%&2&l]
- #-----------------------------------------#
- #------------------Level------------------#
- #レベルUPに必要なXPを設定できます
- xpforlvlup: 500
- #最大LVを設定できます
- maxlvl: 100
- #-----------------------------------------#
- variables:
- {lvl::%player%} = 1
- {xp::%player%} = 0
- {sp::%player%} = 1
- {str::%player%} = 0
- {def::%player%} = 0
- {spd::%player%} = 0
- {up::%player%} = 21
- 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
- set {up::%player%} to 25
- 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
- set {up::%arg-1%} to 25
- execute console command "effect %arg-1% clear"
- send "{@log}&e%arg-1%のステータスをリセットしました"
- #----------------------------------------------------------------------------------------------------
- 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 {@playerleveling} is true:
- set the player's tablist name to "&7&l≫%{prefix::%uuid of player%}% &6&lLevel&f&l:&e&l%{lvl::%player%}% &f%player%"
- set display name of player to "&7&l≫%{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 "&d>>&f&lJ&e&l-&d&lRPG&d<<" and footer to "&6playerrealms.com &a%number of all players%&7/15" for player
- 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 50 to {up::%player%}
- set {xp::%player%} to 0
- send "{@log} &e&lレベルUP!現在の&a&lLV: &b%{lvl::%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≫ &b&l%message%"
- else:
- broadcast "%{prefix::%uuid of player%}%%player% &f≫ &b&l%message%"
- else:
- if {suffix::%uuid of player%} is set:
- broadcast "&7%player%%{suffix::%uuid of player%}% &f≫ &b&l%message%"
- else:
- broadcast "&7%player% &f≫ &b&l%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: 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 "{@log}&b{@slime}&6EXP" to the attacker
- send "&6%player%'s &a&lEXP&f: &e&l%{xp::%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
- send "&6%player%'s &a&lEXP&f: &e&l%{xp::%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
- send "&6%player%'s &a&lEXP&f: &e&l%{xp::%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
- send "&6%player%'s &a&lEXP&f: &e&l%{xp::%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
- send "&6%player%'s &a&lEXP&f: &e&l%{xp::%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
- send "&6%player%'s &a&lEXP&f: &e&l%{xp::%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
- send "&6%player%'s &a&lEXP&f: &e&l%{xp::%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
- send "&6%player%'s &a&lEXP&f: &e&l%{xp::%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
- send "&6%player%'s &a&lEXP&f: &e&l%{xp::%attacker%}%"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement