tsutitire2

Untitled

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