Advertisement
sora200507

Untitled

Feb 18th, 2019
145
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 17.38 KB | None | 0 0
  1. on join:
  2. wait 1 tick
  3. if {point::%uuid of player%} is not set:
  4. set {point::%uuid of player%} to 1
  5. set {points::%uuid of player%} to 0
  6. set {tensei::%uuid of player%} to 0
  7. set {furnace::%uuid of player%} to 0
  8. set {grandma::%uuid of player%} to 0
  9. set {farm::%uuid of player%} to 0
  10. set {factory::%uuid of player%} to 0
  11. set {mine::%uuid of player%} to 0
  12. set {miner::%uuid of player%} to 0
  13. set {portal::%uuid of player%} to 0
  14. set {witch::%uuid of player%} to 0
  15. set {meteor::%uuid of player%} to 0
  16. set {planet::%uuid of player%} to 0
  17. set {matter::%uuid of player%} to 0
  18. message "&7>>このサーバーでは待機時間の暇つぶし用に&a&lCookieAfker&7が導入されています"
  19. message "&a&lCookieAfker&bは_mIrAgEdayo_によって作られました。"
  20. send "&eダウンロードしたい方はこちらからどうぞ &ehttps://discord.gg/SbpZx7Q"
  21. on right click with chest:
  22. if name of player's tool is "&5家電ショップ":
  23. cancel event
  24. open chest with 6 rows named "&5家電製品ショップ" to player
  25. wait 1 tick
  26. set slot 0 of player's current inventory to glowing cookie named "&aあなたの所持クッキー数: &e%{points::%uuid of player%}%"
  27. wait 5 tick
  28. set slot 8 of player's current inventory to glowing book named "&aあなたの秒間獲得クッキー数: &e%{point::%uuid of player%}%"
  29. wait 5 tick
  30. set slot 19 of player's current inventory to glowing furnace named "&c&l強化かまど &7値段:1000クッキー" with lore "&7通常より強化されたかまどを設置" and "&7所持数: &e%{furnace::%uuid of player%}%" and "&7秒間獲得クッキー数 +1"
  31. wait 2 tick
  32. set slot 21 of player's current inventory to glowing cookie named "&f&lおばあちゃん &7値段:2000クッキー" with lore "&7一番安心する味" and "&7所持数: &e%{grandma::%uuid of player%}%" and "&7秒間獲得クッキー数 +2"
  33. wait 1 tick
  34. set slot 23 of player's current inventory to glowing wheat named "&a&lクッキー畑 &7値段:4000クッキー" with lore "&7クッキーの種でクッキーを栽培" and "&7所持数: &e%{farm::%uuid of player%}%" and "&7秒間獲得クッキー数 +4"
  35. wait 1 tick
  36. set slot 25 of player's current inventory to glowing crafting table named "&e&lクッキー工場 &7値段:8000クッキー" with lore "&7最新鋭の技術を使って高速でクッキーを生産" and "&7所持数: &e%{factory::%uuid of player%}%" and "&7秒間獲得クッキー数 +8"
  37. wait 1 tick
  38. set slot 29 of player's current inventory to glowing wooden pickaxe named "&b&lクッキー洞窟 &7値段:16000クッキー" with lore "&7大量のクッキーが埋蔵されている洞窟" and "&7所持数: &e%{mine::%uuid of player%}%" and "&7秒間獲得クッキー数 +16"
  39. wait 1 tick
  40. set slot 31 of player's current inventory to glowing diamond pickaxe named "&b&lクッキー自動採掘機 &7値段:32000クッキー" with lore "&7地中のクッキーを自動で探し採掘する" and "&7所持数: &e%{miner::%uuid of player%}%" and "&7秒間獲得クッキー数 +32"
  41. wait 1 tick
  42. set slot 33 of player's current inventory to glowing purple stained glass pane named "&5&lクッキーポータル &7値段:64000クッキー" with lore "&7亜空間から大量のクッキーが転送される" and "&7所持数: &e%{portal::%uuid of player%}%" and "&7秒間獲得クッキー数 +64"
  43. wait 1 tick
  44. set slot 37 of player's current inventory to glowing brewing stand named "&5&l世界クッキー研究所 &7値段:128000クッキー" with lore "&729世紀の技術を使用してクッキー大量生産" and "&7所持数: &e%{witch::%uuid of player%}%" and "&7秒間獲得クッキー数 +128"
  45. wait 1 tick
  46. set slot 39 of player's current inventory to glowing obsidian named "&4&lクッキーメテオ &7値段:256000クッキー" with lore "&7巨大なメテオからクッキーを抽出" and "&7所持数: &e%{meteor::%uuid of player%}%" and "&7秒間獲得クッキー数 +256"
  47. wait 1 tick
  48. set slot 41 of player's current inventory to glowing grass named "&6&lクッキー星 &7値段:512000クッキー" with lore "&7全てがクッキーで出来た巨大な星で採取" and "&7所持数: &e%{planet::%uuid of player%}%" and "&7秒間獲得クッキー数 +512"
  49. wait 1 tick
  50. set slot 43 of player's current inventory to glowing purple dye named "&5&lクッキーマター &7値段:1024000クッキー" with lore "&7マターを使って超速度でクッキーを生成" and "&7所持数: &e%{matter::%uuid of player%}%" and "&7秒間獲得クッキー数 +1024"
  51. every 1 second in "world":
  52. loop all players:
  53. add {point::%uuid of loop-player%} to {points::%uuid of loop-player%}
  54. on inventory click:
  55. if name of player's current inventory contains "&5家電製品ショップ":
  56. if clicked slot is 0:
  57. cancel event
  58. if clicked slot is 8:
  59. cancel event
  60. if clicked slot is 19:
  61. cancel event
  62. furnace(player)
  63. if clicked slot is 21:
  64. cancel event
  65. grandma(player)
  66. if clicked slot is 23:
  67. cancel event
  68. farm(player)
  69. if clicked slot is 25:
  70. cancel event
  71. factory(player)
  72. if clicked slot is 29:
  73. cancel event
  74. mine(player)
  75. if clicked slot is 31:
  76. cancel event
  77. miner(player)
  78. if clicked slot is 33:
  79. cancel event
  80. portal(player)
  81. if clicked slot is 37:
  82. cancel event
  83. witch(player)
  84. if clicked slot is 39:
  85. cancel event
  86. meteor(player)
  87. if clicked slot is 41:
  88. cancel event
  89. planet(player)
  90. if clicked slot is 43:
  91. cancel event
  92. matter(player)
  93.  
  94. function furnace(p: player):
  95. set {_u} to uuid of {_p}
  96. if {points::%{_u}%} >= 1000:
  97. add 1 to {point::%{_u}%}
  98. add 1 to {furnace::%{_u}%}
  99. remove 1000 from {points::%{_u}%}
  100. set slot 0 of {_p}'s current inventory to glowing cookie named "&aあなたの所持クッキー数: &e%{points::%{_u}%}%"
  101. set slot 8 of {_p}'s current inventory to glowing book named "&aあなたの秒間獲得クッキー数: &e%{point::%{_u}%}%"
  102. set slot 19 of {_p}'s current inventory to glowing furnace named "&c&l強化かまど &7値段:1000クッキー" with lore "&7通常より強化されたかまどを設置" and "&7所持数: &e%{furnace::%{_u}%}%" and "&7秒間獲得クッキー数 +1"
  103. else:
  104. close {_p}'s inventory
  105. send "&cクッキーが足りません。" to {_p}
  106.  
  107. function grandma(p: player):
  108. set {_u} to uuid of {_p}
  109. if {points::%{_u}%} >= 2000:
  110. add 2 to {point::%{_u}%}
  111. add 1 to {grandma::%{_u}%}
  112. remove 2000 from {points::%{_u}%}
  113. set slot 0 of {_p}'s current inventory to glowing cookie named "&aあなたの所持クッキー数: &e%{points::%{_u}%}%"
  114. set slot 8 of {_p}'s current inventory to glowing book named "&aあなたの秒間獲得クッキー数: &e%{point::%{_u}%}%"
  115. set slot 21 of {_p}'s current inventory to glowing cookie named "&f&lおばあちゃん &7値段:2000クッキー" with lore "&7一番安心する味" and "&7所持数: &e%{grandma::%{_u}%}%" and "&7秒間獲得クッキー数 +2"
  116. else:
  117. close {_p}'s inventory
  118. send "&cクッキーが足りません。" to {_p}
  119.  
  120. function farm(p: player):
  121. set {_u} to uuid of {_p}
  122. if {points::%{_u}%} >= 4000:
  123. add 4 to {point::%{_u}%}
  124. add 1 to {farm::%{_u}%}
  125. remove 4000 from {points::%{_u}%}
  126. set slot 0 of {_p}'s current inventory to glowing cookie named "&aあなたの所持クッキー数: &e%{points::%{_u}%}%"
  127. set slot 8 of {_p}'s current inventory to glowing book named "&aあなたの秒間獲得クッキー数: &e%{point::%{_u}%}%"
  128. set slot 23 of {_p}'s current inventory to glowing wheat named "&a&lクッキー畑 &7値段:4000クッキー" with lore "&7クッキーの種でクッキーを栽培" and "&7所持数: &e%{farm::%{_u}%}%" and "&7秒間獲得クッキー数 +4"
  129. else:
  130. close {_p}'s inventory
  131. send "&cクッキーが足りません。" to {_p}
  132.  
  133. function factory(p: player):
  134. set {_u} to uuid of {_p}
  135. if {points::%{_u}%} >= 8000:
  136. add 8 to {point::%{_u}%}
  137. add 1 to {factory::%{_u}%}
  138. remove 8000 from {points::%{_u}%}
  139. set slot 0 of {_p}'s current inventory to glowing cookie named "&aあなたの所持クッキー数: &e%{points::%{_u}%}%"
  140. set slot 8 of {_p}'s current inventory to glowing book named "&aあなたの秒間獲得クッキー数: &e%{point::%{_u}%}%"
  141. set slot 25 of {_p}'s current inventory to glowing crafting table named "&e&lクッキー工場 &7値段:8000クッキー" with lore "&7最新鋭の技術を使って高速でクッキーを生産" and "&7所持数: &e%{factory::%{_u}%}%" and "&7秒間獲得クッキー数 +8"
  142. else:
  143. close {_p}'s inventory
  144. send "&cクッキーが足りません。" to {_p}
  145.  
  146. function mine(p: player):
  147. set {_u} to uuid of {_p}
  148. if {points::%{_u}%} >= 16000:
  149. add 16 to {point::%{_u}%}
  150. add 1 to {mine::%{_u}%}
  151. remove 16000 from {points::%{_u}%}
  152. set slot 0 of {_p}'s current inventory to glowing cookie named "&aあなたの所持クッキー数: &e%{points::%{_u}%}%"
  153. set slot 8 of {_p}'s current inventory to glowing book named "&aあなたの秒間獲得クッキー数: &e%{point::%{_u}%}%"
  154. set slot 29 of {_p}'s current inventory to glowing wooden pickaxe named "&b&lクッキー洞窟 &7値段:16000クッキー" with lore "&7大量のクッキーが埋蔵されている洞窟" and "&7所持数: &e%{mine::%{_u}%}%" and "&7秒間獲得クッキー数 +16"
  155. else:
  156. close {_p}'s inventory
  157. send "&cクッキーが足りません。" to {_p}
  158.  
  159. function miner(p: player):
  160. set {_u} to uuid of {_p}
  161. if {points::%{_u}%} >= 32000:
  162. add 32 to {point::%{_u}%}
  163. add 1 to {miner::%{_u}%}
  164. remove 32000 from {points::%{_u}%}
  165. set slot 0 of {_p}'s current inventory to glowing cookie named "&aあなたの所持クッキー数: &e%{points::%{_u}%}%"
  166. set slot 8 of {_p}'s current inventory to glowing book named "&aあなたの秒間獲得クッキー数: &e%{point::%{_u}%}%"
  167. set slot 31 of {_p}'s current inventory to glowing diamond pickaxe named "&b&lクッキー自動採掘機 &7値段:32000クッキー" with lore "&7地中のクッキーを自動で探し採掘する" and "&7所持数: &e%{miner::%{_u}%}%" and "&7秒間獲得クッキー数 +32"
  168. else:
  169. close {_p}'s inventory
  170. send "&cクッキーが足りません。" to {_p}
  171.  
  172. function portal(p: player):
  173. set {_u} to uuid of {_p}
  174. if {points::%{_u}%} >= 64000:
  175. add 64 to {point::%{_u}%}
  176. add 1 to {portal::%{_u}%}
  177. remove 64000 from {points::%{_u}%}
  178. set slot 0 of {_p}'s current inventory to glowing cookie named "&aあなたの所持クッキー数: &e%{points::%{_u}%}%"
  179. set slot 8 of {_p}'s current inventory to glowing book named "&aあなたの秒間獲得クッキー数: &e%{point::%{_u}%}%"
  180. set slot 33 of {_p}'s current inventory to glowing purple stained glass pane named "&5&lクッキーポータル &7値段:64000クッキー" with lore "&7亜空間から大量のクッキーが転送される" and "&7所持数: &e%{portal::%{_u}%}%" and "&7秒間獲得クッキー数 +64"
  181. else:
  182. close {_p}'s inventory
  183. send "&cクッキーが足りません。" to {_p}
  184.  
  185. function witch(p: player):
  186. set {_u} to uuid of {_p}
  187. if {points::%{_u}%} >= 128000:
  188. add 128 to {point::%{_u}%}
  189. add 1 to {witch::%{_u}%}
  190. remove 128000 from {points::%{_u}%}
  191. set slot 0 of {_p}'s current inventory to glowing cookie named "&aあなたの所持クッキー数: &e%{points::%{_u}%}%"
  192. set slot 8 of {_p}'s current inventory to glowing book named "&aあなたの秒間獲得クッキー数: &e%{point::%{_u}%}%"
  193. set slot 37 of {_p}'s current inventory to glowing brewing stand named "&5&l世界クッキー研究所 &7値段:128000クッキー" with lore "&729世紀の技術を使用してクッキー大量生産" and "&7所持数: &e%{witch::%{_u}%}%" and "&7秒間獲得クッキー数 +128"
  194. else:
  195. close {_p}'s inventory
  196. send "&cクッキーが足りません。" to {_p}
  197.  
  198. function meteor(p: player):
  199. set {_u} to uuid of {_p}
  200. if {points::%{_u}%} >= 256000:
  201. add 256 to {point::%{_u}%}
  202. add 1 to {meteor::%{_u}%}
  203. remove 256000 from {points::%{_u}%}
  204. set slot 0 of {_p}'s current inventory to glowing cookie named "&aあなたの所持クッキー数: &e%{points::%{_u}%}%"
  205. set slot 8 of {_p}'s current inventory to glowing book named "&aあなたの秒間獲得クッキー数: &e%{point::%{_u}%}%"
  206. set slot 39 of {_p}'s current inventory to glowing obsidian named "&4&lクッキーメテオ &7値段:256000クッキー" with lore "&7巨大なメテオからクッキーを抽出" and "&7所持数: &e%{meteor::%{_u}%}%" and "&7秒間獲得クッキー数 +256"
  207. else:
  208. close {_p}'s inventory
  209. send "&cクッキーが足りません。" to {_p}
  210.  
  211. function planet(p: player):
  212. set {_u} to uuid of {_p}
  213. if {points::%{_u}%} >= 512000:
  214. add 512 to {point::%{_u}%}
  215. add 1 to {planet::%{_u}%}
  216. remove 512000 from {points::%{_u}%}
  217. set slot 0 of {_p}'s current inventory to glowing cookie named "&aあなたの所持クッキー数: &e%{points::%{_u}%}%"
  218. set slot 8 of {_p}'s current inventory to glowing book named "&aあなたの秒間獲得クッキー数: &e%{point::%{_u}%}%"
  219. set slot 41 of {_p}'s current inventory to glowing grass named "&6&lクッキー星 &7値段:512000クッキー" with lore "&7全てがクッキーで出来た巨大な星で採取" and "&7所持数: &e%{planet::%{_u}%}%" and "&7秒間獲得クッキー数 +512"
  220. else:
  221. close {_p}'s inventory
  222. send "&cクッキーが足りません。" to {_p}
  223.  
  224. function matter(p: player):
  225. set {_u} to uuid of {_p}
  226. if {points::%{_u}%} >= 1024000:
  227. add 1024 to {point::%{_u}%}
  228. add 1 to {matter::%{_u}%}
  229. remove 1024000 from {points::%{_u}%}
  230. set slot 0 of {_p}'s current inventory to glowing cookie named "&aあなたの所持クッキー数: &e%{points::%{_u}%}%"
  231. set slot 8 of {_p}'s current inventory to glowing book named "&aあなたの秒間獲得クッキー数: &e%{point::%{_u}%}%"
  232. set slot 43 of {_p}'s current inventory to glowing purple dye named "&5&lクッキーマター &7値段:1024000クッキー" with lore "&7マターを使って超速度でクッキーを生成" and "&7所持数: &e%{matter::%{_u}%}%" and "&7秒間獲得クッキー数 +1024"
  233. else:
  234. close {_p}'s inventory
  235. send "&cクッキーが足りません。" to {_p}
  236. command /resetcookie:
  237. permission:cookieafk.reset
  238. trigger:
  239. set {point::%uuid of player%} to 1
  240. set {points::%uuid of player%} to 0
  241. set {tensei::%uuid of player%} to 0
  242. set {furnace::%uuid of player%} to 0
  243. set {grandma::%uuid of player%} to 0
  244. set {farm::%uuid of player%} to 0
  245. set {factory::%uuid of player%} to 0
  246. set {mine::%uuid of player%} to 0
  247. set {miner::%uuid of player%} to 0
  248. set {portal::%uuid of player%} to 0
  249. set {witch::%uuid of player%} to 0
  250. set {meteor::%uuid of player%} to 0
  251. set {planet::%uuid of player%} to 0
  252. set {matter::%uuid of player%} to 0
  253. command /setcookieranking:
  254. trigger:
  255. set {pointr::%player%} to {point::%uuid of player%}
  256. set {pointsr::%player%} to {points::%uuid of player%}
  257. set {tenseir::%player%} to {tensei::%uuid of player%}
  258. every 1 seconds:
  259. loop all players:
  260. make loop-player execute "/setcookieranking"
  261. command /cookieranking:
  262. trigger:
  263. loop {pointsr::*}:
  264. add 1 to {_size}
  265. if {_low.to.high.list::%loop-value%} is not set:
  266. set {_low.to.high.list::%loop-value%} to loop-index
  267. else:
  268. set {_n} to 0
  269. loop {_size} times:
  270. set {_n} to {_n}+1
  271. {_low.to.high.list::%loop-value-1%.%{_n}%} is not set
  272. set {_low.to.high.list::%loop-value-1%.%{_n}%} to loop-index
  273. stop loop
  274. wait 1 tick
  275. set {_n} to size of {_low.to.high.list::*}
  276. loop {_low.to.high.list::*}:
  277. set {_high.to.low.list::%{_n}%} to loop-value
  278. set {_n} to {_n}-1
  279. wait 1 tick
  280. set {_i} to 0
  281. send "&7&m-----------&8< &6クッキー数ランキング &8>&7&m-----------"
  282. loop {_high.to.low.list::*}:
  283. add 1 to {_topnumber}
  284. send "&7%{_topnumber}% 位 &a%loop-value% &8≫ &7%{pointsr::%loop-value%}% 個"
  285. add 1 to {_i}
  286. if {_topnumber} > 9: #this is top 10 you can change it
  287. stop
  288. send "&7&m---------------------------------------------------"
  289. command /cookiepersecondranking:
  290. trigger:
  291. loop {pointr::*}:
  292. add 1 to {_size}
  293. if {_low.to.high.list::%loop-value%} is not set:
  294. set {_low.to.high.list::%loop-value%} to loop-index
  295. else:
  296. set {_n} to 0
  297. loop {_size} times:
  298. set {_n} to {_n}+1
  299. {_low.to.high.list::%loop-value-1%.%{_n}%} is not set
  300. set {_low.to.high.list::%loop-value-1%.%{_n}%} to loop-index
  301. stop loop
  302. wait 1 tick
  303. set {_n} to size of {_low.to.high.list::*}
  304. loop {_low.to.high.list::*}:
  305. set {_high.to.low.list::%{_n}%} to loop-value
  306. set {_n} to {_n}-1
  307. wait 1 tick
  308. set {_i} to 0
  309. send "&7&m-----------&8< &6クッキー生産数ランキング &8>&7&m-----------"
  310. loop {_high.to.low.list::*}:
  311. add 1 to {_topnumber}
  312. send "&7%{_topnumber}% 位 &a%loop-value% &8≫ &7%{pointr::%loop-value%}%個/s"
  313. add 1 to {_i}
  314. if {_topnumber} > 9: #this is top 10 you can change it
  315. stop
  316. send "&7&m---------------------------------------------------"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement