Advertisement
taktie0304

Untitled

Sep 7th, 2019
214
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 39.39 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. set the player's tablist name to "&7[Lv%{level.%uuid of player%}%]&f%player%"
  378. if {game} is false:
  379. give grey dye named "&eゲームに参加する" to player
  380. give ender chest named "&a武器選択" to player
  381.  
  382. on quit:
  383. command "scoreboard teams leave %player%"
  384. remove 1 from {%{team.%player%}%}
  385. delete {team.%player%}
  386. delete {teamchat.%player%}
  387. set {died.%player%} to false
  388. if {red} == 0:
  389. if {blue} == 0:
  390. command "scoreboard teams empty red"
  391. command "scoreboard teams empty blue"
  392. set {game} to false
  393. set {button} to true
  394. broadcast "&a試合が終了しました"
  395. loop all players:
  396. give grey dye named "&eゲームに参加する" to loop-player
  397. else:
  398. loop all players:
  399. if {team.%loop-player%} is "blue":
  400. send subtitle "&c敵チームが全員抜けました" to loop-player for 3 seconds with fadein 0 tick and fadeout 20 tick
  401. else:
  402. if {blue} == 0:
  403. loop all players:
  404. if {team.%loop-player%} is "red":
  405. send subtitle "&c敵チームが全員抜けました" to loop-player for 3 seconds with fadein 0 tick and fadeout 20 tick
  406.  
  407. #==================================================[ 時間計測 ]==================================================#
  408.  
  409. every a second:
  410. if {game} is true:
  411. remove 1 from {seconds}
  412. if {seconds} < 0:
  413. if {minutes} <= 0:
  414. if {redpoint} > {bluepoint}:
  415. redwin()
  416. else if {bluepoint} > {redpoint}:
  417. bluewin()
  418. else if {bluepoint} == {redpoint}:
  419. draw()
  420. else:
  421. add 60 to {seconds}
  422. remove 1 from {minutes}
  423. loop all players:
  424. if {team.%loop-player%} is "red":
  425. send action bar "&c%{redpoint}% &f- &9%{bluepoint}% &8| &f%{minutes}%:%{seconds}%" to loop-player
  426. else if {team.%loop-player%} is "blue":
  427. send action bar "&9%{bluepoint}% &f- &c%{redpoint}% &8| &f%{minutes}%:%{seconds}%" to loop-player
  428.  
  429. #==================================================[ 武器選択GUI ]==================================================#
  430.  
  431. on click:
  432. if player is holding ender chest named "&a武器選択":
  433. cancel event
  434. execute player command "weapon fsurbviejmc"
  435.  
  436. command /coin <text> <offline player>:
  437. permission: skript.admin
  438. trigger:
  439. if arg 1 is "1000":
  440. add 1000 to {coin.%uuid of arg 2%}
  441. if arg 1 is "5000":
  442. add 5000 to {coin.%uuid of arg 2%}
  443. if arg 1 is "10000":
  444. add 10000 to {coin.%uuid of arg 2%}
  445.  
  446. command /weapon <text>:
  447. trigger:
  448. if arg-1 is "fsurbviejmc":
  449. open chest with 6 row named "武器選択" to player
  450. set slot 8 of player's current inventory to nether star named "&e所持金&6%{coin.%uuid of player%}%&eコイン"
  451. loop 9 times:
  452. set {slotnumber} to loop-number + 8
  453. set slot {slotnumber} of player's current inventory to black stained glass pane named " "
  454. if {weapon.%player%} is "ak12":
  455. set slot 4 of player's current inventory to black dye named "&a&lAK-12" with lore "&b選択中"
  456. else if {weapon.%player%} is "m416":
  457. set slot 4 of player's current inventory to red dye named "&a&lM416" with lore "&b選択中"
  458. else if {weapon.%player%} is "m16a4":
  459. set slot 4 of player's current inventory to green dye named "&a&lM16A4" with lore "&b選択中"
  460. else if {weapon.%player%} is "ace23":
  461. set slot 4 of player's current inventory to cocoa beans named "&a&lACE 23" with lore "&b選択中"
  462. else if {weapon.%player%} is "aek971":
  463. set slot 4 of player's current inventory to blue dye named "&a&lAEK-971" with lore "&b選択中"
  464. else if {weapon.%player%} is "cslr4":
  465. set slot 4 of player's current inventory to coal named "&a&lCS-LR4" with lore "&b選択中"
  466. else if {weapon.%player%} is "m98b":
  467. set slot 4 of player's current inventory to charcoal named "&a&lM98B" with lore "&b選択中"
  468. else if {weapon.%player%} is "srr61":
  469. set slot 4 of player's current inventory to diamond named "&a&lSRR-61" with lore "&b選択中"
  470. set slot 18 of player's current inventory to black dye named "&a&lAK-12" with lore "&8Assault" and " " , "&a初期武器" , " " , "&eクリックで選択します"
  471. if {m416.%uuid of player%} is true:
  472. set slot 19 of player's current inventory to red dye named "&a&lM416" with lore "&8Assault" and " " , "&eクリックで選択します"
  473. else:
  474. set slot 19 of player's current inventory to red dye named "&c&lM416" with lore "&8Assault" and " " , "&e必要なコイン: &63000" , "&c解除していません" , " " , "&eクリックで購入します"
  475. if {m16a4.%uuid of player%} is true:
  476. set slot 20 of player's current inventory to green dye named "&a&lM16A4" with lore "&8Assault" and " " , "&eクリックで選択します"
  477. else:
  478. set slot 20 of player's current inventory to green dye named "&c&lM16A4" with lore "&8Assault" and " " , "&e必要なコイン: &65000" , "&c解除していません" , " " , "&eクリックで購入します"
  479. if {ace23.%uuid of player%} is true:
  480. set slot 21 of player's current inventory to cocoa beans named "&a&lACE 23" with lore "&8Assault" and " " , "&eクリックで選択します"
  481. else:
  482. set slot 21 of player's current inventory to cocoa beans named "&c&lACE 23" with lore "&8Assault" and " " , "&e必要なコイン: &67500" , "&c解除していません" , " " , "&eクリックで購入します"
  483. if {aek971.%uuid of player%} is true:
  484. set slot 22 of player's current inventory to blue dye named "&a&lAEK-971" with lore "&8Assault" and " " , "&eクリックで選択します"
  485. else:
  486. set slot 22 of player's current inventory to blue dye named "&c&lAEK-971" with lore "&8Assault" and " " , "&e必要なコイン: &610000" , "&c解除していません" , " " , "&eクリックで購入します"
  487. set slot 27 of player's current inventory to coal named "&a&lCS-LR4" with lore "&8Sniper" and " " , "&a初期武器" , " " , "&eクリックで選択します"
  488. if {m98b.%uuid of player%} is true:
  489. set slot 28 of player's current inventory to charcoal named "&a&lM98B" with lore "&8Sniper" and " " , "&eクリックで選択します"
  490. else:
  491. set slot 28 of player's current inventory to charcoal named "&c&lM98B" with lore "&8Sniper" and " " , "&e必要なコイン: &65000" , "&c解除していません" , " " , "&eクリックで購入します"
  492. if {srr61.%uuid of player%} is true:
  493. set slot 29 of player's current inventory to diamond named "&a&lSRR-61" with lore "&8Sniper" and " " , "&eクリックで選択します"
  494. else:
  495. set slot 29 of player's current inventory to diamond named "&c&lSRR-61" with lore "&8Sniper" and " " , "&e必要なコイン: &610000" , "&c解除していません" , " " , "&eクリックで購入します"
  496.  
  497. on inventory click:
  498. if name of player's current inventory contains "武器選択":
  499. cancel event
  500. if clicked slot is 18:
  501. set {weapon.%player%} to "ak12"
  502. execute player command "weapon fsurbviejmc"
  503. send "&aAK-12を選択しました"
  504. if clicked slot is 19:
  505. if {m416.%uuid of player%} is not set:
  506. if {coin.%uuid of player%} >= 3000:
  507. remove 3000 from {coin.%uuid of player%}
  508. set {m416.%uuid of player%} to true
  509. set {weapon.%player%} to "m416"
  510. execute player command "weapon fsurbviejmc"
  511. send "&eM416を購入しました" to player
  512. else:
  513. send "&cコインが足りません" to player
  514. else:
  515. set {weapon.%player%} to "m416"
  516. execute player command "weapon fsurbviejmc"
  517. send "&aM416を選択しました"
  518. if clicked slot is 20:
  519. if {m16a4.%uuid of player%} is not set:
  520. if {coin.%uuid of player%} >= 5000:
  521. remove 5000 from {coin.%uuid of player%}
  522. set {m16a4.%uuid of player%} to true
  523. set {weapon.%player%} to "m16a4"
  524. execute player command "weapon fsurbviejmc"
  525. send "&eM16A4を購入しました" to player
  526. else:
  527. send "&cコインが足りません" to player
  528. else:
  529. set {weapon.%player%} to "m16a4"
  530. execute player command "weapon fsurbviejmc"
  531. send "&aM16A4を選択しました"
  532. if clicked slot is 21:
  533. if {ace23.%uuid of player%} is not set:
  534. if {coin.%uuid of player%} >= 7500:
  535. remove 7500 from {coin.%uuid of player%}
  536. set {ace23.%uuid of player%} to true
  537. set {weapon.%player%} to "ace23"
  538. execute player command "weapon fsurbviejmc"
  539. send "&eACE 23を購入しました" to player
  540. else:
  541. send "&cコインが足りません" to player
  542. else:
  543. set {weapon.%player%} to "ace23"
  544. execute player command "weapon fsurbviejmc"
  545. send "&aACE 23を選択しました"
  546. if clicked slot is 22:
  547. if {aek971.%uuid of player%} is not set:
  548. if {coin.%uuid of player%} >= 10000:
  549. remove 10000 from {coin.%uuid of player%}
  550. set {aek971.%uuid of player%} to true
  551. set {weapon.%player%} to "aek971"
  552. execute player command "weapon fsurbviejmc"
  553. send "&eAEK-971を購入しました" to player
  554. else:
  555. send "&cコインが足りません" to player
  556. else:
  557. set {weapon.%player%} to "aek971"
  558. execute player command "weapon fsurbviejmc"
  559. send "&aAEK-971を選択しました"
  560. if clicked slot is 27:
  561. set {weapon.%player%} to "cslr4"
  562. execute player command "weapon fsurbviejmc"
  563. send "&aCS-LR4を選択しました"
  564. if clicked slot is 28:
  565. if {m98b.%uuid of player%} is not set:
  566. if {coin.%uuid of player%} >= 5000:
  567. remove 5000 from {coin.%uuid of player%}
  568. set {m98b.%uuid of player%} to true
  569. set {weapon.%player%} to "m98b"
  570. execute player command "weapon fsurbviejmc"
  571. send "&eM98Bを購入しました" to player
  572. else:
  573. send "&cコインが足りません" to player
  574. else:
  575. set {weapon.%player%} to "m98b"
  576. execute player command "weapon fsurbviejmc"
  577. send "&aM98Bを選択しました"
  578. if clicked slot is 29:
  579. if {srr61.%uuid of player%} is not set:
  580. if {coin.%uuid of player%} >= 10000:
  581. remove 10000 from {coin.%uuid of player%}
  582. set {srr61.%uuid of player%} to true
  583. set {weapon.%player%} to "srr61"
  584. execute player command "weapon fsurbviejmc"
  585. send "&eSRR-61を購入しました" to player
  586. else:
  587. send "&cコインが足りません" to player
  588. else:
  589. set {weapon.%player%} to "srr61"
  590. execute player command "weapon fsurbviejmc"
  591. send "&aSRR-61を選択しました"
  592.  
  593. #==================================================[ コマンド ]==================================================#
  594.  
  595. command /leave:
  596. trigger:
  597. if {game} is true:
  598. command "scoreboard teams leave %player%"
  599. remove 1 from {%{team.%player%}%}
  600. close player's inventory
  601. command "clear %player%"
  602. give ender chest named "&a武器選択" to player
  603. teleport the player to {lobby}
  604. set the player's gamemode to adventure
  605. set the player's tablist name to "&7[Lv%{level.%uuid of player%}%]&f%player%"
  606. set health of player to max health of player
  607. delete {team.%player%}
  608. delete {teamchat.%player%}
  609. set {died.%player%} to false
  610. send "&c試合から抜けました"
  611. if {red} == 0:
  612. if {blue} == 0:
  613. loop all players:
  614. give grey dye named "&eゲームに参加する" to loop-player
  615. set {game} to false
  616. set {button} to true
  617. broadcast "&a試合が終了しました"
  618. else:
  619. loop all players:
  620. if {team.%loop-player%} is "blue":
  621. send subtitle "&c敵チームが全員抜けました" to loop-player for 3 seconds with fadein 0 tick and fadeout 20 tick
  622. else:
  623. if {blue} == 0:
  624. loop all players:
  625. if {team.%loop-player%} is "red":
  626. send subtitle "&c敵チームが全員抜けました" to loop-player for 3 seconds with fadein 0 tick and fadeout 20 tick
  627. else:
  628. send "&c試合に参加していません"
  629.  
  630. command /stats [<offline player>]:
  631. trigger:
  632. if arg 1 is not set:
  633. send "&6-----< &b%player% &6>-----"
  634. set {killdeath.%uuid of player%} to {kill.%uuid of player%} / {death.%uuid of player%}
  635. set {winlose.%uuid of player%} to {win.%uuid of player%} / {lose.%uuid of player%}
  636. send " &alevel: &e%{level.%uuid of player%}%" to player
  637. send " &axp: &e%{xp.%uuid of player%}%&7/%{needxp.%uuid of player%}%" to player
  638. send " "
  639. send " &akill: &e%{kill.%uuid of player%}%" to player
  640. send " &adeath: &e%{death.%uuid of player%}%" to player
  641. send " &aK/D: &e%{killdeath.%uuid of player%}%" to player
  642. else:
  643. send "&6-----< &b%arg 1% &6>-----"
  644. set {killdeath.%uuid of arg 1%} to {kill.%uuid of arg 1%} / {death.%uuid of arg 1%}
  645. set {winlose.%uuid of arg 1%} to {win.%uuid of arg 1%} / {lose.%uuid of arg 1%}
  646. send " &alevel: &e%{level.%uuid of arg 1%}%" to player
  647. send " &axp: &e%{xp.%uuid of arg 1%}%&7/%{needxp.%uuid of arg 1%}%" to player
  648. send " "
  649. send " &akill: &e%{kill.%uuid of arg 1%}%" to player
  650. send " &adeath: &e%{death.%uuid of arg 1%}%" to player
  651. send " &aK/D: &e%{killdeath.%uuid of arg 1%}%" to player
  652.  
  653. #==================================================[ その他 ]==================================================#
  654.  
  655. every 3 seconds:
  656. loop all players:
  657. if {xp.%uuid of loop-player%} >= {needxp.%uuid of loop-player%}:
  658. set {xp.%uuid of loop-player%} to {xp.%uuid of loop-player%} - {needxp.%uuid of loop-player%}
  659. add 1 to {level.%uuid of loop-player%}
  660. set {needxp.%uuid of loop-player%} to {needxp.%uuid of loop-player%} * 1.2
  661. send "&b&lレベルアップ!! &a現在のレベル&7: &e%{level.%uuid of loop-player%}%" to loop-player
  662. if {game} is true:
  663. set the loop-player's tablist name to "&7[Lv%{level.%uuid of loop-player%}%]%{teamchat.%loop-player%}%%loop-player%"
  664. else:
  665. set the loop-player's tablist name to "&7[Lv%{level.%uuid of loop-player%}%]&r%loop-player%"
  666.  
  667. on chat:
  668. cancel event
  669. if {mutelist::*} contains player:
  670. send "&cあなたはミュートされているため、発言することができません。" to player
  671. stop
  672. else if {spam.%player's UUID%} is coloured message:
  673. send "&6---------------------------" to player
  674. send " &c&l同じメッセージを送信できません" to player
  675. send "&6---------------------------" to player
  676. stop
  677. else if {team.%player%} is set:
  678. set {spam.%player's UUID%} to coloured message
  679. broadcast "&7[Lv%{level.%uuid of player%}%]%{teamchat.%player%}%%player%&e》&r%coloured message%"
  680. else:
  681. set {spam.%player's UUID%} to coloured message
  682. broadcast "&7[Lv%{level.%uuid of player%}%]&f%player%&e》&r%coloured message%"
  683.  
  684. command /chat [<text>] [<offline player>] [<text>]:
  685. permission: skript.admin
  686. usage: /chat <prefix|suffix|mute|unmute> <player> <text>
  687. trigger:
  688. if arg 1 is "mute":
  689. if {mutelist::*} contains arg 2:
  690. send "&c%arg 2%さんはすでにミュートされています。"
  691. stop
  692. send "&e%arg 2%さんが%sender%さんにミュートされました。" to ops
  693. send "&e理由:%coloured arg 3%" to ops
  694. add arg 2 to {mutelist::*}
  695. stop
  696. if arg 1 is "unmute":
  697. if {mutelist::*} contains arg 2:
  698. send "&a%arg 2%さんが%sender%さんにミュート解除されました。" to ops
  699. send "&a理由:%coloured arg 3%" to ops
  700. remove arg 2 from {mutelist::*}
  701. stop
  702. send "&c%arg 2%さんはミュートされていません。" to player
  703. stop
  704.  
  705. command /mutelist [<offline player>]:
  706. permission: skript.admin
  707. trigger:
  708. if arg 1 is not set:
  709. send "&d次のプレイヤーがミュートされています:"
  710. send "%{mutelist::*}%"
  711. stop
  712. if {mutelist::*} contains arg 1:
  713. send "&d対象のプレイヤーはミュートされています。"
  714. stop
  715. send "&b対象のプレイヤーはミュートされていません。"
  716.  
  717. on click:
  718. if player is holding lime dye named "&cゲームを抜ける":
  719. cancel event
  720. remove lime dye named "&cゲームを抜ける" from player
  721. set {join.%player%} to false
  722. send "&cゲームを抜けました"
  723. wait 5 ticks
  724. give grey dye named "&eゲームに参加する" to player
  725.  
  726. on click:
  727. if player is holding grey dye named "&eゲームに参加する":
  728. cancel event
  729. remove grey dye named "&eゲームに参加する" from player
  730. set {join.%player%} to true
  731. send "&eゲームに参加しました" to player
  732. wait 5 ticks
  733. give lime dye named "&cゲームを抜ける" to player
  734.  
  735. command /dye:
  736. permission: skript.admin
  737. trigger:
  738. give grey dye named "&eゲームに参加する" to player
  739.  
  740. command /allreset <offline player>:
  741. permission: skript.admin
  742. trigger:
  743. delete {m416.%uuid of arg 1%}
  744. delete {m16a4.%uuid of arg 1%}
  745. delete {ace23.%uuid of arg 1%}
  746. delete {aek971.%uuid of arg 1%}
  747. delete {m98b.%uuid of arg 1%}
  748. delete {srr61.%uuid of arg 1%}
  749. set {kill.%uuid of arg 1%} to 0
  750. set {death.%uuid of arg 1%} to 0
  751. set {killdeath.%uuid of arg 1%} to 0
  752. set {win.%uuid of arg 1%} to 0
  753. set {lose.%uuid of arg 1%} to 0
  754. set {winlose.%uuid of arg 1%} to 0
  755. set {level.%uuid of arg 1%} to 1
  756. set {xp.%uuid of arg 1%} to 0
  757. set {needxp.%uuid of arg 1%} to 10
  758. set {coin.%uuid of player%} to 0
  759. set {weapon.%player%} to "ak12"
  760. set {died.%player%} to false
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement