Advertisement
nunonuno_riku

ServerTagSystem

Dec 5th, 2018
209
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: 2
  6.  
  7. command /tagjoin:
  8. trigger:
  9. if {tagplayers::%player%} is not set:
  10. add player to {tagplayers::%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. loop all players:
  33. loop-player is {tagplayers::*}
  34. teleport the loop-player to the location {tagspawn.%{_random}%}
  35. broadcast "&7[&4Tag&dSystem&7]&f&d鬼ごっこ戦を開始します!"
  36. broadcast "&7[&4Tag&dSystem&7]&f試合時間は5分間です!鬼は&c%{tag}%&fです!"
  37. broadcast "はじめ!"
  38. wait 5 minutes
  39. broadcast "&7[&4Tag&dSystem&7]&f終了!最後の鬼は&c%{tag}%<White>です"
  40. execute console command "/effect %{tag}% clear"
  41. send "&7===========|&6You Lose Get Coin 100|&7============" to {tag}
  42. delete {tagplayers::%{tag}%}
  43. add 100 to {%{tag}%.coin}
  44. loop {tagplayers::*}:
  45. set {_winner} to loop-index-3
  46. send "&7===========|&6You Win Get Coin 500|&7============" to {_winner}
  47. add 500 to {%{_winner}%.coin}
  48. loop all players:
  49. teleport the loop-player to the location {tagspawn.spawn}
  50. delete {tag}
  51. delete {tagplayers::*}
  52. else:
  53. send "&7[&4Tag&dSystem&7]&fすでに参加済みです"
  54.  
  55. on death of player:
  56. {gamemode::tag} is true
  57. attacker is a player
  58. {tag} is attacker
  59. set {tag} to player
  60. broadcast "&7[&4Tag&dSystem&7]&f鬼が&c%player%&fになりました!"
  61. execute console command "/effect %attacker% clear"
  62. if {tag.kit.%attacker%} is "speady":
  63. apply Speed 1 to player for 1 day
  64.  
  65. on respawn:
  66. execute player command "/oni"
  67.  
  68.  
  69. command /oni:
  70. trigger:
  71. {tag} is player
  72. wait 1 tick
  73. apply Strength 10 to player for 1 day
  74. apply Resistance 5 to player for 1 day
  75. apply Speed 2 to player for 1 day
  76.  
  77. on quit:
  78. if {gamemode::tag} is true:
  79. if {tagplayers::%player%} is player:
  80. loop {tagplayers::*}:
  81. set {tag} to random player out of all players
  82. broadcast "&7[&4Tag&dSystem&7]&f鬼が退出したため、&c%{tag}%&fになりました!"
  83. delete {tagplayers::%player%}
  84.  
  85. command /kit <player> <text>:
  86. permission: skript.admin
  87. trigger:
  88. if arg-2 is "sp":
  89. if {%arg-1%.Speady} is false:
  90. set {tag.kit.%arg-1%} to "speady"
  91. apply Speed 1 to player for 1 day
  92. if arg-2 is "st":
  93. set {tag.kit.%arg-1%} to "standard"
  94.  
  95. command /settagspawn <number>:
  96. permission: skript.admin
  97. trigger:
  98. set {tagspawn.%arg-1%} to location of player
  99. send "&7[&4Tag&dSystem&7]&fSetTagMap (%{tagspawn.%arg-1%}%)"
  100.  
  101. command /setspawntag:
  102. permission: skript.admin
  103. trigger:
  104. set {tagspawn.spawn} to location of player
  105. send "セット完了!"
  106.  
  107. command /systemstatus:
  108. permission: skript.admin
  109. aliases: ss
  110. trigger:
  111. send "&e%{tagplayers::%player%}%"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement