Guest User

Untitled

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