Advertisement
taktie0304

Untitled

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