tsutitire2

Untitled

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