nasuhahahafff

Untitled

Aug 26th, 2018
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.32 KB | None | 0 0
  1. command /ah [<text>] [<number>]:
  2. trigger:
  3. if arg-1 is not set:
  4. if arg-2 is not set:
  5. open chest with 6 rows named "&3&l1ページ目" to player
  6. wait a tick
  7. set {uno1} to 1
  8. set {uno2} to 1
  9. if {ahs1} is true:
  10. format slot {uno1} of player with {ah%{ser%{uno2}%}%} with lore "&a&l値段: %{ahnedan%{ser%{uno2}%}%}%円" to run [make player execute command "cah 1"]
  11. add 1 to {uno1}
  12. add 1 to {uno2}
  13. if {ahs2} is true:
  14. format slot {uno1} of player with {ah%{ser%{uno2}%}%} with lore "&a&l値段: %{ahnedan%{ser%{uno2}%}%}%円" to run [make player execute command "cah 2"]
  15. add 1 to {uno1}
  16. add 1 to {uno2}
  17. if {ahs3} is true:
  18. format slot {uno1} of player with {ah%{ser%{uno2}%}%} with lore "&a&l値段: %{ahnedan%{ser%{uno2}%}%}%円" to run [make player execute command "cah 3"]
  19. add 1 to {uno1}
  20. add 1 to {uno2}
  21. if {ahs4} is true:
  22. format slot {uno1} of player with {ah%{ser%{uno2}%}%} with lore "&a&l値段: %{ahnedan%{ser%{uno2}%}%}%円" to run [make player execute command "cah 4"]
  23. add 1 to {uno1}
  24. add 1 to {uno2}
  25. if {ahs5} is true:
  26. format slot {uno1} of player with {ah%{ser%{uno2}%}%} with lore "&a&l値段: %{ahnedan%{ser%{uno2}%}%}%円" to run [make player execute command "cah 5"]
  27. add 1 to {uno1}
  28. add 1 to {uno2}
  29. if {ahs6} is true:
  30. format slot {uno1} of player with {ah%{ser%{uno2}%}%} with lore "&a&l値段: %{ahnedan%{ser%{uno2}%}%}%円" to run [make player execute command "cah 6"]
  31. add 1 to {uno1}
  32. add 1 to {uno2}
  33. if {ahs7} is true:
  34. format slot {uno1} of player with {ah%{ser%{uno2}%}%} with lore "&a&l値段: %{ahnedan%{ser%{uno2}%}%}%円" to run [make player execute command "cah 7"]
  35. add 1 to {uno1}
  36. add 1 to {uno2}
  37. set {uno1} to 10
  38. loop 7 times:
  39. if {ahs%{uno2}%} is true:
  40. format slot {uno1} of player with {ah%{ser%{uno2}%}%} with lore "&a&l値段: %{ahnedan%{ser%{uno2}%}%}%円" to run [make player execute command "cah %{uno2}%"]
  41. add 1 to {uno1}
  42. add 1 to {uno2}
  43. set {uno1} to 19
  44. loop 7 times:
  45. if {ahs%{uno2}%} is true:
  46. format slot {uno1} of player with {ah%{ser%{uno2}%}%} with lore "&a&l値段: %{ahnedan%{ser%{uno2}%}%}%円" to run [make player execute command "cah %{uno2}%"]
  47. add 1 to {uno1}
  48. add 1 to {uno2}
  49. set {uno1} to 28
  50. loop 7 times:
  51. if {ahs%{uno2}%} is true:
  52. format slot {uno1} of player with {ah%{ser%{uno2}%}%} with lore "&a&l値段: %{ahnedan%{ser%{uno2}%}%}%円" to run [make player execute command "cah %{uno2}%"]
  53. add 1 to {uno1}
  54. add 1 to {uno2}
  55. set {uno1} to 37
  56. loop 7 times:
  57. if {ahs%{uno2}%} is true:
  58. format slot {uno1} of player with {ah%{ser%{uno2}%}%} with lore "&a&l値段: %{ahnedan%{ser%{uno2}%}%}%円" to run [make player execute command "cah %{uno2}%"]
  59. add 1 to {uno1}
  60. add 1 to {uno2}
  61. wait 1 tick
  62. format slot 45 of player with gray wool named "&7&l閉じる" to run [close inventory to player]
  63. format slot 53 of player with light green wool named "&a&l次ページへ" to run [make player execute command "ah2"]
  64. if arg-1 is "sell":
  65. if arg-2 is set:
  66. if {ahs1} is false:
  67. set {ah%{ser1}%} to tool of player
  68. set {ahs1} to true
  69. set {ahno%{ser1}%} to player
  70. set {ahnumber} to 1
  71. set {ahnedan%{ser1}%} to arg-2
  72. loop 64 times:
  73. set {_item} to held item of player
  74. remove 1 of {_item} from player
  75. if {_item} is air:
  76. stop loop
  77. message "&b&lSystem &7&l≫ &a&l出品が正常に完了しました。"
  78. stop
  79. if {ahs1} is true:
  80. set {one12} to 101
  81. loop 101 times:
  82. remove 1 from {ser%{one12}%}
  83. remove 1 from {one12}
  84. set {ahno%{ser1}%} to player
  85. add 1 to {ahnumber}
  86. set {ahs%{ahnumber}%} to true
  87. set {ah%{ser1}%} to tool of player
  88. set {ahnedan%{ser1}%} to arg-2
  89. loop 64 times:
  90. set {_item} to held item of player
  91. remove 1 of {_item} from player
  92. if {_item} is air:
  93. stop loop
  94. message "&b&lSystem &7&l≫ &a&l出品が正常に完了しました。"
  95. stop
  96.  
  97. command /asup:
  98. permission: sk.admin
  99. trigger:
  100. set {ahnumber} to 0
  101. set {asu} to 1
  102. loop 101 times:
  103. set {ahs%{asu}%} to false
  104. add 1 to {asu}
  105. set {one12} to 1
  106. set {one13} to 101
  107. loop 101 times:
  108. set {ser%{one12}%} to {one13}
  109. add 1 to {one12}
  110. add 1 to {one13}
  111. set {_ponpon} to 1
  112. loop 101 times:
  113. set {ah%{_ponpon}%} to none
  114. set {ahnedan%{_ponpon}%} to none
  115. add 1 to {_ponpon}
  116.  
  117. command /ah2:
  118. trigger:
  119. open chest with 6 rows named "&3&l2ページ目" to player
  120. set {uno1} to 1
  121. wait 1 tick
  122. loop 7 times:
  123. format slot {uno1} of player with {ah%{ser%{uno2}%}%} to be unstealable
  124. add 1 to {uno1}
  125. add 1 to {uno2}
  126. set {uno1} to 10
  127. loop 7 times:
  128. format slot {uno1} of player with {ah%{ser%{uno2}%}%} to be unstealable
  129. add 1 to {uno1}
  130. add 1 to {uno2}
  131. set {uno1} to 19
  132. loop 7 times:
  133. format slot {uno1} of player with {ah%{ser%{uno2}%}%} to be unstealable
  134. add 1 to {uno1}
  135. add 1 to {uno2}
  136. set {uno1} to 28
  137. loop 7 times:
  138. format slot {uno1} of player with {ah%{ser%{uno2}%}%} to be unstealable
  139. add 1 to {uno1}
  140. add 1 to {uno2}
  141. set {uno1} to 37
  142. loop 7 times:
  143. format slot {uno1} of player with {ah%{ser%{uno2}%}%} to be unstealable
  144. add 1 to {uno1}
  145. add 1 to {uno2}
  146. wait 1 tick
  147. format slot 45 of player with red wool named "&4&l前ページへ" to run [make player execute command "ah"]
  148. format slot 53 of player with light green wool named "&a&l次ページへ" to run [make player execute command "ah3"]
  149.  
  150. command /ah3:
  151. trigger:
  152. open chest with 6 rows named "&3&l3ページ目" to player
  153. set {uno1} to 1
  154. wait 1 tick
  155. loop 7 times:
  156. format slot {uno1} of player with {ah%{ser%{uno2}%}%} to be unstealable
  157. add 1 to {uno1}
  158. add 1 to {uno2}
  159. set {uno1} to 10
  160. loop 7 times:
  161. format slot {uno1} of player with {ah%{ser%{uno2}%}%} to be unstealable
  162. add 1 to {uno1}
  163. add 1 to {uno2}
  164. set {uno1} to 19
  165. loop 7 times:
  166. format slot {uno1} of player with {ah%{ser%{uno2}%}%} to be unstealable
  167. add 1 to {uno1}
  168. add 1 to {uno2}
  169. set {uno1} to 28
  170. loop 7 times:
  171. format slot {uno1} of player with {ah%{ser%{uno2}%}%} to be unstealable
  172. add 1 to {uno1}
  173. add 1 to {uno2}
  174. set {uno1} to 37
  175. loop 2 times:
  176. format slot {uno1} of player with {ah%{ser%{uno2}%}%} to be unstealable
  177. add 1 to {uno1}
  178. add 1 to {uno2}
  179. format slot 45 of player with red wool named "&4&l前ページへ" to run [make player execute command "ah2"]
  180. format slot 53 of player with gray wool named "&7&l閉じる" to run [close inventory to player]
  181.  
  182. command /cah <number>:
  183. trigger:
  184. if {ahs%arg-1%} is true:
  185. if {%player%.motikane} < {ahnedan%{ser%arg-1%}%}:
  186. message "&c所持金が不足しています"
  187. stop
  188. open chest with 1 rows named "&3&l購入画面" to player
  189. wait a tick
  190. format slot 1 of player with red wool named "&c&lキャンセル" to run [close inventory to player]
  191. format slot 4 of player with {ah%{ser%arg-1%}%} to be unstealable
  192. format slot 7 of player with light green wool named "&3&l%{ahnedan%{ser%arg-1%}%}%円で購入" to run [make player execute command "cah2 %arg-1%"]
  193.  
  194. command /cah2 <number>:
  195. trigger:
  196. set {%player%.ahcon} to false
  197. close inventory to player
  198. give player {ah%{ser%arg-1%}%}
  199. add {ahnedan%{ser%arg-1%}%} to {%{ahno%{ser%arg-1%}%}%.motikane}
  200. set {_v} to 64
  201. remove {ahnedan%{ser%arg-1%}%} from {%player%.motikane}
  202. set {one20} to {ser%arg-1%} + 1
  203. set {one21} to {ser%arg-1%}
  204. loop 101 times:
  205. set {ah%{one21}%} to {ah%{one20}%}
  206. add 1 to {one21}
  207. add 1 to {one20}
  208. set {ahs%{ahnumber}%} to false
  209. remove 1 from {ahnumber}
  210. message "&b&lSystem &7&l≫ &a&l購入が正常に完了しました。"
  211.  
  212. command /uru:
  213. trigger:
  214. open chest with 1 rows named "&9&kttt&r&3&lメニュー&9&kttt" to player
  215. wait a tick
  216. format slot 0 of player with gray glass pane to be unstealable
  217. format slot 1 of player with gray glass pane to be unstealable
  218. format slot 2 of player with gray glass pane to be unstealable
  219. format slot 4 of player with gray glass pane to be unstealable
  220. format slot 3 of player with orange wool named "&6&l購入メニュー" to run [make player execute command "ah"]
  221. format slot 5 of player with cyan wool named "&6&l出品メニュー" to run [make player execute command "anata"]
  222. format slot 6 of player with gray glass pane to be unstealable
  223. format slot 7 of player with gray glass pane to be unstealable
  224. format slot 8 of player with gray glass pane to be unstealable
  225.  
  226. command /anata:
  227. trigger:
  228. set {piro} to 0
  229. loop 9 times:
  230. set {pine%{piro}%} to slot {piro} of player
  231. add 1 to {piro}
  232. set {piro} to 0
  233. open chest with 1 rows named "&9&kttt&r&3&l出品するアイテムの指定&9&kttt" to player
  234. wait a tick
  235. format slot {piro} of player with {pine0} to run [make player execute command "anah 0"]
  236. add 1 to {piro}
  237. format slot {piro} of player with {pine1} to run [execute player command "anah 1"]
  238. add 1 to {piro}
  239. format slot {piro} of player with {pine2} to run [execute player command "anah 2"]
  240. add 1 to {piro}
  241. format slot {piro} of player with {pine3} to run [execute player command "anah 3"]
  242. add 1 to {piro}
  243. format slot {piro} of player with {pine4} to run [execute player command "anah 4"]
  244. add 1 to {piro}
  245. format slot {piro} of player with {pine5} to run [execute player command "anah 5"]
  246. add 1 to {piro}
  247. format slot {piro} of player with {pine6} to run [execute player command "anah 6"]
  248. add 1 to {piro}
  249. format slot {piro} of player with {pine7} to run [execute player command "anah 7"]
  250. add 1 to {piro}
  251. format slot {piro} of player with {pine8} to run [execute player command "anah 8"]
  252.  
  253. command /anah <number>:
  254. trigger:
  255. close inventory to player
  256. message "&b&lSystem &7&l≫ &a&l/sell <値段>で指定したアイテムの"
  257. message "&b&lSystem &7&l≫ &a&l値段を確定してください。"
  258. set {chatan.%player%} to true
  259. set {wana.%player%} to arg-1
  260.  
  261. command /sell <number>:
  262. trigger:
  263. if {chatan.%player%} is true:
  264. set {_neko} to arg-1
  265. wait 1 tick
  266. if {_neko} is between 0 and 999999999:
  267. set {kingaku} to {_neko}
  268. make player execute command "/anahn"
  269. set {chatan.%player%} to false
  270. stop
  271. message "&b&lSystem &7&l≫ &c正常な値を入力してください。"
  272. set {chatan.%player%} to false
  273. stop
  274. message "&b&lSystem &7&l≫ &cメニューよりアイテムの指定を行ってください"
  275.  
  276. command /anahn:
  277. trigger:
  278. if {ahs1} is false:
  279. set {ah%{ser1}%} to slot {wana.%player%} of player
  280. set {ahs1} to true
  281. set {ahno%{ser1}%} to player
  282. set {ahnumber} to 1
  283. set {ahnedan%{ser1}%} to {kingaku}
  284. set slot {wana.%player%} of player to air
  285. message "&b&lSystem &7&l≫ &a&l出品が正常に完了しました。"
  286. stop
  287. if {ahs1} is true:
  288. set {one12} to 101
  289. loop 101 times:
  290. remove 1 from {ser%{one12}%}
  291. remove 1 from {one12}
  292. set {ahno%{ser1}%} to player
  293. add 1 to {ahnumber}
  294. set {ahs%{ahnumber}%} to true
  295. set {ah%{ser1}%} to slot {wana.%player%} of player
  296. set {ahnedan%{ser1}%} to {kingaku}
  297. set slot {wana.%player%} of player to air
  298. message "&b&lSystem &7&l≫ &a&l出品が正常に完了しました。"
  299. stop
Advertisement
Add Comment
Please, Sign In to add comment