Advertisement
taktie0304

Untitled

Sep 7th, 2019
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 38.42 KB | None | 0 0
  1. command /bf:
  2. permission: skript.admin
  3. trigger:
  4. command "scoreboard teams remove red"
  5. command "scoreboard teams remove blue"
  6. command "scoreboard teams add red"
  7. command "scoreboard teams add blue"
  8. command "scoreboard teams option red color red"
  9. command "scoreboard teams option blue color blue"
  10. command "scoreboard teams option red nametagVisibility hideForOtherTeams"
  11. command "scoreboard teams option blue nametagVisibility hideForOtherTeams"
  12. set {lobby} to location (-27.5, 140, -294.5)
  13. set {cmdlobby} to "-28 140 -295"
  14. set {redspawn} to location (-52.5, 137, -236.5)
  15. set {bluespawn} to location (-59.5, 137, -330.5)
  16. set {game} to false
  17. set {button} to true
  18. set {teamselector} to 0
  19. send "&acomprete"
  20.  
  21. #==================================================[ 関数 ]==================================================#
  22.  
  23. function redwin():
  24. set {game} to false
  25. loop all players:
  26. if {team.%loop-player%} is "red":
  27. send title "&6&lVICTORY" with subtitle "&c%{redpoint}% &f- &9%{bluepoint}%" to loop-player for 5 seconds
  28. send "&6&lVICTORY" to loop-player
  29. add 100 to {coin.%uuid of loop-player%}
  30. add 10 to {xp.%uuid of loop-player%}
  31. add 1 to {win.%uuid of loop-player%}
  32. send "&a+10xp &6+100coins" to loop-player
  33. command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.5 1"
  34. else if {team.%loop-player%} is "blue":
  35. send title "&9&lLOSE" with subtitle "&9%{bluepoint}% &f- &c%{redpoint}%" to loop-player for 5 seconds
  36. send "&9&lLOSE" to loop-player
  37. add 30 to {coin.%uuid of loop-player%}
  38. add 3 to {xp.%uuid of loop-player%}
  39. add 1 to {lose.%uuid of loop-player%}
  40. send "&a+3xp &6+30coins" to loop-player
  41. command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.5 1"
  42. wait 6 seconds
  43. command "scoreboard teams empty red"
  44. command "scoreboard teams empty blue"
  45. loop all players:
  46. give grey dye named "&eゲームに参加する" to loop-player
  47. if {team.%loop-player%} is set:
  48. close loop-player's inventory
  49. command "clear %loop-player%"
  50. give ender chest named "&a武器選択" to loop-player
  51. teleport the loop-player to {lobby}
  52. set the loop-player's gamemode to adventure
  53. set the loop-player's tablist name to "&7[Lv%{level.%uuid of loop-player%}%]&f%loop-player%"
  54. set health of loop-player to max health of loop-player
  55. delete {team.%loop-player%}
  56. delete {teamchat.%loop-player%}
  57. set {died.%loop-player%} to false
  58. else:
  59. send "&a試合が終了しました" to loop-player
  60. loop all players:
  61. give grey dye named "&eゲームに参加する" to loop-player
  62. set {button} to true
  63.  
  64. function bluewin():
  65. set {game} to false
  66. loop all players:
  67. if {team.%loop-player%} is "red":
  68. send title "&9&lLOSE" with subtitle "&c%{redpoint}% &f- &9%{bluepoint}%" to loop-player for 5 seconds
  69. send "&9&lLOSE" to loop-player
  70. add 30 to {coin.%uuid of loop-player%}
  71. add 3 to {xp.%uuid of loop-player%}
  72. add 1 to {lose.%uuid of loop-player%}
  73. send "&a+3xp &6+30coins" to loop-player
  74. command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.5 1"
  75. else if {team.%loop-player%} is "blue":
  76. send title "&6&lVICTORY" with subtitle "&9%{bluepoint}% &f- &c%{redpoint}%" to loop-player for 5 seconds
  77. send "&6&lVICTORY" to loop-player
  78. add 100 to {coin.%uuid of loop-player%}
  79. add 10 to {xp.%uuid of loop-player%}
  80. add 1 to {win.%uuid of loop-player%}
  81. send "&a+10xp &6+100coins" to loop-player
  82. command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.5 1"
  83. wait 6 seconds
  84. command "scoreboard teams empty red"
  85. command "scoreboard teams empty blue"
  86. loop all players:
  87. give grey dye named "&eゲームに参加する" to loop-player
  88. if {team.%loop-player%} is set:
  89. close loop-player's inventory
  90. command "clear %loop-player%"
  91. give ender chest named "&a武器選択" to loop-player
  92. teleport the loop-player to {lobby}
  93. set the loop-player's gamemode to adventure
  94. set the loop-player's tablist name to "&7[Lv%{level.%uuid of loop-player%}%]&f%loop-player%"
  95. set health of loop-player to max health of loop-player
  96. delete {team.%loop-player%}
  97. delete {teamchat.%loop-player%}
  98. set {died.%loop-player%} to false
  99. else:
  100. send "&a試合が終了しました" to loop-player
  101. loop all players:
  102. give grey dye named "&eゲームに参加する" to loop-player
  103. set {button} to true
  104.  
  105. function draw():
  106. set {game} to false
  107. loop all players:
  108. if {team.%loop-player%} is "red":
  109. send title "&e&lDraw" with subtitle "&c%{redpoint}% &f- &9%{bluepoint}%" to loop-player for 5 seconds
  110. send "&e&lDraw" to loop-player
  111. add 60 to {coin.%uuid of loop-player%}
  112. add 6 to {xp.%uuid of loop-player%}
  113. send "&a+6xp &6+60coins" to loop-player
  114. command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.5 1"
  115. else if {team.%loop-player%} is "blue":
  116. send title "&e&lDraw" with subtitle "&9%{bluepoint}% &f- &c%{redpoint}%" to loop-player for 5 seconds
  117. send "&e&lDraw" to loop-player
  118. add 60 to {coin.%uuid of loop-player%}
  119. add 6 to {xp.%uuid of loop-player%}
  120. send "&a+6xp &6+60coins" to loop-player
  121. command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.5 1"
  122. wait 6 seconds
  123. command "scoreboard teams empty red"
  124. command "scoreboard teams empty blue"
  125. loop all players:
  126. if {team.%loop-player%} is set:
  127. close loop-player's inventory
  128. command "clear %loop-player%"
  129. give ender chest named "&a武器選択" to loop-player
  130. teleport the loop-player to {lobby}
  131. set the loop-player's gamemode to adventure
  132. set the loop-player's tablist name to "&7[Lv%{level.%uuid of loop-player%}%]&f%loop-player%"
  133. set health of loop-player to max health of loop-player
  134. delete {team.%loop-player%}
  135. delete {teamchat.%loop-player%}
  136. set {died.%loop-player%} to false
  137. else:
  138. send "&a試合が終了しました" to loop-player
  139. loop all players:
  140. give grey dye named "&eゲームに参加する" to loop-player
  141. set {button} to true
  142.  
  143. #==================================================[ スタートボタン ]==================================================#
  144.  
  145. on rightclick on wood button:
  146. if {game} is false:
  147. set {start} to true
  148. loop all players:
  149. send title "&a5" with subtitle "スタートまで" to loop-player for 2 seconds with fadein 0 tick and fadeout 20 tick
  150. command "execute %loop-player% ~ ~ ~ playsound minecraft:ui.button.click master %loop-player% ~ ~ ~ 1 2"
  151. wait 1 second
  152. loop all players:
  153. send title "&a4" with subtitle "スタートまで" to loop-player for 2 seconds with fadein 0 tick and fadeout 20 tick
  154. command "execute %loop-player% ~ ~ ~ playsound minecraft:ui.button.click master %loop-player% ~ ~ ~ 1 2"
  155. wait 1 second
  156. loop all players:
  157. send title "&a3" with subtitle "スタートまで" to loop-player for 2 seconds with fadein 0 tick and fadeout 20 tick
  158. command "execute %loop-player% ~ ~ ~ playsound minecraft:ui.button.click master %loop-player% ~ ~ ~ 1 2"
  159. wait 1 second
  160. loop all players:
  161. send title "&a2" with subtitle "スタートまで" to loop-player for 2 seconds with fadein 0 tick and fadeout 20 tick
  162. command "execute %loop-player% ~ ~ ~ playsound minecraft:ui.button.click master %loop-player% ~ ~ ~ 1 2"
  163. wait 1 second
  164. loop all players:
  165. send title "&a1" with subtitle "スタートまで" to loop-player for 2 seconds with fadein 0 tick and fadeout 20 tick
  166. command "execute %loop-player% ~ ~ ~ playsound minecraft:ui.button.click master %loop-player% ~ ~ ~ 1 2"
  167. remove grey dye named "&eゲームに参加する" from loop-player
  168. remove lime dye named "&cゲームを抜ける" from loop-player
  169. wait 1 second
  170. set {gameplayer} to 0
  171. loop all players:
  172. if {join.%loop-player%} is true:
  173. add 1 to {gameplayer}
  174. if {gameplayer} <= 1:
  175. broadcast "&c参加人数が足りませんでした"
  176. wait 1 second
  177. loop all players:
  178. give grey dye named "&eゲームに参加する" to loop-player
  179. set {start} to false
  180. else:
  181. set {red} to 0
  182. set {blue} to 0
  183. set {redpoint} to 0
  184. set {bluepoint} to 0
  185. set {minutes} to 4
  186. set {seconds} to 60
  187. loop all players:
  188. remove grey dye named "&eゲームに参加する" from loop-player
  189. remove lime dye named "&cゲームを抜ける" from loop-player
  190. if {join.%loop-player%} is true:
  191. remove ender chest named "&a武器選択" from loop-player
  192. if {teamselector} == 0:
  193. add 1 to {red}
  194. set {team.%loop-player%} to "red"
  195. set {teamchat.%loop-player%} to "&c"
  196. set {died.%loop-player%} to false
  197. command "clear %loop-player%"
  198. command "scoreboard teams join red %loop-player%"
  199. send subtitle "&cあなたは赤チームです" to loop-player for 2 seconds with fadein 0 tick and fadeout 20 tick
  200. set the loop-player's tablist name to "&7[Lv%{level.%uuid of loop-player%}%]&c%loop-player%"
  201. command "shot give %loop-player% %{weapon.%loop-player%}%"
  202. command "shot give %loop-player% medical_kit"
  203. teleport the loop-player to {redspawn}
  204. set the loop-player's gamemode to survival
  205. delete {join.%loop-player%}
  206. set {teamselector} to 1
  207. else if {teamselector} == 1:
  208. add 1 to {blue}
  209. set {team.%loop-player%} to "blue"
  210. set {teamchat.%loop-player%} to "&9"
  211. set {died.%loop-player%} to false
  212. command "clear %loop-player%"
  213. command "scoreboard teams join blue %loop-player%"
  214. send subtitle "&9あなたは青チームです" to loop-player for 2 seconds with fadein 0 tick and fadeout 20 tick
  215. set the loop-player's tablist name to "&7[Lv%{level.%uuid of loop-player%}%]&9%loop-player%"
  216. command "shot give %loop-player% %{weapon.%loop-player%}%"
  217. command "shot give %loop-player% medical_kit"
  218. teleport the loop-player to {bluespawn}
  219. set the loop-player's gamemode to survival
  220. delete {join.%loop-player%}
  221. set {teamselector} to 0
  222. set {game} to true
  223. set {start} to false
  224. set {button} to true
  225. else:
  226. if {button} is true:
  227. if {red} <= {blue}:
  228. add 1 to {red}
  229. set {team.%player%} to "red"
  230. set {teamchat.%player%} to "&c"
  231. set {died.%player%} to false
  232. command "clear %player%"
  233. command "scoreboard teams join red %player%"
  234. send subtitle "&cあなたは赤チームです" to player for 2 seconds with fadein 0 tick and fadeout 20 tick
  235. set the player's tablist name to "&7[Lv%{level.%uuid of player%}%]&c%player%"
  236. command "shot give %player% %{weapon.%player%}%"
  237. command "shot give %player% medical_kit"
  238. teleport the player to {redspawn}
  239. set the player's gamemode to survival
  240. else if {red} > {blue}:
  241. add 1 to {blue}
  242. set {team.%player%} to "blue"
  243. set {teamchat.%player%} to "&9"
  244. set {died.%player%} to false
  245. command "clear %player%"
  246. command "scoreboard teams join blue %player%"
  247. send subtitle "&9あなたは青チームです" to player for 2 seconds with fadein 0 tick and fadeout 20 tick
  248. set the player's tablist name to "&7[Lv%{level.%uuid of player%}%]&9%player%"
  249. command "shot give %player% %{weapon.%player%}%"
  250. command "shot give %player% medical_kit"
  251. teleport the player to {bluespawn}
  252. set the player's gamemode to survival
  253. else:
  254. send "現在試合の処理中です" to player
  255.  
  256. #==================================================[ 死んだとき ]==================================================#
  257.  
  258. on death of player:
  259. {game} is true
  260. if name of attacker's held item contains "AK-12":
  261. set the death message to "%{teamchat.%attacker%}%%attacker% &f[AK-12] %{teamchat.%victim%}%%victim%"
  262. if name of attacker's held item contains "M416":
  263. set the death message to "%{teamchat.%attacker%}%%attacker% &f[M416] %{teamchat.%victim%}%%victim%"
  264. if name of attacker's held item contains "M16A4":
  265. set the death message to "%{teamchat.%attacker%}%%attacker% &f[M16A4] %{teamchat.%victim%}%%victim%"
  266. if name of attacker's held item contains "ACE 23":
  267. set the death message to "%{teamchat.%attacker%}%%attacker% &f[ACE 23] %{teamchat.%victim%}%%victim%"
  268. if name of attacker's held item contains "AEK-971":
  269. set the death message to "%{teamchat.%attacker%}%%attacker% &f[AEK-971] %{teamchat.%victim%}%%victim%"
  270. if name of attacker's held item contains "CS-LR4":
  271. set the death message to "%{teamchat.%attacker%}%%attacker% &f[CS-LR4] %{teamchat.%victim%}%%victim%"
  272. if name of attacker's held item contains "M98B":
  273. set the death message to "%{teamchat.%attacker%}%%attacker% &f[M98B] %{teamchat.%victim%}%%victim%"
  274. if name of attacker's held item contains "SRR-61":
  275. set the death message to "%{teamchat.%attacker%}%%attacker% &f[SRR-61] %{teamchat.%victim%}%%victim%"
  276. send subtitle "&4&l^" to attacker for 5 ticks with fadein 0 tick and fadeout 5 tick
  277. set {died.%victim%} to true
  278. set {deathpoint.%victim%} to location of victim
  279. force the victim to respawn
  280. teleport player to {deathpoint.%victim%}
  281. set health of victim to max health of victim
  282. set victim's gamemode to spectator
  283. add 1 to {kill.%uuid of attacker%}
  284. add 1 to {death.%uuid of victim%}
  285. add 30 to {coin.%uuid of attacker%}
  286. add 3 to {xp.%uuid of attacker%}
  287. send "&a+3xp &6+30coins" to attacker
  288. loop all players:
  289. if {team.%loop-player%} is "red":
  290. send action bar "&c%{redpoint}% &f- &9%{bluepoint}% &8| &f%{minutes}%:%{seconds}%" to loop-player
  291. else if {team.%loop-player%} is "blue":
  292. send action bar "&9%{bluepoint}% &f- &c%{redpoint}% &8| &f%{minutes}%:%{seconds}%" to loop-player
  293. if {team.%attacker%} is "red":
  294. add 1 to {redpoint}
  295. else if {team.%attacker%} is "blue":
  296. add 1 to {bluepoint}
  297. if {redpoint} >= 50:
  298. redwin()
  299. else if {bluepoint} >= 50:
  300. bluewin()
  301. else:
  302. send title "&c死んでしまった!" to victim for 6 seconds with fadein 0 tick and fadeout 0 tick
  303. wait 5 seconds
  304. send subtitle "&f復活まで 5 秒" to victim for 2 seconds with fadein 0 tick and fadeout 0 tick
  305. wait 1 second
  306. send subtitle "&f復活まで 4 秒" to victim for 2 seconds with fadein 0 tick and fadeout 0 tick
  307. wait 1 second
  308. send subtitle "&f復活まで 3 秒" to victim for 2 seconds with fadein 0 tick and fadeout 0 tick
  309. wait 1 second
  310. send subtitle "&f復活まで 2 秒" to victim for 2 seconds with fadein 0 tick and fadeout 0 tick
  311. wait 1 second
  312. send subtitle "&f復活まで 1 秒" to victim for 1 seconds with fadein 0 tick and fadeout 0 tick
  313. wait 1 second
  314. if {game} is true:
  315. if {%{team.%victim%}%} <= 1:
  316. teleport the victim to {%{team.%victim%}%spawn}
  317. command "effect %victim% minecraft:resistance 3 5 true"
  318. command "effect %victim% minecraft:invisibility 3 1 true"
  319. else:
  320. loop all players:
  321. if {team.%loop-player%} is {team.%victim%}:
  322. if {died.%loop-player%} is false:
  323. add loop-player to {respawn::*}
  324. set {size} to size of {respawn::*}
  325. if {size} >= 1:
  326. set {temp} to a random integer between 1 and {size}
  327. teleport the victim to {respawn::%{temp}%}
  328. command "effect %victim% minecraft:resistance 1 5 true"
  329. command "effect %victim% minecraft:invisibility 1 1 true"
  330. delete {respawn::*}
  331. else:
  332. teleport the victim to {%{team.%victim%}%spawn}
  333. set the victim's gamemode to survival
  334. set {died.%victim%} to false
  335.  
  336. #==================================================[ 仕様 ]==================================================#
  337.  
  338. on food bar change:
  339. set player's food level to 10
  340.  
  341. on craft:
  342. cancel event
  343.  
  344. on damage of player:
  345. if {game} is true:
  346. if {team.%attacker%} == {team.%victim%}:
  347. cancel event
  348. else:
  349. send subtitle "&f&l^" to attacker for 5 ticks with fadein 0 tick and fadeout 5 tick
  350. else:
  351. cancel event
  352.  
  353. #==================================================[ 参加・離脱したとき ]==================================================#
  354.  
  355. on first join:
  356. set {kill.%uuid of player%} to 0
  357. set {death.%uuid of player%} to 0
  358. set {killdeath.%uuid of player%} to 0
  359. set {win.%uuid of player%} to 0
  360. set {lose.%uuid of player%} to 0
  361. set {winlose.%uuid of player%} to 0
  362. set {level.%uuid of player%} to 1
  363. set {xp.%uuid of player%} to 0
  364. set {needxp.%uuid of player%} to 10
  365. set {coin.%uuid of player%} to 0
  366. set {weapon.%player%} to "ak12"
  367. set {died.%player%} to false
  368.  
  369. on join:
  370. command "clear %player%"
  371. command "tp %player% %{cmdlobby}% 0 0"
  372. set the player's tablist name to "&7[Lv%{level.%uuid of player%}%]&f%player%"
  373. if {game} is false:
  374. give grey dye named "&eゲームに参加する" to player
  375. give ender chest named "&a武器選択" to player
  376.  
  377. on quit:
  378. command "scoreboard teams leave %player%"
  379. remove 1 from {%{team.%player%}%}
  380. delete {team.%player%}
  381. delete {teamchat.%player%}
  382. set {died.%player%} to false
  383. if {red} == 0:
  384. if {blue} == 0:
  385. command "scoreboard teams empty red"
  386. command "scoreboard teams empty blue"
  387. set {game} to false
  388. set {button} to true
  389. broadcast "&a試合が終了しました"
  390. loop all players:
  391. give grey dye named "&eゲームに参加する" to loop-player
  392. else:
  393. loop all players:
  394. if {team.%loop-player%} is "blue":
  395. send subtitle "&c敵チームが全員抜けました" to loop-player for 3 seconds with fadein 0 tick and fadeout 20 tick
  396. else:
  397. if {blue} == 0:
  398. loop all players:
  399. if {team.%loop-player%} is "red":
  400. send subtitle "&c敵チームが全員抜けました" to loop-player for 3 seconds with fadein 0 tick and fadeout 20 tick
  401.  
  402. #==================================================[ 時間計測 ]==================================================#
  403.  
  404. every a second:
  405. if {game} is true:
  406. remove 1 from {seconds}
  407. if {seconds} < 0:
  408. if {minutes} <= 0:
  409. if {redpoint} > {bluepoint}:
  410. redwin()
  411. else if {bluepoint} > {redpoint}:
  412. bluewin()
  413. else if {bluepoint} == {redpoint}:
  414. draw()
  415. else:
  416. add 60 to {seconds}
  417. remove 1 from {minutes}
  418. loop all players:
  419. if {team.%loop-player%} is "red":
  420. send action bar "&c%{redpoint}% &f- &9%{bluepoint}% &8| &f%{minutes}%:%{seconds}%" to loop-player
  421. else if {team.%loop-player%} is "blue":
  422. send action bar "&9%{bluepoint}% &f- &c%{redpoint}% &8| &f%{minutes}%:%{seconds}%" to loop-player
  423.  
  424. #==================================================[ 武器選択GUI ]==================================================#
  425.  
  426. on click:
  427. if player is holding ender chest named "&a武器選択":
  428. cancel event
  429. execute player command "weapon fsurbviejmc"
  430.  
  431. command /a:
  432. permission: skript.admin
  433. trigger:
  434. delete {m416.%uuid of player%}
  435. delete {m16a4.%uuid of player%}
  436. delete {ace23.%uuid of player%}
  437. delete {aek971.%uuid of player%}
  438.  
  439. command /coin <text> <offline player>:
  440. permission: skript.admin
  441. trigger:
  442. if arg 1 is "1000":
  443. add 1000 to {coin.%uuid of arg 2%}
  444. if arg 1 is "5000":
  445. add 5000 to {coin.%uuid of arg 2%}
  446. if arg 1 is "10000":
  447. add 10000 to {coin.%uuid of arg 2%}
  448.  
  449. command /weapon <text>:
  450. trigger:
  451. if arg-1 is "fsurbviejmc":
  452. open chest with 6 row named "武器選択" to player
  453. set slot 8 of player's current inventory to nether star named "&e所持金&6%{coin.%uuid of player%}%&eコイン"
  454. loop 9 times:
  455. set {slotnumber} to loop-number + 8
  456. set slot {slotnumber} of player's current inventory to black stained glass pane named " "
  457. if {weapon.%player%} is "ak12":
  458. set slot 4 of player's current inventory to black dye named "&a&lAK-12" with lore "&b選択中"
  459. else if {weapon.%player%} is "m416":
  460. set slot 4 of player's current inventory to red dye named "&a&lM416" with lore "&b選択中"
  461. else if {weapon.%player%} is "m16a4":
  462. set slot 4 of player's current inventory to green dye named "&a&lM16A4" with lore "&b選択中"
  463. else if {weapon.%player%} is "ace23":
  464. set slot 4 of player's current inventory to cocoa beans named "&a&lACE 23" with lore "&b選択中"
  465. else if {weapon.%player%} is "aek971":
  466. set slot 4 of player's current inventory to blue dye named "&a&lAEK-971" with lore "&b選択中"
  467. else if {weapon.%player%} is "cslr4":
  468. set slot 4 of player's current inventory to blue dye named "&a&lCS-LR4" with lore "&b選択中"
  469. else if {weapon.%player%} is "m98b":
  470. set slot 4 of player's current inventory to blue dye named "&a&lM98B" with lore "&b選択中"
  471. else if {weapon.%player%} is "srr61":
  472. set slot 4 of player's current inventory to blue dye named "&a&lSRR-61" with lore "&b選択中"
  473. set slot 18 of player's current inventory to black dye named "&a&lAK-12" with lore "&8Assault" and " " , "&a初期武器" , " " , "&eクリックで選択します"
  474. if {m416.%uuid of player%} is true:
  475. set slot 19 of player's current inventory to red dye named "&a&lM416" with lore "&8Assault" and " " , "&eクリックで選択します"
  476. else:
  477. set slot 19 of player's current inventory to red dye named "&c&lM416" with lore "&8Assault" and " " , "&e必要なコイン: &63000" , "&c解除していません" , " " , "&eクリックで購入します"
  478. if {m16a4.%uuid of player%} is true:
  479. set slot 20 of player's current inventory to green dye named "&a&lM16A4" with lore "&8Assault" and " " , "&eクリックで選択します"
  480. else:
  481. set slot 20 of player's current inventory to green dye named "&c&lM16A4" with lore "&8Assault" and " " , "&e必要なコイン: &65000" , "&c解除していません" , " " , "&eクリックで購入します"
  482. if {ace23.%uuid of player%} is true:
  483. set slot 21 of player's current inventory to cocoa beans named "&a&lACE 23" with lore "&8Assault" and " " , "&eクリックで選択します"
  484. else:
  485. set slot 21 of player's current inventory to cocoa beans named "&c&lACE 23" with lore "&8Assault" and " " , "&e必要なコイン: &67500" , "&c解除していません" , " " , "&eクリックで購入します"
  486. if {aek971.%uuid of player%} is true:
  487. set slot 22 of player's current inventory to blue dye named "&a&lAEK-971" with lore "&8Assault" and " " , "&eクリックで選択します"
  488. else:
  489. set slot 22 of player's current inventory to blue dye named "&c&lAEK-971" with lore "&8Assault" and " " , "&e必要なコイン: &610000" , "&c解除していません" , " " , "&eクリックで購入します"
  490. set slot 27 of player's current inventory to coal named "&a&lCS-LR4" with lore "&8Sniper" and " " , "&a初期武器" , " " , "&eクリックで選択します"
  491. if {m98b.%uuid of player%} is true:
  492. set slot 28 of player's current inventory to charcoal named "&a&lM98B" with lore "&8Sniper" and " " , "&eクリックで選択します"
  493. else:
  494. set slot 28 of player's current inventory to charcoal named "&c&lM98B" with lore "&8Sniper" and " " , "&e必要なコイン: &65000" , "&c解除していません" , " " , "&eクリックで購入します"
  495. if {srr61.%uuid of player%} is true:
  496. set slot 29 of player's current inventory to diamond named "&a&lSRR-61" with lore "&8Sniper" and " " , "&eクリックで選択します"
  497. else:
  498. set slot 29 of player's current inventory to diamond named "&c&lSRR-61" with lore "&8Sniper" and " " , "&e必要なコイン: &610000" , "&c解除していません" , " " , "&eクリックで購入します"
  499.  
  500. on inventory click:
  501. if name of player's current inventory contains "武器選択":
  502. cancel event
  503. if clicked slot is 18:
  504. set {weapon.%player%} to "ak12"
  505. execute player command "weapon fsurbviejmc"
  506. send "&aAK-12を選択しました"
  507. if clicked slot is 19:
  508. if {m416.%uuid of player%} is not set:
  509. if {coin.%uuid of player%} >= 3000:
  510. remove 3000 from {coin.%uuid of player%}
  511. set {m416.%uuid of player%} to true
  512. set {weapon.%player%} to "m416"
  513. execute player command "weapon fsurbviejmc"
  514. send "&eM416を購入しました" to player
  515. else:
  516. send "&cコインが足りません" to player
  517. else:
  518. set {weapon.%player%} to "m416"
  519. execute player command "weapon fsurbviejmc"
  520. send "&aM416を選択しました"
  521. if clicked slot is 20:
  522. if {m16a4.%uuid of player%} is not set:
  523. if {coin.%uuid of player%} >= 5000:
  524. remove 5000 from {coin.%uuid of player%}
  525. set {m16a4.%uuid of player%} to true
  526. set {weapon.%player%} to "m16a4"
  527. execute player command "weapon fsurbviejmc"
  528. send "&eM16A4を購入しました" to player
  529. else:
  530. send "&cコインが足りません" to player
  531. else:
  532. set {weapon.%player%} to "m16a4"
  533. execute player command "weapon fsurbviejmc"
  534. send "&aM16A4を選択しました"
  535. if clicked slot is 21:
  536. if {ace23.%uuid of player%} is not set:
  537. if {coin.%uuid of player%} >= 7500:
  538. remove 7500 from {coin.%uuid of player%}
  539. set {ace23.%uuid of player%} to true
  540. set {weapon.%player%} to "ace23"
  541. execute player command "weapon fsurbviejmc"
  542. send "&eACE 23を購入しました" to player
  543. else:
  544. send "&cコインが足りません" to player
  545. else:
  546. set {weapon.%player%} to "ace23"
  547. execute player command "weapon fsurbviejmc"
  548. send "&aACE 23を選択しました"
  549. if clicked slot is 22:
  550. if {aek971.%uuid of player%} is not set:
  551. if {coin.%uuid of player%} >= 10000:
  552. remove 10000 from {coin.%uuid of player%}
  553. set {aek971.%uuid of player%} to true
  554. set {weapon.%player%} to "aek971"
  555. execute player command "weapon fsurbviejmc"
  556. send "&eAEK-971を購入しました" to player
  557. else:
  558. send "&cコインが足りません" to player
  559. else:
  560. set {weapon.%player%} to "aek971"
  561. execute player command "weapon fsurbviejmc"
  562. send "&aAEK-971を選択しました"
  563. if clicked slot is 27:
  564. set {weapon.%player%} to "cslr4"
  565. execute player command "weapon fsurbviejmc"
  566. send "&aCS-LR4を選択しました"
  567. if clicked slot is 28:
  568. if {m98b.%uuid of player%} is not set:
  569. if {coin.%uuid of player%} >= 5000:
  570. remove 5000 from {coin.%uuid of player%}
  571. set {m98b.%uuid of player%} to true
  572. set {weapon.%player%} to "m98b"
  573. execute player command "weapon fsurbviejmc"
  574. send "&eM98Bを購入しました" to player
  575. else:
  576. send "&cコインが足りません" to player
  577. else:
  578. set {weapon.%player%} to "m98b"
  579. execute player command "weapon fsurbviejmc"
  580. send "&aM98Bを選択しました"
  581. if clicked slot is 29:
  582. if {srr61.%uuid of player%} is not set:
  583. if {coin.%uuid of player%} >= 10000:
  584. remove 10000 from {coin.%uuid of player%}
  585. set {srr61.%uuid of player%} to true
  586. set {weapon.%player%} to "srr61"
  587. execute player command "weapon fsurbviejmc"
  588. send "&eSRR-61を購入しました" to player
  589. else:
  590. send "&cコインが足りません" to player
  591. else:
  592. set {weapon.%player%} to "srr61"
  593. execute player command "weapon fsurbviejmc"
  594. send "&aSRR-61を選択しました"
  595.  
  596. #==================================================[ コマンド ]==================================================#
  597.  
  598. command /leave:
  599. trigger:
  600. if {game} is true:
  601. command "scoreboard teams leave %player%"
  602. remove 1 from {%{team.%player%}%}
  603. close player's inventory
  604. command "clear %player%"
  605. give ender chest named "&a武器選択" to player
  606. teleport the player to {lobby}
  607. set the player's gamemode to adventure
  608. set the player's tablist name to "&7[Lv%{level.%uuid of player%}%]&f%player%"
  609. set health of player to max health of player
  610. delete {team.%player%}
  611. delete {teamchat.%player%}
  612. set {died.%player%} to false
  613. send "&c試合から抜けました"
  614. if {red} == 0:
  615. if {blue} == 0:
  616. loop all players:
  617. give grey dye named "&eゲームに参加する" to loop-player
  618. set {game} to false
  619. set {button} to true
  620. broadcast "&a試合が終了しました"
  621. else:
  622. loop all players:
  623. if {team.%loop-player%} is "blue":
  624. send subtitle "&c敵チームが全員抜けました" to loop-player for 3 seconds with fadein 0 tick and fadeout 20 tick
  625. else:
  626. if {blue} == 0:
  627. loop all players:
  628. if {team.%loop-player%} is "red":
  629. send subtitle "&c敵チームが全員抜けました" to loop-player for 3 seconds with fadein 0 tick and fadeout 20 tick
  630. else:
  631. send "&c試合に参加していません"
  632.  
  633. command /stats [<offline player>]:
  634. trigger:
  635. if arg 1 is not set:
  636. send "&6-----< &b%player% &6>-----"
  637. set {killdeath.%uuid of player%} to {kill.%uuid of player%} / {death.%uuid of player%}
  638. set {winlose.%uuid of player%} to {win.%uuid of player%} / {lose.%uuid of player%}
  639. send " &alevel: &e%{level.%uuid of player%}%" to player
  640. send " &axp: &e%{xp.%uuid of player%}%&7/%{needxp.%uuid of player%}%" to player
  641. send " "
  642. send " &akill: &e%{kill.%uuid of player%}%" to player
  643. send " &adeath: &e%{death.%uuid of player%}%" to player
  644. send " &aK/D: &e%{killdeath.%uuid of player%}%" to player
  645. else:
  646. send "&6-----< &b%arg 1% &6>-----"
  647. set {killdeath.%uuid of arg 1%} to {kill.%uuid of arg 1%} / {death.%uuid of arg 1%}
  648. set {winlose.%uuid of arg 1%} to {win.%uuid of arg 1%} / {lose.%uuid of arg 1%}
  649. send " &alevel: &e%{level.%uuid of arg 1%}%" to player
  650. send " &axp: &e%{xp.%uuid of arg 1%}%&7/%{needxp.%uuid of arg 1%}%" to player
  651. send " "
  652. send " &akill: &e%{kill.%uuid of arg 1%}%" to player
  653. send " &adeath: &e%{death.%uuid of arg 1%}%" to player
  654. send " &aK/D: &e%{killdeath.%uuid of arg 1%}%" to player
  655.  
  656. #==================================================[ その他 ]==================================================#
  657.  
  658. every 3 seconds:
  659. loop all players:
  660. if {xp.%uuid of loop-player%} >= {needxp.%uuid of loop-player%}:
  661. set {xp.%uuid of loop-player%} to {xp.%uuid of loop-player%} - {needxp.%uuid of loop-player%}
  662. add 1 to {level.%uuid of loop-player%}
  663. set {needxp.%uuid of loop-player%} to {needxp.%uuid of loop-player%} * 1.2
  664. send "&b&lレベルアップ!! &a現在のレベル&7: &e%{level.%uuid of loop-player%}%" to loop-player
  665. set the loop-player's tablist name to "&7[Lv%{level.%uuid of loop-player%}%]&r%loop-player%"
  666.  
  667. on chat:
  668. cancel event
  669. if {mutelist::*} contains player:
  670. send "&cあなたはミュートされているため、発言することができません。" to player
  671. stop
  672. else if {spam.%player's UUID%} is coloured message:
  673. send "&6---------------------------" to player
  674. send " &c&l同じメッセージを送信できません" to player
  675. send "&6---------------------------" to player
  676. stop
  677. else if {team.%player%} is set:
  678. set {spam.%player's UUID%} to coloured message
  679. broadcast "&7[Lv%{level.%uuid of player%}%]%{teamchat.%player%}%%player%&e》&r%coloured message%"
  680. else:
  681. set {spam.%player's UUID%} to coloured message
  682. broadcast "&7[Lv%{level.%uuid of player%}%]&f%player%&e》&r%coloured message%"
  683.  
  684. command /chat [<text>] [<offline player>] [<text>]:
  685. permission: skript.admin
  686. usage: /chat <prefix|suffix|mute|unmute> <player> <text>
  687. trigger:
  688. if arg 1 is "mute":
  689. if {mutelist::*} contains arg 2:
  690. send "&c%arg 2%さんはすでにミュートされています。"
  691. stop
  692. send "&e%arg 2%さんが%sender%さんにミュートされました。" to ops
  693. send "&e理由:%coloured arg 3%" to ops
  694. add arg 2 to {mutelist::*}
  695. stop
  696. if arg 1 is "unmute":
  697. if {mutelist::*} contains arg 2:
  698. send "&a%arg 2%さんが%sender%さんにミュート解除されました。" to ops
  699. send "&a理由:%coloured arg 3%" to ops
  700. remove arg 2 from {mutelist::*}
  701. stop
  702. send "&c%arg 2%さんはミュートされていません。" to player
  703. stop
  704.  
  705. command /mutelist [<offline player>]:
  706. permission: skript.admin
  707. trigger:
  708. if arg 1 is not set:
  709. send "&d次のプレイヤーがミュートされています:"
  710. send "%{mutelist::*}%"
  711. stop
  712. if {mutelist::*} contains arg 1:
  713. send "&d対象のプレイヤーはミュートされています。"
  714. stop
  715. send "&b対象のプレイヤーはミュートされていません。"
  716.  
  717. on click:
  718. if player is holding lime dye named "&cゲームを抜ける":
  719. cancel event
  720. remove lime dye named "&cゲームを抜ける" from player
  721. set {join.%player%} to false
  722. send "&cゲームを抜けました"
  723. wait 5 ticks
  724. give grey dye named "&eゲームに参加する" to player
  725.  
  726. on click:
  727. if player is holding grey dye named "&eゲームに参加する":
  728. cancel event
  729. remove grey dye named "&eゲームに参加する" from player
  730. set {join.%player%} to true
  731. send "&eゲームに参加しました" to player
  732. wait 5 ticks
  733. give lime dye named "&cゲームを抜ける" to player
  734.  
  735. command /dye:
  736. permission: skript.admin
  737. trigger:
  738. give grey dye named "&eゲームに参加する" to player
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement