taktie0304

Untitled

Sep 7th, 2019
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 30.04 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. set slot 18 of player's current inventory to black dye named "&a&lAK-12" with lore "&8Assault" and " " , "&a初期武器" , " " , "&eクリックで選択します"
  468. if {m416.%uuid of player%} is true:
  469. set slot 19 of player's current inventory to red dye named "&a&lM416" with lore "&8Assault" and " " , "&eクリックで選択します"
  470. else:
  471. set slot 19 of player's current inventory to red dye named "&c&lM416" with lore "&8Assault" and " " , "&e必要なコイン: &67500" , "&c解除していません" , " " , "&eクリックで購入します"
  472. if {m16a4.%uuid of player%} is true:
  473. set slot 20 of player's current inventory to green dye named "&a&lM16A4" with lore "&8Assault" and " " , "&eクリックで選択します"
  474. else:
  475. set slot 20 of player's current inventory to green dye named "&c&lM16A4" with lore "&8Assault" and " " , "&e必要なコイン: &67500" , "&c解除していません" , " " , "&eクリックで購入します"
  476. if {ace23.%uuid of player%} is true:
  477. set slot 21 of player's current inventory to cocoa beans named "&a&lACE 23" with lore "&8Assault" and " " , "&eクリックで選択します"
  478. else:
  479. set slot 21 of player's current inventory to cocoa beans named "&c&lACE 23" with lore "&8Assault" and " " , "&e必要なコイン: &610000" , "&c解除していません" , " " , "&eクリックで購入します"
  480. if {aek971.%uuid of player%} is true:
  481. set slot 22 of player's current inventory to blue dye named "&a&lAEK-971" with lore "&8Assault" and " " , "&eクリックで選択します"
  482. else:
  483. set slot 22 of player's current inventory to blue dye named "&c&lAEK-971" with lore "&8Assault" and " " , "&e必要なコイン: &615000" , "&c解除していません" , " " , "&eクリックで購入します"
  484.  
  485. on inventory click:
  486. if name of player's current inventory contains "武器選択":
  487. cancel event
  488. if clicked slot is 18:
  489. set {weapon.%player%} to "ak12"
  490. execute player command "weapon fsurbviejmc"
  491. send "&aAK-12を選択しました"
  492. if clicked slot is 19:
  493. if {m416.%uuid of player%} is not set:
  494. if {coin.%uuid of player%} >= 7500:
  495. remove 7500 from {coin.%uuid of player%}
  496. set {m416.%uuid of player%} to true
  497. set {weapon.%player%} to "m416"
  498. execute player command "weapon fsurbviejmc"
  499. send "&eM416を購入しました" to player
  500. else:
  501. send "&cコインが足りません" to player
  502. else:
  503. set {weapon.%player%} to "m416"
  504. execute player command "weapon fsurbviejmc"
  505. send "&aM416を選択しました"
  506. if clicked slot is 20:
  507. if {m16a4.%uuid of player%} is not set:
  508. if {coin.%uuid of player%} >= 7500:
  509. remove 7500 from {coin.%uuid of player%}
  510. set {m16a4.%uuid of player%} to true
  511. set {weapon.%player%} to "m16a4"
  512. execute player command "weapon fsurbviejmc"
  513. send "&eM16A4を購入しました" to player
  514. else:
  515. send "&cコインが足りません" to player
  516. else:
  517. set {weapon.%player%} to "m16a4"
  518. execute player command "weapon fsurbviejmc"
  519. send "&aM16A4を選択しました"
  520. if clicked slot is 21:
  521. if {ace23.%uuid of player%} is not set:
  522. if {coin.%uuid of player%} >= 10000:
  523. remove 10000 from {coin.%uuid of player%}
  524. set {ace23.%uuid of player%} to true
  525. set {weapon.%player%} to "ace23"
  526. execute player command "weapon fsurbviejmc"
  527. send "&eACE 23を購入しました" to player
  528. else:
  529. send "&cコインが足りません" to player
  530. else:
  531. set {weapon.%player%} to "ace23"
  532. execute player command "weapon fsurbviejmc"
  533. send "&aACE 23を選択しました"
  534. if clicked slot is 22:
  535. if {aek971.%uuid of player%} is not set:
  536. if {coin.%uuid of player%} >= 15000:
  537. remove 15000 from {coin.%uuid of player%}
  538. set {aek971.%uuid of player%} to true
  539. set {weapon.%player%} to "aek971"
  540. execute player command "weapon fsurbviejmc"
  541. send "&eAEK-971を購入しました" to player
  542. else:
  543. send "&cコインが足りません" to player
  544. else:
  545. set {weapon.%player%} to "aek971"
  546. execute player command "weapon fsurbviejmc"
  547. send "&aAEK-971を選択しました"
  548.  
  549. #==================================================[ コマンド ]==================================================#
  550.  
  551. command /leave:
  552. trigger:
  553. if {game} is true:
  554. command "scoreboard teams leave %player%"
  555. remove 1 from {%{team.%player%}%}
  556. close player's inventory
  557. command "clear %player%"
  558. give ender chest named "&a武器選択" to player
  559. teleport the player to {lobby}
  560. set the player's gamemode to adventure
  561. set the player's tablist name to "&7[Lv%{level.%uuid of player%}%]&f%player%"
  562. set health of player to max health of loop-player
  563. delete {team.%player%}
  564. delete {teamchat.%player%}
  565. set {died.%player%} to false
  566. send "&c試合から抜けました"
  567. if {red} == 0:
  568. if {blue} == 0:
  569. loop all players:
  570. give grey dye named "&eゲームに参加する" to loop-player
  571. set {game} to false
  572. set {button} to true
  573. broadcast "&a試合が終了しました"
  574. else:
  575. loop all players:
  576. if {team.%loop-player%} is "blue":
  577. send subtitle "&c敵チームが全員抜けました" to loop-player for 3 seconds with fadein 0 tick and fadeout 20 tick
  578. else:
  579. if {blue} == 0:
  580. loop all players:
  581. if {team.%loop-player%} is "red":
  582. send subtitle "&c敵チームが全員抜けました" to loop-player for 3 seconds with fadein 0 tick and fadeout 20 tick
  583. else:
  584. send "&c試合に参加していません"
  585.  
  586. command /stats [<offline player>]:
  587. trigger:
  588. if arg 1 is not set:
  589. send "&6-----< &b%player% &6>-----"
  590. set {killdeath.%uuid of player%} to {kill.%uuid of player%} / {death.%uuid of player%}
  591. set {winlose.%uuid of player%} to {win.%uuid of player%} / {lose.%uuid of player%}
  592. send " &alevel: &e%{level.%uuid of player%}%" to player
  593. send " &axp: &e%{xp.%uuid of player%}%&7/%{needxp.%uuid of player%}%" to player
  594. send " "
  595. send " &akill: &e%{kill.%uuid of player%}%" to player
  596. send " &adeath: &e%{death.%uuid of player%}%" to player
  597. send " &aK/D: &e%{killdeath.%uuid of player%}%" to player
  598. else:
  599. send "&6-----< &b%arg 1% &6>-----"
  600. set {killdeath.%uuid of arg 1%} to {kill.%uuid of arg 1%} / {death.%uuid of arg 1%}
  601. set {winlose.%uuid of arg 1%} to {win.%uuid of arg 1%} / {lose.%uuid of arg 1%}
  602. send " &alevel: &e%{level.%uuid of arg 1%}%" to player
  603. send " &axp: &e%{xp.%uuid of arg 1%}%&7/%{needxp.%uuid of arg 1%}%" to player
  604. send " "
  605. send " &akill: &e%{kill.%uuid of arg 1%}%" to player
  606. send " &adeath: &e%{death.%uuid of arg 1%}%" to player
  607. send " &aK/D: &e%{killdeath.%uuid of arg 1%}%" to player
  608.  
  609. #==================================================[ その他 ]==================================================#
  610.  
  611. every 3 seconds:
  612. loop all players:
  613. if {xp.%uuid of loop-player%} >= {needxp.%uuid of loop-player%}:
  614. set {xp.%uuid of loop-player%} to {xp.%uuid of loop-player%} - {needxp.%uuid of loop-player%}
  615. add 1 to {level.%uuid of loop-player%}
  616. set {needxp.%uuid of loop-player%} to {needxp.%uuid of loop-player%} * 1.2
  617. send "&b&lレベルアップ!! &a現在のレベル&7: &e%{level.%uuid of loop-player%}%" to loop-player
  618. set the loop-player's tablist name to "&7[Lv%{level.%uuid of loop-player%}%]&r%loop-player%"
  619.  
  620. on chat:
  621. cancel event
  622. if {mutelist::*} contains player:
  623. send "&cあなたはミュートされているため、発言することができません。" to player
  624. stop
  625. else if {spam.%player's UUID%} is coloured message:
  626. send "&6---------------------------" to player
  627. send " &c&l同じメッセージを送信できません" to player
  628. send "&6---------------------------" to player
  629. stop
  630. else if {team.%player%} is set:
  631. set {spam.%player's UUID%} to coloured message
  632. broadcast "&7[Lv%{level.%uuid of player%}%]%{teamchat.%player%}%%player%&e》&r%coloured message%"
  633. else:
  634. set {spam.%player's UUID%} to coloured message
  635. broadcast "&7[Lv%{level.%uuid of player%}%]&f%player%&e》&r%coloured message%"
  636.  
  637. command /chat [<text>] [<offline player>] [<text>]:
  638. permission: skript.admin
  639. usage: /chat <prefix|suffix|mute|unmute> <player> <text>
  640. trigger:
  641. if arg 1 is "mute":
  642. if {mutelist::*} contains arg 2:
  643. send "&c%arg 2%さんはすでにミュートされています。"
  644. stop
  645. send "&e%arg 2%さんが%sender%さんにミュートされました。" to ops
  646. send "&e理由:%coloured arg 3%" to ops
  647. add arg 2 to {mutelist::*}
  648. stop
  649. if arg 1 is "unmute":
  650. if {mutelist::*} contains arg 2:
  651. send "&a%arg 2%さんが%sender%さんにミュート解除されました。" to ops
  652. send "&a理由:%coloured arg 3%" to ops
  653. remove arg 2 from {mutelist::*}
  654. stop
  655. send "&c%arg 2%さんはミュートされていません。" to player
  656. stop
  657.  
  658. command /mutelist [<offline player>]:
  659. permission: skript.admin
  660. trigger:
  661. if arg 1 is not set:
  662. send "&d次のプレイヤーがミュートされています:"
  663. send "%{mutelist::*}%"
  664. stop
  665. if {mutelist::*} contains arg 1:
  666. send "&d対象のプレイヤーはミュートされています。"
  667. stop
  668. send "&b対象のプレイヤーはミュートされていません。"
  669.  
  670. on click:
  671. if player is holding lime dye named "&cゲームを抜ける":
  672. cancel event
  673. remove lime dye named "&cゲームを抜ける" from player
  674. set {join.%player%} to false
  675. send "&cゲームを抜けました"
  676. wait 5 ticks
  677. give grey dye named "&eゲームに参加する" to player
  678.  
  679. on click:
  680. if player is holding grey dye named "&eゲームに参加する":
  681. cancel event
  682. remove grey dye named "&eゲームに参加する" from player
  683. set {join.%player%} to true
  684. send "&eゲームに参加しました" to player
  685. wait 5 ticks
  686. give lime dye named "&cゲームを抜ける" to player
  687.  
  688. command /dye:
  689. permission: skript.admin
  690. trigger:
  691. give grey dye named "&eゲームに参加する" to player
Add Comment
Please, Sign In to add comment