tsutitire2

Untitled

May 22nd, 2020
28
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.62 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 {R.2} is 0:
  80. set {R.2} to player
  81. set {T.%player%.al1} to 1
  82. broadcast "%player%さんが赤チームになりました!"
  83. set {T.plcnt} to {T.plcnt} + 1
  84. if {R.2} is not 0:
  85. if {R.3} is 0:
  86. set {R.3} to player
  87. broadcast "%player%さんが赤チームになりました!"
  88. set {T.%player%.al1} to 1
  89. set {T.plcnt} to {T.plcnt} + 1
  90. if {R.3} is not 0:
  91. if {B.1} is 0:
  92. set {B.1} to player
  93. broadcast "%player%さんが青チームになりました!"
  94. set {T.%player%.al1} to 1
  95. set {T.plcnt} to {T.plcnt} + 1
  96. if {B.1} is not 0:
  97. if {B.2} is 0:
  98. set {B.2} to player
  99. broadcast "%player%さんが青チームになりました!"
  100. set {T.%player%.al1} to 1
  101. set {T.plcnt} to {T.plcnt} + 1
  102. if {B.2} is not 0:
  103. set {B.3} to player
  104. broadcast "%player%さんが青チームになりました!"
  105. set {T.%player%.al1} to 1
  106. set {T.plcnt} to {T.plcnt} + 1
  107. if {T.plcnt} is 6:
  108. broadcast "&a&l&n試合が始まります!!少しお待ちください"
  109. teleport {R.1} to {R.sp}
  110. teleport {R.2} to {R.sp}
  111. teleport {R.3} to {R.sp}
  112. teleport {B.1} to {B.sp}
  113. teleport {B.2} to {B.sp}
  114. teleport {B.3} to {B.sp}
  115. wait 3 seconds
  116. broadcast "START!!!!"
  117. set {T.begin} to 2
  118.  
  119.  
  120. command /spset <int>:
  121. trigger:
  122. if arg 1 is 1:
  123. set {R.sp} to player's location
  124. if arg 1 is 2:
  125. set {B.sp} to player's location
  126. permission: skript.admin
  127.  
  128. every seconds:
  129. if {T.begin} is 2:
  130. #timer
  131. set {T.sec} to {T.sec} + 1
  132. if {T.sec} is 300:
  133. broadcast "&a&lFINISH!!!!!!"
  134. broadcast "&c&lR:%{R.pt}% &b&lB:%{B.pt}% !!!"
  135. if {R.pt} is more than {B.pt}:
  136. broadcast "&c&lRED TEAM WIN!!!!"
  137. if {B.pt} is more than {R.pt}:
  138. broadcast "&b&lBLUE TEAM WIN!!!!"
  139. set {T.begin} to 0
  140. set {T.plcnt} to 0
  141. set {T.%{R.1}%.al1} to 0
  142. set {T.%{R.2}%.al1} to 0
  143. set {T.%{R.3}%.al1} to 0
  144. set {T.%{B.1}%.al1} to 0
  145. set {T.%{B.2}%.al1} to 0
  146. set {T.%{B.3}%.al1} to 0
  147. set {T.sec} to 0
  148. set {R.1} to 0
  149. set {R.2} to 0
  150. set {R.3} to 0
  151. set {B.1} to 0
  152. set {B.2} to 0
  153. set {B.3} to 0
  154. set {R.pt} to 0
  155. set {B.pt} to 0
  156. #respawning,and point counting
  157. On death:
  158. while victim is not alive:
  159. wait 1 seconds
  160. if {T.begin} is 2:
  161. if {R.1} is victim:
  162. teleport victim to {R.sp}
  163. set {B.pt} to {B.pt} + 1
  164. execute console command "/effect %{R.1}% resistance 5 255"
  165. if {R.2} is victim:
  166. teleport victim to {R.sp}
  167. set {B.pt} to {B.pt} + 1
  168. execute console command "/effect %{R.2}% resistance 5 255"
  169. if {R.3} is victim:
  170. teleport victim to {R.sp}
  171. set {B.pt} to {B.pt} + 1
  172. execute console command "/effect %{R.3}% resistance 5 255"
  173. if {B.1} is victim:
  174. teleport victim to {B.sp}
  175. execute console command "/effect %{B.1}% resistance 5 255"
  176. set {R.pt} to {R.pt} + 1
  177. if {B.2} is victim:
  178. teleport victim to {B.sp}
  179. set {R.pt} to {R.pt} + 1
  180. execute console command "/effect %{B.2}% resistance 5 255"
  181. if {B.3} is victim:
  182. teleport victim to {B.sp}
  183. execute console command "/effect %{B.3}% resistance 5 255"
  184. set {R.pt} to {R.pt} + 1
  185. On damage:
  186. if {T.begin} is 2:
  187. if {R.1} or {R.2} or {R.3} is attacker:
  188. if {R.1} or {R.2} or {R.3} is victim:
  189. cancel event
  190. if {B.1} or {B.2} or {B.3} is attacker:
  191. if {B.1} or {B.2} or {B.3} is victim:
  192. cancel event
  193. command /resetteam:
  194. trigger:
  195. set {T.begin} to 0
  196. set {T.plcnt} to 0
  197. set {T.%{R.1}%.al1} to 0
  198. set {T.%{R.2}%.al1} to 0
  199. set {T.%{R.3}%.al1} to 0
  200. set {T.%{B.1}%.al1} to 0
  201. set {T.%{B.2}%.al1} to 0
  202. set {T.%{B.3}%.al1} to 0
  203. set {T.sec} to 0
  204. set {R.1} to 0
  205. set {R.2} to 0
  206. set {R.3} to 0
  207. set {B.1} to 0
  208. set {B.2} to 0
  209. set {B.3} to 0
  210. set {R.pt} to 0
  211. set {B.pt} to 0
  212. command /resetteamp <player>:
  213. permission: skript.admin
  214. trigger:
  215. set {T.%arg 1%.al1} to 0
  216. command /member:
  217. trigger:
  218. message "&c%{R.1}%%{R.2}%%{R.3}%&b%{B.1}%%{B.2}%%{B.3}%"
Add Comment
Please, Sign In to add comment