Advertisement
dai_pon

Untitled

Jun 5th, 2018
216
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 32.90 KB | None | 0 0
  1. variables:
  2. {G2} = 100
  3. on rightclick holding a cyan shulker box:
  4. chance of 1/{G2}:
  5. execute console command "/menu grab %player% a-bow"
  6. set {G2} to 100
  7. broadcast "&8[&cGatya&8] &e%player%&cが&9&lX-Bow&cに当選しました!"
  8. send "&8[&cGatya&8] &c当選しました!おめでとうございます!"
  9. execute console command "summon fireworks_rocket ~ ~3 ~ {FireworksItem:{id:fireworks,Count:1,tag:{Fireworks:{Explosions:[{Type:0,Colors:[I;16753490],FadeColors:[I;15007580]}]}}}}"
  10. set {_location} to location of player
  11. play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 1 at {_location}
  12. else:
  13. subtract 1 from {G2}
  14. broadcast "&8[&cGatya&8] &e%player%が&9X-Bow&eガチャを引きました、只今の当選確率は 1/%{G2}% です。"
  15. send "&8[&cGatya&8] &e残念、ハズレです..."
  16. remove 1 of player's held item from the player's inventory
  17. set {_location} to location of player
  18. play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 1 at {_location}
  19.  
  20. variables:
  21. {G3} = 200
  22. on rightclick holding a lime shulker box:
  23. chance of 1/{G3}:
  24. execute console command "/menu grab %player% suisyou"
  25. set {G3} to 200
  26. broadcast "&8[&cGatya&8] &e%player%&cが&a&l翠水晶&cに当選しました!"
  27. send "&8[&cGatya&8] &c当選しました!おめでとうございます!"
  28. execute console command "summon fireworks_rocket ~ ~3 ~ {FireworksItem:{id:fireworks,Count:1,tag:{Fireworks:{Explosions:[{Type:0,Colors:[I;16753490],FadeColors:[I;15007580]}]}}}}"
  29. set {_location} to location of player
  30. play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 1 at {_location}
  31. else:
  32. subtract 1 from {G3}
  33. broadcast "&8[&cGatya&8] &e%player%が&a翠水晶&eガチャを引きました、只今の当選確率は 1/%{G3}% です。"
  34. send "&8[&cGatya&8] &e残念、ハズレです..."
  35. remove 1 of player's held item from the player's inventory
  36. set {_location} to location of player
  37. play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 1 at {_location}
  38.  
  39. variables:
  40. {G4} = 100
  41. on rightclick holding a orange shulker box:
  42. chance of 1/{G4}:
  43. execute console command "/menu grab %player% a-rpg"
  44. set {G4} to 100
  45. broadcast "&8[&cGatya&8] &e%player%&cが&6&lRPG-7&cに当選しました!"
  46. send "&8[&cGatya&8] &c当選しました!おめでとうございます!"
  47. execute console command "summon fireworks_rocket ~ ~3 ~ {FireworksItem:{id:fireworks,Count:1,tag:{Fireworks:{Explosions:[{Type:0,Colors:[I;16753490],FadeColors:[I;15007580]}]}}}}"
  48. set {_location} to location of player
  49. play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 1 at {_location}
  50. else:
  51. subtract 1 from {G4}
  52. broadcast "&8[&cGatya&8] &e%player%が&6RPG-7&eガチャを引きました、只今の当選確率は 1/%{G4}% です。"
  53. send "&8[&cGatya&8] &e残念、ハズレです..."
  54. remove 1 of player's held item from the player's inventory
  55. set {_location} to location of player
  56. play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 1 at {_location}
  57.  
  58. variables:
  59. {G5} = 100
  60. on rightclick holding a gray shulker box:
  61. chance of 1/{G5}:
  62. execute console command "/menu grab %player% a-barret"
  63. set {G5} to 100
  64. broadcast "&8[&cGatya&8] &e%player%&cが&8&lBarret-M82&cに当選しました!"
  65. send "&8[&cGatya&8] &c当選しました!おめでとうございます!"
  66. execute console command "summon fireworks_rocket ~ ~3 ~ {FireworksItem:{id:fireworks,Count:1,tag:{Fireworks:{Explosions:[{Type:0,Colors:[I;16753490],FadeColors:[I;15007580]}]}}}}"
  67. set {_location} to location of player
  68. play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 1 at {_location}
  69. else:
  70. subtract 1 from {G5}
  71. broadcast "&8[&cGatya&8] &e%player%が&8Barret-M82&eガチャを引きました、只今の当選確率は 1/%{G5}% です。"
  72. send "&8[&cGatya&8] &e残念、ハズレです..."
  73. subtract 1 from {G5}
  74. remove 1 of player's held item from the player's inventory
  75. set {_location} to location of player
  76. play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 1 at {_location}
  77.  
  78. variables:
  79. {G6} = 100
  80. on rightclick holding a white shulker box:
  81. chance of 1/{G6}:
  82. execute console command "/menu grab %player% a-ex"
  83. set {G6} to 100
  84. broadcast "&8[&cGatya&8] &e%player%&cが&7&lExcutionner&cに当選しました!"
  85. send "&8[&cGatya&8] &c当選しました!おめでとうございます!"
  86. execute console command "summon fireworks_rocket ~ ~3 ~ {FireworksItem:{id:fireworks,Count:1,tag:{Fireworks:{Explosions:[{Type:0,Colors:[I;16753490],FadeColors:[I;15007580]}]}}}}"
  87. set {_location} to location of player
  88. play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 1 at {_location}
  89. else:
  90. subtract 1 from {G6}
  91. broadcast "&8[&cGatya&8] &e%player%が&7Excutionner&eガチャを引きました、只今の当選確率は 1/%{G6}% です。"
  92. send "&8[&cGatya&8] &e残念、ハズレです..."
  93. remove 1 of player's held item from the player's inventory
  94. set {_location} to location of player
  95. play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 1 at {_location}
  96.  
  97. on right click:
  98. if name of held item contains "&c&l投票&b&lガチャカプセル":
  99. remove 1 of player's held item from the player's inventory
  100. set {_r3} to a random integer between 1 and 1000
  101. if {_r3} is between 1 and 2:
  102. set {_location} to location of player
  103. play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 1 at {_location}
  104. execute console command "/menu grab %player% a-ballista"
  105. broadcast "&8[&dVote&cGatya&8] &c%player%&cが&6&lFN Ballista&cに当選しました!"
  106. send "&8[&dVote&cGatya&8] &c当選しました!おめでとうございます!"
  107. if {_r3} is between 3 and 4:
  108. set {_location} to location of player
  109. play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 1 at {_location}
  110. execute console command "/menu grab %player% a-flame"
  111. broadcast "&8[&dVote&cGatya&8] &c%player%&cが&c&l火炎放射器&cに当選しました!"
  112. send "&8[&dVote&cGatya&8] &c当選しました!おめでとうございます!"
  113. if {_r3} is between 5 and 6:
  114. set {_location} to location of player
  115. play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 1 at {_location}
  116. execute console command "/menu grab %player% a-walther"
  117. broadcast "&8[&dVote&cGatya&8] &c%player%&cが&5&lWalther P1&cに当選しました!"
  118. send "&8[&dVote&cGatya&8] &c当選しました!おめでとうございます!"
  119. if {_r3} is between 7 and 8:
  120. set {_location} to location of player
  121. play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 1 at {_location}
  122. execute console command "/menu grab %player% a-m249"
  123. broadcast "&8[&dVote&cGatya&8] &c%player%&cが&8&lM249&cに当選しました!"
  124. send "&8[&dVote&cGatya&8] &c当選しました!おめでとうございます!"
  125. if {_r3} is between 9 and 10:
  126. set {_location} to location of player
  127. play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 1 at {_location}
  128. execute console command "/menu grab %player% a-ksg"
  129. broadcast "&8[&dVote&cGatya&8] &c%player%&cが&8&lKSG&cに当選しました!"
  130. send "&8[&dVote&cGatya&8] &c当選しました!おめでとうございます!"
  131. if {_r3} is between 11 and 12:
  132. set {_location} to location of player
  133. play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 1 at {_location}
  134. add 30000 to {money.%player%}
  135. send "&8[&dVote&cGatya&8] &e30000円に当選した!"
  136. broadcast "&8[&dVote&cGatya&8] &c%player%&cが&e&l30000円&cに当選しました!"
  137. if {_r3} is between 13 and 14:
  138. set {_location} to location of player
  139. play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 1 at {_location}
  140. add 50000 to {money.%player%}
  141. send "&8[&dVote&cGatya&8] &e50000円に当選した!"
  142. broadcast "&8[&dVote&cGatya&8] &c%player%&cが&e&l50000円&cに当選しました!"
  143. if {_r3} is between 15 and 16:
  144. set {_location} to location of player
  145. play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 1 at {_location}
  146. add 200 to {zpoint.%player%}
  147. send "&8[&dVote&cGatya&8] &c200Zpointに当選した!"
  148. broadcast "&8[&dVote&cGatya&8] &c%player%&cが&c&l200Zpoint&cに当選しました!"
  149. if {_r3} is between 17 and 18:
  150. set {_location} to location of player
  151. play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 1 at {_location}
  152. add 100 to {money.%player%}
  153. send "&8[&dVote&cGatya&8] &c100Zpointに当選した!"
  154. broadcast "&8[&dVote&cGatya&8] &c%player%&cが&c&l100Zpoint&cに当選しました!"
  155. if {_r3} is between 19 and 50:
  156. set {_location} to location of player
  157. play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 1 at {_location}
  158. add 50 to {money.%player%}
  159. send "&8[&dVote&cGatya&8] &c50Zpointに当選した!"
  160. if {_r3} is between 51 and 130:
  161. set {_location} to location of player
  162. play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 1 at {_location}
  163. add 20 to {money.%player%}
  164. send "&8[&dVote&cGatya&8] &c30Zpointに当選した!"
  165. if {_r3} is between 131 and 200:
  166. set {_location} to location of player
  167. play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 1 at {_location}
  168. add 10 to {money.%player%}
  169. send "&8[&dVote&cGatya&8] &c20Zpointに当選した!"
  170. if {_r3} is between 201 and 400:
  171. set {_location} to location of player
  172. play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 1 at {_location}
  173. add 5 to {money.%player%}
  174. send "&8[&dVote&cGatya&8] &c10Zpointに当選した!"
  175. if {_r3} is between 401 and 430:
  176. set {_location} to location of player
  177. play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 1 at {_location}
  178. add 10000 to {money.%player%}
  179. send "&8[&dVote&cGatya&8] &e10000円に当選した!"
  180. if {_r3} is between 431 and 500:
  181. set {_location} to location of player
  182. play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 1 at {_location}
  183. add 5000 to {money.%player%}
  184. send "&8[&dVote&cGatya&8] &e5000円に当選した!"
  185. if {_r3} is between 501 and 600:
  186. set {_location} to location of player
  187. play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 1 at {_location}
  188. add 3000 to {money.%player%}
  189. send "&8[&dVote&cGatya&8] &e3000円に当選した!"
  190. if {_r3} is between 601 and 750:
  191. set {_location} to location of player
  192. play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 1 at {_location}
  193. add 1000 to {money.%player%}
  194. send "&8[&dVote&cGatya&8] &e1000円に当選した!"
  195. if {_r3} is between 751 and 762:
  196. set {_location} to location of player
  197. play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 1 at {_location}
  198. execute console command "menu grab %player% ticket20"
  199. send "&8[&dVote&cGatya&8] &6ガチャカプセル引換券x20&eに当選した!"
  200. if {_r3} is between 763 and 795:
  201. set {_location} to location of player
  202. play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 1 at {_location}
  203. execute console command "menu grab %player% ticket15"
  204. send "&8[&dVote&cGatya&8] &6ガチャカプセル引換券x15&eに当選した!"
  205. if {_r3} is between 796 and 830:
  206. set {_location} to location of player
  207. play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 1 at {_location}
  208. execute console command "menu grab %player% ticket10"
  209. send "&8[&dVote&cGatya&8] &6ガチャカプセル引換券x10&eに当選した!"
  210. if {_r3} is between 831 and 870:
  211. set {_location} to location of player
  212. play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 1 at {_location}
  213. execute console command "menu grab %player% ticket5"
  214. send "&8[&dVote&cGatya&8] &6ガチャカプセル引換券x5&eに当選した!"
  215. if {_r3} is between 871 and 920:
  216. set {_location} to location of player
  217. play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 1 at {_location}
  218. execute console command "menu grab %player% ticket3"
  219. send "&8[&dVote&cGatya&8] &6ガチャカプセル引換券x3&eに当選した!"
  220. if {_r3} is between 921 and 922:
  221. set {_location} to location of player
  222. play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 1 at {_location}
  223. execute console command "/menu grab %player% suisyou"
  224. broadcast "&8[&dVote&cGatya&8] &c%player%&cが&a&l翠水晶&cに当選しました!"
  225. send "&8[&dVote&cGatya&8] &c当選しました!おめでとうございます!"
  226. if {_r3} is between 923 and 940:
  227. set {_location} to location of player
  228. play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 1 at {_location}
  229. execute console command "/menu grab %player% suisyou2-1"
  230. send "&8[&dVote&cGatya&8] &a翠水晶の欠片&6x1&eに当選した!"
  231. if {_r3} is between 941 and 960:
  232. set {_location} to location of player
  233. play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 1 at {_location}
  234. execute console command "/menu grab %player% suisyou2-2"
  235. send "&8[&dVote&cGatya&8] &a翠水晶の欠片&6x2&eに当選した!"
  236. if {_r3} is between 961 and 970:
  237. set {_location} to location of player
  238. play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 1 at {_location}
  239. execute console command "/menu grab %player% suisyou2-3"
  240. send "&8[&dVote&cGatya&8] &a翠水晶の欠片&6x3&eに当選した!"
  241. if {_r3} is between 971 and 975:
  242. set {_location} to location of player
  243. play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 1 at {_location}
  244. execute console command "/menu grab %player% suisyou2-4"
  245. send "&8[&dVote&cGatya&8] &a翠水晶の欠片&6x4&eに当選した!"
  246. if {_r3} is between 976 and 980:
  247. set {_location} to location of player
  248. play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 1 at {_location}
  249. execute console command "/menu grab %player% suisyou2-5"
  250. send "&8[&dVote&cGatya&8] &a翠水晶の欠片&6x5&eに当選した!"
  251. if {_r3} is between 981 and 1000:
  252. set {_location} to location of player
  253. play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 1 at {_location}
  254. add 1000 to {money.%player%}
  255. send "&8[&dVote&cGatya&8] &e1000円に当選した!"
  256.  
  257.  
  258.  
  259.  
  260. variables:
  261. {G9} = 100
  262. on rightclick holding a blue shulker box:
  263. chance of 1/{G9}:
  264. execute console command "/menu grab %player% a-57"
  265. set {G9} to 100
  266. broadcast "&8[&cGatya&8] &e%player%&cが&9&lFive-seveN&cに当選しました!"
  267. send "&8[&cGatya&8] &c当選しました!おめでとうございます!"
  268. execute console command "summon fireworks_rocket ~ ~3 ~ {FireworksItem:{id:fireworks,Count:1,tag:{Fireworks:{Explosions:[{Type:0,Colors:[I;16753490],FadeColors:[I;15007580]}]}}}}"
  269. set {_location} to location of player
  270. play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 1 at {_location}
  271. else:
  272. broadcast "&8[&cGatya&8] &e%player%が&9Five-seveN&eガチャを引きました、只今の当選確率は 1/%{G9}% です。"
  273. send "&8[&cGatya&8] &e残念、ハズレです..."
  274. subtract 1 from {G9}
  275. remove 1 of player's held item from the player's inventory
  276. set {_location} to location of player
  277. play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 1 at {_location}
  278.  
  279. on right click:
  280. if name of held item contains "&6&l鍛錬の書ガチャ":
  281. remove 1 of player's held item from the player's inventory
  282. set {_r4} to a random integer between 1 and 100
  283. if {_r4} is between 1 and 35:
  284. set {_location} to location of player
  285. play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 1 at {_location} 35 25 20 10 8 2
  286. execute console command "/menu grab %player% exp1"
  287. send "&8[&cGatya&8] &a鍛錬の書&e&l Ⅰ&eに当選した!"
  288. if {_r4} is between 36 and 60:
  289. set {_location} to location of player
  290. play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 1 at {_location}
  291. execute console command "/menu grab %player% exp2"
  292. send "&8[&cGatya&8] &a鍛錬の書&e&l Ⅱ&eに当選した!"
  293. if {_r4} is between 61 and 80:
  294. set {_location} to location of player
  295. play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 1 at {_location}
  296. execute console command "/menu grab %player% exp3"
  297. send "&8[&cGatya&8] &a鍛錬の書&e&l Ⅲ&eに当選した!"
  298. if {_r4} is between 81 and 90:
  299. set {_location} to location of player
  300. play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 1 at {_location}
  301. execute console command "/menu grab %player% exp4"
  302. send "&8[&cGatya&8] &a鍛錬の書&e&l Ⅳ&eに当選した!"
  303. if {_r4} is between 91 and 98:
  304. set {_location} to location of player
  305. play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 1 at {_location}
  306. execute console command "/menu grab %player% exp5"
  307. send "&8[&cGatya&8] &a鍛錬の書&e&l Ⅴ&eに当選した!"
  308. if {_r4} is between 99 and 100:
  309. set {_location} to location of player
  310. play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 1 at {_location}
  311. execute console command "/menu grab %player% exp6"
  312. send "&8[&cGatya&8] &a鍛錬の書&e&l Ⅵ&eに当選した!"
  313.  
  314. variables:
  315. {G10} = 300
  316. on rightclick holding a brown shulker box:
  317. chance of 1/{G10}:
  318. execute console command "/menu grab %player% a-kuuki"
  319. set {G10} to 300
  320. broadcast "&8[&cGatya&8] &e%player%&cが&6&l空気砲&cに当選しました!"
  321. send "&8[&cGatya&8] &c当選しました!おめでとうございます!"
  322. execute console command "summon fireworks_rocket ~ ~3 ~ {FireworksItem:{id:fireworks,Count:1,tag:{Fireworks:{Explosions:[{Type:0,Colors:[I;16753490],FadeColors:[I;15007580]}]}}}}"
  323. set {_location} to location of player
  324. play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 1 at {_location}
  325. else:
  326. broadcast "&8[&cGatya&8] &e%player%が&6空気砲&eガチャを引きました、只今の当選確率は 1/%{G10}% です。"
  327. send "&8[&cGatya&8] &e残念、ハズレです..."
  328. subtract 1 from {G10}
  329. remove 1 of player's held item from the player's inventory
  330. set {_location} to location of player
  331. play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 1 at {_location}
  332.  
  333. on right click:
  334. if name of held item contains "&6&lイベントガチャカプセル":
  335. remove 1 of player's held item from the player's inventory
  336. set {_r2} to a random integer between 1 and 2000
  337. if {_r2} is less than or equal to 1:
  338. set {_location} to location of player
  339. play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 1 at {_location}
  340. set {eiyuu.%player%} to 1
  341. broadcast "&8[&eEvent&cGatya&8] &e%player%&cが&c&l称号 &e英&6雄&cに当選しました!"
  342. send "&8[&eEvent&cGatya&8] &e&c&l称号 &e英&6雄に当選した!"
  343. else if {_r2} is equal to 2:
  344. set {_location} to location of player
  345. play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 1 at {_location}
  346. broadcast "&8[&eEvent&cGatya&8] &e%player%&cが&a&l50000円&cに当選しました!"
  347. add 50000 to {money.%player%}
  348. send "&8[&eEvent&cGatya&8] &a50000円&eに当選した!"
  349. else if {_r2} is equal to 3:
  350. set {_location} to location of player
  351. play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 1 at {_location}
  352. broadcast "&8[&eEvent&cGatya&8] &e%player%&cが&6&lDesert Eagle Dual&cに当選しました!"
  353. execute console command "menu grab %player% a-desert2"
  354. send "&8[&eEvent&cGatya&8] &6Desert Eagle Dual&eに当選した!"
  355. else if {_r2} is equal to 4:
  356. set {_location} to location of player
  357. play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 1 at {_location}
  358. broadcast "&8[&eEvent&cGatya&8] &e%player%&cが&a&l翠水晶&cに当選しました!"
  359. execute console command "menu grab %player% suisyou"
  360. send "&8[&eEvent&cGatya&8] &a翠水晶&eに当選した!"
  361. else if {_r2} is between 5 and 10:
  362. set {_location} to location of player
  363. play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 1 at {_location}
  364. add 30000 to {money.%player%}
  365. send "&8[&eEvent&cGatya&8] &e30000円に当選した!"
  366. else if {_r2} is between 11 and 30:
  367. set {_location} to location of player
  368. play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 1 at {_location}
  369. add 10000 to {money.%player%}
  370. send "&8[&eEvent&cGatya&8] &e10000円に当選した!"
  371. else if {_r2} is between 11 and 100:
  372. set {_location} to location of player
  373. play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 1 at {_location}
  374. add 5000 to {money.%player%}
  375. send "&8[&eEvent&cGatya&8] &e5000円に当選した!"
  376. else if {_r2} is between 101 and 200:
  377. set {_location} to location of player
  378. play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 1 at {_location}
  379. add 3000 to {money.%player%}
  380. send "&8[&eEvent&cGatya&8] &e3000円に当選した!"
  381. else if {_r2} is between 201 and 400:
  382. set {_location} to location of player
  383. play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 1 at {_location}
  384. add 1000 to {money.%player%}
  385. send "&8[&eEvent&cGatya&8] &e1000円に当選した!"
  386. else if {_r2} is equal to 401:
  387. set {_location} to location of player
  388. play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 1 at {_location}
  389. broadcast "&8[&eEvent&cGatya&8] &e%player%&cが&c&l200Zpoint&cに当選しました!"
  390. add 200 to {zpoint.%player%}
  391. send "&8[&eEvent&cGatya&8] &e200Zpointに当選した!"
  392. else if {_r2} is between 402 and 405:
  393. set {_location} to location of player
  394. play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 1 at {_location}
  395. broadcast "&8[&eEvent&cGatya&8] &e%player%&cが&c&l100Zpoint&cに当選しました!"
  396. add 100 to {zpoint.%player%}
  397. send "&8[&eEvent&cGatya&8] &e100Zpointに当選した!"
  398. else if {_r2} is between 406 and 410:
  399. set {_location} to location of player
  400. play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 1 at {_location}
  401. add 50 to {zpoint.%player%}
  402. send "&8[&eEvent&cGatya&8] &e50Zpointに当選した!"
  403. else if {_r2} is between 406 and 410:
  404. set {_location} to location of player
  405. play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 1 at {_location}
  406. add 30 to {zpoint.%player%}
  407. send "&8[&eEvent&cGatya&8] &e30Zpointに当選した!"
  408. else if {_r2} is between 411 and 500:
  409. set {_location} to location of player
  410. play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 1 at {_location}
  411. add 20 to {zpoint.%player%}
  412. send "&8[&eEvent&cGatya&8] &e20Zpointに当選した!"
  413. else if {_r2} is between 501 and 600:
  414. set {_location} to location of player
  415. play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 1 at {_location}
  416. add 10 to {zpoint.%player%}
  417. send "&8[&eEvent&cGatya&8] &e10Zpointに当選した!"
  418. else if {_r2} is between 601 and 700:
  419. set {_location} to location of player
  420. play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 1 at {_location}
  421. add 5 to {zpoint.%player%}
  422. send "&8[&eEvent&cGatya&8] &e5Zpointに当選した!"
  423. else if {_r2} is between 701 and 900:
  424. set {_location} to location of player
  425. play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 1 at {_location}
  426. add 500 to {money.%player%}
  427. send "&8[&eEvent&cGatya&8] &e500円に当選した!"
  428. else if {_r2} is equal to 901:
  429. set {_location} to location of player
  430. play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 1 at {_location}
  431. execute console command "menu grab %player% ticket20"
  432. send "&8[&eEvent&cGatya&8] &6ガチャカプセル引換券x20&eに当選した!"
  433. else if {_r2} is between 902 and 910:
  434. set {_location} to location of player
  435. play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 1 at {_location}
  436. execute console command "menu grab %player% ticket15"
  437. send "&8[&eEvent&cGatya&8] &6ガチャカプセル引換券x15&eに当選した!"
  438. else if {_r2} is between 911 and 950:
  439. set {_location} to location of player
  440. play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 1 at {_location}
  441. execute console command "menu grab %player% ticket10"
  442. send "&8[&eEvent&cGatya&8] &6ガチャカプセル引換券x10&eに当選した!"
  443. else if {_r2} is between 951 and 1050:
  444. set {_location} to location of player
  445. play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 1 at {_location}
  446. execute console command "menu grab %player% ticket5"
  447. send "&8[&eEvent&cGatya&8] &6ガチャカプセル引換券x5&eに当選した!"
  448. else if {_r2} is between 1051 and 1150:
  449. set {_location} to location of player
  450. play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 1 at {_location}
  451. execute console command "menu grab %player% ticket3"
  452. send "&8[&eEvent&cGatya&8] &6ガチャカプセル引換券x3&eに当選した!"
  453. else if {_r2} is between 1151 and 1500:
  454. set {_location} to location of player
  455. play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 1 at {_location}
  456. add 300 to {money.%player%}
  457. send "&8[&eEvent&cGatya&8] &e300円に当選した!"
  458. else if {_r2} is between 1501 and 1700:
  459. set {_location} to location of player
  460. play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 1 at {_location}
  461. execute console command "menu grab %player% ticket2"
  462. send "&8[&eEvent&cGatya&8] &6ガチャカプセル引換券x2&eに当選した!"
  463. else if {_r2} is between 1701 and 2000:
  464. set {_location} to location of player
  465. play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 1 at {_location}
  466. add 100 to {money.%player%}
  467. send "&8[&eEvent&cGatya&8] &e100円に当選した!"
  468.  
  469.  
  470.  
  471.  
  472. on right click:
  473. if name of held item contains "&c弾ガチャ":
  474. execute console command "scoreboard players tag %player% add gatya"
  475. set {_r} to a random integer between 1 and 200
  476. if {bullet.%player%} is less than {bullet2.%player%}:
  477. remove 1 of player's held item from the player's inventory
  478. if {_r} is less than or equal to 1:
  479. set {_location} to location of player
  480. play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 1 at {_location}
  481. add 10 to {bullet.%player%}
  482. broadcast "&8[&cGatya&8] &e%player%&cが&c&l弾10発&cに当選しました!"
  483. send "&8[&cGatya&8] &e弾の数が10増えた!"
  484. else if {_r} is between 2 and 6:
  485. set {_location} to location of player
  486. play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 1 at {_location}
  487. broadcast "&8[&cGatya&8] &e%player%&cが&c&l弾5発&cに当選しました!"
  488. add 5 to {bullet.%player%}
  489. send "&8[&cGatya&8] &e弾の数が5増えた!"
  490. else if {_r} is between 5 and 14:
  491. set {_location} to location of player
  492. play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 1 at {_location}
  493. broadcast "&8[&cGatya&8] &e%player%&cが&c&l弾3発&cに当選しました!"
  494. add 3 to {bullet.%player%}
  495. send "&8[&cGatya&8] &e弾の数が3増えた!"
  496. else if {_r} is between 10 and 40:
  497. set {_location} to location of player
  498. play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 1 at {_location}
  499. broadcast "&8[&cGatya&8] &e%player%&cが&c&l弾1発&cに当選しました!"
  500. add 1 to {bullet.%player%}
  501. send "&8[&cGatya&8] &e弾の数が1増えた!"
  502. else:
  503. set {_location} to location of player
  504. play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 1 at {_location}
  505. send "&8[&cGatya&8] &e残念、ハズレです..."
  506. else:
  507. send "&9》 &c所持可能弾数が上限に達しています!"
  508. send "&9》 &cレベルを上げて上限を増やしましょう。"
  509. set {bullet.%player%} to {bullet2.%player%}
  510.  
  511. command /k1:
  512. trigger:
  513. set {_location} to location of player
  514. play sound "UI_BUTTON_CLICK" with volume 1 with pitch 1 at {_location}
  515. send "&8[&c確率&8] &e只今の当選確率は 1/%{G2}% です。 "
  516.  
  517. command /k2:
  518. trigger:
  519. set {_location} to location of player
  520. play sound "UI_BUTTON_CLICK" with volume 1 with pitch 1 at {_location}
  521. send "&8[&c確率&8] &e只今の当選確率は 1/%{G3}% です。 "
  522.  
  523. command /k3:
  524. trigger:
  525. set {_location} to location of player
  526. play sound "UI_BUTTON_CLICK" with volume 1 with pitch 1 at {_location}
  527. send "&8[&c確率&8] &e只今の当選確率は 1/%{G4}% です。 "
  528.  
  529. command /k4:
  530. trigger:
  531. set {_location} to location of player
  532. play sound "UI_BUTTON_CLICK" with volume 1 with pitch 1 at {_location}
  533. send "&8[&c確率&8] &e只今の当選確率は 1/%{G5}% です。 "
  534.  
  535. command /k5:
  536. trigger:
  537. set {_location} to location of player
  538. play sound "UI_BUTTON_CLICK" with volume 1 with pitch 1 at {_location}
  539. send "&8[&c確率&8] &e只今の当選確率は 1/%{G6}% です。 "
  540.  
  541. command /k6:
  542. trigger:
  543. set {_location} to location of player
  544. play sound "UI_BUTTON_CLICK" with volume 1 with pitch 1 at {_location}
  545. send "&8[&c確率&8] &e只今の当選確率は 1/%{G7}% です。 "
  546.  
  547. command /k7:
  548. trigger:
  549. set {_location} to location of player
  550. play sound "UI_BUTTON_CLICK" with volume 1 with pitch 1 at {_location}
  551. send "&8[&c確率&8] &e只今の当選確率は 1/%{G8}% です。 "
  552.  
  553. command /k8:
  554. trigger:
  555. set {_location} to location of player
  556. play sound "UI_BUTTON_CLICK" with volume 1 with pitch 1 at {_location}
  557. send "&8[&c確率&8] &e只今の当選確率は 1/%{G9}% です。 "
  558.  
  559. command /k9:
  560. trigger:
  561. set {_location} to location of player
  562. play sound "UI_BUTTON_CLICK" with volume 1 with pitch 1 at {_location}
  563. send "&8[&c確率&8] &e只今の当選確率は 1/%{G10}% です。 "
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement