Advertisement
Guest User

Untitled

a guest
Jan 21st, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 26.55 KB | None | 0 0
  1. #KurumiKitPVPserver 専用Skript 作 Kurumi1011
  2.  
  3.  
  4. #kit追加時にすること
  5. # menuの設定 kit番号をidにする
  6. # 処罰コマンド /aplostのkitの設定
  7. # set {%arg 1%.1} to false の部分を増やす
  8. # 職業選択・職業購入の欄を増やす
  9.  
  10.  
  11.  
  12.  
  13.  
  14.  
  15. #定義づけ point
  16. variables:
  17. {%player%.point} = 0
  18. {%player%.rank} = 1
  19. {%player%.1} = false
  20. {%player%.2} = false
  21. {%player%.3} = false
  22. {%player%.4} = false
  23. {%player%.5} = false
  24. {%player%.6} = false
  25. {%player%.7} = false
  26. {%player%.8} = false
  27. {%player%.9} = false
  28. {%player%.10} = false
  29. {%player%.11} = false
  30. {%player%.12} = false
  31. {%player%.13} = false
  32. {%player%.14} = false
  33.  
  34.  
  35. #初ログイン時のコマンド
  36.  
  37. on join:
  38. command "/lobby %player%"
  39. command "/tp %player% 1195 4 208"
  40.  
  41.  
  42. #killした時の処理
  43. on death of player:
  44. if attacker is a player:
  45. message "&a&l+&e&l%{killpoint}%&a&lpoint" to attacker
  46. add {killpoint} to {%attacker%.point}
  47.  
  48. #---運営用コマンド---
  49.  
  50.  
  51. #運営用のhelp
  52. command /aphelp:
  53. trigger:
  54. player has permission "pvp.admin"
  55. message "&d----------------------------"
  56. message "&b&lKurumiKitPvPserver 運営用help"
  57. message "&b&l必要permission → pvp.admin"
  58. message "&d----------------------------"
  59. message "&e/aphelp &a...このhelpが出ます"
  60. message "&e/apkillpoint <数値>"
  61. message "&a ... killごとの入手pointの変更"
  62. message "&e/appa <player> <数値>"
  63. message "&a ... pointを増加させる"
  64. message "&e/apps <player> <数値>"
  65. message "&a ... pointを設定する"
  66. message "&e/appaall <数値>"
  67. message "&a ... 全員のpointを増加させる"
  68. message "&e/apkit <player> <数値> <true/false>"
  69. message "&a... playerのkitの購入状況を操作"
  70. message "&e/appar <数値>"
  71. message "&a ... 抽選で一名のpointの増加"
  72. message "&e/aplost <player> <kit/point>"
  73. message "&a ... Playerのkitまたはpointの消滅"
  74. message "&d----------------------------"
  75. command "/playsound minecraft:entity.arrow.hit_player ambient %player% ~ ~ ~ 1.0 0.5 1.0"
  76.  
  77. #killごとの入手pointの変更コマンド
  78. command /apkillpoint <number>:
  79. trigger:
  80. player has permission "pvp.admin"
  81. set {killpoint} to arg 1
  82. broadcast "&b---&d&lお知らせ&b-----------------"
  83. broadcast "&e運営の&b&l%player%&eによって"
  84. broadcast "&ekillごとの入手pointが"
  85. broadcast "&e通常の&b&l%{killpoint}/100%倍&eである"
  86. broadcast "&b&l%arg 1%&eになりました!"
  87. broadcast "&b----------------------------"
  88. command "/playsound minecraft:entity.player.levelup ambient @a ~ ~ ~ 1.0 0.53 1.0"
  89.  
  90. #point変動コマンド
  91. command /appa <player> <number>:
  92. trigger:
  93. player has permission "pvp.admin"
  94. add arg 2 to {%arg 1%.point}
  95. broadcast "--------------------------"
  96. broadcast "&a運営の&e%player%&aによって"
  97. broadcast "&e%arg 1%&aさんのpointが"
  98. broadcast "&e%arg 2% &a増加しました"
  99. broadcast "--------------------------"
  100. message "&e&l%arg 2%point&b&l入手しました" to arg 1
  101. command "/playsound minecraft:entity.arrow.hit_player ambient @a ~ ~ ~ 1.0 0.5 1.0"
  102.  
  103. command /apps <player> <number>:
  104. trigger:
  105. player has permission "pvp.admin"
  106. set {%arg 1%.point} to arg 2
  107. broadcast "--------------------------"
  108. broadcast "&a運営の&e%player%&aによって"
  109. broadcast "&e%arg 1%&aさんのpointが"
  110. broadcast "&e%arg 2% &aになりました"
  111. broadcast "--------------------------"
  112. message "&e&l%arg 2%point&b&lになりました" to arg 1
  113. command "/playsound minecraft:entity.arrow.hit_player ambient %arg 1% ~ ~ ~ 1.0 0.5 1.0"
  114. command "/playsound minecraft:entity.arrow.hit_player ambient %player% ~ ~ ~ 1.0 0.5 1.0"
  115.  
  116. command /appaall <number>:
  117. trigger:
  118. player has permission "pvp.admin"
  119. loop all players:
  120. add arg 1 to {%loop-player%.point}
  121. broadcast "&b---&d&lお知らせ&b-----------------"
  122. broadcast "&e運営の&b&l%player%&eによって"
  123. broadcast "&b&lOnlinePlayer全員&eのpointが"
  124. broadcast "&b&l%arg 1% &e増加しました!!"
  125. broadcast "&b----------------------------"
  126. broadcast "&e&l%arg 1%point&b&l入手しました"
  127. command "/playsound minecraft:entity.player.levelup ambient %player% ~ ~ ~ 1.0 0.53 1.0"
  128.  
  129. #抽選point
  130. command /appar <number>:
  131. trigger:
  132. player has permission "pvp.admin"
  133. command "/playsound minecraft:entity.arrow.hit_player ambient @a ~ ~ ~ 1.0 0.5 1.0"
  134. broadcast "&b---&d&lお知らせ&b-----------------"
  135. broadcast "&e運営の&b&l%player%&eによって"
  136. broadcast "&e抽選が始まります!"
  137. broadcast "&e報酬は&b&l%arg 1% point&eです!"
  138. broadcast "&e抽選を開始します!"
  139. broadcast "&b----------------------------"
  140. wait 2 seconds
  141. broadcast "&a."
  142. wait 2 seconds
  143. broadcast "&b.."
  144. wait 2 seconds
  145. broadcast "&e...!"
  146. wait 3 seconds
  147. set {tag} to random player out of all players
  148. add arg 1 to {%{tag}%.point}
  149. broadcast "&b---&d&l抽選結果&b-----------------"
  150. broadcast "&b&l%player%&e主催の抽選で"
  151. broadcast "&b&l%{tag}%&eのpointが"
  152. broadcast "&b&l%arg 1% &e増加しました!!"
  153. broadcast "&b----------------------------"
  154. message "&e&l%arg 1%point&b&l入手しました" to {tag}
  155. command "/playsound minecraft:entity.player.levelup ambient @a ~ ~ ~ 1.0 0.53 1.0"
  156.  
  157. #処罰
  158. command /aplost <player> <text>:
  159. trigger:
  160. player has permission "pvp.admin"
  161. if arg 2 is "point":
  162. set {%arg 1%.point} to 0
  163. broadcast "&4---&c&l処罰情報&4-------------"
  164. broadcast "&a運営の&e&l%player%&aによって"
  165. broadcast "&c&l%arg 1%&aのpointが"
  166. broadcast "&c0&aになりました"
  167. broadcast "&4--------------------------"
  168. if arg 2 is "kit":
  169. set {%arg 1%.1} to false
  170. set {%arg 1%.2} to false
  171. set {%arg 1%.3} to false
  172. set {%arg 1%.4} to false
  173. set {%arg 1%.5} to false
  174. set {%arg 1%.6} to false
  175. set {%arg 1%.7} to false
  176. set {%arg 1%.8} to false
  177. set {%arg 1%.9} to false
  178. set {%arg 1%.10} to false
  179. set {%arg 1%.11} to false
  180. set {%arg 1%.12} to false
  181. set {%arg 1%.13} to false
  182. set {%arg 1%.14} to false
  183. broadcast "&4---&c&l処罰情報&4-------------"
  184. broadcast "&a運営の&e&l%player%&aによって"
  185. broadcast "&c&l%arg 1%&aのkitが"
  186. broadcast "&cなくなりました"
  187. broadcast "&4--------------------------"
  188.  
  189. #kit操作
  190. command /apkit <player=%player%> <number> <text=true>:
  191. trigger:
  192. player has permission "pvp.admin"
  193. set {%arg 1%.%arg 2%} to arg 3
  194. broadcast "&b&l運営&e&l%player%&b&lによって &e&l%arg 1% の"
  195. broadcast "&b&lkit番号 &e&l%arg 2% &b&lが &e&l%arg 3%&a&lになりました"
  196.  
  197. #---一般用コマンド---
  198.  
  199. #一般用のhelp
  200. command /phelp <player=%player%>:
  201. trigger:
  202. message "&b----------------------------" to arg 1
  203. message "&dKurumiKitPvPserver 一般用help" to arg 1
  204. message "&b----------------------------" to arg 1
  205. message "&e/phelp &a...このhelpが出ます" to arg 1
  206. message "&e/lobby &a...lobbyモードに戻ります" to arg 1
  207. message "&e/pp <player> &a... そのプレイヤーのpointを観覧します" to arg 1
  208. message "&e/psend <player> <数値> &a...ポイント譲渡"
  209. message "&e/ppar <number> &a...ポイント抽選開催"
  210. message "&e/rhelp &a...rankについてのhelp" to arg 1
  211. message "&e/ghelp &a...ガチャについてのhelp" to arg 1
  212. message "&b----------------------------" to arg 1
  213. command "/playsound minecraft:entity.arrow.hit_player ambient %arg 1% ~ ~ ~ 1.0 0.5 1.0"
  214.  
  215. #menuコマンド
  216. command /pmenu <player=%player%>:
  217. trigger:
  218. open chest with 2 row named "&4&lKKPメニュー" to arg 1
  219. wait 1 tick
  220. command "/playsound minecraft:entity.arrow.hit_player ambient %arg 1% ~ ~ ~ 1.0 0.5 1.0"
  221. format slot 1 of arg 1 with 368 named "&aロビーにteleportする" to close then run [execute console command "/tp %arg 1% 1195 46 208"]
  222. format slot 2 of arg 1 with 368 named "&aガチャゾーンにteleportする 現在使えません" to close then run [execute console command "/tp %arg 1% 1195 73 208"]
  223. format slot 9 of arg 1 with {point.%arg%} of nether star named "&b所持ポイント &e%{%arg 1%.point}%" to close
  224. format slot 17 of arg 1 with barrier named "<magenta>キャンセル" to close
  225. stop
  226.  
  227. #rankコマンド
  228. command /rhelp:
  229. trigger:
  230. message "&b---rankとは----------------------------------"
  231. message "&arankとはプレイヤーの中の格付けです"
  232. message "&a始めはrank 1 から始まります。"
  233. message "&arankは購入できるkitに影響を与え、"
  234. message "&aガチャで得られたチケットの使用にも"
  235. message "&a関わります。 ガチャ→ /ghelp"
  236. message "&arankはランクメニューから順番に購入することができます"
  237. message "&b----------------------------------------------"
  238.  
  239. #ガチャコマンド
  240. command /ghelp:
  241. trigger:
  242. message "&b---ガチャ-------------------------------------"
  243. message "&aガチャはガチャキー購入メニューから入手できます"
  244. message "&aガチャゾーンは、サーバーメニューから"
  245. message "&a移動できます。 サーバーメニュー → /pmenu"
  246. message "&a中には、ガチャ限定のkitもあるらしい..."
  247. message "&b----------------------------------------------"
  248.  
  249. #kitselectコマンド
  250. command /pkitselect <player=%player%>:
  251. trigger:
  252. open chest with 3 row named "&4&lKKP kit選択メニュー" to arg 1
  253. wait 1 tick
  254. command "/playsound minecraft:entity.arrow.hit_player ambient %arg 1% ~ ~ ~ 1.0 0.5 1.0"
  255. if {%arg 1%.1} is "true":
  256. format slot 1 of arg 1 with stick named "&e&l初心のkit" to run [execute console command "/kit %arg 1% 1"]
  257. else:
  258. format slot 1 of arg 1 with 160:14 named "&e&l初心のkit 未購入" to close
  259. if {%arg 1%.2} is "true":
  260. format slot 2 of arg 1 with 336 named "&e&lビギナーズkit" to run [execute console command "/kit %arg 1% 2"]
  261. else:
  262. format slot 2 of arg 1 with 160:14 named "&e&lビギナーズkit 未購入" to close
  263. if {%arg 1%.3} is "true":
  264. format slot 3 of arg 1 with wooden sword named "&e&l修行人" to run [execute console command "/kit %arg 1% 3"]
  265. else:
  266. format slot 3 of arg 1 with 160:14 named "&e&l修行人 未購入" to close
  267. if {%arg 1%.4} is "true":
  268. format slot 4 of arg 1 with arrow named "&e&l弓好き" to run [execute console command "/kit %arg 1% 4"]
  269. else:
  270. format slot 4 of arg 1 with 160:14 named "&e&l弓好き 未購入" to close
  271. if {%arg 1%.5} is "true":
  272. format slot 5 of arg 1 with 373 named "&e&l薬師" to run [execute console command "/kit %arg 1% 5"]
  273. else:
  274. format slot 5 of arg 1 with 160:14 named "&e&l薬師 未購入" to close
  275. if {%arg 1%.6} is "true":
  276. format slot 6 of arg 1 with stone sword named "&e&l剣士" to run [execute console command "/kit %arg 1% 6"]
  277. else:
  278. format slot 6 of arg 1 with 160:14 named "&e&l剣士 未購入" to close
  279. if {%arg 1%.7} is "true":
  280. format slot 7 of arg 1 with 351:1 named "&e&lウォーリアー" to run [execute console command "/kit %arg 1% 7"]
  281. else:
  282. format slot 7 of arg 1 with 160:14 named "&e&lウォーリアー 未購入" to close
  283. if {%arg 1%.8} is "true":
  284. format slot 10 of arg 1 with bow named "&e&lアーチャー" to run [execute console command "/kit %arg 1% 8"]
  285. else:
  286. format slot 10 of arg 1 with 160:14 named "&e&lアーチャー 未購入" to close
  287. if {%arg 1%.9} is "true":
  288. format slot 11 of arg 1 with 442 named "&e&lタンク" to run [execute console command "/kit %arg 1% 9"]
  289. else:
  290. format slot 11 of arg 1 with 160:14 named "&e&lタンク 未購入" to close
  291. if {%arg 1%.10} is "true":
  292. format slot 12 of arg 1 with 443 named "&e&l飛行剣士" to run [execute console command "/kit %arg 1% 10"]
  293. else:
  294. format slot 12 of arg 1 with 160:14 named "&e&l飛行剣士 未購入" to close
  295. if {%arg 1%.11} is "true":
  296. format slot 13 of arg 1 with 401 named "&e&l花火師" to run [execute console command "/kit %arg 1% 11"]
  297. else:
  298. format slot 13 of arg 1 with 160:14 named "&e&l花火師 未購入" to close
  299. if {%arg 1%.12} is "true":
  300. format slot 14 of arg 1 with 263:1 named "&e&l妨害厨" to run [execute console command "/kit %arg 1% 12"]
  301. else:
  302. format slot 14 of arg 1 with 160:14 named "&e&l妨害厨 未購入" to close
  303. if {%arg 1%.13} is "true":
  304. format slot 15 of arg 1 with 351:2 named "&e&l軽装戦士" to run [execute console command "/kit %arg 1% 13"]
  305. else:
  306. format slot 15 of arg 1 with 160:14 named "&e&l軽装戦士 未購入" to close
  307. if {%arg 1%.14} is "true":
  308. format slot 16 of arg 1 with 351:1 named "&e&l毒蛇" to run [execute console command "/kit %arg 1% 14"]
  309. else:
  310. format slot 16 of arg 1 with 160:14 named "&e&l毒蛇 未購入" to close
  311. format slot 18 of arg 1 with {point.%arg%} of nether star named "&b所持ポイント &e%{%arg 1%.point}%" to close
  312. format slot 26 of arg 1 with barrier named "<magenta>キャンセル" to close
  313. stop
  314.  
  315. #kitbuyコマンド
  316. command /pkitbuy <player=%player%>:
  317. trigger:
  318. open chest with 3 row named "&4&lKKP kit購入メニュー" to arg 1
  319. wait 1 tick
  320. command "/playsound minecraft:entity.arrow.hit_player ambient %arg 1% ~ ~ ~ 1.0 0.5 1.0"
  321. if {%arg 1%.1} is not "true":
  322. format slot 1 of arg 1 with stick named "&e&l初心のkit [0]" to close then run [execute console command "/kitbuy %arg 1% 0 1"]
  323. else:
  324. format slot 1 of arg 1 with 160:5 named "&e&l初心のkit 購入済" to close
  325. if {%arg 1%.2} is not "true":
  326. format slot 2 of arg 1 with 336 named "&e&lビギナーズkit [0]" to close then run [execute console command "/kitbuy %arg 1% 0 2"]
  327. else:
  328. format slot 2 of arg 1 with 160:5 named "&e&lビギナーズkit 購入済" to close
  329. if {%arg 1%.3} is not "true":
  330. format slot 3 of arg 1 with wooden sword named "&e&l修行人 [500]" to close then run [execute console command "/kitbuy %arg 1% 500 3"]
  331. else:
  332. format slot 3 of arg 1 with 160:5 named "&e&l修行人 購入済" to close
  333. if {%arg 1%.4} is not "true":
  334. format slot 4 of arg 1 with arrow named "&e&l弓好き [1000]" to close then run [execute console command "/kitbuy %arg 1% 1000 4"]
  335. else:
  336. format slot 4 of arg 1 with 160:5 named "&e&l弓好き 購入済" to close
  337. if {%arg 1%.5} is not "true":
  338. format slot 5 of arg 1 with 373 named "&e&l薬師 [2500]" to close then run [execute console command "/kitbuy %arg 1% 2500 5"]
  339. else:
  340. format slot 5 of arg 1 with 160:5 named "&e&l薬師 購入済" to close
  341. if {%arg 1%.6} is not "true":
  342. format slot 6 of arg 1 with stone sword named "&e&l剣士 [3500]" to close then run [execute console command "/kitbuy %arg 1% 3500 6"]
  343. else:
  344. format slot 6 of arg 1 with 160:5 named "&e&l剣士 購入済" to close
  345. if {%arg 1%.7} is not "true":
  346. format slot 7 of arg 1 with 160:4 named "&e&lウォーリアー [???]" to close
  347. else:
  348. format slot 7 of arg 1 with 160:6 named "&e&lウォーリアー 購入済" to close
  349. if {%arg 1%.8}
  350. format slot 10 of arg 1 with bow named "&e&lアーチャー [5000]" to close then run [execute console command "/kitbuy %arg 1% 5000 8"]
  351. else:
  352. format slot 10 of arg 1 with 160:5 named "&e&lアーチャー 購入済" to close
  353. if {%arg 1%.9} is not "true":
  354. format slot 11 of arg 1 with 336 named "&e&lタンク [5000]" to close then run [execute console command "/kitbuy %arg 1% 5000 9"]
  355. else:
  356. format slot 11 of arg 1 with 160:5 named "&e&lタンク 購入済" to close
  357. if {%arg 1%.10} is not "true":
  358. format slot 12 of arg 1 with 160:4 named "&e&l飛行剣士 [???]" to close
  359. else:
  360. format slot 12 of arg 1 with 160:6 named "&e&l飛行剣士 購入済" to close
  361. if {%arg 1%.11} is not "true":
  362. format slot 13 of arg 1 with 160:4 named "&e&l花火師 [???]" to close
  363. else:
  364. format slot 13 of arg 1 with 160:6 named "&e&l花火師 購入済" to close
  365. if {%arg 1%.12} is not "true":
  366. format slot 14 of arg 1 with 160:4 named "&e&l妨害厨 [???]" to close
  367. else:
  368. format slot 14 of arg 1 with 160:6 named "&e&l妨害厨 購入済" to close
  369. if {%arg 1%.13} is not "true":
  370. format slot 15 of arg 1 with 160:4 named "&e&l軽装戦士 [???]" to close
  371. else:
  372. format slot 15 of arg 1 with 160:6 named "&e&l軽装戦士 購入済" to close
  373. if {%arg 1%.14} is not "true":
  374. format slot 16 of arg 1 with 160:4 named "&e&l毒蛇 [???]" to close
  375. else:
  376. format slot 16 of arg 1 with 160:5 named "&e&l毒蛇 購入済" to close
  377. format slot 18 of arg 1 with {point.%arg%} of nether star named "&b所持ポイント &e%{%arg 1%.point}%" to close
  378. format slot 26 of arg 1 with barrier named "<magenta>キャンセル" to close
  379. stop
  380.  
  381. #kit購入コマンド
  382. command /kitbuy <player=%player%> <number> <number>:
  383. trigger:
  384. if {%arg 1%.point} is arg 2:
  385. remove arg 2 from {%arg 1%.point}
  386. set {%arg 1%.%arg 3%} to "true"
  387. command "/playsound minecraft:entity.player.levelup ambient %arg 1% ~ ~ ~ 1.0 0.53 1.0"
  388. message "&e&l購入成功!" to arg 1
  389. message "&a残りpoint &e&l%{%arg 1%.point}%&apoint" to arg 1
  390. stop
  391. if {%arg 1%.point} > arg 2:
  392. remove arg 2 from {%arg 1%.point}
  393. set {%arg 1%.%arg 3%} to "true"
  394. command "/playsound minecraft:entity.player.levelup ambient %arg 1% ~ ~ ~ 1.0 0.53 1.0"
  395. message "&e&l購入成功!" to arg 1
  396. message "&a残りpoint &e&l%{%arg 1%.point}%&apoint" to arg 1
  397. stop
  398. else:
  399. message "<red>購入条件を満たしていません!" to arg 1
  400. message "&aあなたの所持してるpointは &e&l%{%arg 1%.point}%&apoint" to arg 1
  401. command "/playsound minecraft:entity.arrow.hit_player ambient %player% ~ ~ ~ 1.0 0.5 1.0"
  402.  
  403. #kit選択コマンド
  404. command /kit <player=%player%> <number>:
  405. trigger:
  406. command "/clear %arg 1%"
  407. set {%arg 1%.kit} to arg 2
  408. command "/menu grab %arg 1% %arg 2%"
  409. command "/playsound minecraft:entity.arrow.hit_player ambient %arg 1% ~ ~ ~ 1.0 0.5 1.0"
  410. message "&b&lkitを選択しました"
  411. message "&b&llobbyモードに戻るをクリックで戻せます"
  412.  
  413. #kit番号確認
  414. command /kitnumber <player=%player%>:
  415. trigger:
  416. message "&b&l現在の&e&l%arg 1%&b&lのkit番号は &e&l{%arg 1%.kit} &b&lです"
  417. command "/playsound minecraft:entity.arrow.hit_player ambient %arg 1% ~ ~ ~ 1.0 0.5 1.0"
  418.  
  419. #point確認コマンド ブロック用
  420. command /ppp <player=%player%>:
  421. trigger:
  422. command "/playsound minecraft:entity.arrow.hit_player ambient %arg 1% ~ ~ ~ 1.0 0.5 1.0"
  423. message "&aあなたが所持しているpointは&e&l%{%arg 1%.point}%&apoint" to arg 1
  424.  
  425. #point確認コマンド
  426. command /pp <player=%player%>:
  427. trigger:
  428. command "/playsound minecraft:entity.arrow.hit_player ambient %player% ~ ~ ~ 1.0 0.5 1.0"
  429. message "&a%arg 1%が所持しているpointは&e&l%{%arg 1%.point}%&apoint" to player
  430.  
  431. #point譲渡コマンド
  432. command /psend <player> <number>:
  433. trigger:
  434. remove arg 2 from {%player%.point}
  435. add arg 2 to {%arg 1%.point}
  436. command "/playsound minecraft:entity.arrow.hit_player ambient %arg 1% ~ ~ ~ 1.0 0.5 1.0"
  437. command "/playsound minecraft:entity.arrow.hit_player ambient %player% ~ ~ ~ 1.0 0.5 1.0"
  438. message "&e&l%arg 1%&b&lに&e&l%arg 2%&b&lpointを渡しました" to player
  439. message "&e&l%player%&b&lから&e&l%arg 2%&b&lpointを受け取りました" to arg 1
  440.  
  441. #一般抽選
  442. command /ppar <number>:
  443. trigger:
  444. command "/playsound minecraft:entity.arrow.hit_player ambient @a ~ ~ ~ 1.0 0.5 1.0"
  445. broadcast "---&d抽選&f-----------------"
  446. broadcast "一般Playerの&b%player%&fによって"
  447. broadcast "&f抽選が始まります!"
  448. broadcast "&f報酬は&b%arg 1% point&fです!"
  449. broadcast "&f抽選を開始します!"
  450. broadcast "----------------------------"
  451. remove arg 1 from {%player%.point}
  452. wait 2 seconds
  453. broadcast "&1."
  454. wait 2 seconds
  455. broadcast "&1.."
  456. wait 2 seconds
  457. broadcast "&b...!"
  458. wait 3 seconds
  459. set {tag} to random player out of all players
  460. add arg 1 to {%{tag}%.point}
  461. broadcast "---&d抽選結果&f-----------------"
  462. broadcast "&b%player%&f主催の抽選で"
  463. broadcast "&b%{tag}%&fのpointが"
  464. broadcast "&b%arg 1% &f増加しました!!"
  465. broadcast "&b----------------------------"
  466. message "&e&l%arg 1%point&b&l入手しました" to {tag}
  467. command "/playsound minecraft:entity.player.levelup ambient @a ~ ~ ~ 1.0 0.53 1.0"
  468.  
  469. #lobbyモードにするコマンド
  470. command /lobby <player=%player%>:
  471. trigger:
  472. command "/clear %arg 1%"
  473. command "/playsound minecraft:entity.arrow.hit_player ambient %arg 1% ~ ~ ~ 1.0 0.5 1.0"
  474. message "&b&llobbyモードに戻りました" to arg 1
  475. command "/menu grab %arg 1% 0"
  476.  
  477. #ガチャメニュー
  478. command /gmenu <player=%player%>:
  479. trigger:
  480. open chest with 3 row named "&4&lKKP ガチャキー購入メニュー" to arg 1
  481. wait 1 tick
  482. command "/playsound minecraft:entity.arrow.hit_player ambient %arg 1% ~ ~ ~ 1.0 0.5 1.0"
  483. format slot 1 of arg 1 with 131 named "&e&lpointガチャキー [500]" to run [execute console command "/gbuy %arg 1% 1 500"]
  484. format slot 18 of arg 1 with {point.%arg%} of nether star named "&b所持ポイント &e%{%arg 1%.point}%" to close
  485. format slot 26 of arg 1 with barrier named "<magenta>キャンセル" to close
  486. stop
  487.  
  488. command /gbuy <player> <number> <number>:
  489. trigger:
  490. if {%arg 1%.point} is arg 3:
  491. command "/playsound minecraft:entity.player.levelup ambient %arg 1% ~ ~ ~ 1.0 0.53 1.0"
  492. message "&e&l購入成功!" to arg 1
  493. message "&a残りpoint &e&l%{%arg 1%.point}%&apoint" to arg 1
  494. remove arg 3 from {%arg 1%.point}
  495. if arg 2 is 1:
  496. command "/crate key %arg 1% pointガチャ 1"
  497. if arg 2 is 2:
  498. command "/crate key %arg 1% イベントガチャ 1"
  499. stop
  500. if {%arg 1%.point} > arg 3:
  501. command "/playsound minecraft:entity.player.levelup ambient %arg 1% ~ ~ ~ 1.0 0.53 1.0"
  502. message "&e&l購入成功!" to arg 1
  503. message "&a残りpoint &e&l%{%arg 1%.point}%&apoint" to arg 1
  504. remove arg 3 from {%arg 1%.point}
  505. if arg 2 is 1:
  506. command "/crate key %arg 1% pointガチャ 1"
  507. if arg 2 is 2:
  508. command "/crate key %arg 1% イベントガチャ 1"
  509. stop
  510. else:
  511. message "<red>購入条件を満たしていません!" to arg 1
  512. message "&aあなたの所持してるpointは &e&l%{%arg 1%.point}%&apoint" to arg 1
  513. command "/playsound minecraft:entity.arrow.hit_player ambient %player% ~ ~ ~ 1.0 0.5 1.0"
  514.  
  515. command /rmenu <player=%player%>:
  516. trigger:
  517. open chest with 3 row named "&4&lKKP ランク購入メニュー" to arg 1
  518. wait 1 tick
  519. command "/playsound minecraft:entity.arrow.hit_player ambient %arg 1% ~ ~ ~ 1.0 0.5 1.0"
  520. format slot 12 of arg 1 with 160:4 named "&cXXX" to close
  521. format slot 14 of arg 1 with 160:4 named "&cXXX" to close
  522. format slot 3 of arg 1 with 160:4 named "&cXXX" to close
  523. format slot 5 of arg 1 with 160:4 named "&cXXX" to close
  524. format slot 21 of arg 1 with 160:4 named "&cXXX" to close
  525. format slot 23 of arg 1 with 160:4 named "&cXXX" to close
  526. format slot 4 of arg 1 with 160:4 named "&cXXX" to close
  527. format slot 22 of arg 1 with 160:4 named "&cXXX" to close
  528. if {%arg 1%.rank} is 0:
  529. format slot 13 of arg 1 with book named "&e&lrank1 になる [0]" to close then run [execute console command "/rbuy %arg 1% 1 0"]
  530. if {%arg 1%.rank} is 1:
  531. format slot 13 of arg 1 with book named "&e&lrank2 になる [300]" to close then run [execute console command "/rbuy %arg 1% 2 300"]
  532. if {%arg 1%.rank} is 2:
  533. format slot 13 of arg 1 with book named "&e&lrank3 になる [1000]" to close then run [execute console command "/rbuy %arg 1% 3 1000"]
  534. if {%arg 1%.rank} > 2:
  535. format slot 13 of arg 1 with book named "未実装" to close
  536. format slot 18 of arg 1 with {point.%arg%} of nether star named "&b所持ポイント &e%{%arg 1%.point}%" to close
  537. format slot 26 of arg 1 with barrier named "<magenta>キャンセル" to close
  538. stop
  539.  
  540. command /rbuy <player> <number> <number>:
  541. trigger:
  542. if {%arg 1%.point} is arg 3:
  543. command "/playsound minecraft:entity.player.levelup ambient %arg 1% ~ ~ ~ 1.0 0.53 1.0"
  544. message "&e&l購入成功!" to arg 1
  545. message "&a残りpoint &e&l%{%arg 1%.point}%&apoint" to arg 1
  546. set {%arg 1%.rank} to arg 2
  547. stop
  548. if {%arg 1%.point} > arg 3:
  549. command "/playsound minecraft:entity.player.levelup ambient %arg 1% ~ ~ ~ 1.0 0.53 1.0"
  550. message "&e&l購入成功!" to arg 1
  551. message "&a残りpoint &e&l%{%arg 1%.point}%&apoint" to arg 1
  552. set {%arg 1%.rank} to arg 2
  553. stop
  554. else:
  555. message "<red>購入条件を満たしていません!" to arg 1
  556. message "&aあなたの所持してるpointは &e&l%{%arg 1%.point}%&apoint" to arg 1
  557. command "/playsound minecraft:entity.arrow.hit_player ambient %player% ~ ~ ~ 1.0 0.5 1.0"
  558.  
  559.  
  560. #動作
  561.  
  562. on click with book:
  563. name of player's tool contains "&e&lキット選択メニュー"
  564. wait 1 tick
  565. execute console command "/pkitselect %player%"
  566.  
  567. on click with nether star:
  568. name of player's tool contains "&e&lサーバーメニュー"
  569. wait 1 tick
  570. execute console command "/pmenu %player%"
  571.  
  572. on click with emerald:
  573. name of player's tool contains "&e&l所持ポイント確認"
  574. wait 1 tick
  575. execute console command "/pp %player%"
  576.  
  577. on click with gold nugget:
  578. name of player's tool contains "&e&lキット購入メニュー"
  579. wait 1 tick
  580. execute console command "/pkitbuy %player%"
  581.  
  582. on click with 402:
  583. name of player's tool contains "&e&lガチャキー購入メニュー"
  584. wait 1 tick
  585. execute console command "/gmenu %player%"
  586.  
  587. on click with 369:
  588. name of player's tool contains "&e&lランク購入メニュー"
  589. wait 1 tick
  590. execute console command "/rmenu %player%"
  591.  
  592. on click with bone:
  593. name of player's tool contains "&e&llobbyモードに戻る"
  594. wait 1 tick
  595. execute console command "/lobby %player%"
  596.  
  597. #----------------------------
  598. #職業入手チケット
  599.  
  600. on click with paper:
  601. name of player's tool contains "&e&l飛行剣士 [rank 3]"
  602. if {%player%.rank} > 2:
  603. command "/pbuy %player% 0 10"
  604. else:
  605. message "&crank 3 以上でないと使えません!"
  606.  
  607. on click with paper:
  608. name of player's tool contains "&e&l花火師 [rank 2]"
  609. if {%player%.rank} > 1:
  610. command "/pbuy %player% 0 11"
  611. else:
  612. message "&crank 2 以上でないと使えません!"
  613.  
  614. on click with paper:
  615. name of player's tool contains "&e&l妨害厨 [rank 2]"
  616. if {%player%.rank} > 1:
  617. command "/pbuy %player% 0 12"
  618. else:
  619. message "&crank 2 以上でないと使えません!"
  620.  
  621. on click with paper:
  622. name of player's tool contains "&e&l軽装戦士 [rank 2]"
  623. if {%player%.rank} > 1:
  624. command "/pbuy %player% 0 13"
  625. else:
  626. message "&crank 2 以上でないと使えません!"
  627.  
  628. on click with paper:
  629. name of player's tool contains "&e&l毒蛇 [rank 3]"
  630. if {%player%.rank} > 2:
  631. command "/pbuy %player% 0 14"
  632. else:
  633. message "&crank 3 以上でないと使えません!"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement