tsutitire2

Untitled

May 22nd, 2020
26
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.91 KB | None | 0 0
  1. Variables:
  2. {T.begin} = 0
  3. {T.plcnt} = 0
  4. {T.plrnd} = 0
  5. {T.%player%.al1} = 0
  6. {T.sec} = 0
  7. {R.1} = 0
  8. {R.2} = 0
  9. {R.3} = 0
  10. {B.1} = 0
  11. {B.2} = 0
  12. {B.3} = 0
  13. {B.sp} = 0
  14. {R.sp} = 0
  15. {R.pt} = 0
  16. {B.pt} = 0
  17. command /team <text>:
  18. trigger:
  19. #BEGIN
  20. if arg 1 is "begin":
  21. if {T.begin} is not 0:
  22. message "&c既に募集開始しています/始まっています"
  23. if {T.begin} = 0:
  24. set {T.begin} to 1
  25. broadcast "&a&l3V3PVP&r&b&lが始まります! &c&l/team join&r &b&lで参加できます!"
  26. #JOIN
  27. if arg 1 is "join":
  28. if {T.begin} is 0:
  29. message "&c募集が始まっていません! /team beginで募集開始できます"
  30. if {T.begin} is 1:
  31. if {T.%player%.al1} is 1:
  32. message "&c既に参加しています!"
  33. if {T.%player%.al1} is 0:
  34. set {T.plrnd} to random integer between 1 to 6
  35. if {T.%player%.al1} is 0:
  36. if {T.plrnd} is 1:
  37. if {R.1} is 0:
  38. set {R.1} to player
  39. broadcast "%player%さんが赤チームになりました!"
  40. set {T.%player%.al1} to 1
  41. set {T.plcnt} to {T.plcnt} + 1
  42. if {T.plrnd} is 2:
  43. if {R.2} is 0:
  44. set {R.2} to player
  45. set {T.%player%.al1} to 1
  46. broadcast "%player%さんが赤チームになりました!"
  47. set {T.plcnt} to {T.plcnt} + 1
  48. if {T.plrnd} is 3:
  49. if {R.3} is 0:
  50. set {R.3} to player
  51. broadcast "%player%さんが赤チームになりました!"
  52. set {T.%player%.al1} to 1
  53. set {T.plcnt} to {T.plcnt} + 1
  54. if {T.plrnd} is 4:
  55. if {B.1} is 0:
  56. set {B.1} to player
  57. broadcast "%player%さんが青チームになりました!"
  58. set {T.%player%.al1} to 1
  59. set {T.plcnt} to {T.plcnt} + 1
  60. if {T.plrnd} is 5:
  61. if {B.2} is 0:
  62. set {B.2} to player
  63. broadcast "%player%さんが青チームになりました!"
  64. set {T.%player%.al1} to 1
  65. set {T.plcnt} to {T.plcnt} + 1
  66. if {T.plrnd} is 6:
  67. if {B.3} is 0:
  68. set {B.3} to player
  69. broadcast "%player%さんが青チームになりました!"
  70. set {T.%player%.al1} to 1
  71. set {T.plcnt} to {T.plcnt} + 1
  72. if {T.%player%.al1} is not 1:
  73. if {R.1} = 0:
  74. set {R.1} to player
  75. broadcast "%player%さんが赤チームになりました!"
  76. set {T.%player%.al1} to 1
  77. set {T.plcnt} to {T.plcnt} + 1
  78. if {R.1} is not 0:
  79. if {T.%player%.al1} is not 1:
  80. if {R.2} is 0:
  81. set {R.2} to player
  82. set {T.%player%.al1} to 1
  83. broadcast "%player%さんが赤チームになりました!"
  84. set {T.plcnt} to {T.plcnt} + 1
  85. if {R.2} is not 0:
  86. if {T.%player%.al1} is not 1:
  87. if {R.3} is 0:
  88. set {R.3} to player
  89. broadcast "%player%さんが赤チームになりました!"
  90. set {T.%player%.al1} to 1
  91. set {T.plcnt} to {T.plcnt} + 1
  92. if {R.3} is not 0:
  93. if {T.%player%.al1} is not 1:
  94. if {B.1} is 0:
  95. set {B.1} to player
  96. broadcast "%player%さんが青チームになりました!"
  97. set {T.%player%.al1} to 1
  98. set {T.plcnt} to {T.plcnt} + 1
  99. if {B.1} is not 0:
  100. if {T.%player%.al1} is not 1:
  101. if {B.2} is 0:
  102. set {B.2} to player
  103. broadcast "%player%さんが青チームになりました!"
  104. set {T.%player%.al1} to 1
  105. set {T.plcnt} to {T.plcnt} + 1
  106. if {B.2} is not 0:
  107. if {T.%player%.al1} is not 1:
  108. set {B.3} to player
  109. broadcast "%player%さんが青チームになりました!"
  110. set {T.%player%.al1} to 1
  111. set {T.plcnt} to {T.plcnt} + 1
  112. if {T.plcnt} is 6:
  113. broadcast "&a&l&n試合が始まります!!少しお待ちください"
  114. teleport {R.1} to {R.sp}
  115. teleport {R.2} to {R.sp}
  116. teleport {R.3} to {R.sp}
  117. teleport {B.1} to {B.sp}
  118. teleport {B.2} to {B.sp}
  119. teleport {B.3} to {B.sp}
  120. wait 3 seconds
  121. broadcast "START!!!!"
  122. set {T.begin} to 2
  123.  
  124.  
  125. command /spset <int>:
  126. trigger:
  127. if arg 1 is 1:
  128. set {R.sp} to player's location
  129. if arg 1 is 2:
  130. set {B.sp} to player's location
  131. permission: skript.admin
  132.  
  133. every seconds:
  134. if {T.begin} is 2:
  135. #timer
  136. set {T.sec} to {T.sec} + 1
  137. if {T.sec} is 300:
  138. broadcast "&a&lFINISH!!!!!!"
  139. broadcast "&c&lR:%{R.pt}% &b&lB:%{B.pt}% !!!"
  140. if {R.pt} is more than {B.pt}:
  141. broadcast "&c&lRED TEAM WIN!!!!"
  142. if {B.pt} is more than {R.pt}:
  143. broadcast "&b&lBLUE TEAM WIN!!!!"
  144. set {T.begin} to 0
  145. set {T.plcnt} to 0
  146. set {T.%{R.1}%.al1} to 0
  147. set {T.%{R.2}%.al1} to 0
  148. set {T.%{R.3}%.al1} to 0
  149. set {T.%{B.1}%.al1} to 0
  150. set {T.%{B.2}%.al1} to 0
  151. set {T.%{B.3}%.al1} to 0
  152. set {T.sec} to 0
  153. set {R.1} to 0
  154. set {R.2} to 0
  155. set {R.3} to 0
  156. set {B.1} to 0
  157. set {B.2} to 0
  158. set {B.3} to 0
  159. set {R.pt} to 0
  160. set {B.pt} to 0
  161. #respawning,and point counting
  162. On death:
  163. while victim is not alive:
  164. wait 1 seconds
  165. if {T.begin} is 2:
  166. if {R.1} is victim:
  167. teleport victim to {R.sp}
  168. set {B.pt} to {B.pt} + 1
  169. execute console command "/effect %{R.1}% resistance 5 255"
  170. if {R.2} is victim:
  171. teleport victim to {R.sp}
  172. set {B.pt} to {B.pt} + 1
  173. execute console command "/effect %{R.2}% resistance 5 255"
  174. if {R.3} is victim:
  175. teleport victim to {R.sp}
  176. set {B.pt} to {B.pt} + 1
  177. execute console command "/effect %{R.3}% resistance 5 255"
  178. if {B.1} is victim:
  179. teleport victim to {B.sp}
  180. execute console command "/effect %{B.1}% resistance 5 255"
  181. set {R.pt} to {R.pt} + 1
  182. if {B.2} is victim:
  183. teleport victim to {B.sp}
  184. set {R.pt} to {R.pt} + 1
  185. execute console command "/effect %{B.2}% resistance 5 255"
  186. if {B.3} is victim:
  187. teleport victim to {B.sp}
  188. execute console command "/effect %{B.3}% resistance 5 255"
  189. set {R.pt} to {R.pt} + 1
  190. On damage:
  191. if {T.begin} is 2:
  192. if {R.1} or {R.2} or {R.3} is attacker:
  193. if {R.1} or {R.2} or {R.3} is victim:
  194. cancel event
  195. if {B.1} or {B.2} or {B.3} is attacker:
  196. if {B.1} or {B.2} or {B.3} is victim:
  197. cancel event
  198. command /resetteam:
  199. trigger:
  200. set {T.begin} to 0
  201. set {T.plcnt} to 0
  202. set {T.%{R.1}%.al1} to 0
  203. set {T.%{R.2}%.al1} to 0
  204. set {T.%{R.3}%.al1} to 0
  205. set {T.%{B.1}%.al1} to 0
  206. set {T.%{B.2}%.al1} to 0
  207. set {T.%{B.3}%.al1} to 0
  208. set {T.sec} to 0
  209. set {R.1} to 0
  210. set {R.2} to 0
  211. set {R.3} to 0
  212. set {B.1} to 0
  213. set {B.2} to 0
  214. set {B.3} to 0
  215. set {R.pt} to 0
  216. set {B.pt} to 0
  217. command /resetteamp <player>:
  218. permission: skript.admin
  219. trigger:
  220. set {T.%arg 1%.al1} to 0
  221. command /member:
  222. trigger:
  223. message "&c%{R.1}%%{R.2}%%{R.3}%&b%{B.1}%%{B.2}%%{B.3}%"
Add Comment
Please, Sign In to add comment