tsutitire2

Untitled

May 29th, 2020
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.72 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. broadcast "Blue ore is right clicking"
  192. if {R.rc} is 1:
  193. broadcast "Red ore is right clicking"
  194. set {B.rc} to 0
  195. set {R.rc} to 0
  196. set {T.sec} to {T.sec} + 1
  197. if {T.sec} is 300:
  198. broadcast "&a&lFINISH!!!!!!"
  199. broadcast "&c&lR:%{R.pt}% &b&lB:%{B.pt}% !!!"
  200. broadcast "member: &c&l%{R.1}% %{R.2}% %{R.3}% &b&l%{B.1}% %{B.2}% %{B.3}%"
  201. if {R.pt} is more than {B.pt}:
  202. broadcast "&c&lRED TEAM WIN!!!!"
  203. give beacon to {R.1}
  204. give beacon to {R.2}
  205. give beacon to {R.3}
  206. if {B.pt} is more than {R.pt}:
  207. broadcast "&b&lBLUE TEAM WIN!!!!"
  208. give beacon to {B.1}
  209. give beacon to {B.2}
  210. give beacon to {B.3}
  211. set {T.begin} to 0
  212. set {T.plcnt} to 0
  213. set {T.%{R.1}%.al1} to 0
  214. set {T.%{R.2}%.al1} to 0
  215. set {T.%{R.3}%.al1} to 0
  216. set {T.%{B.1}%.al1} to 0
  217. set {T.%{B.2}%.al1} to 0
  218. set {T.%{B.3}%.al1} to 0
  219. set {T.sec} to 0
  220. set {R.1} to 0
  221. set {R.2} to 0
  222. set {R.3} to 0
  223. set {B.1} to 0
  224. set {B.2} to 0
  225. set {B.3} to 0
  226. set {T.all} to 0
  227. set {R.pt} to 0
  228. set {B.pt} to 0
  229. #respawning,and point counting
  230. On death:
  231. while victim is not alive:
  232. wait 1 seconds
  233. if {T.begin} is 2:
  234. if {R.1} is victim:
  235. if {stage} is 1:
  236. teleport victim to {R.sp1}
  237. if {stage} is 2:
  238. teleport victim to {R.sp2}
  239. if {stage} is 3:
  240. teleport victim to {R.sp3}
  241. if {stage} is 4:
  242. teleport victim to {R.sp4}
  243. set {B.pt} to {B.pt} + 40
  244. execute console command "/effect %{R.1}% resistance 5 255"
  245. broadcast "RED:%{R.pt}% BLUE:%{B.pt}%"
  246. if {R.2} is victim:
  247. if {stage} is 1:
  248. teleport victim to {R.sp1}
  249. if {stage} is 2:
  250. teleport victim to {R.sp2}
  251. if {stage} is 3:
  252. teleport victim to {R.sp3}
  253. if {stage} is 4:
  254. teleport victim to {R.sp4}
  255. set {B.pt} to {B.pt} + 40
  256. execute console command "/effect %{R.2}% resistance 5 255"
  257. if {R.3} is victim:
  258. if {stage} is 1:
  259. teleport victim to {R.sp1}
  260. if {stage} is 2:
  261. teleport victim to {R.sp2}
  262. if {stage} is 3:
  263. teleport victim to {R.sp3}
  264. if {stage} is 4:
  265. teleport victim to {R.sp4}
  266. set {B.pt} to {B.pt} + 30
  267. execute console command "/effect %{R.3}% resistance 5 255"
  268. if {B.1} is victim:
  269. if {stage} is 1:
  270. teleport victim to {B.sp1}
  271. if {stage} is 2:
  272. teleport victim to {B.sp2}
  273. if {stage} is 3:
  274. teleport victim to {B.sp3}
  275. if {stage} is 4:
  276. teleport victim to {B.sp4}
  277. execute console command "/effect %{B.1}% resistance 5 255"
  278. broadcast "RED:%{R.pt}% BLUE:%{B.pt}%"
  279. set {R.pt} to {R.pt} + 30
  280. if {B.2} is victim:
  281. if {stage} is 1:
  282. teleport victim to {B.sp1}
  283. if {stage} is 2:
  284. teleport victim to {B.sp2}
  285. if {stage} is 3:
  286. teleport victim to {B.sp3}
  287. if {stage} is 4:
  288. teleport victim to {B.sp4}
  289. set {R.pt} to {R.pt} + 30
  290. execute console command "/effect %{B.2}% resistance 5 255"
  291. if {B.3} is victim:
  292. if {stage} is 1:
  293. teleport victim to {B.sp1}
  294. if {stage} is 2:
  295. teleport victim to {B.sp2}
  296. if {stage} is 3:
  297. teleport victim to {B.sp3}
  298. if {stage} is 4:
  299. teleport victim to {B.sp4}
  300. execute console command "/effect %{B.3}% resistance 5 255"
  301. set {R.pt} to {R.pt} + 30
  302. On damage:
  303. if {T.begin} is 2:
  304. if {R.1} or {R.2} or {R.3} is attacker:
  305. if {R.1} or {R.2} or {R.3} is victim:
  306. cancel event
  307. if {B.1} or {B.2} or {B.3} is attacker:
  308. if {B.1} or {B.2} or {B.3} is victim:
  309. cancel event
  310. On right click on lapis ore:
  311. if {T.begin} is 2:
  312. set {R.pt} to {R.pt} + 4
  313. execute console command "/execute %player% ~ ~ ~ particle heart ~ ~ ~ 1 1 1 0 3"
  314. set {B.rc} to 1
  315. On right click on red wool:
  316. if {T.begin} is 2:
  317. set {B.pt} to {B.pt} + 4
  318. execute console command "/execute %player% ~ ~ ~ particle heart ~ ~ ~ 1 1 1 0 3"
  319. set {R.rc} to 1
  320. command /resetteam:
  321. trigger:
  322. set {T.begin} to 0
  323. set {T.plcnt} to 0
  324. set {T.%{R.1}%.al1} to 0
  325. set {T.%{R.2}%.al1} to 0
  326. set {T.%{R.3}%.al1} to 0
  327. set {T.%{B.1}%.al1} to 0
  328. set {T.%{B.2}%.al1} to 0
  329. set {T.%{B.3}%.al1} to 0
  330. set {T.sec} to 0
  331. set {R.1} to 0
  332. set {R.2} to 0
  333. set {R.3} to 0
  334. set {B.1} to 0
  335. set {B.2} to 0
  336. set {B.3} to 0
  337. set {T.all} to 0
  338. set {R.pt} to 0
  339. set {B.pt} to 0
  340. command /resetteamp <player>:
  341. permission: skript.admin
  342. trigger:
  343. set {T.%arg 1%.al1} to 0
  344. command /member:
  345. trigger:
  346. message "&c%{R.1}%%{R.2}%%{R.3}%&b%{B.1}%%{B.2}%%{B.3}%"
  347. command /cc <text>:
  348. trigger:
  349. if {T.begin} is 2:
  350. if player is {R.1} or {R.2} or {R.3}:
  351. message "&c&lRED TEAM CHAT&r &4&l>>> &r %arg 1%" to {R.2}
  352. message "&c&lRED TEAM CHAT&r &4&l>>> &r %arg 1%" to {R.1}
  353. message "&c&lRED TEAM CHAT&r &4&l>>> &r %arg 1%" to {R.3}
  354. if player is {B.1} or {B.2} or {B.3}:
  355. message "&b&lBLUE TEAM CHAT&r &1&l>>> &r %arg 1%" to {B.2}
  356. message "&b&lBLUE TEAM CHAT&r &1&l>>> &r %arg 1%" to {B.1}
  357. message "&b&lBLUE TEAM CHAT&r &1&l>>> &r %arg 1%" to {B.3}
Add Comment
Please, Sign In to add comment