Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #全体オプション
- options:
- Title: 未定(後々設定)
- #SK reload
- on load:
- broadcast "&a[&cSkript&a] リロードが完了しました。"
- every 3 ticks:
- loop all players:
- set the text of id "%loop-player%10" to "&e"
- set the text of id "%loop-player%9" to "&e&lClass &8&l> &3&l%{class.%loop-player%}%"
- set the text of id "%loop-player%8" to "&f"
- set the text of id "%loop-player%7" to "&e&lLevel &8&l> &7%{Level.%loop-player%}%"
- set the text of id "%loop-player%6" to "&e&lExp &8&l> &7%{Exp.%loop-player%}%&8/&6%2*(5*{Level.%loop-player%}+{Level.%loop-player%}^8)+100%"
- set the text of id "%loop-player%5" to "&1"
- set the text of id "%loop-player%4" to "&e&lMoney &8&l> &6%{Money.%loop-player%}%G"
- set the text of id "%loop-player%3" to "&e&lMana &8&l> &b%{Mana.%loop-player%}%&8/&b%2*{Level.%loop-player%}+{Level.%loop-player%}^2+47%"
- #sidebar on join
- on join:
- wait 0.2 seconds
- create a new stylish scoreboard named "%player%"
- set title of stylish scoreboard "%player%" to "&7&l≪&6&lServerName&7&l≫"
- create a new id based score "%player%10" with text "&e" slot 10 for stylish scoreboard "%player%"
- create a new id based score "%player%9" with text "&e&lClass &8&l> &3&l%{class.%player%}%" slot 9 for stylish scoreboard "%player%"
- create a new id based score "%player%8" with text "&f" slot 8 for stylish scoreboard "%player%"
- create a new id based score "%player%7" with text "&e&lLevel &8&l> &7%{Level.%player%}%" slot 7 for stylish scoreboard "%player%"
- create a new id based score "%player%6" with text "&e&lExp &8&l> &7%{Exp.%player%}%&8/&6%2*(5*{Level.%player%}+{Level.%player%}^8)+100%" slot 6 for stylish scoreboard "%player%"
- create a new id based score "%player%5" with text "&1" slot 5 for stylish scoreboard "%player%"
- create a new id based score "%player%4" with text "&e&lMoney &8&l> &6%{Money.%player%}%G" slot 4 for stylish scoreboard "%player%"
- create a new id based score "%player%3" with text "&e&lMana &8&l> &b%{Mana.%player%}%&8/&b%2*{Level.%player%}+{Level.%player%}^2+47%" slot 3 for stylish scoreboard "%player%"
- set stylish scoreboard of player to "%player%"
- #reset
- command /reset:
- trigger:
- set {Level.%player%} to 1
- set {Exp.%player%} to 0
- set {Money.%player%} to 100
- set {Mana.%player%} to 50
- set {Fire.point.%player%} to 0
- set {Water.point.%player%} to 0
- set {Leaf.point.%player%} to 0
- set {Electricity.point.%player%} to 0
- set {Shadow.point.%player%} to 0
- set {Status.point.%player%} to 5
- set {Class.%player%} to "none"
- send "&bステータスをリセットしました。"
- #status set
- command /setstatus [<text>] [<text>] [<number>] :
- trigger:
- if arg 2 is "level":
- set {Level.%arg 1%} to arg 3
- send "&b%arg 1% の %arg 2% を %arg 3% に設定しました。"
- stop
- if arg 2 is "exp":
- set {Exp.%arg 1%} to arg 3
- send "&b%arg 1% の %arg 2% を %arg 3% に設定しました。"
- stop
- if arg 2 is "money":
- set {Money.%arg 1%} to arg 3
- send "&b%arg 1% の %arg 2% を %arg 3% に設定しました。"
- stop
- if arg 2 is "mana":
- set {Mana.%player%} to arg 3
- send "&b%arg 1% の %arg 2% を %arg 3% に設定しました。"
- stop
- if arg 2 is "class":
- set {class.%player%} to arg 3
- send "&b%arg 1% の %arg 2% を %arg 3% に設定しました。"
- stop
- if arg 2 is "fire":
- set {Fire.point.%arg 1%} to arg 3
- send "&b%arg 1% の %arg 2% を %arg 3% に設定しました。"
- stop
- if arg 2 is "water":
- set {Water.point.%arg 1%} to arg 3
- send "&b%arg 1% の %arg 2% を %arg 3% に設定しました。"
- stop
- if arg 2 is "leaf":
- set {Leaf.point.%arg 1%} to arg 3
- send "&b%arg 1% の %arg 2% を %arg 3% に設定しました。"
- stop
- if arg 2 is "Electricity":
- set {Electricity.point.%arg 1%} to arg 3
- send "&b%arg 1% の %arg 2% を %arg 3% に設定しました。"
- stop
- if arg 2 is "shadow":
- set {Shadow.point.%arg 1%} to arg 3
- send "&b%arg 1% の %arg 2% を %arg 3% に設定しました。"
- stop
- if arg 2 is "status":
- set {Status.point.%arg 1%} to arg 3
- send "&b%arg 1% の %arg 2% を %arg 3% に設定しました。"
- stop
- else:
- send "&4Skript error"
- stop
- #score 設定
- command /applyboard:
- trigger:
- create a new stylish scoreboard named "%player%"
- set title of stylish scoreboard "%player%" to "&7&l≪&6&lServerName&7&l≫"
- create a new id based score "%player%10" with text "&e" slot 10 for stylish scoreboard "%player%"
- create a new id based score "%player%9" with text "&e&lClass &8&l> &3&l%{class.%player%}%" slot 9 for stylish scoreboard "%player%"
- create a new id based score "%player%8" with text "&f" slot 8 for stylish scoreboard "%player%"
- create a new id based score "%player%7" with text "&e&lLevel &8&l> &7%{Level.%player%}%" slot 7 for stylish scoreboard "%player%"
- create a new id based score "%player%6" with text "&e&lExp &8&l> &7%{Exp.%player%}%&8/&6%2*(5*{Level.%player%}+{Level.%player%}^8)+100%" slot 6 for stylish scoreboard "%player%"
- create a new id based score "%player%5" with text "&1" slot 5 for stylish scoreboard "%player%"
- create a new id based score "%player%4" with text "&e&lMoney &8&l> &6%{Money.%player%}%G" slot 4 for stylish scoreboard "%player%"
- create a new id based score "%player%3" with text "&e&lMana &8&l> &b%{Mana.%player%}%&8/&b%2*{Level.%player%}+{Level.%player%}^2+47%" slot 3 for stylish scoreboard "%player%"
- set stylish scoreboard of player to "%player%"
- command /updatescores:
- trigger:
- set the text of id "%player%10" to "&e"
- set the text of id "%player%9" to "&e&lClass &8&l> &3&l%{class.%player%}%"
- set the text of id "%player%8" to "&f"
- set the text of id "%player%7" to "&e&lLevel &8&l> &7%{Level.%player%}%"
- set the text of id "%player%6" to "&e&lExp &8&l> &7%{Exp.%player%}%&8/&6%2*(5*{Level.%player%}+{Level.%player%}^8)+100%"
- set the text of id "%player%5" to "&1"
- set the text of id "%player%4" to "&e&lMoney &8&l> &6%{Money.%player%}%G"
- set the text of id "%player%3" to "&e&lMana &8&l> &b%{Mana.%player%}%&8/&b%2*{Level.%player%}+{Level.%player%}^2+47%"
- command /removeboard:
- trigger:
- reset stylish scoreboard of player
- delete stylish scoreboard named "%player%"
- #TAB
- on join:
- loop all players:
- set tab header to "&6&lThe Fantasy RPG Server" and footer to "&eOnline players &7: &e%amount of all players%&7/&e15" for loop-player
- on quit:
- loop all players:
- wait 0.5 ticks
- set tab header to "&6&lThe Fantasy RPG Server" and footer to "&eOnline players &7: &e%amount of all players%&7/&e15" for loop-player
- #Join&Quitメッセージ表示
- on join:
- set join message to "&7[&a+&7] &7%player%"
- on quit:
- set quit message to "&7[&c-&7] &7%player%"
- on first join:
- set join message to "&7[&a+&7] &7%player% &e-&6New&e-"
- set {Level.%player%} to 1
- set {Exp.%player%} to 0
- set {Money.%player%} to 100
- set {Mana.%player%} to 50
- set {Fire.point.%player%} to 0
- set {Water.point.%player%} to 0
- set {Leaf.point.%player%} to 0
- set {Electricity.point.%player%} to 0
- set {Shadow.point.%player%} to 0
- set {Status.point.%player%} to 5
- #level up
- on death:
- wait 2 ticks
- if {Exp.%attacker%} is more than 2*(5*{Level.%attacker%}+{Level.%attacker%}^2)+99:
- add 5 to {status.point.%attacker%}
- send "&bレベルが上がりました。" to attacker
- #respawn
- on respawn:
- wait 2 ticks
- create a new stylish scoreboard named "%player%"
- set title of stylish scoreboard "%player%" to "&7&l≪&6&lServerName&7&l≫"
- create a new id based score "%player%10" with text "&e" slot 10 for stylish scoreboard "%player%"
- create a new id based score "%player%9" with text "&e&lClass &8&l> &3&l%{class.%player%}%" slot 9 for stylish scoreboard "%player%"
- create a new id based score "%player%8" with text "&f" slot 8 for stylish scoreboard "%player%"
- create a new id based score "%player%7" with text "&e&lLevel &8&l> &7%{Level.%player%}%" slot 7 for stylish scoreboard "%player%"
- create a new id based score "%player%6" with text "&e&lExp &8&l> &7%{Exp.%player%}%&8/&6%2*(5*{Level.%player%}+{Level.%player%}^8)+100%" slot 6 for stylish scoreboard "%player%"
- create a new id based score "%player%5" with text "&1" slot 5 for stylish scoreboard "%player%"
- create a new id based score "%player%4" with text "&e&lMoney &8&l> &6%{Money.%player%}%G" slot 4 for stylish scoreboard "%player%"
- create a new id based score "%player%3" with text "&e&lMana &8&l> &b%{Mana.%player%}%&8/&b%2*{Level.%player%}+{Level.%player%}^2+47%" slot 3 for stylish scoreboard "%player%"
- set stylish scoreboard of player to "%player%"
- #&6&lSoul &7&l> &c&l%{Soul.%player%}%&7/&65
- #attribution
- command /attribution [<number>] [<player>]:
- trigger:
- if arg 1 is 1:
- wait 2 ticks
- open chest with 0 rows named "&9&l≫&6&lFireを付与する武器を選択してください" to arg 2
- play sound "BLOCK_LEVER_CLICK" to player with volume 5 and pitch 6
- if arg 1 is 2:
- wait 2 ticks
- open chest with 0 rows named "&9&l≫&6&lWaterを付与する武器を選択してください" to arg 2
- play sound "BLOCK_LEVER_CLICK" to player with volume 5 and pitch 6
- if arg 1 is 3:
- wait 2 ticks
- open chest with 0 rows named "&9&l≫&6&lLeafを付与する武器を選択してください" to arg 2
- play sound "BLOCK_LEVER_CLICK" to player with volume 5 and pitch 6
- if arg 1 is 4:
- wait 2 ticks
- open chest with 0 rows named "&9&l≫&6&lElectricityを付与する武器を選択してください" to arg 2
- play sound "BLOCK_LEVER_CLICK" to player with volume 5 and pitch 6
- if arg 1 is 5:
- wait 2 ticks
- open chest with 0 rows named "&9&l≫&6&lShadowを付与する武器を選択してください" to arg 2
- play sound "BLOCK_LEVER_CLICK" to player with volume 5 and pitch 6
- on inventory click:
- if inventory name of player's current inventory is "&9&l≫&6&lFireを付与する武器を選択してください":
- cancel event
- if lore of clicked item contain "&8&l??? &7&lWeapon":
- set line 1 of lore of clicked item to "&8&l≪&4&lFire &7&lWeapon&8&l≫"
- send "&6武器に属性を付与しました"
- close inventory of player
- stop
- else:
- send "&6そのアイテムに属性は付与できません"
- stop
- if inventory name of player's current inventory is "&9&l≫&6&lWaterを付与する武器を選択してください":
- cancel event
- if lore of clicked item contain "&8&l??? &7&lWeapon":
- set line 1 of lore of clicked item to "&8&l≪&b&lWater &7&lWeapon&8&l≫"
- send "&6武器に属性を付与しました"
- close inventory of player
- stop
- else:
- send "&6そのアイテムに属性は付与できません"
- stop
- if inventory name of player's current inventory is "&9&l≫&6&lLeafを付与する武器を選択してください":
- cancel event
- if lore of clicked item contain "&8&l??? &7&lWeapon":
- set line 1 of lore of clicked item to "&8&l≪&2&lLeaf &7&lWeapon&8&l≫"
- send "&6武器に属性を付与しました"
- close inventory of player
- stop
- else:
- send "&6そのアイテムに属性は付与できません"
- stop
- if inventory name of player's current inventory is "&9&l≫&6&lElectricityを付与する武器を選択してください":
- cancel event
- if lore of clicked item contain "&8&l??? &7&lWeapon":
- set line 1 of lore of clicked item to "&8&l≪&e&lElectricity &7&lWeapon&8&l≫"
- send "&6武器に属性を付与しました"
- close inventory of player
- stop
- else:
- send "&6そのアイテムに属性は付与できません"
- stop
- if inventory name of player's current inventory is "&9&l≫&6&lShadowを付与する武器を選択してください":
- cancel event
- if lore of clicked item contain "&8&l??? &7&lWeapon":
- set line 1 of lore of clicked item to "&8&l≪&5&lShadow &7&lWeapon&8&l≫"
- send "&6武器に属性を付与しました"
- close inventory of player
- stop
- else:
- send "&6そのアイテムに属性は付与できません"
- stop
- on right click on enchantment table:
- block under block is lapis block
- cancel event
- player's tool exist
- play sound "BLOCK_LEVER_CLICK" to player with volume 5 and pitch 6
- wait 2 ticks
- open chest with 5 rows named "&9&l≫&6&l付与する属性を選択してください" to player
- wait 1 tick
- format slot 11 of player with iron sword named "&4&lFire&6を付与する" with lore "&4選択する武器にFireを付与します" to run "attribution 1 %player%"
- format slot 13 of player with iron sword named "&b&lWater&6を付与する" with lore "&b選択する武器にWaterを付与します" to run "attribution 2 %player%"
- format slot 15 of player with iron sword named "&2&lLeaf&6を付与する" with lore "&3選択する武器にLeafを付与します" to run "attribution 3 %player%"
- format slot 30 of player with iron sword named "&e&lElectricity&6を付与する" with lore "&e選択する武器にElectricityを付与します" to run "attribution 4 %player%"
- format slot 32 of player with iron sword named "&5&lShadow&6を付与する" with lore "&5選択する武器にShadowを付与します" to run "attribution 5 %player%"
- #attribution of Mobs
- #sound
- on inventory click:
- play sound "BLOCK_LEVER_CLICK" to player with volume 5 and pitch 6
- on command:
- play sound "BLOCK_LEVER_CLICK" to player with volume 5 and pitch 3
- #attribution status
- command /atts [<number>] [<player>]:
- trigger:
- if arg 1 is 1:
- open chest with 5 rows named "&9&l≫&6&lステータス" to player
- format slot 11 of player with book named "&4&lFire&6に割り振る" with lore "&5ポイント残量:%{status.point.%player%}%" to run "atts 2 %player%"
- format slot 13 of player with book named "&b&lWater&6に割り振る" with lore "&5ポイント残量:%{status.point.%player%}%" to run "atts 3 %player%"
- format slot 15 of player with book named "&2&lLeaf&6に割り振る" with lore "&5ポイント残量:%{status.point.%player%}%" to run "atts 4 %player%"
- format slot 30 of player with book named "&e&lElectricity&6に割り振る" with lore "&5ポイント残量:%{status.point.%player%}%" to run "atts 5 %player%"
- format slot 32 of player with book named "&5&lShadow&6に割り振る" with lore "&5ポイント残量:%{status.point.%player%}%" to run "atts 6 %player%"
- stop
- if arg 1 is 2:
- add 1 to {Fire.point.%player%}
- open chest with 5 rows named "&9&l≫&6&lステータス" to player
- format slot 11 of player with book named "&4&lFire&6に割り振る" with lore "&5ポイント残量:%{status.point.%player%}%" to run "atts 2 %player%"
- format slot 13 of player with book named "&b&lWater&6に割り振る" with lore "&5ポイント残量:%{status.point.%player%}%" to run "atts 3 %player%"
- format slot 15 of player with book named "&2&lLeaf&6に割り振る" with lore "&5ポイント残量:%{status.point.%player%}%" to run "atts 4 %player%"
- format slot 30 of player with book named "&e&lElectricity&6に割り振る" with lore "&5ポイント残量:%{status.point.%player%}%" to run "atts 5 %player%"
- format slot 32 of player with book named "&5&lShadow&6に割り振る" with lore "&5ポイント残量:%{status.point.%player%}%" to run "atts 6 %player%"
- stop
- if arg 1 is 3:
- add 1 to {Water.point.%player%}
- open chest with 5 rows named "&9&l≫&6&lステータス" to player
- format slot 11 of player with book named "&4&lFire&6に割り振る" with lore "&5ポイント残量:%{status.point.%player%}%" to run "atts 2 %player%"
- format slot 13 of player with book named "&b&lWater&6に割り振る" with lore "&5ポイント残量:%{status.point.%player%}%" to run "atts 3 %player%"
- format slot 15 of player with book named "&2&lLeaf&6に割り振る" with lore "&5ポイント残量:%{status.point.%player%}%" to run "atts 4 %player%"
- format slot 30 of player with book named "&e&lElectricity&6に割り振る" with lore "&5ポイント残量:%{status.point.%player%}%" to run "atts 5 %player%"
- format slot 32 of player with book named "&5&lShadow&6に割り振る" with lore "&5ポイント残量:%{status.point.%player%}%" to run "atts 6 %player%"
- stop
- if arg 1 is 4:
- add 1 to {Leaf.point.%player%}
- open chest with 5 rows named "&9&l≫&6&lステータス" to player
- format slot 11 of player with book named "&4&lFire&6に割り振る" with lore "&5ポイント残量:%{status.point.%player%}%" to run "atts 2 %player%"
- format slot 13 of player with book named "&b&lWater&6に割り振る" with lore "&5ポイント残量:%{status.point.%player%}%" to run "atts 3 %player%"
- format slot 15 of player with book named "&2&lLeaf&6に割り振る" with lore "&5ポイント残量:%{status.point.%player%}%" to run "atts 4 %player%"
- format slot 30 of player with book named "&e&lElectricity&6に割り振る" with lore "&5ポイント残量:%{status.point.%player%}%" to run "atts 5 %player%"
- format slot 32 of player with book named "&5&lShadow&6に割り振る" with lore "&5ポイント残量:%{status.point.%player%}%" to run "atts 6 %player%"
- stop
- if arg 1 is 5:
- add 1 to {Electricity.point.%player%}
- open chest with 5 rows named "&9&l≫&6&lステータス" to player
- format slot 11 of player with book named "&4&lFire&6に割り振る" with lore "&5ポイント残量:%{status.point.%player%}%" to run "atts 2 %player%"
- format slot 13 of player with book named "&b&lWater&6に割り振る" with lore "&5ポイント残量:%{status.point.%player%}%" to run "atts 3 %player%"
- format slot 15 of player with book named "&2&lLeaf&6に割り振る" with lore "&5ポイント残量:%{status.point.%player%}%" to run "atts 4 %player%"
- format slot 30 of player with book named "&e&lElectricity&6に割り振る" with lore "&5ポイント残量:%{status.point.%player%}%" to run "atts 5 %player%"
- format slot 32 of player with book named "&5&lShadow&6に割り振る" with lore "&5ポイント残量:%{status.point.%player%}%" to run "atts 6 %player%"
- stop
- if arg 1 is 6:
- add 1 to {Shadow.point.%player%}
- open chest with 5 rows named "&9&l≫&6&lステータス" to player
- format slot 11 of player with book named "&4&lFire&6に割り振る" with lore "&5ポイント残量:%{status.point.%player%}%" to run "atts 2 %player%"
- format slot 13 of player with book named "&b&lWater&6に割り振る" with lore "&5ポイント残量:%{status.point.%player%}%" to run "atts 3 %player%"
- format slot 15 of player with book named "&2&lLeaf&6に割り振る" with lore "&5ポイント残量:%{status.point.%player%}%" to run "atts 4 %player%"
- format slot 30 of player with book named "&e&lElectricity&6に割り振る" with lore "&5ポイント残量:%{status.point.%player%}%" to run "atts 5 %player%"
- format slot 32 of player with book named "&5&lShadow&6に割り振る" with lore "&5ポイント残量:%{status.point.%player%}%" to run "atts 6 %player%"
- stop
- #command log
- on command:
- sender is player
- loop all players:
- loop-player have permission "admin"
- message "&7[&bCommandLog&7] &b%player%&7 /%full command%" to loop-player
- #monster spawn
- command /spawnmonster [<text>] [<text>] [<number>] [<number>]:
- trigger:
- if arg 1 is "zombie"
- spawn a zombie at {zombie.spawn}
- set name of spawned entity to "&a[Lv. 1] Zombie"
- set {entity} to last spawned entity
- on death:
- wait 3 seconds
- if victim is {entity}:
- spawn a zombie at {zombie.spawn}
- set name of spawned entity to "&a[Lv. 1] Zombie"
- set {entity} to last spawned entity
- command /setmonster [<text>] [<text>] [<number>] [<number>]:
- trigger:
- if player is op:
- set {zombie.spawn} to location of player
- send "&8[&bMobspawn&8] &7設定を追加しました。"
- command /removemonster [<text>] [<text>] [<number>] [<number>]:
- trigger:
- if player is op:
- delete {zombie.spawn}
- send "&8[&bMobspawn&8] &7設定を追加しました。"
- #protection
- on place:
- player do not have permission "admin"
- cancel event
- on break:
- player do not have permission "admin"
- cancel event
- on drop:
- player do not have permission "admin"
- cancel event
- on explode:
- cancel event
- on craft:
- player do not have permission "admin"
- cancel event
- #item name and lore
- command /itemname [<text>]:
- trigger:
- set the name of held item to colored arg
- command /itemlore [<number>] [<text>]:
- trigger:
- set line arg 1 of lore of held item to colored "%arg 2%"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement