Advertisement
Guest User

Untitled

a guest
Jan 20th, 2018
223
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.17 KB | None | 0 0
  1. #BuyKitPVPserver 専用Skript
  2.  
  3. #定義づけ point
  4. variables:
  5. {%player%.point} = 1000
  6.  
  7. #killした時の処理
  8. on death of player:
  9. if attacker is a player:
  10. message "&a+&e%{killpoint}%&apoint"
  11. add {killpoint} to {%attacker%.point}
  12.  
  13. #---運営用コマンド---
  14.  
  15.  
  16. #運営用のhelp
  17. command /aphelp:
  18. trigger:
  19. player has permission "pvp.admin"
  20. message "&d----------------------------"
  21. message "&bBuyKitPVPserver 運営用help"
  22. message "&b必要permission → pvp.admin"
  23. message "&d----------------------------"
  24. message "&e/aphelp &a...このhelpが出ます"
  25. message "&e/apkillpoint <数値>"
  26. message "&a ... killごとの入手pointの変更"
  27. message "&e/appa <player> <数値>"
  28. message "&a ... pointを増加させる"
  29. message "&e/apps <player> <数値>"
  30. message "&a ... pointを設定する"
  31. message "&e/appaall <数値>"
  32. message "&a ... 全員のpointを増加させる"
  33. message "&d----------------------------"
  34. command "/playsound minecraft:entity.arrow.hit_player ambient %player% ~ ~ ~ 1.0 0.5"
  35.  
  36. #killごとの入手pointの変更コマンド
  37. command /apkillpoint <number>:
  38. trigger:
  39. player has permission "pvp.admin"
  40. set {killpoint} to arg 1
  41. broadcast "&a----------------------------"
  42. broadcast "&a運営の&e%player%&aによって"
  43. broadcast "&akillごとの入手pointが"
  44. broadcast "&a通常の&e%{killpoint}/100%&aである"
  45. broadcast "&e%arg 1%&aになりました!"
  46. broadcast "&a----------------------------"
  47. command "/playsound minecraft:entity.player.levelup ambient @a ~ ~ ~ 1.0 0.53"
  48.  
  49. #point変動コマンド
  50. command /appa <player> <number>:
  51. trigger:
  52. player has permission "pvp.admin"
  53. add arg 2 to {%arg 1%.point}
  54. broadcast "----------------------------"
  55. broadcast "&a運営の&e%player%&aによって"
  56. broadcast "&e%arg 1%&aさんのpointが"
  57. broadcast "&e%arg 2% &a増加しました"
  58. broadcast "----------------------------"
  59. command "/playsound minecraft:entity.arrow.hit_player ambient @a ~ ~ ~ 1.0 0.5"
  60.  
  61. command /apps <player> <number>:
  62. trigger:
  63. player has permission "pvp.admin"
  64. set {%arg 1%.point} to arg 2
  65. broadcast "----------------------------"
  66. broadcast "&a運営の&e%player%&aによって"
  67. broadcast "&e%arg 1%&aさんのpointが"
  68. broadcast "&e%arg 2% &aになりました"
  69. broadcast "----------------------------"
  70. command "/playsound minecraft:entity.arrow.hit_player ambient %arg 1% ~ ~ ~ 1.0 0.5"
  71. command "/playsound minecraft:entity.arrow.hit_player ambient %player% ~ ~ ~ 1.0 0.5"
  72.  
  73. command /appaall <number>:
  74. trigger:
  75. player has permission "pvp.admin"
  76. loop all players:
  77. add arg 1 to {%loop-player%.point}
  78. message "----------------------------"
  79. message "&a運営の&e%player%&aによって"
  80. message "&eOnlinePlayer全員のpointが"
  81. message "&e%arg 1% &a増加しました!!"
  82. message "----------------------------"
  83. command "/playsound minecraft:entity.player.levelup ambient %player% ~ ~ ~ 1.0 0.53"
  84.  
  85. #---一般用コマンド---
  86.  
  87. #一般用のhelp
  88. command /phelp:
  89. trigger:
  90. message "&b----------------------------"
  91. message "&dBuyKitPVPserver 一般用help"
  92. message "&b----------------------------"
  93. message "&e/phelp &a...このhelpが出ます"
  94. message "&e/pmenu &a... menuを開きます"
  95. message "&e/pkit &a... kit管理menuを開きます"
  96. message "&e/pp &a... 自分のpointを観覧します"
  97. message "&b----------------------------"
  98. command "/playsound minecraft:entity.arrow.hit_player ambient %player% ~ ~ ~ 1.0 0.5"
  99.  
  100. #menuコマンド
  101. command /pmenu <player=%player%>:
  102. trigger:
  103. open chest with 2 row named "&aBKPメニュー" to arg 1
  104. wait 1 tick
  105. command "/playsound minecraft:entity.arrow.hit_player ambient %arg 1% ~ ~ ~ 1.0 0.5"
  106. format slot 1 of arg 1 with 368 named "&aロビーにteleportする" to close then run [execute console command "/tp %arg 1% 1195 4 208"]
  107. format slot 9 of arg 1 with {point.%arg%} of nether star named "&b所持ポイント &e%{%arg 1%.point}%" to close
  108. format slot 17 of arg 1 with barrier named "<magenta>キャンセル" to close
  109. stop
  110.  
  111. #kitmenuコマンド
  112. command /pkit <player=%player%>:
  113. trigger:
  114. open chest with 2 row named "&aBKP kit管理メニュー" to arg 1
  115. wait 1 tick
  116. command "/playsound minecraft:entity.arrow.hit_player ambient %arg 1% ~ ~ ~ 1.0 0.5"
  117. format slot 1 of arg 1 with book named "&ekit選択メニュー" to close then run [execute console command "/pkitselect %arg 1%"]
  118. format slot 2 of arg 1 with gold ingot named "&ekit購入メニュー" to close then run [execute console command "/pkitbuy %arg 1%"]
  119. format slot 9 of arg 1 with {point.%arg%} of nether star named "&b所持ポイント &e%{%arg 1%.point}%" to close
  120. format slot 17 of arg 1 with barrier named "<magenta>キャンセル" to close
  121. stop
  122.  
  123. #kitselectコマンド
  124. command /pkitselect <player=%player%>:
  125. trigger:
  126. wait 2 tick
  127. open chest with 3 row named "&eBKP kit選択メニュー" to arg 1
  128. wait 1 tick
  129. command "/playsound minecraft:entity.arrow.hit_player ambient %arg 1% ~ ~ ~ 1.0 0.5"
  130. if {%arg 1%.1} is "true":
  131. format slot 1 of arg 1 with stick named "&e初心のkit" to run [execute console command "/kit %arg 1% 1"]
  132. else:
  133. format slot 1 of arg 1 with 160:14 named "&e初心のkit 未購入" to close
  134. if {%arg 1%.2} is "true":
  135. format slot 2 of arg 1 with 336 named "&eビギナーズkit" to run [execute console command "/kit %arg 1% 2"]
  136. else:
  137. format slot 2 of arg 1 with 160:14 named "&eビギナーズkit 未購入" to close
  138. format slot 18 of arg 1 with {point.%arg%} of nether star named "&b所持ポイント &e%{%arg 1%.point}%" to close
  139. format slot 26 of arg 1 with barrier named "<magenta>キャンセル" to close
  140. stop
  141.  
  142. #kitbuyコマンド
  143. command /pkitbuy <player=%player%>:
  144. trigger:
  145. open chest with 3 row named "&eBKP kit購入メニュー"
  146. wait 1 tick
  147. command "/playsound minecraft:entity.arrow.hit_player ambient %arg 1% ~ ~ ~ 1.0 0.5"
  148. if {%arg 1%.1} is not "true":
  149. format slot 1 of arg 1 with stick named "&e初心のkit" to run [execute console command "/kitbuy %arg 1% 1 500"]
  150. else:
  151. format slot 1 of arg 1 with 160:5 named "&e初心のkit 購入済" to close
  152. if {%arg 1%.2} is not "true":
  153. format slot 2 of arg 1 with 336 named "&eビギナーズkit" to run [execute console command "/kitbuy %arg 1% 500"]
  154. else:
  155. format slot 2 of arg 1 with 160:5 named "&eビギナーズkit 購入済" to close
  156. format slot 18 of arg 1 with {point.%arg%} of nether star named "&b所持ポイント &e%{%arg 1%.point}%" to close
  157. format slot 26 of arg 1 with barrier named "<magenta>キャンセル" to close
  158. stop
  159.  
  160. #kit購入コマンド
  161. command /kitbuy <player=%player%> <number> <number>:
  162. trigger:
  163. if {%arg 1%.point} is arg 2 or {%arg 1%.point} > arg 2:
  164. remove arg 2 from {%arg 1%.point}
  165. set {%arg 1%.%arg 3%} to true
  166. command "/playsound minecraft:entity.player.levelup ambient %arg 1% ~ ~ ~ 1.0 0.53"
  167. message "<yellow>購入成功!" to arg 1
  168. message "&a残りpoint &e&l%{%arg 1%.point}%&apoint" to arg 1
  169. else:
  170. message "<red>購入条件を満たしていません!" to arg 1
  171. message "&aあなたの所持してるpointは &e&l%{%arg 1%.point}%&apoint" to arg 1
  172. command "/playsound minecraft:entity.arrow.hit_player ambient %player% ~ ~ ~ 1.0 0.5"
  173.  
  174. #kit選択コマンド
  175. command /kit <player=%player%> <number>:
  176. trigger:
  177. set {%arg 1%.kit} to arg 2
  178. command "/menu grab %arg 1% %arg 2%"
  179. command "/playsound minecraft:entity.arrow.hit_player ambient %arg 1% ~ ~ ~ 1.0 0.5"
  180. message "&bkitを選択しました"
  181. message "&blobbyモードに戻るをクリックで戻せます"
  182.  
  183. #point確認コマンド
  184. command /myp <player>:
  185. trigger:
  186. command "/playsound minecraft:entity.arrow.hit_player ambient %player% ~ ~ ~ 1.0 0.5"
  187. message "&a%arg 1%の所持してるpointは&a&l%{%arg 1%.point}%&apoint" to arg 1
  188.  
  189. #動作
  190.  
  191. on click with book:
  192. wait 1 tick
  193. execute console command "/pkit %player%"
  194.  
  195. on click with nether star:
  196. wait 1 tick
  197. execute console command "/pmenu %player%"
  198.  
  199. on click with emerald:
  200. wait 1 tick
  201. execute console command "/myp %player%"
  202.  
  203. on click with gold ingot:
  204. wait 1 tick
  205. execute console command "/realm"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement