Advertisement
nunonuno_riku

Untitled

Dec 4th, 2018
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. variables:
  2. {%player%.coin} = 0
  3.  
  4. options:
  5. max: 20
  6.  
  7. command /tagjoin:
  8. trigger:
  9. if {tagplayers::%player%} is not set:
  10. add {tagplayers::%player%} to player
  11. loop {tagplayers::*}:
  12. send "&7[&4Tag&dSystem&7]&f鬼ごっこに参加しました"
  13. if loop-value-1 is more than or equal to 3:
  14. set {_player} to loop-index-1
  15. send "&7[&4Tag&dSystem&7]&f30秒後にKIT選択を始めます。" to {_player}
  16. set {gamemode::tag} to true
  17. wait 30 seconds
  18. loop {tagplayers::*}:
  19. if loop-value-2 is more than or equal to 2:
  20. set {_player} to loop-index-2
  21. send "&7[&4Tag&dSystem&7]&f60秒間でKIT選択を開始してください" to {_player}
  22. send "&7[&4Tag&dSystem&7]&fしなかった場合はスタンダードになります" to {_player}
  23. open chest with 3 rows named "&cKits" to {_player}
  24. format slot 12 of {_player} with green wool named "&fスタンダード" to close then run [make console execute command "kit %player% st"]
  25. if {tag.win.%{_player}%} is true:
  26. format slot 13 of {_player} with green wool named "&bスピーディ" with lore "&aUNLOCKED" to close then run [make console execute command "kit %player% sp"]
  27. else:
  28. format slot 13 of {_player} with red wool named "???" with lore "&cLocked" to be unstealable
  29. wait a minute
  30. set {tag} to random player out of all players
  31. execute {tag} command "/oni"
  32. set {_random} to random integer between 1 and {@max}
  33. loop all players:
  34. loop-player is {tagplayers::*}
  35. teleport the loop-player to the location {tagspawn.%{_random}%}
  36. broadcast "&7[&4Tag&dSystem&7]&f&d鬼ごっこ戦を開始します!"
  37. broadcast "&7[&4Tag&dSystem&7]&f試合時間は5分間です!鬼は&c%{tag}%&fです!"
  38. broadcast "はじめ!"
  39. wait 5 minutes
  40. broadcast "&7[&4Tag&dSystem&7]&f終了!最後の鬼は&c%{tag}%<White>です"
  41. execute console command "/effect %{tag}% clear"
  42. send "&7===========|&6You Lose Get Coin 100|&7============" to {tag}
  43. delete {tagplayers::%{tag}%}
  44. add 100 to {%{tag}%.coin}
  45. loop {tagplayers::*}:
  46. set {_winner} to loop-index-3
  47. send "&7===========|&6You Win Get Coin 500|&7============" to {_winner}
  48. add 500 to {%{_winner}%.coin}
  49. delete {tag}
  50. delete {tagplayers::*}
  51. else:
  52. send "&7[&4Tag&dSystem&7]&fすでに参加済みです"
  53.  
  54. on death of player:
  55. {gamemode::tag} is true
  56. attacker is a player
  57. {tag} is attacker
  58. set {tag} to player
  59. broadcast "&7[&4Tag&dSystem&7]&f鬼が&c%player%&fになりました!"
  60. execute console command "/effect %attacker% clear"
  61. if {tag.kit.%attacker%} is "speady":
  62. apply Speed 1 to player for 1 day
  63.  
  64. on respawn:
  65. execute player command "/oni"
  66.  
  67.  
  68. command /oni:
  69. trigger:
  70. {tag} is player
  71. wait 1 tick
  72. apply Strength 10 to player for 1 day
  73. apply Resistance 5 to player for 1 day
  74. apply Speed 2 to player for 1 day
  75.  
  76. on quit:
  77. if {gamemode::tag} is true:
  78. if {tagplayers::%player%} is player:
  79. loop {tagplayers::*}:
  80. set {tag} to random player out of all players
  81. broadcast "&7[&4Tag&dSystem&7]&f鬼が退出したため、&c%{tag}%&fになりました!"
  82. delete {tagplayers::%player%}
  83.  
  84. command /kit <player> <text>:
  85. permission: skript.admin
  86. trigger:
  87. if arg-2 is "sp":
  88. if {%arg-1%.Speady} is false:
  89. set {tag.kit.%arg-1%} to "speady"
  90. send "&7[&4Tag&dSystem&7]&fKitをスピーディーにしました"
  91. apply Speed 1 to player for 1 day
  92. if arg-2 is "st":
  93. set {tag.kit.%arg-1%} to "standard"
  94. send "&7[&4Tag&dSystem&7]&fKitをスタンダードにしました"
  95.  
  96. command /settagspawn <number>:
  97. permission: skript.admin
  98. trigger:
  99. set {tagspawn.%arg-1%} to location of player
  100. send "&7[&4Tag&dSystem&7]&fマップ%arg-1%をセットしました(%{tagspawn.%arg-1%}%)"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement