Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- options:
- #---------------------------------------------------------------------------
- #-----------------------------------Log------------------------------------
- log: &8[&6System&8] &7&l|
- #---------------------------------------------------------------------------
- #---------------------------------------------------------------------------
- #-----------------------------------Types-----------------------------------
- playerleveling: true
- #---------------------------------------------------------------------------
- #---------------------------------------------------------------------------
- #---------------------------------PLeveling---------------------------------
- xpforlvlup: 150
- lvlupreward: air
- #---------------------------------------------------------------------------
- #---------------------------------------------------------------------------
- #----------------------------------MaxLvL-----------------------------------
- maxlvl: 9999
- #---------------------------------------------------------------------------
- #------------------------------------------------------------
- # first status options
- #------------------------------------------------------------
- variables:
- {lvl::%player%} = 1
- {xp::%player%} = 0
- {gold::%player%} = 0
- #------------------------------------------------------------
- # 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%}
- send "{@log} &a%player% &e&lレベルUP!現在の&a&lLV: &b%{lvl::%player%}%" to player
- execute console command "/title %player% title {""text"":""Level Up!"",""bold"":true,""color"":""aqua""}"
- execute console command "/title %player% subtitle {""text"":""%{lvl::%player%}%"",""color"":""blue""}"
- set the player's tablist name to "&7[&b%{lvl::%player%}%&7]&f%player%"
- set display name of player to "&7[&b%{lvl::%player%}%&7]&f%player%"
- stop
- on any movement:
- if {@playerleveling} is true:
- set the player's tablist name to "&7[&b%{lvl::%player%}%&7]&f%player%"
- set display name of player to "&7[&b%{lvl::%player%}%&7]&f%player%"
- stop
- on join:
- set the player's tablist name to "&7[&b%{lvl::%player%}%&7]&f%player%"
- set display name of player to "&7[&b%{lvl::%player%}%&7]&f%player%"
- command /resetstatus [<offline player>]:
- permission: skript.LvReset
- trigger:
- if arg-1 is not set:
- set {lvl::%player%} to 1
- set {xp::%player%} to 0
- set {gold::%player%} to 0
- set {mvp::%player%} to "0"
- set {vip::%player%} to "0"
- set {mvpplus::%player%} to "0"
- send "%player%のステータスをリセットしました"
- if arg-1 is set:
- set {lvl::%arg-1%} to 1
- set {xp::%arg-1%} to 0
- set {gold::%arg-1%} to 0
- set {mvp::%player%} to "0"
- set {vip::%player%} to "0"
- set {mvpplus::%player%} to "0"
- send "%arg-1%のステータスをリセットしました"
- on death:
- victim is a player
- attacker is a player
- wait a tick
- add 5 to {xp::%attacker%}
- send "&a+ &e5xp"
- give attacker golden apple named "&fGapple"
- add 50 to {gold::%attacker%}
- add 1 to {killstats::%attacker%}
- add 1 to {deathstats::%victim%}
- if {vip::%attacker%} is "1":
- add 50 to {gold::%attacker%}
- if {mvp::%attacker%} is "1":
- add 80 to {gold::%attacker%}
- if {mvpplus::%attacker%} is "1":
- add 100 to {gold::%attacker%}
- on damage:
- victim is a player
- attacker is a player
- #-------------------------------------------------------
- # side bar
- #-------------------------------------------------------
- every 2 second:
- loop all players:
- wipe loop-player's sidebar
- set name of sidebar of loop-player to "&e&lTHE REALM PIT"
- set score "Level: &a[%{lvl::%loop-player%}%&a]" in sidebar of loop-player to 10
- set score "XP: &a%{xp::%loop-player%}%" in sidebar of loop-player to 9
- set score "&f" in sidebar of loop-player to 8
- set score "&fGold: &6%{gold::%loop-player%}%g" in sidebar of loop-player to 7
- set score "&5&l" in sidebar of loop-player to 6
- set score "&4stats:" in sidebar of loop-player to 5
- set score "&ckills &7%{killstats::%loop-player%}%" in sidebar of loop-player to 4
- set score "&4deaths &7%{deathstats::%loop-player%}%" in sidebar of loop-player to 3
- set score "&3&l" in sidebar of loop-player to 2
- #--------------------------------------------------------
- #add
- #--------------------------------------------------------
- command /addstatus <player> [<number>]:
- permission:sk.admin
- trigger:
- if arg 2 is set:
- wait a tick
- add arg 2 to {xp::%arg 1%}
- send "&aadded XP"
- command /addgold <player> [<number>]:
- permission:sk.admin
- trigger:
- if arg 2 is set:
- wait a tick
- add arg 2 to {gold::%arg 1%}
- send "&6added Gold"
- #--------------------------------------------------------
- #kills
- #--------------------------------------------------------
- command /shop <text>:
- trigger:
- if arg-1 is "1":
- if {gold::%player%} is greater than 500:
- remove 500 from {gold::%player%}
- execute console command "/give %player% minecraft:diamond_sword"
- execute console command "/playsound minecraft:item.armor.equip_chain ambient %player% ~ ~ ~ 2 0.9"
- send "&bアイテムを購入しました。"
- else:
- send "&4お金が足りません"
- execute console command "/playsound minecraft:entity.player.hurt ambient %player% ~ ~ ~ 2 0"
- if arg-1 is "2":
- if {gold::%player%} is greater than 500:
- remove 500 from {gold::%player%}
- execute console command "/give %player% minecraft:diamond_chestplate"
- execute console command "/playsound minecraft:item.armor.equip_chain ambient %player% ~ ~ ~ 2 0.9"
- send "&bアイテムを購入しました。"
- else:
- send "&cお金が足りません。"
- execute console command "/playsound minecraft:entity.player.hurt ambient %player% ~ ~ ~ 2 0"
- if arg-1 is "3":
- if {gold::%player%} is greater than 450:
- remove 450 from {gold::%player%}
- execute console command "/give %player% minecraft:diamond_boots"
- execute console command "/playsound minecraft:item.armor.equip_chain ambient %player% ~ ~ ~ 2 0.9"
- send "&bアイテムを購入しました。"
- if arg-1 is "menu":
- send "&6--=&6&LShop-Menu&6=--"
- send "&6/shop <番号>で購入!"
- send "&b1.ダイヤの剣 &6500G"
- send "&b2.ダイヤのチェストプレート &6550G"
- send "&b3.ダイヤのブーツ &6450G"
- send "&b4.矢x32 &6100G"
- if arg-1 is "4":
- if {gold::%player%} is greater than 100:
- remove 10 from {gold::%player%}
- execute console command "/give %player% minecraft:arrow 32"
- execute console command "/playsound minecraft:item.armor.equip_chain ambient %player% ~ ~ ~ 2 0.9"
- else:
- send "&cお金が足りません。"
- execute console command "/playsound minecraft:entity.player.hurt ambient %player% ~ ~ ~ 2 0"
- #----------------------------------------------------
- #cmd
- #=---------------------------------------
- command /vip:
- permission:sk.vip
- trigger:
- set {vip::%player%} to "1"
- set {mvp::%player%} to "0"
- set {mvpplus::%player%} to "0"
- send "&eあなたはvipになりました!"
- command /mvp:
- permission:sk.mvp
- trigger:
- set {mvp::%player%} to "1"
- set {vip::%player%} to "0"
- set {mvpplus::%player%} to "0"
- send "&bあなたはmvpになりました!"
- command /mvpplus:
- permission:sk.mvpplus
- trigger:
- set {mvp::%player%} to "0"
- set {vip::%player%} to "0"
- set {mvpplus::%player%} to "1"
- send "&bあなたはmvp&a+&bになりました!"
- command /lvup:
- trigger:
- open chest with 3 rows named "&6&lItems" to player
- wait a tick
- format slot 10 of player with diamond sword named "&ediamond sword" with lore "&6500G" to run [player command "shop 1"]
- format slot 11 of player with obsidian named "&eobdidian 製作中" to run [console command "tell %player% creating now"]
- format slot 12 of player with arrow named "&earrow x32" with lore "&6100G" to run [player command "shop 4"]
- format slot 15 of player with diamond chestplate named "&ediamond chestplate" with lore "&6500G" to run [player command "shop 2"]
- format slot 16 of player with diamond boots named "&ediamond boots" with lore "&6450G" to run [player command "shop 3"]
- command /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[&a&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 "&6Gold" with lore "&8[&6&l%{gold::%player%}%&8]" to close
- format slot 13 of player with iron sword named "&4Kills" with lore "&8[&4&l%{killstats::%player%}%&8]" to close
- format slot 14 of player with redstone named "&4Deaths" with lore "&8[&4&l%{deathstats::%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[&a&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 "&6Gold" with lore "&8[&6&l%{gold::%arg-1%}%&8]" to close
- format slot 13 of player with iron sword named "&4Kills" with lore "&8[&4&l%{killstats::%arg-1%}%&8]" to close
- format slot 14 of player with redstone named "&4Deaths" with lore "&8[&4&l%{deathstats::%arg-1%}%&8]" to close
Add Comment
Please, Sign In to add comment