tsutitire2

Untitled

May 30th, 2020
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.28 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.sp1} = 0
  14. {R.sp1} = 0
  15. {B.sp2} = 0
  16. {R.sp2} = 0
  17. {B.sp3} = 0
  18. {R.sp3} = 0
  19. {B.sp4} = 0
  20. {R.sp4} = 0
  21. {R.pt} = 0
  22. {B.pt} = 0
  23. {B.rc} = 0
  24. {R.rc} = 0
  25. {T.all} = 0
  26. {stage} = 0
  27. command /team <text> [<int>]:
  28. trigger:
  29. #BEGIN
  30. if arg 1 is "begin":
  31. if {T.begin} is not 0:
  32. message "&c既に募集開始しています/始まっています"
  33. if {T.begin} = 0:
  34. set {T.begin} to 1
  35. if arg 2 is not set:
  36. set {stage} to 1
  37. if arg 2 is 1:
  38. set {stage} to 1
  39. if arg 2 is 2:
  40. set {stage} to 2
  41. if arg 2 is 3:
  42. set {stage} to 3
  43. broadcast "&a&l3V3PVP&r&b&lが始まります! &c&l/team join&r &b&lで参加できます!"
  44. #JOIN
  45. if arg 1 is "join":
  46. if {T.begin} is 0:
  47. message "&c募集が始まっていません! /team beginで募集開始できます"
  48. if {T.begin} is 1:
  49. if {T.%player%.al1} is 1:
  50. message "&c既に参加しています!"
  51. if {T.%player%.al1} is 0:
  52. set {T.plrnd} to random integer between 1 to 6
  53. if {T.all} is 0:
  54. if {T.plrnd} is 1:
  55. if {R.1} is 0:
  56. set {R.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 2:
  61. if {R.2} is 0:
  62. set {R.2} to player
  63. set {T.%player%.al1} to 1
  64. broadcast "%player%さんが赤チームになりました!"
  65. set {T.plcnt} to {T.plcnt} + 1
  66. if {T.plrnd} is 3:
  67. if {R.3} is 0:
  68. set {R.3} to player
  69. broadcast "%player%さんが赤チームになりました!"
  70. set {T.%player%.al1} to 1
  71. set {T.plcnt} to {T.plcnt} + 1
  72. if {T.plrnd} is 4:
  73. if {B.1} is 0:
  74. set {B.1} to player
  75. broadcast "%player%さんが青チームになりました!"
  76. set {T.%player%.al1} to 1
  77. set {T.plcnt} to {T.plcnt} + 1
  78. if {T.plrnd} is 5:
  79. if {B.2} is 0:
  80. set {B.2} to player
  81. broadcast "%player%さんが青チームになりました!"
  82. set {T.%player%.al1} to 1
  83. set {T.plcnt} to {T.plcnt} + 1
  84. if {T.plrnd} is 6:
  85. if {B.3} is 0:
  86. set {B.3} to player
  87. broadcast "%player%さんが青チームになりました!"
  88. set {T.%player%.al1} to 1
  89. set {T.plcnt} to {T.plcnt} + 1
  90. if {T.%player%.al1} is not 1:
  91. if {R.1} = 0:
  92. set {R.1} to player
  93. broadcast "%player%さんが赤チームになりました!"
  94. set {T.%player%.al1} to 1
  95. set {T.plcnt} to {T.plcnt} + 1
  96. if {R.1} is not 0:
  97. if {T.%player%.al1} is not 1:
  98. if {R.2} is 0:
  99. set {R.2} to player
  100. set {T.%player%.al1} to 1
  101. broadcast "%player%さんが赤チームになりました!"
  102. set {T.plcnt} to {T.plcnt} + 1
  103. if {R.2} is not 0:
  104. if {T.%player%.al1} is not 1:
  105. if {R.3} is 0:
  106. set {R.3} to player
  107. broadcast "%player%さんが赤チームになりました!"
  108. set {T.%player%.al1} to 1
  109. set {T.plcnt} to {T.plcnt} + 1
  110. if {R.3} is not 0:
  111. if {T.%player%.al1} is not 1:
  112. if {B.1} is 0:
  113. set {B.1} to player
  114. broadcast "%player%さんが青チームになりました!"
  115. set {T.%player%.al1} to 1
  116. set {T.plcnt} to {T.plcnt} + 1
  117. if {B.1} is not 0:
  118. if {T.%player%.al1} is not 1:
  119. if {B.2} is 0:
  120. set {B.2} to player
  121. broadcast "%player%さんが青チームになりました!"
  122. set {T.%player%.al1} to 1
  123. set {T.plcnt} to {T.plcnt} + 1
  124. if {B.2} is not 0:
  125. if {T.%player%.al1} is not 1:
  126. set {B.3} to player
  127. broadcast "%player%さんが青チームになりました!"
  128. set {T.%player%.al1} to 1
  129. set {T.plcnt} to {T.plcnt} + 1
  130. if {T.plcnt} is 6:
  131. broadcast "チーム戦が始まるまであと10秒!"
  132. set {T.all} to 1
  133. wait 7 seconds
  134. if {stage} is 1:
  135. teleport {R.1} to {R.sp1}
  136. teleport {R.2} to {R.sp1}
  137. teleport {R.3} to {R.sp1}
  138. teleport {B.1} to {B.sp1}
  139. teleport {B.2} to {B.sp1}
  140. teleport {B.3} to {B.sp1}
  141. if {stage} is 2:
  142. teleport {R.1} to {R.sp2}
  143. teleport {R.2} to {R.sp2}
  144. teleport {R.3} to {R.sp2}
  145. teleport {B.1} to {B.sp2}
  146. teleport {B.2} to {B.sp2}
  147. teleport {B.3} to {B.sp2}
  148. if {stage} is 3:
  149. teleport {R.1} to {R.sp3}
  150. teleport {R.2} to {R.sp3}
  151. teleport {R.3} to {R.sp3}
  152. teleport {B.1} to {B.sp3}
  153. teleport {B.2} to {B.sp3}
  154. teleport {B.3} to {B.sp3}
  155. if {stage} is 4:
  156. teleport {R.1} to {R.sp4}
  157. teleport {R.2} to {R.sp4}
  158. teleport {R.3} to {R.sp4}
  159. teleport {B.1} to {B.sp4}
  160. teleport {B.2} to {B.sp4}
  161. teleport {B.3} to {B.sp4}
  162. wait 3 seconds
  163. broadcast "START!!!!"
  164. set {T.begin} to 2
  165.  
  166.  
  167. command /spset <int>:
  168. trigger:
  169. if arg 1 is 1:
  170. set {R.sp1} to player's location
  171. if arg 1 is 2:
  172. set {B.sp1} to player's location
  173. if arg 1 is 3:
  174. set {R.sp2} to player's location
  175. if arg 1 is 4:
  176. set {B.sp2} to player's location
  177. if arg 1 is 5:
  178. set {R.sp3} to player's location
  179. if arg 1 is 6:
  180. set {B.sp3} to player's location
  181. if arg 1 is 7:
  182. set {R.sp4} to player's location
  183. if arg 1 is 8:
  184. set {B.sp4} to player's location
  185. permission: skript.admin
  186.  
  187. every seconds:
  188. if {T.begin} is 2:
  189. #timer
  190. if {B.rc} is 1:
  191. send message "Blue ore is right clicking" to {R.1}
  192. send message "Blue ore is right clicking" to {R.2}
  193. send message "Blue ore is right clicking" to {R.3}
  194. send message "Blue ore is right clicking" to {B.1}
  195. send message "Blue ore is right clicking" to {B.2}
  196. send message "Blue ore is right clicking" to {B.3}
  197. if {R.rc} is 1:
  198. send message "Red ore is right clicking" to {R.1}
  199. send message "Red ore is right clicking" to {R.2}
  200. send message "Red ore is right clicking" to {R.3}
  201. send message "Red ore is right clicking" to {B.1}
  202. send message "Red ore is right clicking" to {B.2}
  203. send message "Red ore is right clicking" to {B.3}
  204. set {B.rc} to 0
  205. set {R.rc} to 0
  206. set {T.sec} to {T.sec} + 1
  207. if {T.sec} is 300:
  208. broadcast "&a&lFINISH!!!!!!"
  209. broadcast "&c&lR:%{R.pt}% &b&lB:%{B.pt}% !!!"
  210. broadcast "member: &c&l%{R.1}% %{R.2}% %{R.3}% &b&l%{B.1}% %{B.2}% %{B.3}%"
  211. if {R.pt} is more than {B.pt}:
  212. broadcast "&c&lRED TEAM WIN!!!!"
  213. give beacon to {R.1}
  214. give beacon to {R.2}
  215. give beacon to {R.3}
  216. if {B.pt} is more than {R.pt}:
  217. broadcast "&b&lBLUE TEAM WIN!!!!"
  218. give beacon to {B.1}
  219. give beacon to {B.2}
  220. give beacon to {B.3}
  221. set {T.begin} to 0
  222. set {T.plcnt} to 0
  223. set {T.%{R.1}%.al1} to 0
  224. set {T.%{R.2}%.al1} to 0
  225. set {T.%{R.3}%.al1} to 0
  226. set {T.%{B.1}%.al1} to 0
  227. set {T.%{B.2}%.al1} to 0
  228. set {T.%{B.3}%.al1} to 0
  229. set {T.sec} to 0
  230. set {R.1} to 0
  231. set {R.2} to 0
  232. set {R.3} to 0
  233. set {B.1} to 0
  234. set {B.2} to 0
  235. set {B.3} to 0
  236. set {T.all} to 0
  237. set {R.pt} to 0
  238. set {B.pt} to 0
  239. #respawning,and point counting
  240. On death:
  241. while victim is not alive:
  242. wait 1 seconds
  243. if {T.begin} is 2:
  244. if {R.1} is victim:
  245. if {stage} is 1:
  246. teleport victim to {R.sp1}
  247. if {stage} is 2:
  248. teleport victim to {R.sp2}
  249. if {stage} is 3:
  250. teleport victim to {R.sp3}
  251. if {stage} is 4:
  252. teleport victim to {R.sp4}
  253. set {B.pt} to {B.pt} + 40
  254. execute console command "/effect %{R.1}% resistance 5 255"
  255. broadcast "RED:%{R.pt}% BLUE:%{B.pt}%"
  256. if {R.2} is victim:
  257. if {stage} is 1:
  258. teleport victim to {R.sp1}
  259. if {stage} is 2:
  260. teleport victim to {R.sp2}
  261. if {stage} is 3:
  262. teleport victim to {R.sp3}
  263. if {stage} is 4:
  264. teleport victim to {R.sp4}
  265. set {B.pt} to {B.pt} + 40
  266. execute console command "/effect %{R.2}% resistance 5 255"
  267. if {R.3} is victim:
  268. if {stage} is 1:
  269. teleport victim to {R.sp1}
  270. if {stage} is 2:
  271. teleport victim to {R.sp2}
  272. if {stage} is 3:
  273. teleport victim to {R.sp3}
  274. if {stage} is 4:
  275. teleport victim to {R.sp4}
  276. set {B.pt} to {B.pt} + 30
  277. execute console command "/effect %{R.3}% resistance 5 255"
  278. if {B.1} is victim:
  279. if {stage} is 1:
  280. teleport victim to {B.sp1}
  281. if {stage} is 2:
  282. teleport victim to {B.sp2}
  283. if {stage} is 3:
  284. teleport victim to {B.sp3}
  285. if {stage} is 4:
  286. teleport victim to {B.sp4}
  287. execute console command "/effect %{B.1}% resistance 5 255"
  288. broadcast "RED:%{R.pt}% BLUE:%{B.pt}%"
  289. set {R.pt} to {R.pt} + 30
  290. if {B.2} is victim:
  291. if {stage} is 1:
  292. teleport victim to {B.sp1}
  293. if {stage} is 2:
  294. teleport victim to {B.sp2}
  295. if {stage} is 3:
  296. teleport victim to {B.sp3}
  297. if {stage} is 4:
  298. teleport victim to {B.sp4}
  299. set {R.pt} to {R.pt} + 30
  300. execute console command "/effect %{B.2}% resistance 5 255"
  301. if {B.3} is victim:
  302. if {stage} is 1:
  303. teleport victim to {B.sp1}
  304. if {stage} is 2:
  305. teleport victim to {B.sp2}
  306. if {stage} is 3:
  307. teleport victim to {B.sp3}
  308. if {stage} is 4:
  309. teleport victim to {B.sp4}
  310. execute console command "/effect %{B.3}% resistance 5 255"
  311. set {R.pt} to {R.pt} + 30
  312. On damage:
  313. if {T.begin} is 2:
  314. if {R.1} or {R.2} or {R.3} is attacker:
  315. if {R.1} or {R.2} or {R.3} is victim:
  316. cancel event
  317. if {B.1} or {B.2} or {B.3} is attacker:
  318. if {B.1} or {B.2} or {B.3} is victim:
  319. cancel event
  320. On right click on lapis ore:
  321. if {T.begin} is 2:
  322. set {R.pt} to {R.pt} + 4
  323. execute console command "/execute %player% ~ ~ ~ particle heart ~ ~ ~ 1 1 1 0 3"
  324. set {B.rc} to 1
  325. On right click on red wool:
  326. if {T.begin} is 2:
  327. set {B.pt} to {B.pt} + 4
  328. execute console command "/execute %player% ~ ~ ~ particle heart ~ ~ ~ 1 1 1 0 3"
  329. set {R.rc} to 1
  330. command /resetteam:
  331. trigger:
  332. set {T.begin} to 0
  333. set {T.plcnt} to 0
  334. set {T.%{R.1}%.al1} to 0
  335. set {T.%{R.2}%.al1} to 0
  336. set {T.%{R.3}%.al1} to 0
  337. set {T.%{B.1}%.al1} to 0
  338. set {T.%{B.2}%.al1} to 0
  339. set {T.%{B.3}%.al1} to 0
  340. set {T.sec} to 0
  341. set {R.1} to 0
  342. set {R.2} to 0
  343. set {R.3} to 0
  344. set {B.1} to 0
  345. set {B.2} to 0
  346. set {B.3} to 0
  347. set {T.all} to 0
  348. set {R.pt} to 0
  349. set {B.pt} to 0
  350. command /resetteamp <player>:
  351. permission: skript.admin
  352. trigger:
  353. set {T.%arg 1%.al1} to 0
  354. command /member:
  355. trigger:
  356. message "&c%{R.1}%%{R.2}%%{R.3}%&b%{B.1}%%{B.2}%%{B.3}%"
  357. command /cc <text>:
  358. trigger:
  359. if {T.begin} is 2:
  360. if player is {R.1} or {R.2} or {R.3}:
  361. message "&c&lRED TEAM CHAT&r &4&l>>> &r %arg 1%" to {R.2}
  362. message "&c&lRED TEAM CHAT&r &4&l>>> &r %arg 1%" to {R.1}
  363. message "&c&lRED TEAM CHAT&r &4&l>>> &r %arg 1%" to {R.3}
  364. if player is {B.1} or {B.2} or {B.3}:
  365. message "&b&lBLUE TEAM CHAT&r &1&l>>> &r %arg 1%" to {B.2}
  366. message "&b&lBLUE TEAM CHAT&r &1&l>>> &r %arg 1%" to {B.1}
  367. message "&b&lBLUE TEAM CHAT&r &1&l>>> &r %arg 1%" to {B.3}
Add Comment
Please, Sign In to add comment