Advertisement
taktie0304

Untitled

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