Advertisement
taktie0304

Untitled

Jul 28th, 2019
138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 33.33 KB | None | 0 0
  1. command /teamgunpvp:
  2. aliases: /tgp
  3. permission: skript.admin
  4. trigger:
  5. command "/scoreboard teams remove red"
  6. command "/scoreboard teams remove blue"
  7. command "/scoreboard teams add red"
  8. command "/scoreboard teams add blue"
  9. command "/scoreboard teams option red color red"
  10. command "/scoreboard teams option blue color blue"
  11. command "/scoreboard teams option red nametagVisibility hideForOtherTeams"
  12. command "/scoreboard teams option blue nametagVisibility hideForOtherTeams"
  13. set {game} to false
  14. set {start} to false
  15. set {button} to true
  16. send "completed" to player
  17.  
  18. #==================================================[ 関数 ]==================================================#
  19.  
  20. function endgame():
  21. set {button} to false
  22. set {game} to false
  23. disable PvP in "world"
  24. if {tresult} is "&6&l勝利":
  25. loop all players:
  26. if {team.%loop-player%} is "t":
  27. send title "%{tresult}%" with subtitle "%{tresultsub}%" to loop-player for 5 seconds
  28. send "%{tresult}%" to loop-player
  29. if {booster} is true:
  30. add 200 to {coin.%uuid of loop-player%}
  31. add 20 to {xp.%uuid of loop-player%}
  32. add 1 to {win.%uuid of loop-player%}
  33. send "&a+20xp &6+200coins" to loop-player
  34. else:
  35. add 100 to {coin.%uuid of loop-player%}
  36. add 10 to {xp.%uuid of loop-player%}
  37. add 1 to {win.%uuid of loop-player%}
  38. send "&a+10xp &6+100coins" to loop-player
  39. execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.5 1"
  40. if {team.%loop-player%} is "ct":
  41. send title "%{ctresult}%" with subtitle "%{ctresultsub}%" to loop-player for 5 seconds
  42. send "%{ctresult}%" to loop-player
  43. if {booster} is true:
  44. add 20 to {coin.%uuid of loop-player%}
  45. add 4 to {xp.%uuid of loop-player%}
  46. add 1 to {lose.%uuid of loop-player%}
  47. send "&a+4xp &6+20coins" to loop-player
  48. else:
  49. add 10 to {coin.%uuid of loop-player%}
  50. add 2 to {xp.%uuid of loop-player%}
  51. add 1 to {lose.%uuid of loop-player%}
  52. send "&a+2xp &6+10coins" to loop-player
  53. execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.5 1"
  54. if {ctresult} is "&6&l勝利":
  55. loop all players:
  56. if {team.%loop-player%} is "t":
  57. send title "%{tresult}%" with subtitle "%{tresultsub}%" to loop-player for 5 seconds
  58. send "%{tresult}%" to loop-player
  59. send "&a+2xp &6+10coins" to loop-player
  60. if {booster} is true:
  61. add 20 to {coin.%uuid of loop-player%}
  62. add 4 to {xp.%uuid of loop-player%}
  63. add 1 to {lose.%uuid of loop-player%}
  64. send "&a+4xp &6+20coins" to loop-player
  65. else:
  66. add 10 to {coin.%uuid of loop-player%}
  67. add 2 to {xp.%uuid of loop-player%}
  68. add 1 to {lose.%uuid of loop-player%}
  69. send "&a+2xp &6+10coins" to loop-player
  70. execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.5 1"
  71. if {team.%loop-player%} is "ct":
  72. send title "%{ctresult}%" with subtitle "%{ctresultsub}%" to loop-player for 5 seconds
  73. send "%{ctresult}%" to loop-player
  74. if {booster} is true:
  75. add 200 to {coin.%uuid of loop-player%}
  76. add 20 to {xp.%uuid of loop-player%}
  77. add 1 to {win.%uuid of loop-player%}
  78. send "&a+20xp &6+200coins" to loop-player
  79. else:
  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. execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.5 1"
  85. wait 6 seconds
  86. loop all players:
  87. if {team.%loop-player%} is set:
  88. close loop-player's inventory
  89. command "clear %loop-player%"
  90. command "kill @e[type=Item]"
  91. command "/scoreboard teams empty red"
  92. command "/scoreboard teams empty blue"
  93. give grey dye named "&eゲームに参加する" to loop-player
  94. teleport the loop-player to {lobby}
  95. set health of loop-player to max health of loop-player
  96. set the loop-player's gamemode to adventure
  97. set the loop-player's tablist name to "&7[Lv%{level.%uuid of loop-player%}%]&r%{prefix.%uuid of loop-player%}%&r%loop-player%&r%{suffix.%uuid of loop-player%}%"
  98. delete {team.%loop-player%}
  99. if {mapselector} == 1:
  100. command "/fill -43 21 -9 -47 21 -5 air"
  101. command "/fill -11 21 37 -7 21 41 air"
  102. if {mapselector} == 2:
  103. command "/fill 183 19 13 179 19 9 air"
  104. command "/fill 171 22 76 175 22 72 air"
  105. set {button} to true
  106. else:
  107. send "&a試合が終了しました" to loop-player
  108.  
  109. function showvs():
  110. loop all players:
  111. if {team.%loop-player%} is "t":
  112. send title " " with subtitle "%{t}% VS %{ct}%" to loop-player for 3 seconds
  113. execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.2 2"
  114. if {team.%loop-player%} is "ct":
  115. send title " " with subtitle "%{ct}% VS %{t}%" to loop-player for 3 seconds
  116. execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.2 2"
  117.  
  118. #==================================================[ ゲームスタート ]==================================================#
  119.  
  120. on rightclick on wood button:
  121. if {button} is true:
  122. {start} is false
  123. if {game} is false:
  124. set {start} to true
  125. loop all players:
  126. send title "&a5" with subtitle "スタートまで" to loop-player for 2 seconds
  127. execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:ui.button.click master %loop-player% ~ ~ ~ 1 2"
  128. wait 1 second
  129. loop all players:
  130. send title "&a4" with subtitle "スタートまで" to loop-player for 2 seconds
  131. execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:ui.button.click master %loop-player% ~ ~ ~ 1 2"
  132. wait 1 second
  133. loop all players:
  134. send title "&a3" with subtitle "スタートまで" to loop-player for 2 seconds
  135. execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:ui.button.click master %loop-player% ~ ~ ~ 1 2"
  136. wait 1 second
  137. loop all players:
  138. send title "&a2" with subtitle "スタートまで" to loop-player for 2 seconds
  139. execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:ui.button.click master %loop-player% ~ ~ ~ 1 2"
  140. wait 1 second
  141. loop all players:
  142. send title "&a1" with subtitle "スタートまで" to loop-player for 1 seconds
  143. execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:ui.button.click master %loop-player% ~ ~ ~ 1 2"
  144. wait 1 second
  145. set {gameplayer} to 0
  146. loop all players:
  147. if {join.%loop-player%} is true:
  148. add 1 to {gameplayer}
  149. if {gameplayer} <= 1:
  150. broadcast "&c参加人数が足りませんでした"
  151. wait 1 second
  152. set {start} to false
  153. else:
  154. set {t} to 0
  155. set {ct} to 0
  156. set {count} to 120
  157. set {lobby} to location (49, 5, 10)
  158. set {cmdlobby} to "49 5 10"
  159. set {mapselector} to random integer between 1 and 2
  160. if {mapselector} == 1:
  161. set {tspawn} to location (-80, 22, 33)
  162. set {ctspawn} to location (-18, 19, 0)
  163. if {mapselector} == 2:
  164. set {tspawn} to location (96, 24, 26)
  165. set {ctspawn} to location (166, 14, 51)
  166. set {givebomb} to true
  167. set {putbomb} to false
  168. loop all players:
  169. if {join.%loop-player%} is true:
  170. if {teamselector} == 0:
  171. command "/clear %loop-player%"
  172. if {givebomb} is true:
  173. command "give %loop-player% minecraft:obsidian 1 0 {display:{Name:""金ブロックの上に置いてください!""},CanPlaceOn:[""minecraft:gold_block""]}"
  174. set {givebomb} to false
  175. set {team.%loop-player%} to "t"
  176. set {teamchat.%loop-player%} to "&c"
  177. delete {died.%loop-player%}
  178. delete {mainweapon.%loop-player%}
  179. add 1 to {t}
  180. command "/scoreboard teams join red %loop-player%"
  181. teleport the loop-player to {tspawn}
  182. if {ak47use.%uuid of loop-player%} is true:
  183. if {ak47.%uuid of loop-player%} > 0:
  184. set {mainweapon.%loop-player%} to "ak47"
  185. command "shot give %loop-player% ak47"
  186. if {mainweapon.%loop-player%} is not set:
  187. if {awpuse.%uuid of loop-player%} is true:
  188. if {awp.%uuid of loop-player%} > 0:
  189. set {mainweapon.%loop-player%} to "awp"
  190. command "shot give %loop-player% awp"
  191. command "shot give %loop-player% glock18"
  192. give red wool named "&cあなたはテロリストチームです" to loop-player
  193. set the loop-player's gamemode to adventure
  194. set the loop-player's tablist name to "&7[Lv%{level.%uuid of loop-player%}%]&c%loop-player%"
  195. send title " " with subtitle "敵を全滅、もしくは爆弾を防衛せよ" to loop-player for 5 seconds
  196. delete {join.%loop-player%}
  197. set {teamselector} to 1
  198. else:
  199. command "/clear %loop-player%"
  200. command "give %loop-player% minecraft:diamond_pickaxe 1 0 {display:{Name:""爆弾を破壊してください!""},ench:[{id:32s,lvl:1s}],CanDestroy:[""minecraft:obsidian""]}"
  201. set {team.%loop-player%} to "ct"
  202. set {teamchat.%loop-player%} to "&9"
  203. delete {died.%loop-player%}
  204. delete {mainweapon.%loop-player%}
  205. add 1 to {ct}
  206. command "/scoreboard teams join blue %loop-player%"
  207. teleport the loop-player to {ctspawn}
  208. if {m4a4use.%uuid of loop-player%} is true:
  209. if {m4a4.%uuid of loop-player%} > 0:
  210. set {mainweapon.%loop-player%} to "m4a4"
  211. command "shot give %loop-player% m4a4"
  212. if {mainweapon.%loop-player%} is not set:
  213. if {awpuse.%uuid of loop-player%} is true:
  214. if {awp.%uuid of loop-player%} > 0:
  215. set {mainweapon.%loop-player%} to "awp"
  216. command "shot give %loop-player% awp"
  217. command "shot give %loop-player% usp"
  218. give blue wool named "&9あなたはカウンターテロリストチームです" to loop-player
  219. set the loop-player's gamemode to adventure
  220. set the loop-player's tablist name to "&7[Lv%{level.%uuid of loop-player%}%]&9%loop-player%"
  221. send title " " with subtitle "敵を全滅、もしくは爆弾を破壊せよ" to loop-player for 5 seconds
  222. delete {join.%loop-player%}
  223. set {teamselector} to 0
  224. set {game} to true
  225. broadcast "&cテロリスト%{t}%人 &9カウンターテロリスト%{ct}%人 &a参加中"
  226. enable PvP
  227. set {start} to false
  228. set {button} to true
  229. else:
  230. send "&c現在試合中です" to player
  231.  
  232. #==================================================[ 死んだ時 ]==================================================#
  233.  
  234. on death of player:
  235. if name of attacker's held item contains "USP":
  236. set the death message to "%{teamchat.%attacker%}%%attacker% &7--[&aUSP&7]--> %{teamchat.%victim%}%%victim%"
  237. else if name of attacker's held item contains "Glock-18":
  238. set the death message to "%{teamchat.%attacker%}%%attacker% &7--[&aGlock-18&7]--> %{teamchat.%victim%}%%victim%"
  239. else if name of attacker's held item contains "AK-47":
  240. set the death message to "%{teamchat.%attacker%}%%attacker% &7--[&aAK-47&7]--> %{teamchat.%victim%}%%victim%"
  241. else if name of attacker's held item contains "M4A4":
  242. set the death message to "%{teamchat.%attacker%}%%attacker% &7--[&aM4A4&7]--> %{teamchat.%victim%}%%victim%"
  243. else if name of attacker's held item contains "AWP":
  244. set the death message to "%{teamchat.%attacker%}%%attacker% &7--[&5AWP&7]--> %{teamchat.%victim%}%%victim%"
  245. if {game} is true:
  246. if name of victim's held item contains "AK-47":
  247. if {mainweapon.%victim%} is "ak47":
  248. remove 1 from {ak47.%uuid of victim%}
  249. if name of victim's held item contains "M4A4":
  250. if {mainweapon.%victim%} is "m4a4":
  251. remove 1 from {m4a4.%uuid of victim%}
  252. if name of victim's held item contains "AWP":
  253. if {mainweapon.%victim%} is "awp":
  254. remove 1 from {awp.%uuid of victim%}
  255. set {died.%victim%} to true
  256. set {deathpoint.%victim%} to location of victim
  257. force the victim to respawn
  258. teleport player to {deathpoint.%player%}
  259. set the player's gamemode to spectator
  260. remove 1 from {%{team.%victim%}%}
  261. add 1 to {kill.%uuid of attacker%}
  262. add 1 to {death.%uuid of victim%}
  263. if {booster} is true:
  264. add 6 to {xp.%uuid of attacker%}
  265. add 60 to {coin.%uuid of attacker%}
  266. send "&a+6xp &6+60coins" to attacker
  267. else:
  268. add 3 to {xp.%uuid of attacker%}
  269. add 30 to {coin.%uuid of attacker%}
  270. send "&a+3xp &6+30coins" to attacker
  271. if {putbomb} is true:
  272. if {t} is 0:
  273. set {button} to false
  274. loop all players:
  275. if {team.%loop-player%} is "t":
  276. send title " " with subtitle "味方が全員倒された" to loop-player for 3 seconds
  277. send "&l味方が全員倒された" to loop-player
  278. execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.2 2"
  279. if {team.%loop-player%} is "ct":
  280. send title " " with subtitle "敵は全滅した。爆弾を破壊せよ" to loop-player for 3 seconds
  281. send "&l敵は全滅した。爆弾を破壊せよ" to loop-player
  282. execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.2 2"
  283. else if {ct} is 0:
  284. set {tresult} to "&6&l勝利"
  285. set {ctresult} to "&9&l敗北"
  286. set {tresultsub} to "敵を全員倒した"
  287. set {ctresultsub} to "味方が全員倒された"
  288. endgame()
  289. else:
  290. showvs()
  291. else if {t} is 0:
  292. set {tresult} to "&9&l敗北"
  293. set {ctresult} to "&6&l勝利"
  294. set {tresultsub} to "味方が全員倒された"
  295. set {ctresultsub} to "敵を全員倒した"
  296. endgame()
  297. else if {ct} is 0:
  298. set {tresult} to "&6&l勝利"
  299. set {ctresult} to "&9&l敗北"
  300. set {tresultsub} to "敵を全員倒した"
  301. set {ctresultsub} to "味方が全員倒された"
  302. endgame()
  303. else:
  304. showvs()
  305.  
  306. #==================================================[ 爆弾が置かれた時 ]==================================================#
  307.  
  308. on place of obsidian:
  309. if {game} is true:
  310. set {count} to 40
  311. set {putbomb} to true
  312. loop all players:
  313. if {team.%loop-player%} is "t":
  314. send "&a&l爆弾が設置された! 40秒間守り切れ!" to loop-player
  315. send title " " with subtitle "&a爆弾が設置された! 40秒間守り切れ!" to loop-player for 3 seconds
  316. if {team.%loop-player%} is "ct":
  317. send "&c&l爆弾が設置された! 40秒以内に破壊せよ!" to loop-player
  318. send title " " with subtitle "&c爆弾が設置された! 40秒以内に破壊せよ!" to loop-player for 3 seconds
  319.  
  320. #==================================================[ 爆弾が壊された時 ]==================================================#
  321.  
  322. on break of obsidian:
  323. if {game} is true:
  324. set {tresult} to "&9&l敗北"
  325. set {ctresult} to "&6&l勝利"
  326. set {tresultsub} to "爆弾が破壊された"
  327. set {ctresultsub} to "爆弾を破壊した"
  328. endgame()
  329.  
  330. #==================================================[ 残り時間計測 ]==================================================#
  331.  
  332. every a second in "world":
  333. if {game} is true:
  334. remove 1 from {count}
  335. if {count} < 0:
  336. if {putbomb} is true:
  337. set {tresult} to "&6&l勝利"
  338. set {ctresult} to "&9&l敗北"
  339. set {tresultsub} to "時間切れ"
  340. set {ctresultsub} to "時間切れ"
  341. endgame()
  342. else:
  343. set {tresult} to "&9&l敗北"
  344. set {ctresult} to "&6&l勝利"
  345. set {tresultsub} to "時間切れ"
  346. set {ctresultsub} to "時間切れ"
  347. endgame()
  348. loop all players:
  349. if {team.%loop-player%} is set:
  350. send action bar "&f(残り時間: %{count}%秒)" to loop-player
  351. if {booster} is true:
  352. remove 1 from {boostercount}
  353. if {boostercount} is 0:
  354. set {booster} to false
  355. broadcast "&6------------------------------------"
  356. broadcast "&c&lブースターの校歌が切れました"
  357. broadcast "&6------------------------------------"
  358.  
  359.  
  360. #==================================================[ 抜けたとき ]==================================================#
  361.  
  362. on quit:
  363. if {team.%player%} is set:
  364. delete {team.%player%}
  365. delete {teamchat.%player%}
  366. if {died.%player%} is false:
  367. remove 1 from {%{team.%player%}%}
  368. command "/scoreboard teams leave %{team.%player%}% %player%"
  369. if {t} is 0:
  370. set {tresult} to "&9&l敗北"
  371. set {ctresult} to "&6&l勝利"
  372. set {tresultsub} to "味方が全員倒された"
  373. set {ctresultsub} to "敵を全員倒した"
  374. endgame()
  375. else if {blue} is 0:
  376. set {tresult} to "&6&l勝利"
  377. set {ctresult} to "&9&l敗北"
  378. set {tresultsub} to "敵を全員倒した"
  379. set {ctresultsub} to "味方が全員倒された"
  380. endgame()
  381. else:
  382. showvs()
  383.  
  384. #==================================================[ 仕様 ]==================================================#
  385.  
  386. on damage of player:
  387. if {game} is true:
  388. if {team.%attacker%} == {team.%victim%}:
  389. cancel event
  390.  
  391. on pick up of red wool:
  392. if {team.%player%} is set:
  393. cancel event
  394.  
  395. on pick up of blue wool:
  396. if {team.%player%} is set:
  397. cancel event
  398.  
  399. on pick up of iron horse armor:
  400. if {team.%player%} is set:
  401. if player have iron horse armor:
  402. cancel event
  403.  
  404. on pick up of gold horse armor:
  405. if {team.%player%} is set:
  406. if player have gold horse armor:
  407. cancel event
  408.  
  409. on pick up of obsidian:
  410. if {team.%player%} is "ct":
  411. cancel event
  412.  
  413. on pick up of diamond pickaxe:
  414. if {team.%player%} is "red":
  415. cancel event
  416. else if player have diamond pickaxe:
  417. cancel event
  418.  
  419. on hunger bar change:
  420. set the player's food level to 10
  421.  
  422. #==================================================[ コマンド ]==================================================#
  423.  
  424. command /stats [<offline player>]:
  425. trigger:
  426. if arg 1 is not set:
  427. send "&6-----< &b%player% &6>-----"
  428. set {killdeath.%uuid of player%} to {kill.%uuid of player%} / {death.%uuid of player%}
  429. set {winlose.%uuid of player%} to {win.%uuid of player%} / {lose.%uuid of player%}
  430. send " &alevel: &e%{level.%uuid of player%}%" to player
  431. send " &axp: &e%{xp.%uuid of player%}%&7/%{needxp.%uuid of player%}%" to player
  432. send " "
  433. send " &akill: &e%{kill.%uuid of player%}%" to player
  434. send " &adeath: &e%{death.%uuid of player%}%" to player
  435. send " &aK/D: &e%{killdeath.%uuid of player%}%" to player
  436. send " &awin: &e%{win.%uuid of player%}%" to player
  437. send " &alose: &e%{lose.%uuid of player%}%" to player
  438. send " &aW/L: &e%{winlose.%uuid of player%}%" to player
  439. else:
  440. send "&6-----< &b%arg 1% &6>-----"
  441. set {killdeath.%uuid of arg 1%} to {kill.%uuid of arg 1%} / {death.%uuid of arg 1%}
  442. set {winlose.%uuid of arg 1%} to {win.%uuid of arg 1%} / {lose.%uuid of arg 1%}
  443. send " &alevel: &e%{level.%uuid of arg 1%}%" to player
  444. send " &axp: &e%{xp.%uuid of arg 1%}%&7/%{needxp.%uuid of arg 1%}%" to player
  445. send " "
  446. send " &akill: &e%{kill.%uuid of arg 1%}%" to player
  447. send " &adeath: &e%{death.%uuid of arg 1%}%" to player
  448. send " &aK/D: &e%{killdeath.%uuid of arg 1%}%" to player
  449. send " &awin: &e%{win.%uuid of arg 1%}%" to player
  450. send " &alose: &e%{lose.%uuid of arg 1%}%" to player
  451. send " &aW/L: &e%{winlose.%uuid of arg 1%}%" to player
  452.  
  453. #==================================================[ 武器選択 ]==================================================#
  454.  
  455. command /buycoin [<number>] [<offline player>]:
  456. permission: skript.admin
  457. trigger:
  458. if arg 1 is 1000:
  459. add 1000 to {coin.%uuid of arg 2%}
  460. if arg 1 is 5000:
  461. add 5000 to {coin.%uuid of arg 2%}
  462.  
  463. command /shop [<text>]:
  464. trigger:
  465. if arg 1 is "hnfewfbbfwygbb":
  466. open chest with 4 row named "武器選択、購入" to player
  467. set slot 31 of player's current inventory to nether star named "&e所持金&6%{coin.%uuid of player%}%&eコイン"
  468. set slot 10 of player's current inventory to gold horse armor named "&a&lAK-47" with lore "&62700コイン必要" and "&c赤チーム専用" and "&7現在&f%{ak47.%uuid of player%}%&7個所持" and " " and "&eクリックで10個購入"
  469. if {ak47use.%uuid of player%} is not set:
  470. set slot 19 of player's current inventory to grey dye named "&cOFF" with lore "&7武器の数が0個だと、ONにしても意味がありません" and " " and "&eクリックでAK-47の使用をON"
  471. else:
  472. set slot 19 of player's current inventory to lime dye named "&aON" with lore "&7武器の数が0個だと、ONにしても意味がありません" and " " and "&eクリックでAK-47の使用をOFF"
  473. set slot 11 of player's current inventory to gold horse armor named "&a&lM4A4" with lore "&63100コイン必要" and "&9青チーム専用" and "&7現在&f%{m4a4.%uuid of player%}%&7個所持" and " " and "&eクリックで10個購入"
  474. if {m4a4use.%uuid of player%} is not set:
  475. set slot 20 of player's current inventory to grey dye named "&cOFF" with lore "&7武器の数が0個だと、ONにしても意味がありません" and " " and "&eクリックでM4A4の使用をON"
  476. else:
  477. set slot 20 of player's current inventory to lime dye named "&aON" with lore "&7武器の数が0個だと、ONにしても意味がありません" and " " and "&eクリックでM4A4の使用をOFF"
  478. set slot 12 of player's current inventory to gold horse armor named "&5&lAWP" with lore "&64750コイン必要" and "&7全チーム兼用" and "&7現在&f%{awp.%uuid of player%}%&7個所持" and " " and "&eクリックで10個購入"
  479. if {awpuse.%uuid of player%} is not set:
  480. set slot 21 of player's current inventory to grey dye named "&cOFF" with lore "&7武器の数が0個だと、OFFにしても意味がありません" and " " and "&eクリックでAWPの使用をON"
  481. else:
  482. set slot 21 of player's current inventory to lime dye named "&aON" with lore "&7武器の数が0個だと、ONにしても意味がありません" and " " and "&eクリックでAWPの使用をOFF"
  483.  
  484. command /coin:
  485. trigger:
  486. send "&6%{coin.%uuid of player%}%&eコイン"
  487.  
  488. every 5 seconds:
  489. loop all players:
  490. if {ak47.%uuid of loop-player%} is not set:
  491. set {ak47.%uuid of loop-player%} to 0
  492. if {m4a4.%uuid of loop-player%} is not set:
  493. set {m4a4.%uuid of loop-player%} to 0
  494. if {awp.%uuid of loop-player%} is not set:
  495. set {awp.%uuid of loop-player%} to 0
  496. if {coin.%uuid of loop-player%} is not set:
  497. set {coin.%uuid of loop-player%} to 0
  498.  
  499. on rightclick on villager:
  500. cancel event
  501. open chest with 4 row named "武器選択、購入" to player
  502. set slot 31 of player's current inventory to nether star named "&e所持金&6%{coin.%uuid of player%}%&eコイン"
  503. set slot 10 of player's current inventory to gold horse armor named "&a&lAK-47" with lore "&62700コイン必要" and "&c赤チーム専用" and "&7現在&f%{ak47.%uuid of player%}%&7個所持" and " " and "&eクリックで10個購入"
  504. if {ak47use.%uuid of player%} is not set:
  505. set slot 19 of player's current inventory to grey dye named "&cOFF" with lore "&7武器の数が0個だと、ONにしても意味がありません" and " " and "&eクリックでAK-47の使用をON"
  506. else:
  507. set slot 19 of player's current inventory to lime dye named "&aON" with lore "&7武器の数が0個だと、ONにしても意味がありません" and " " and "&eクリックでAK-47の使用をOFF"
  508. set slot 11 of player's current inventory to gold horse armor named "&a&lM4A4" with lore "&63100コイン必要" and "&9青チーム専用" and "&7現在&f%{m4a4.%uuid of player%}%&7個所持" and " " and "&eクリックで10個購入"
  509. if {m4a4use.%uuid of player%} is not set:
  510. set slot 20 of player's current inventory to grey dye named "&cOFF" with lore "&7武器の数が0個だと、ONにしても意味がありません" and " " and "&eクリックでM4A4の使用をON"
  511. else:
  512. set slot 20 of player's current inventory to lime dye named "&aON" with lore "&7武器の数が0個だと、ONにしても意味がありません" and " " and "&eクリックでM4A4の使用をOFF"
  513. set slot 12 of player's current inventory to gold horse armor named "&5&lAWP" with lore "&64750コイン必要" and "&7全チーム兼用" and "&7現在&f%{awp.%uuid of player%}%&7個所持" and " " and "&eクリックで10個購入"
  514. if {awpuse.%uuid of player%} is not set:
  515. set slot 21 of player's current inventory to grey dye named "&cOFF" with lore "&7武器の数が0個だと、OFFにしても意味がありません" and " " and "&eクリックでAWPの使用をON"
  516. else:
  517. set slot 21 of player's current inventory to lime dye named "&aON" with lore "&7武器の数が0個だと、ONにしても意味がありません" and " " and "&eクリックでAWPの使用をOFF"
  518.  
  519. on inventory click:
  520. if name of player's current inventory contains "武器選択、購入":
  521. cancel event
  522. if clicked slot is 10:
  523. if {coin.%uuid of player%} >= 2700:
  524. remove 2700 from {coin.%uuid of player%}
  525. add 10 to {ak47.%uuid of player%}
  526. send "&aAK-47を10個分購入しました" to player
  527. make player execute command "/shop hnfewfbbfwygbb"
  528. else:
  529. send "&cコインが足りません" to player
  530. if clicked slot is 11:
  531. if {coin.%uuid of player%} >= 3100:
  532. remove 3100 from {coin.%uuid of player%}
  533. add 10 to {m4a4.%uuid of player%}
  534. send "&aM4A4を10個分購入しました" to player
  535. make player execute command "/shop hnfewfbbfwygbb"
  536. else:
  537. send "&cコインが足りません" to player
  538. if clicked slot is 12:
  539. if {coin.%uuid of player%} >= 4750:
  540. remove 4750 from {coin.%uuid of player%}
  541. add 10 to {awp.%uuid of player%}
  542. send "&aAWPを10個分購入しました" to player
  543. make player execute command "/shop hnfewfbbfwygbb"
  544. else:
  545. send "&cコインが足りません" to player
  546. if clicked slot is 19:
  547. if {ak47use.%uuid of player%} is not set:
  548. set {ak47use.%uuid of player%} to true
  549. else:
  550. delete {ak47use.%uuid of player%}
  551. make player execute command "/shop hnfewfbbfwygbb"
  552. if clicked slot is 20:
  553. if {m4a4use.%uuid of player%} is not set:
  554. set {m4a4use.%uuid of player%} to true
  555. else:
  556. delete {m4a4use.%uuid of player%}
  557. make player execute command "/shop hnfewfbbfwygbb"
  558. if clicked slot is 21:
  559. if {awpuse.%uuid of player%} is not set:
  560. set {awpuse.%uuid of player%} to true
  561. else:
  562. delete {awpuse.%uuid of player%}
  563. make player execute command "/shop hnfewfbbfwygbb"
  564.  
  565. #==================================================[ その他 ]==================================================#
  566.  
  567. on first join:
  568. set {kill.%uuid of player%} to 0
  569. set {death.%uuid of player%} to 0
  570. set {killdeath.%uuid of player%} to 0
  571. set {win.%uuid of player%} to 0
  572. set {lose.%uuid of player%} to 0
  573. set {winlose.%uuid of player%} to 0
  574. set {level.%uuid of player%} to 1
  575. set {xp.%uuid of player%} to 0
  576. set {needxp.%uuid of player%} to 10
  577. set {prefix.%uuid of player%} to ""
  578. set {suffix.%uuid of player%} to ""
  579.  
  580. every 3 seconds:
  581. loop all players:
  582. if {xp.%uuid of loop-player%} >= {needxp.%uuid of loop-player%}:
  583. set {xp.%uuid of loop-player%} to {xp.%uuid of loop-player%} - {needxp.%uuid of loop-player%}
  584. add 1 to {level.%uuid of loop-player%}
  585. set {needxp.%uuid of loop-player%} to {needxp.%uuid of loop-player%} * 1.5
  586. send "&b&lレベルアップ!! &a現在のレベル&7: &e%{level.%uuid of loop-player%}%" to loop-player
  587. set the loop-player's tablist name to "&7[Lv%{level.%uuid of loop-player%}%]&r%{prefix.%uuid of loop-player%}%&r%loop-player%&r%{suffix.%uuid of loop-player%}%"
  588.  
  589. on join:
  590. wait 3 ticks
  591. set the player's tablist name to "&7[Lv%{level.%uuid of player%}%]&r%{prefix.%uuid of player%}%&r%player%&r%{suffix.%uuid of player%}%"
  592. set health of player to max health of player
  593. send "&a▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬" to player
  594. send " &f&lTeamGunPvP" to player
  595. send " " to player
  596. send " &e&l攻撃側と防衛側に分かれ、チームで戦います。" to player
  597. send " &e&l攻撃側は特定の場所に黒曜石を置き、" to player
  598. send " &e&lそれを壊されないよう守る必要があります。" to player
  599. send " &e&l防衛側は黒曜石を置かれないように防衛しましょう。" to player
  600. send " &e&lもし置かれても、破壊が可能です。" to player
  601. send " " to player
  602. send "&a▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬" to player
  603. wait 5 ticks
  604. command "/gamemode 2 %player%"
  605. command "/clear %player%"
  606. give grey dye named "&eゲームに参加する" to player
  607. teleport the player to {lobby}
  608.  
  609. on chat:
  610. cancel event
  611. if {mutelist::*} contains player:
  612. send "&cあなたはミュートされているため、発言することができません。" to player
  613. stop
  614. else if {spam.%player's UUID%} is coloured message:
  615. send "&6---------------------------" to player
  616. send "&c&l同じメッセージを送信できません" to player
  617. send "&6---------------------------" to player
  618. stop
  619. else if {team.%player%} is set:
  620. set {spam.%player's UUID%} to coloured message
  621. broadcast "&7[Lv%{level.%uuid of player%}%]&r%{prefix.%uuid of player%}%&r%{teamchat.%player%}%%player%&r%{suffix.%uuid of player%}%&e》&r%coloured message%"
  622. else:
  623. set {spam.%player's UUID%} to coloured message
  624. broadcast "&7[Lv%{level.%uuid of player%}%]&r%{prefix.%uuid of player%}%&r%player%&r%{suffix.%uuid of player%}%&e》&r%coloured message%"
  625.  
  626. command /chat [<text>] [<offline player>] [<text>]:
  627. permission: skript.admin
  628. usage: /chat <prefix|suffix|mute|unmute> <player> <text>
  629. trigger:
  630. if arg 1 is "prefix":
  631. set {prefix.%uuid of arg 2%} to colored arg 3
  632. send "&b%arg 2%さんのprefixを「&r%{prefix.%arg 2%}%&b」に変更しました。" to player
  633. stop
  634. if arg 1 is "suffix":
  635. set {suffix.%uuid of arg 2%} to colored arg 3
  636. send "&b%arg 2%さんのsuffixを&r「%{suffix.%arg 2%}%&b」に変更しました。" to player
  637. stop
  638. if arg 1 is "deleteprefix":
  639. if arg 3 is not set:
  640. set {prefix.%uuid of arg 2%} to ""
  641. send "&b%arg 2%さんのprefixを削除しました" to player
  642. stop
  643. if arg 1 is "deletesuffix":
  644. if arg 3 is not set:
  645. set {suffix.%uuid of arg 2%} to ""
  646. send "&b%arg 2%さんのsuffixを削除しました" to player
  647. stop
  648. if arg 1 is "mute":
  649. if {mutelist::*} contains arg 2:
  650. send "&c%arg 2%さんはすでにミュートされています。"
  651. stop
  652. send "&e%arg 2%さんが%sender%さんにミュートされました。" to ops
  653. send "&e理由:%coloured arg 3%" to ops
  654. add arg 2 to {mutelist::*}
  655. stop
  656. if arg 1 is "unmute":
  657. if {mutelist::*} contains arg 2:
  658. send "&a%arg 2%さんが%sender%さんにミュート解除されました。" to ops
  659. send "&a理由:%coloured arg 3%" to ops
  660. remove arg 2 from {mutelist::*}
  661. stop
  662. send "&c%arg 2%さんはミュートされていません。" to player
  663. stop
  664.  
  665. command /mutelist [<offline player>]:
  666. permission: skript.admin
  667. trigger:
  668. if arg 1 is not set:
  669. send "&d次のプレイヤーがミュートされています:"
  670. send "%{mutelist::*}%"
  671. stop
  672. if {mutelist::*} contains arg 1:
  673. send "&d対象のプレイヤーはミュートされています。"
  674. stop
  675. send "&b対象のプレイヤーはミュートされていません。"
  676.  
  677. on click:
  678. if player is holding lime dye named "&cゲームを抜ける":
  679. remove lime dye named "&cゲームを抜ける" from player
  680. set {join.%player%} to false
  681. send "&cゲームを抜けました"
  682. wait 5 ticks
  683. give grey dye named "&eゲームに参加する" to player
  684.  
  685. on click:
  686. if player is holding grey dye named "&eゲームに参加する":
  687. remove grey dye named "&eゲームに参加する" from player
  688. set {join.%player%} to true
  689. send "&eゲームに参加しました" to player
  690. wait 5 ticks
  691. give lime dye named "&cゲームを抜ける" to player
  692.  
  693. command /booster [<text>]:
  694. trigger:
  695. if arg 1 is "higrebvrgerbeu":
  696. set {booster} to true
  697. set {boostercount} to 1800
  698. broadcast "&6------------------------------------"
  699. broadcast "&a&l%player%が30分ブースターを使用しました"
  700. broadcast "&6------------------------------------"
  701.  
  702. command /dye:
  703. permission: skript.admin
  704. trigger:
  705. give grey dye named "&eゲームに参加する" to player
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement