Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on skript load:
- execute console command "/gamerule randomTickSpeed 0"
- execute console command "/gamerule spawnRadius 0"
- execute console command "/gamerule reducedDebugInfo false"
- command /donate [<player>] [<integer>]:
- executable by: console
- trigger:
- broadcast "&7&l@ &6%arg 1%&eさんが&d%arg 2%RC&6寄付&eしてくれました!"
- message "&7&l@ &6&l寄付ありがとう!" to arg 1
- add arg 2 to {stat.donate-amount.%player%}
- on first join:
- execute player command "/shelp"
- on join:
- execute console command "/item %player%"
- execute console command "/tp %player% 16 4 16"
- on respawn:
- execute console command "/tp %player% 16 4 16"
- set {stat.death.%player%} to false
- every tick:
- loop all players:
- execute console command "/sbstat %loop-player%"
- execute console command "/entitydata @e {AttackTime:0}"
- set slot 6 of loop-player to steak
- if {stat.tpcool-ffa.%loop-player%} is more than 0:
- remove 1 from {stat.tpcool-ffa.%loop-player%}
- set {true} to true
- if {sub.101.%loop-player%} is not set:
- set {sub.101.%loop-player%} to false
- if {sub.301.%loop-player%} is not set:
- set {sub.301.%loop-player%} to false
- if {sub.401.%loop-player%} is not set:
- set {sub.401.%loop-player%} to false
- if {stat.charge.%loop-player%} is not set:
- set {stat.charge.%loop-player%} to 1
- if {stat.charge.%loop-player%} is more than 1:
- remove 1 from {stat.charge.%loop-player%}
- if {stat.health.%loop-player%} is not set:
- set {stat.health.%loop-player%} to 100
- if {stat.soul-amount.%loop-player%} is not set:
- set {stat.soul-amount.%loop-player%} to 20
- if {stat.death.%loop-player%} is not set:
- set {stat.death.%loop-player%} to false
- if {stat.health.%loop-player%} <= 0:
- {stat.death.%loop-player%} is false
- set {_lost} to ceil({stat.soul-amount.%loop-player%}/2)
- set {stat.health.%loop-player%} to 100
- set {stat.soul-amount.%loop-player%} to {_lost}
- if {stat.soul-amount.%loop-player%} < 0:
- set {stat.soul-amount.%loop-player%} to 0
- message "&7&l> &c&lDead!" to loop-player
- if {_lost} < 0:
- message "&7&l> &breset soul." to loop-player
- execute console command "/kill %loop-player%"
- stop
- message "&7&l> &b%{_lost}% soul(s) lost." to loop-player
- execute console command "/kill %loop-player%"
- set {stat.death.%loop-player%} to true
- if {stat.health.%loop-player%} < 100:
- add 1 to {stat.health-heal.%loop-player%}
- if {stat.health-heal.%loop-player%} >= 8:
- add 1 to {stat.health.%loop-player%}
- set {stat.health-heal.%loop-player%} to 0
- if {stat.health.%loop-player%} = 100:
- set {stat.health-heal.%loop-player%} to 0
- if {stat.health.%loop-player%} > 100:
- set {stat.health.%loop-player%} to 100
- if {stat.soul-amount.%loop-player%} is less than 0:
- execute console command "/effect %loop-player% slowness 2 0"
- if {stat.soul-amount.%loop-player%} is less than -3:
- execute console command "/effect %loop-player% slowness 2 1"
- if {stat.soul-amount.%loop-player%} is less than -6:
- execute console command "/effect %loop-player% blindness 2 0"
- if {stat.soul-amount.%loop-player%} is less than -9:
- damage loop-player by 1
- if {stat.soul-amount.%loop-player%} is less than -12:
- damage loop-player by 3
- if {stat.soul-amount.%loop-player%} is less than -15:
- execute console command "/effect %loop-player% slowness 2 3"
- if {stat.soul-amount.%loop-player%} is less than -18:
- damage loop-player by 20
- if {stat.soul-amount.%loop-player%} < 20:
- add 1 to {stat.soul-heal.%loop-player%}
- if {stat.soul-heal.%loop-player%} >= 80:
- add 1 to {stat.soul-amount.%loop-player%}
- set {stat.soul-heal.%loop-player%} to 0
- if {stat.soul-amount.%loop-player%} = 20:
- set {stat.soul-heal.%loop-player%} to 0
- if {stat.soul-amount.%loop-player%} > 20:
- set {stat.soul-amount.%loop-player%} to 20
- #set {var::*} to the 1st line of player's tool's lore parsed as "%text% %number% %text% %number%"
- #set the 1st line of player's tool's lore to "&rCooldown %{var::2}-1% %{var::3}% %{var::4}%"
- on damage:
- if {sub.101.%attacker%} is true:
- add random integer between 0 to 4 to {_damage}
- set damage to {_damage}
- else if {true} is true:
- if name of attacker's held item is "&eベーシックソード":
- repair tool of attacker
- {sub.101.%attacker%} is false
- {sub.301.%attacker%} is false
- {sub.401.%attacker%} is false
- if {stat.charge.%attacker%} is more than 1:
- set {_damage} to 7
- if {stat.charge.%attacker%} is 1:
- set {_damage} to 28
- set {stat.charge.%attacker%} to 20
- else:
- set {_damage} to damage
- remove {_damage} from {stat.health.%victim%}
- if damage is more than 9999999999999999:
- if attacker is player:
- victim is player
- broadcast "&e&lKill &7&l- &6%attacker% &7&l> &d%victim%"
- set {_bonus} to 20-{stat.soul-amount.%attacker%}
- set {_bonus} to ceil({_bonus}/2)
- message "&7&l> &6&lKill Bonus: %{_bonus}% Soul(s)" to attacker
- add {_bonus} to {stat.soul-amount.%attacker%}
- stop
- message "&7&l> &a%{_damage}% Damage!" to attacker
- message "&7&l> &c%{_damage}% Damage!" to victim
- victim is player
- set damage to 0
- every tick:
- loop all players:
- set {stat.rightclick.%loop-player%} to false
- command /sbstat <player>:
- permission: skript.admin
- trigger:
- wipe arg 1's sidebar
- set name of sidebar of arg 1 to "&e&l-Status-"
- set score "&dHP: &f&l%{stat.health.%arg 1%}%" in sidebar of arg 1 to 2
- set score "&bSoul: &f&l%{stat.soul-amount.%arg 1%}%" in sidebar of arg 1 to 1
- command /setstat [<player>] [<text>] [<text>]:
- permission: skript.admin
- trigger:
- if arg 2 is "soul":
- set {stat.soul-amount.%arg 1%} to arg 3 parsed as integer
- message "&7&l## &a%arg 1%のsoulを%arg 3%に設定しました"
- if arg 2 is "health":
- set {stat.health.%arg 1%} to arg 3 parsed as integer
- message "&7&l## &a%arg 1%のhealthを%arg 3%に設定しました"
- if arg 2 is "soul-h":
- set {stat.soul-heal.%arg 1%} to arg 3 parsed as integer
- message "&7&l## &a%arg 1%のsoul-healを%arg 3%に設定しました"
- if arg 2 is "health-h":
- set {stat.health-heal.%arg 1%} to arg 3 parsed as integer
- message "&7&l## &a%arg 1%のhealth-healを%arg 3%に設定しました"
- on shoot:
- if {sub.101.%shooter%} is true:
- loop entities in radius 1 of projectile:
- loop-entity is a snowball
- push loop-entity upwards at speed random number between 0.05 to 0.1
- while true:
- if loop-entity is on ground:
- set {sub.101.%shooter%} to false
- exit loop
- else if {sub.101.%shooter%} is false:
- exit loop
- wait a tick
- command /sub [<player>] [<number>] [<boolean>]:
- permission: skript.admin
- trigger:
- #100番台はデバフ(投擲)
- if arg 2 is 101:
- if arg 3 is true:
- remove 2 from {stat.soul-amount.%arg 1%}
- set {sub.101.%arg 1%} to true
- shoot an snowball from arg-1 at speed 3
- #200番台はデバフ(周囲)
- #300番台はバフ(自分)
- if arg 2 is 301:
- if {sub.301.%arg 1%} is true:
- message "&7&l! &cこのスキルは連続使用できません"
- stop
- if arg 3 is true:
- remove 14 from {stat.soul-amount.%arg 1%}
- set {sub.301.%arg 1%} to true
- apply slowness 16 to arg 1 for 30 ticks
- wait 30 ticks
- add 80 to {stat.health.%arg 1%}
- message "&7&l> &a80P Healing!" to arg 1
- set {sub.301.%arg 1%} to false
- #400番台は移動系
- if arg 2 is 401:
- if {sub.401.%arg 1%} is true:
- message "&7&l! &cこのスキルは連続使用できません"
- stop
- if arg 3 is true:
- remove 10 from {stat.soul-amount.%arg 1%}
- push arg-1 upwards at speed 1.2
- push arg-1 forwards at speed 0.4
- set {sub.401.%arg 1%} to true
- wait a tick
- while true:
- if arg 1 is on ground:
- set {sub.401.%arg 1%} to false
- loop all entities in radius 4 of player:
- set {_difference} to loop-entity's y-coordinate
- remove arg-1's y-coordinate from {_difference}
- set {_difference} to abs({_difference})
- {_difference} < 1
- make arg 1 damage loop-entity by 60
- exit loop
- wait a tick
- command /setsub [<player>] [<integer>]:
- permission: skript.admin
- trigger:
- if arg 2 is not set:
- stop
- set {stat.subset.%arg 1%} to arg 2
- if arg 2 is 0:
- set {stat.subactmes.0.%arg 1%} to "&bスキル未セットです"
- set {stat.subactmes.1.%arg 1%} to "&eスキル未セットです"
- set {stat.subactmes.2.%arg 1%} to "&cスキル未セットです"
- if arg 2 is 1:
- set {stat.subactmes.0.%arg 1%} to "&d&l[スロウネスボール]&7&l[ヒーリング][スプリングショック] "
- set {stat.subactmes.1.%arg 1%} to "&7&l[スロウネスボール]&b&l[ヒーリング]&7&l[スプリングショック]"
- set {stat.subactmes.2.%arg 1%} to "&7&l[スロウネスボール][ヒーリング]&e&l[スプリングショック]"
- on drop:
- add 1 to {stat.subselect.%player%}
- if {stat.subselect.%player%} is 3:
- set {stat.subselect.%player%} to 0
- cancel event
- on rightclick:
- if player is holding a clock named "&6&lサーバー&d&lメニュー":
- execute console command "/menu %player%"
- stop
- if player is holding a dye:4 named "&b&lテレポート&a&lメニュー":
- execute console command "/menu %player% teleport"
- stop
- if {stat.subset.%player%} is 1:
- if {stat.subselect.%player%} is 0:
- execute console command "/sub %player% 101 true"
- if {stat.subselect.%player%} is 1:
- execute console command "/sub %player% 301 true"
- if {stat.subselect.%player%} is 2:
- execute console command "/sub %player% 401 true"
- every tick:
- loop all players:
- set action bar of loop-player to coloured "%{stat.subactmes.%{stat.subselect.%loop-player%}%.%loop-player%}%"
- on damage:
- if {sub.101.%attacker%} is true:
- apply slowness 3 to victim for 2 seconds
- message "&7&l> &aスロウネスボールが%victim%にヒットしました" to attacker
- message "&7&l> &cスロウネスボールを%attacker%に当てられました" to victim
- set {sub.101.%attacker%} to false
- command /main [<player>] [<number>]:
- permission: skript.admin
- trigger:
- if arg 2 is 0:
- execute console command "/item %arg 1%"
- execute console command "/setsub %arg 1% 0"
- wait 2 tick
- set slot 4 of arg 1 to nether_star named "&7武器をセットしてください"
- message "&7&l## &aリセットしました"
- if arg 2 is 1:
- execute console command "/item %arg 1%"
- execute console command "/setsub %arg 1% 1"
- wait 2 tick
- set slot 4 of arg 1 to stone_sword named "&eベーシックソード" with lore "&6タイプ: &eソード||&c攻撃力: &e28(7[20])"
- message "&7&l## &a武器を変更しました"
- command /item [<player>]:
- trigger:
- if arg 1 is not set:
- set {_user} to player
- if arg 1 is set:
- set {_user} to arg 1
- wait a tick
- set slot 0 of {_user} to air
- set slot 1 of {_user} to air
- set slot 2 of {_user} to air
- set slot 3 of {_user} to clock named "&6&lサーバー&d&lメニュー"
- set slot 4 of {_user} to air
- set slot 5 of {_user} to dye:4 named "&b&lテレポート&a&lメニュー"
- set slot 6 of {_user} to air
- set slot 7 of {_user} to air
- set slot 8 of {_user} to air
- command /menu [<player>] [<text>]:
- trigger:
- if arg 1 is not set:
- set {_user} to player
- if arg 1 is set:
- set {_user} to arg 1
- if arg 2 is "main":
- open chest with 1 rows named "&6&lサーバー&d&lメニュー" to {_user}
- wait a tick
- format slot 2 of {_user} with iron_sword named "&c&l武&9&l器&c&l変&9&l更" to run "menu %{_user}% weapon"
- format slot 6 of {_user} with dye:4 named "&b&lテレポート&a&lメニュー" to run "menu %{_user}% teleport"
- if arg 2 is not set:
- open chest with 1 rows named "&6&lサーバー&d&lメニュー" to {_user}
- wait a tick
- format slot 2 of {_user} with iron_sword named "&c&l武&9&l器&c&l変&9&l更" to run "menu %{_user}% weapon"
- format slot 6 of {_user} with dye:4 named "&b&lテレポート&a&lメニュー" to run "menu %{_user}% teleport"
- if arg 2 is "weapon":
- open chest with 1 rows named "&c&l武&9&l器&c&l変&9&l更" to {_user}
- wait a tick
- format slot 0 of {_user} with barrier named "&c武器リセット" to run "main %{_user}% 0"
- format slot 4 of {_user} with stone_sword named "&eベーシックソード" to run "main %{_user}% 1"
- format slot 8 of {_user} with arrow named "&b戻る" to run "menu %{_user}%"
- if arg 2 is "teleport":
- open chest with 1 rows named "&b&lテレポート&a&lメニュー" to {_user}
- wait a tick
- format slot 2 of {_user} with iron_block named "&bロビー" to run "tp %{_user}% 16 4 16"
- format slot 6 of {_user} with grass named "&aFFA" to run "stp %{_user}% ffa"
- format slot 8 of {_user} with arrow named "&b戻る" to run "menu %{_user}%"
- command /stp [<player>] [<text>]:
- permission: skript.admin
- trigger:
- if arg 2 is "ffa":
- if {stat.tpcool-ffa.%arg 1%} is more than 0:
- message "&7&l! &cクールタイム中です" to arg 1
- stop
- set {_random-x} to random integer between 49 to 94
- set {_random-z} to random integer between 49 to 94
- execute console command "/tp %arg 1% %{_random-x}% 4 %{_random-z}%"
- set {stat.tpcool-ffa.%arg 1%} to 1200
- command /svv:
- trigger:
- message "&7&l@ &fServer Version"
- message "&7&l@ &f0.1.1 / OBT &7(Open Beta Test)"
- command /shelp:
- trigger:
- message "&7&l@ &6&lサーバーヘルプ"
- message "&7&l@ &e&n/////コマンド説明/////"
- message "&7&l@ &e/item でホットバーのアイテムが復活します"
- message "&7&l@ &e/menu でメニューを出すこともできます"
- message "&7&l@ &e/shelp で再びこのヘルプを出せます"
- message "&7&l@ &a&n/////システム説明/////"
- message "&7&l@ &aメニューからは武器変更やテレポートが可能です"
- message "&7&l@ &a武器はサーバー内通貨で購入が可能(な予定)です"
- message "&7&l@ &a武器にはサブスキルがそれぞれ3つ設定されています"
- message "&7&l@ &aサブスキルは右クリックで使用ができ、"
- message "&7&l@ &a使うサブスキルはQキー(ドロップキー)で変更できます"
- message "&7&l@ &6&lTキー(チャットキー)で全文見てね"
Advertisement
Add Comment
Please, Sign In to add comment