tsutitire2

Untitled

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