Advertisement
taktie0304

Untitled

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