familychicken

Untitled

Jan 4th, 2022
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 26.68 KB | None | 0 0
  1. options:
  2. p: &7[&eMining&7]
  3. a: &c[&e&lAscension&r&c]
  4. v: &d0.8
  5. vt: &f講話アップデート
  6. g: &c&lに当選しました。
  7. b: &e%player%&7が
  8. c: &8&l|-===[&r&7&a費用&r&8&l]===-|
  9. u: &e>>> &6クリックで強化 &e<<<
  10. i: &8&l|-===[&r&7&l説明&r&8&l]===-|
  11. e: &8&l|-===[&r&e&l効果&r&8&l]===-|
  12. date: &72022/1/2
  13. ac: &6[&e実績&6]&a
  14.  
  15.  
  16. variables:
  17. {%player%.age} = 1
  18. {%player%.cb} = 0
  19. {%player%.int} = 1
  20. {%player%.upg::1} = 1
  21. {%player%.upg::2} = 0
  22. {%player%.upg::3} = 0
  23. {%player%.upg::4} = 0
  24. {%player%.upg::5} = 0
  25. {%player%.upg::6} = 0
  26. {%player%.upg::10} = 0
  27. {%player%.minepower} = 1
  28. {%player%.mpp} = 0
  29. {%player%.mp} = 1
  30. {%player%.upgpower::*} = 1
  31. {nt::-1} = "mini"
  32. {nt::0} = ""
  33. {nt::1} = "K"
  34. {nt::2} = "M"
  35. {nt::3} = "B"
  36. {nt::4} = "T"
  37. {nt::5} = "Qa"
  38. {nt::6} = "Qi"
  39. {nt::7} = "Sx"
  40. {nt::8} = "Sp"
  41. {nt::9} = "Oc"
  42. {%player%.em} = 0
  43. {%player%.eflevel} = 1
  44. {%player%.mlevel} = 1
  45. {%player%.needxp} = 100
  46. {minelist::1000} = "cobblestone"
  47. {minelist::1001} = "iron ore"
  48. {minelist::1002} = "gold ore"
  49. {%player%.obmc} = 0
  50. {%player%.minecount} = 1
  51. {%player%.cobblestone} = 1
  52. {%player%.maxbuy::1} = 1
  53. {%player%.maxbuy::2} = 10
  54. {%player%.maxbuy::3} = 100
  55. {%player%.debris} = 0
  56. {%player%.opmode} = 100
  57. {ac::10} = "&7ぬるぬるの始まり"
  58. {ac::11} = "&d幸運の力"
  59. {ac::12} = "&7大量のコイン"
  60. {ac::13} = "&7大量の採掘"
  61. {ace::10} = "&eコイン&7を&e30枚&7以上所持する"
  62. {ace::11} = "&b同時採掘回数&7を&b2回&7以上にする"
  63. {ace::12} = "&eコイン&7を&e1万枚(10k)&7集める"
  64.  
  65. command /opmode <player> <number>:
  66. permission: skript.admin
  67. trigger:
  68. set {%arg-1%.opmode} to arg-2
  69. if {%arg-1%.opmode} is 0:
  70. message "有効"
  71. else:
  72. message "無効"
  73.  
  74. command /reload-cost:
  75. trigger:
  76. command "/expo 1*(1.15^({%player%.upg::1}+{%player%.maxnumber})-1.15^{%player%.upg::1})/0.15 2 %player%"
  77. command "/expo %50*(1.8^({%player%.upg::2}+{%player%.maxnumber})-1.8^{%player%.upg::2})/0.8% 3 %player%"
  78. command "/expo %50*(6^({%player%.upg::3}+{%player%.maxnumber})-6^{%player%.upg::3})/5% 4 %player%"
  79. command "/expo %200*(1.1^({%player%.upg::4}+{%player%.maxnumber})-1.1^{%player%.upg::4})/0.1% 5 %player%"
  80. command "/expo %1000*(1.2^({%player%.upg::5}+{%player%.maxnumber})-1.2^{%player%.upg::5})/0.2% 6 %player%"
  81. command "/expo %10000*(10^({%player%.upg::10}+{%player%.maxnumber})-10^{%player%.upg::10})/9% 11 %player%"
  82.  
  83.  
  84.  
  85. command /setnt <integer> <text>:
  86. permission: skript.admin
  87. trigger:
  88. set {nt::%arg-1%} to arg-2
  89. message "%arg-1% → %arg-2%"
  90. on mine:
  91. add 1 to {%player%.mc}
  92.  
  93.  
  94. every 2 tick:
  95. loop all players:
  96. send action bar with text "{@p} &8&l・&e&l%{%loop-player%.nn::1}% &6coins &8&l・&r&7採掘力 &d%{%loop-player%.nn::3000}% &7= &5&l%{%loop-player%.minepower}^0.3% &8&l・&r&e採掘力増加 &c+%{%loop-player%.mpp}% &8&l・&7売却倍率 &ax%{%loop-player%.nn::2000}% &8&l||| &a%{%loop-player%.obmc}% &7&l/ &710 &b(+%{%loop-player%.minecount}%)" to loop-player
  97.  
  98. command /status [<player>]:
  99. trigger:
  100. if arg is not set:
  101. set {_player} to player
  102. else:
  103. set {_player} to arg
  104. message "&7━━━━━━━━━━━━━━━━━━━━━━━━━"
  105. message "&7__--=======&e%{_player}%&7=======--__"
  106. message "&8&l・&7所持コイン &e%{%{_player}%.nn::1}% &6coins"
  107. message "&8&l・&7採掘力 &d%{%{_player}%.nn::3000}%"
  108. message "&7--&8&l・&7採掘幸運力 %{%{_player}%.minepower}^0.3% "
  109. message "&8&l・&7採掘力増加 &c%{%{_player}%.mpp}%"
  110. message "&8&l・&7同時採掘回数 &b%1+(0.5*{%{_player}%.upg::2})% &7回"
  111. message "&8&l・&7プレイ時間 &e%{%{_player}%.min}% &7分"
  112. message "&8&l・&7エメラルド &a%{%{_player}%.em}% &7個"
  113.  
  114.  
  115. every 60 seconds:
  116. loop all players:
  117. add 1 to {%loop-player%.min}
  118. chance of 2%:
  119. add 1 to {%loop-player%.em}
  120. message "{@p} &7あなたは&aエメラルド&7を拾いました。+1 &7(%{%loop-player%.em}%)" to loop-player
  121.  
  122.  
  123.  
  124.  
  125. on join:
  126. message "&8&l__--=====================================--__"
  127. message ""
  128. message "&7----&eぬるぬる採掘鯖&7----"
  129. message "&a&lバージョン : {@v} &7 ({@date}&7)"
  130. message "&8最新の更新 &f: {@vt}"
  131. message ""
  132. message "&8&l__--=====================================--__"
  133.  
  134. command /ec:
  135. trigger:
  136. open the player's ender chest to the player
  137.  
  138. on inventory click:
  139. name of clicked inventory is "==upgrade=="
  140. cancel event
  141. set {_i} to 0
  142. loop 36 times:
  143. if clicked slot is {_i}:
  144. set {_clicked} to {_i}
  145. else:
  146. add 1 to {_i}
  147. if {_clicked} is 0:
  148. cancel event
  149. command "/sudo %player% sell all"
  150. if {_clicked} is 5:
  151. cancel event
  152. command "/sudo %player% reload-cost"
  153. if {_clicked} is between 6 and 8:
  154. cancel event
  155. command "/sudo %player% setmaxbuy 0 %10^({_clicked}-6)%"
  156. if {_clicked} is between 10 and 16:
  157. cancel event
  158. command "/sudo %player% upg %{_clicked}-9%"
  159. if {_clicked} is 22:
  160. cancel event
  161. command "/sudo %player% upg 10"
  162. command "/sudo %player% pmenu"
  163.  
  164. command /setcb <player> <number>:
  165. permission: skript.admin
  166. trigger:
  167. set {_befcb} to {%arg-1%.cb}
  168. set {%arg-1%.cb} to arg-2
  169. message "{@p}&7-system &7%{_befcb}% cb &f→ &7%{%arg-1%.cb}%" to player
  170.  
  171. every 2 ticks:
  172. loop all players:
  173. if {%loop-player%.cb} is not 0:
  174. set {_exp1} to floor(log({%loop-player%.cb})/3)
  175. set {%loop-player%.nn::1} to "%{%loop-player%.cb}/(1000^{_exp1})% %{nt::%{_exp1}%}%"
  176. else:
  177. set {%loop-player%.nn::1} to 0
  178. set {%loop-player%.sellmulti} to 1+(0.3*({%loop-player%.upg::4}*{%loop-player%.upgpower::4}))*(1.01^{%loop-player%.upg::5})*(1+0.5*{%loop-player%.upg::10})
  179. command "/expo %{%loop-player%.sellmulti}% 2000 %loop-player%"
  180. command "/expo %{%loop-player%.minepower}% 3000 %loop-player%"
  181. set {%loop-player%.minecount} to 1+(0.5*{%loop-player%.upg::2})*(1+0.1*{%loop-player%.upgpower::2})
  182.  
  183. command /expo <number> <integer> <player>:
  184. permission: skript.admin
  185. trigger:
  186. set {_hid} to arg-2
  187. if arg-1 is not 0:
  188. set {_exp1} to floor(log(arg-1)/3)
  189. set {%arg-3%.nn::%{_hid}%} to "%arg-1/(1000^{_exp1})% %{nt::%{_exp1}%}%"
  190. else:
  191. set {%arg-3%.nn::%{_hid}%} to 0
  192.  
  193. on right click with stone pickaxe:
  194. command "/sudo %player% pmenu"
  195.  
  196. command /pmenu:
  197. trigger:
  198. open chest inventory with 4 row named "==upgrade==" to player
  199. set {_up} to 0
  200. set {_air} to gray glass pane named "&8_"
  201. loop 36 times:
  202. set slot {_up} of player's current inventory to {_air}
  203. add 1 to {_up}
  204. set slot 0 of player's current inventory to cobblestone named "&8[・] &7鉱石を売却する"
  205. set slot 3 of player's current inventory to coal named "&6-=&5&lステータス&6=-" with lore "&8&l・&7ピッケルレベル &a&l%{%player%.upg::10}%lv" and "&8&l・&7所持コイン &e%{%player%.nn::1}% &7coins" and "&8&l・&7採掘力増加 &c+%{%player%.upg::1}*0.005*{%player%.upgpower::1}%mpp" and "&8&l・&7同時採掘回数 &d+%{%player%.minecount}%採掘回数" and "&8&l・&7効率強化 &e%{%player%.upg::3}%" and "&8&l・&7鉱石売却倍率 &a%{%player%.nn::2000}%" and "&8&l・&7自動売却確率 &e+%0.2*{%player%.upg::5}% %%"
  206. set slot 5 of player's current inventory to stick named "&8[・] &7費用表示をリロードする"
  207. set slot 6 of player's current inventory to iron nugget named "&8&l[・]&f同時購入 &ax%{%player%.maxbuy::1}%"
  208. set slot 7 of player's current inventory to iron ingot named "&8&l[・]&f同時購入 &ax%{%player%.maxbuy::2}%"
  209. set slot 8 of player's current inventory to iron block named "&8&l[・]&f同時購入 &ax%{%player%.maxbuy::3}%"
  210. set slot 10 of player's current inventory to gold block named "&8&l-&r&c採掘力増加上昇&8&l-" with lore "&8&l・&7効果 &c+%0.005*{%player%.upgpower::1}%mpp" and "&8&l・&7購入回数 &6%{%player%.upg::1}%&7回" and "&8&l=・&7効能 &c%{%player%.upg::1}*0.005*{%player%.upgpower::1}%mpp" and "&8&l・&7費用 &a%{%player%.nn::2}% &7coins"
  211. set slot 11 of player's current inventory to redstone named "&8&l-&b採掘回数増加&8&l-" with lore "&8&l・&7効果 &d+%0.5*{%player%.upgpower::2}%採掘回数" and "&8&l・&7購入回数 &6%{%player%.upg::2}%&7回" and "&8&l=・&7効能 &d+%{%player%.upg::2}*0.5*{%player%.upgpower::2}%採掘回数" and "&8&l・&7費用 &a%{%player%.nn::3}% &7coins"
  212. set slot 12 of player's current inventory to golden pickaxe named "&8&l-&e採掘効率強化&8&l-" with lore "&8&l・&7効果 &e+1レベル" and "&8&l・&7購入回数 &6%{%player%.upg::3}%&7回" and "&8&l=・&7効能 &eレベル%{%player%.upg::3}%" and "&8&l・&7費用 &a%{%player%.nn::4}% &7coins"
  213. set slot 13 of player's current inventory to golden ingot named "&8&l-&a鉱石売却強化&8&l-" with lore "&8&l・&7効果 &a+%0.3*{%player%.upgpower::4}% &7鉱石売却倍率" and "&8&l・&7購入回数 &6%{%player%.upg::4}% &7回" and "&8&l=・&7効能 &ax%{%player%.upg::4}*0.3*{%player%.upgpower::4}%" and "&8&l・&7費用 &a%{%player%.nn::5}% &7coins"
  214. set slot 14 of player's current inventory to diamond named "&8&l-&e鉱石売却確率強化&8&l-" with lore "&8&l・&7効果1 &e+0.2%% &7売却確率" and "&8&l・&7効果2 &ax1.01 &7鉱石売却倍率" and "&8&l=・&7効能2 &ax%1.01^{%player%.upg::5}%" and "&8&l・&7購入回数 &6%{%player%.upg::5}% &7回" and "&8&l・&7費用 &a%{%player%.nn::6}% &7coins"
  215. set slot 22 of player's current inventory to stone pickaxe named "&8&l-&r&7ピッケル強化&r&8&l-" with lore "&8&l・&7効果1 &7ピッケルレベル上昇 +1" and "&8&l・&8&l・&7効果2 &a鉱石売却倍率 +0.5x" and "&8&l・&7購入回数 &6%{%player%.upg::10}% &7回" and "&8&l・&7費用 &a%{%player%.nn::11}% &7coins"
  216.  
  217. command /eff <player> <integer>:
  218. permission: skript.admin
  219. trigger:
  220. enchant arg-1's held item with "efficiency %arg-2%" parsed as enchantment type
  221. set {%arg-1%.eflevel} to arg-2
  222.  
  223. command /upg <integer>:
  224. trigger:
  225. if {%player%.maxnumber} is not set:
  226. set {%player%.maxnumber} to 1
  227. if arg is 1:
  228. if {%player%.cb} >= 1*(1.15^({%player%.upg::1}+{%player%.maxnumber})-1.15^{%player%.upg::1})/0.15:
  229. remove 1*(1.15^({%player%.upg::1}+{%player%.maxnumber})-1.15^{%player%.upg::1})/0.15 from {%player%.cb}
  230. add {%player%.maxnumber} to {%player%.upg::1}
  231. set {_cost} to 1*(1.15^({%player%.upg::1}+{%player%.maxnumber})-1.15^{%player%.upg::1})/0.15
  232. if arg is 2:
  233. if {%player%.cb} >= 50*(1.8^({%player%.upg::2}+{%player%.maxnumber})-1.8^{%player%.upg::2})/0.8:
  234. remove 50*(1.8^({%player%.upg::2}+{%player%.maxnumber})-1.8^{%player%.upg::2})/0.8 from {%player%.cb}
  235. add {%player%.maxnumber} to {%player%.upg::2}
  236. set {_cost} to 50*(1.8^({%player%.upg::2}+{%player%.maxnumber})-1.8^{%player%.upg::2})/0.8
  237. if arg is 3:
  238. if {%player%.cb} >= 50*(6^({%player%.upg::3}+{%player%.maxnumber})-6^{%player%.upg::3})/5:
  239. if player's held item is stone pickaxe:
  240. remove 50*(6^({%player%.upg::3}+{%player%.maxnumber})-6^{%player%.upg::3})/5 from {%player%.cb}
  241. add {%player%.maxnumber} to {%player%.upg::3}
  242. command "/cpickaxe %player%"
  243. set {_cost} to 50*(6^({%player%.upg::3}+{%player%.maxnumber})-6^{%player%.upg::3})/5
  244. else:
  245. set {_reason} to 1
  246. if arg is 4:
  247. if {%player%.cb} >= 200*(1.1^({%player%.upg::4}+{%player%.maxnumber})-1.1^{%player%.upg::4})/0.1:
  248. remove 200*(1.1^({%player%.upg::4}+{%player%.maxnumber})-1.1^{%player%.upg::4})/0.1 from {%player%.cb}
  249. add {%player%.maxnumber} to {%player%.upg::4}
  250. set {_cost} to 200*(1.1^({%player%.upg::4}+{%player%.maxnumber})-1.1^{%player%.upg::4})/0.1
  251. if arg is 5:
  252. if {%player%.cb} >= 1000*(1.2^({%player%.upg::5}+{%player%.maxnumber})-1.2^{%player%.upg::5})/0.2:
  253. remove 1000*(1.2^({%player%.upg::5}+{%player%.maxnumber})-1.2^{%player%.upg::5})/0.2 from {%player%.cb}
  254. add {%player%.maxnumber} to {%player%.upg::5}
  255. set {_cost} to 1000*(1.2^({%player%.upg::5}+{%player%.maxnumber})-1.2^{%player%.upg::5})/0.2
  256. if arg is 10:
  257. if {%player%.cb} >= 10000*(10^({%player%.upg::10}+{%player%.maxnumber})-10^{%player%.upg::10})/9:
  258. remove 10000*(10^({%player%.upg::10}+{%player%.maxnumber})-10^{%player%.upg::10})/9 from {%player%.cb}
  259. add {%player%.maxnumber} to {%player%.upg::10}
  260. set {_cost} to 10000*(10^({%player%.upg::10}+{%player%.maxnumber})-10^{%player%.upg::10})/9
  261. if {_cost} is set:
  262. command "/expo %{_cost}% %arg+1% %player%"
  263. set {%player%.upgpower::%arg%} to 1+floor({%player%.upg::%arg%}/10)
  264. message "{@p} &a強化に成功しました。"
  265. message "{@p} &7次のコスト : %{%player%.nn::%arg+1%}% &7(at %{%player%.maxnumber}%)"
  266. else:
  267. if {_reason} is not set:
  268. message "{@p} &7コインが足りません。"
  269. if {_reason} is 1:
  270. message "{@p} &7ピッケルを手に持ってください。"
  271.  
  272. on break:
  273. set {%player%.int} to 0
  274. if event-block is cobblestone:
  275. set {%player%.int} to 1
  276. if event-block is iron ore:
  277. if {%player%.upg::10} >= 4:
  278. set {%player%.int} to 2
  279. else:
  280. message "{@p} &c採掘可能レベル : 4lv"
  281. cancel event
  282. if event-block is gold ore:
  283. if {%player%.upg::10} >= 9:
  284. set {%player%.int} to 3
  285. else:
  286. message "{@p} &c採掘可能レベル : 9lv"
  287. cancel event
  288. if {%player%.opmode} is not 0:
  289. cancel event
  290. if {%player%.int} is not 0:
  291. if {%player%.debris.upg::1} >= 1:
  292. set {_rm} to random integer between 1 and 100000
  293. set {_rma} to random integer between 1 and ({%player%.debris.upg::1}+({%player%.debris.upg::3}^0.5))*100
  294. if {_rm} <= 20+{%player%.debris.upg::4}:
  295. add {_rma}/100 to {%player%.debris}
  296. if {%player%.debris.upg::3} <= 100:
  297. message "{@p} &6古代の残骸を発見した。 &7(&a+%floor({_rma}/100)%&7)"
  298. command "/mft-give %player% %{%player%.int}%"
  299. add 1+(0.5*{%player%.upg::2})*(1+0.1*{%player%.upgpower::2})*{%player%.int} to {%player%.obmc}
  300. if {%player%.upg::6} is 0:
  301. set {_max} to 10
  302. else:
  303. set {_max} to 10/({%player%.upg::6}^0.2)
  304. if {%player%.obmc} >= {_max}:
  305. set {_max} to floor({%player%.obmc}/10)
  306. remove 10*{_max} from {%player%.obmc}
  307. add {%player%.mpp}*{_max} to {%player%.minepower}
  308.  
  309.  
  310.  
  311. every 10 ticks:
  312. loop all players:
  313. set {%loop-player%.mpp} to 0.005*{%loop-player%.upg::1}*{%loop-player%.upgpower::1}
  314. set {%loop-player%.prestige.ableruby} to ({%loop-player%.cb}^0.5)/10000
  315. command "/expo %1+0.4*{%loop-player%.upg::4}*{%loop-player%.upgpower::4}%"
  316.  
  317. command /mft-give <player> <integer> [<number>]:
  318. permission: skript.admin
  319. trigger:
  320. command "/execute %player% ~ ~ ~ /playsound entity.item.pickup ambient %arg-1% ~ ~ ~ 1 1.75"
  321. set {%arg-1%.rm} to random integer between 1 and 10000
  322. set {_givenum} to 0
  323. set {_item} to "%{minelist::%999+(arg-2)%}%" parsed as an item type
  324. if arg-3 is not set:
  325. set {_givemult} to 1
  326. else:
  327. set {_givemult} to arg-3
  328. set {_powerstock} to ({%arg-1%.minepower}^0.3)*{_givemult}
  329. set {_chance} to ({_powerstock}-floor({_powerstock}))*100
  330. if {%arg-1%.rm} <= {%arg-1%.upg::5}*20:
  331. add {_powerstock}*{%arg-1%.sellmulti}*(4^((arg-2)-1)) to {%arg-1%.cb}
  332. else:
  333. if floor({_powerstock}) > 64:
  334. set {_maxgive} to floor(floor({_powerstock})/64)
  335. loop {_maxgive} time:
  336. give 64 of {_item} to arg-1
  337. remove 64 from {_powerstock}
  338. give floor({_powerstock}) of {_item} to arg-1
  339. chance of {_chance} %:
  340. give 1 of {_item} to arg-1
  341.  
  342. command /sell [<text>]:
  343. trigger:
  344. if arg is "all":
  345. if player has cobblestone:
  346. set {_a::1} to amount of cobblestone in the event-player's inventory
  347. add {_a::1}*{%player%.sellmulti} to {%player%.cb}
  348. add {_a::1}*{%player%.sellmulti} to {%player%.totalcb}
  349. set {_explore::1000} to {_a::1}*{%player%.sellmulti}
  350. remove all cobblestone from event-player's inventory
  351. if player has iron ore:
  352. set {_a::2} to amount of iron ore in the event-player's inventory
  353. add {_a::2}*{%player%.sellmulti}*4 to {%player%.cb}
  354. add {_a::2}*{%player%.sellmulti}*4 to {%player%.totalcb}
  355. set {_explore::1001} to {_a::2}*{%player%.sellmulti}*4
  356. remove all iron ore from event-player's inventory
  357. if player has gold ore:
  358. set {_a::3} to amount of gold ore in the event-player's inventory
  359. add {_a::3}*{%player%.sellmulti}*16 to {%player%.cb}
  360. add {_a::3}*{%player%.sellmulti}*16 to {%player%.totalcb}
  361. set {_explore::1002} to {_a::3}*{%player%.sellmulti}*16
  362. remove all gold ore from event-player's inventory
  363. set {_ii} to 1000
  364. loop 5 times:
  365. if {_explore::%{_ii}%} is set:
  366. command "/expo %{_explore::%{_ii}%}% %{_ii}% %player%"
  367. message "&7-[・] &7%{minelist::%{_ii}%}% &a+%{%player%.nn::%{_ii}%}% coins" to player
  368. add 1 to {_ii}
  369. command "/execute %player% ~ ~ ~ /playsound entity.experience_orb.pickup ambient %player% ~ ~ ~ 1 0.5"
  370. else:
  371. add 1 to {_ii}
  372.  
  373. command /resetdata <player>:
  374. permission: skript.admin
  375. trigger:
  376. set {%arg%.cb} to 0
  377. set {%arg%.upg::*} to 0
  378. set {%arg%.upg::1} to 1
  379. set {%arg%.minepower} to 1
  380. set {%arg%.upgpower::*} to 1
  381. set {%arg%.mpp} to 0
  382. set {%arg%.mc} to 0
  383. set {%arg%.obmc} to 0
  384. message "{@p} &7&lリセットしました。" to arg
  385. command /setmaxbuy <integer> <integer>:
  386. trigger:
  387. if arg-1 is 0:
  388. set {%player%.maxnumber} to arg-2
  389. message "{@p} &7同時購入数を &f%arg-2% &7にしました。"
  390. command "/sudo %player% reload-cost"
  391.  
  392. on join:
  393. if {%player%.minepower} <= 0:
  394. command "/resetdata %player%"
  395.  
  396.  
  397. command /d-upg <integer>:
  398. trigger:
  399. set {%player%.debris.upg::%arg%} to {_upg}
  400. if arg is 1:
  401. if {%player%.cb} >= 1000*{_upg}^(1+0.4*{_upg}):
  402. remove 1000*{_upg}^(1+0.4*{_upg}) from {%player%.cb}
  403. add 1 to {%player%.debris.upg::1}
  404. set {_cost} to 1000*({_upg}+1)^(1+0.4*({_upg}+1))
  405. if arg is 2:
  406. if {%player%.debris} >= (16+{_upg})^({_upg}+1):
  407. remove (16+{_upg})^({_upg}+1) from {%player%.debris}
  408. add 1 to {%player%.debris.upg::2}
  409. set {_cost} to (16+({_upg}+1))^({_upg}+2)
  410. if arg is 3:
  411. if {%player%.debris} >= 0.5*{_upg}*({_upg}+1):
  412. remove 0.5*{_upg}*({_upg}+1) from {%player%.debris}
  413. add 1 to {%player%.debris.upg::3}
  414. set {_cost} to 0.5*({_upg}+1)*(({_upg}+1)+1)
  415. if arg is 4:
  416. if {_upg} >= 30:
  417. set {_sc} to 0.1
  418. else:
  419. set {_sc} to 0
  420. if {%player%.debris} >= (1.2+{_sc})^{_upg}:
  421. remove (1.2+{_sc})^{_upg} from {%player%.debris}
  422. add 1 to {%player%.debris.upg::4}
  423. if {_upg}+1 >= 30:
  424. if {_upg}+1 = 30:
  425. set {_lore} to "&cソフトキャップに当たったため、強化コストが大幅に上昇しました。"
  426. set {_cost} to 1.3^({_upg}+1)
  427. else:
  428. set {_cost} to 1.2^({_upg}+1)
  429. if {_cost} is set:
  430. command "/expo %{_cost}% %arg+10000% %player%"
  431. message "{@p} &6購入に成功しました。"
  432. message "{@p} &7次のコスト : %{%player%.nn::%arg+10000%}%"
  433. if {_lore} is set:
  434. message "{@p} %{_lore}%"
  435.  
  436. command /cpickaxe <player>:
  437. permission: skript.admin
  438. trigger:
  439. set {_ef} to {%player%.upg::3}
  440. set {_p} to {%arg%.debris.upg::2}+{%arg%.upg::10}
  441. command "/eff %arg% %{%player%.upg::3}%"
  442. if {_p} >= 1:
  443. set {_name} to "&7Beginner Pickaxe &7[&e%{_p}%&7]"
  444. if {_p} >= 4:
  445. set {_name} to "&fIron Pickaxe &7[&e%{_p}%&7]"
  446. if {_p} >= 9:
  447. set {_name} to "&f&lSteel Pickaxe &7[&e%{_p}%&7]"
  448. if {_p} >= 16:
  449. set {_name} to "&1Mithril Pickaxe &7[&e%{_p}%&7]"
  450. if {_p} >= 25:
  451. set {_name} to "&2Adamantite Pickaxe &7[&e%{_p}%&7]"
  452. if {_p} >= 36:
  453. set {_name} to "&bRunite Pickaxe &7[&e%{_p}%&7]"
  454. if {_p} >= 49:
  455. set {_name} to "&cDragonite Pickaxe &7[&e%{_p}%&7]"
  456. set name of tool of player to {_name}
  457. set the 1st line of the player's tool's lore to "&7-=====-=====-=====-=====-"
  458. set the 2nd line of the player's tool's lore to "&8&l・&7所有者 &7%arg%"
  459. set the 3rd line of the player's tool's lore to "&8&l・&7効率強化 &e%{_ef}%"
  460. set the 4th line of the player's tool's lore to "&8&l・&7同時採掘回数 &b+%{%player%.minecount}%"
  461. set the 5th line of the player's tool's lore to "&8&l・&7ピッケルレベル %{_p}%"
  462. set the 6th line of the player's tool's lore to "&7-=====-=====-=====-=====-"
  463. set the 7th line of the player's tool's lore to "&1--pickaxe"
  464.  
  465.  
  466.  
  467.  
  468.  
  469.  
  470. every 2 seconds:
  471. loop all players:
  472. set {_p} to 0
  473. if {%loop-player%.ac::10} is not 1:
  474. if {%loop-player%.cb} >= 30:
  475. set {%loop-player%.ac::10} to 1
  476. set {_inf} to 10
  477. if {%loop-player%.ac::11} is not 1:
  478. if {%loop-player%.upg::2} >= 2:
  479. set {%loop-player%.ac::11} to 1
  480. set {_inf} to 11
  481.  
  482. command /dmenu:
  483. trigger:
  484. open chest inventory with 4 row named "==debris upgrade==" to player
  485. set {_up} to 0
  486. set {_air} to gray glass pane named "&8_"
  487. loop 36 times:
  488. set slot {_up} of player's current inventory to {_air}
  489. add 1 to {_up}
  490. set slot 10 of player's current inventory to cobblestone named "&7-=&6残骸入手量増加&7(&ecoin&7)&7=-" with lore "&8&l・&7効果 &6残骸入手量 +1" and "&8&l=・ &7効能 &6残骸入手量 +%{%player%.debris.upg::1}%" and "&8&l・&7購入回数 &6%{%player%.debris.upg::1}% &7回" and "&8&l・&7費用 &a%{%player%.nn::10001}% &7coin"
  491. set slot 12 of player's current inventory to stone pickaxe named "&7-=&7&lピッケル強化&7=-" with lore "&8&l・&7効果 &7ピッケルレベル +1" and "&8&l=・ &7効能 &7ピッケルレベル上昇 +%{%player%.debris.upg::2}% レベル" and "&8&l・&7購入回数 &6%{%player%.debris.upg::2}% &7回" and "&8&l・&7費用 &a%{%player%.nn::10002}% &7debris"
  492. set slot 14 of player's current inventory to emerald named "&7-=&6&7=-" with lore "&8&l・&7効果 &6残骸幸運 +%((1+{%player%.debris.upg::4})^0.5-{%player%.debris.upg::4}^0.5)/1000% %%" and "&8&l=・ &7効能 &6残骸幸運増加 +%0.001*{%player%.debris.upg::4}^0.5% %%" and "&8&l・&7購入回数 &6%{%player%.debris.upg::4}% &7回" and "&8&l・&7費用 &a%{%player%.nn::10004}% &7debris"
  493. set slot 16 of player's current inventory to emerald named "&7-=&6&残骸幸運増加&7=-" with lore "&8&l・&7効果 &6残骸幸運 +%((1+{%player%.debris.upg::4})^0.5-{%player%.debris.upg::4}^0.5)/1000% %%" and "&8&l=・ &7効能 &6残骸幸運増加 +%0.001*{%player%.debris.upg::4}^0.5% %%" and "&8&l・&7購入回数 &6%{%player%.debris.upg::4}% &7回" and "&8&l・&7費用 &a%{%player%.nn::10004}% &7debris"
  494.  
  495.  
  496.  
  497. on inventory click:
  498. name of clicked inventory is "==debris upgrade=="
  499. cancel event
  500. set {_i} to 0
  501. loop 36 times:
  502. if clicked slot is {_i}:
  503. set {_clicked} to {_i}
  504. else:
  505. add 1 to {_i}
  506. if {_clicked} is 10:
  507. cancel event
  508. command "/sudo %player% d-upg 1"
  509. if {_clicked} is 12:
  510. cancel event
  511. command "/sudo %player% d-upg 2"
  512. if {_clicked} is 14:
  513. cancel event
  514. command "/sudo %player% d-upg 3"
  515. if {_clicked} is 16:
  516. cancel event
  517. command "/sudo %player% d-upg 4"
  518.  
  519. command /ascension [<text>]:
  520. trigger:
  521. if arg is not set:
  522. set {_e} to 1
  523. if {_e} is 1:
  524. open chest inventory with 3 row named "==ascension==" to player
  525. set {_up} to 0
  526. set {_air} to gray glass pane named "&8_"
  527. loop 27 times:
  528. set slot {_up} of player's current inventory to {_air}
  529. add 1 to {_up}
  530. if floor(log({%player%.totalcb}))-7 <= 0:
  531. set {_eme} to 0
  532. else:
  533. set {_eme} to floor(log({%player%.totalcb}))-7
  534. command "/expo {%player%.totalcb} 10000 %player%"
  535. set slot 13 of player's current inventory to ender eye named "&7-=&6アセンション&7=-" with lore "&8===[&7&n現転生で得たアイテム&r&7]===" and "&8&l・&7総計獲得コイン &e%{%player%.nn::10000}%&7枚" and "&8===[&7&n獲得可能なアイテム&r&8]===" and "&8&l・&7ダイヤモンド &b+%({%player%.totalcb}^0.5)/10000%" and "&8&l・&7エメラルド &a+%{_eme}%"
  536.  
  537.  
  538.  
  539.  
  540.  
  541.  
  542.  
  543.  
Advertisement
Add Comment
Please, Sign In to add comment