Advertisement
taktie0304

Untitled

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