Advertisement
cnsnipermike

battlecat_release_8.1-rc1

Feb 23rd, 2025 (edited)
1,175
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 45.66 KB | None | 0 0
  1. if gg.getTargetInfo()["x64"] then
  2. gg.clearResults()
  3. gg.setRanges(16)
  4. gg.searchNumber(10,4)
  5. local count = gg.getResultsCount()
  6. if(count < 1) then
  7. lib='config.arm64_v8a.apk'
  8. gg.setRanges(-2080896)
  9. else
  10. gg.setRanges(16)
  11. gg.clearResults()
  12. lib='libnative-lib.so'
  13. end
  14. targetname='貓咪大戰爭'
  15. targetPkg='jp.co.ponos.battlecatstw'
  16. targetVersion='14.4.0'
  17. targetBuild=1404000
  18. info=gg.getTargetInfo()
  19. bohe_a={0x3C8D78, 0x4}  --id-0--紫色貓薄荷種子
  20. bohe_b={0x3C8D78, 0xC}  --id-1--紅色貓薄荷種子
  21. bohe_c={0x3C8D78, 0x14}  --id-2--藍色貓薄荷種子
  22. bohe_d={0x3C8D78, 0x1C}  --id-3--綠色貓薄荷種子
  23. bohe_e={0x3C8D78, 0x24}  --id-4--黃色貓薄荷種子
  24. bohe_f={0x3C8D78, 0x6C}  --id-13--彩虹貓薄荷種子
  25. bohe_g={0x3C8D78, 0x7C}  --id-15--惡貓薄荷種子
  26. bohe_h={0x3C8D78, 0x5C}  --id-11--古代貓薄荷種子
  27. bohe_i={0x3C8D78, 0x8C}  --id-17--黃金貓薄荷種子
  28. bohe_j={0x3C8D78, 0x2C}  --id-5--紫色貓薄荷種子
  29. bohe_k={0x3C8D78, 0x34}  --id-6--紅色貓薄荷種子
  30. bohe_l={0x3C8D78, 0x3C}  --id-7--藍色貓薄荷種子
  31. bohe_m={0x3C8D78, 0x44}  --id-8--綠色貓薄荷種子
  32. bohe_n={0x3C8D78, 0x4C}  --id-9--黃色貓薄荷種子
  33. bohe_o={0x3C8D78, 0x54}  --id-10--彩虹貓薄荷種子
  34. bohe_p={0x3C8D78, 0x84}  --id-16--惡貓薄荷種子
  35. bohe_q={0x3C8D78, 0x64}  --id-12--古代貓薄荷種子
  36. bohe_r={0x3C8D78, 0x74}  --id-14--黃金貓薄荷種子
  37. shoushi_a={0x3C8D78, 0x94}  --id-18--紫獸石
  38. shoushi_b={0x3C8D78, 0x9C}  --id-19--紅獸石
  39. shoushi_c={0x3C8D78, 0xA4}  --id-20--蒼獸石
  40. shoushi_d={0x3C8D78, 0xAC}  --id-21--翠獸石
  41. shoushi_e={0x3C8D78, 0xB4}  --id-22--黃獸石
  42. shoushi_f={0x3C8D78, 0xE4}  --id-28--彩虹獸石
  43. shoushi_g={0x3C8D78, 0xBC}  --id-23--紫獸結晶
  44. shoushi_h={0x3C8D78, 0xC4}  --id-24--紅獸結晶
  45. shoushi_i={0x3C8D78, 0xCC}  --id-25--蒼獸結晶
  46. shoushi_j={0x3C8D78, 0xD4}  --id-26--翠獸結晶
  47. shoushi_k={0x3C8D78, 0xDC}  --id-27--黃獸結晶
  48. animation=0x6020B0  --xa-static
  49. autowin=0x429D10  --xa-static
  50. shoulingqi=0xA5E2A8  --xa-static
  51. baijinquan=(shoulingqi)+0x750  --static
  52. chuanshuoheiquan=(shoulingqi)+0x758  --static
  53. baijinquanshuipian=(shoulingqi)+0x760  --static
  54. zhaofuquan=(shoulingqi)+0x1628  --dynamic
  55. zhaofuquanG=(shoulingqi)+0x1630  --dynamic
  56. bennengbox=(zhaofuquanG)+8  --static
  57. maoguantou=(shoulingqi)+0x97E8  --dynamic
  58. xp=(maoguantou)+344  --static
  59. np=(xp)+8  --static
  60. zhandoudaoju=(shoulingqi)+0x476A0  --dynamic
  61. yinquan=(shoulingqi)+0x2F872C  --dynamic
  62. jinquan=(yinquan)+8  --static
  63. playedtime=(jinquan)+0x385254  --dynamic
  64. maoyanshi=(shoulingqi)+0x40290C  --dynamic
  65. miaolida=(maoyanshi)+48  --static
  66. sucai=(miaolida)+24  --static
  67. --lib='libnative-lib.so'
  68. chain={"libnative-lib.so:bss", "Cb"}
  69. function S_Pointer(t_So, t_Offset, _bit)
  70. local function getRanges()
  71. local ranges = {}
  72. local t = gg.getRangesList('^/data/*.so*$')
  73. for i, v in pairs(t) do
  74. if v.type:sub(2, 2) == 'w' then
  75. table.insert(ranges, v)
  76. end
  77. end
  78. return ranges
  79. end
  80. local function Get_Address(N_So, Offset, ti_bit)
  81. local ti = gg.getTargetInfo()
  82. local S_list = getRanges()
  83. local _Q = tonumber(0x167ba0fe)
  84. local t = {}
  85. local _t
  86. local _S = nil
  87. if ti_bit then
  88. _t = 32
  89.    else
  90.    _t = 4
  91.   end
  92.   for i in pairs(S_list) do
  93.    local _N = S_list[i].internalName:gsub('^.*/', '')
  94.    if N_So[1] == _N and N_So[2] == S_list[i].state then
  95.     _S = S_list[i]
  96.     break
  97.    end
  98.   end
  99.   if _S then
  100.    t[#t + 1] = {}
  101.    t[#t].address = _S.start + Offset[1]
  102.    t[#t].flags = _t
  103.    if #Offset ~= 1 then
  104.     for i = 2, #Offset do
  105.      local S = gg.getValues(t)
  106.      t = {}
  107.      for _ in pairs(S) do
  108.       if not ti.x64 then
  109.        S[_].value = S[_].value & 0xFFFFFFFF
  110.       end
  111.       t[#t + 1] = {}
  112.       t[#t].address = S[_].value + Offset[i]
  113.       t[#t].flags = _t
  114.      end
  115.     end
  116.    end
  117.    _S = t[#t].address
  118.   end
  119.   return _S
  120.  end
  121.  local _A = string.format('0x%X', Get_Address(t_So, t_Offset, _bit))
  122.  return _A
  123. end
  124. function setvalue(address,flags,value) local tt={} tt[1]={} tt[1].address=address tt[1].flags=flags tt[1].value=value gg.setValues(tt) end
  125. function addlist(address,flags,name) local tt={} tt[1]={} tt[1].address=address tt[1].flags=flags tt[1].name=name gg.addListItems(tt) end
  126. function Start()
  127. MAIN = gg.choice({
  128. "首領旗",
  129. "XP",
  130. "NP",
  131. "猫罐頭",
  132. "戰鬥道具",
  133. "喵力達",
  134. "遊戲時數",
  135. "貓眼石",
  136. "抽獎券",
  137. "素材",
  138. "貓薄荷",
  139. "獸石",
  140. "本能寶箱",
  141. "自動爆塔",
  142. "關閉抽獎動畫",
  143. "腳本資訊",
  144. "Switch to debug mode",
  145. "離開",
  146. })
  147. if MAIN == nil then
  148. gg.toast("功能表已收起")
  149. else
  150. if MAIN == 1 then A1() end
  151. if MAIN == 2 then A2() end
  152. if MAIN == 3 then A3() end
  153. if MAIN == 4 then A4() end
  154. if MAIN == 5 then A5() end
  155. if MAIN == 6 then A6() end
  156. if MAIN == 7 then A7() end
  157. if MAIN == 8 then A8() end
  158. if MAIN == 9 then A9() end
  159. if MAIN == 10 then A10() end
  160. if MAIN == 11 then A11() end
  161. if MAIN == 12 then A12() end
  162. if MAIN == 13 then A13() end
  163. if MAIN == 14 then A14() end
  164. if MAIN == 15 then A15() end
  165. if MAIN == 16 then UP() end
  166. if MAIN == 17 then DEBUG() end
  167. if MAIN == 18 then End() end
  168. end
  169. FMXR=-1
  170. end
  171. function A1()
  172. value=gg.prompt({'首領旗\n输入1-9999'},nil,{"number"})
  173. if value == nil then
  174. gg.toast('已取消')
  175. else  
  176. b=value[1]
  177. c=65536
  178. d=b*c
  179. value=d
  180. so=gg.getRangesList((lib))[1].start
  181. py=(shoulingqi)
  182. setvalue(so+py,4,''..value..'')
  183. gg.toast('修改成功')
  184. end
  185. end
  186. function A2()
  187. value=gg.prompt({'XP\n想要多少輸多少'},nil,{"number"})
  188. if value == nil then
  189. gg.toast('已取消')
  190. else
  191. so=gg.getRangesList((lib))[1].start
  192. py=(xp)
  193. setvalue(so+py,4,value[1])
  194. so=gg.getRangesList((lib))[1].start
  195. py=(xp)+0x4
  196. setvalue(so+py,4,0)
  197. gg.toast('修改成功')
  198. end
  199. end
  200. function A3()
  201. value=gg.prompt({'NP\n想要多少輸多少'},nil,{"number"})
  202. if value == nil then
  203. gg.toast('已取消')
  204. else
  205. so=gg.getRangesList((lib))[1].start
  206. py=(np)
  207. setvalue(so+py,4,value[1])
  208. so=gg.getRangesList((lib))[1].start
  209. py=(np)+0x4
  210. setvalue(so+py,4,0)
  211. gg.toast('修改成功')
  212. end
  213. end
  214. function A4()
  215. value=gg.prompt({'貓罐子\n想要多少輸多少\n極限值:49999'},nil,{"number"})
  216. if value == nil then
  217. gg.toast('已取消')
  218. else
  219. so=gg.getRangesList((lib))[1].start
  220. py=(maoguantou)
  221. setvalue(so+py,4,value[1])
  222. so=gg.getRangesList((lib))[1].start
  223. py=(maoguantou)+0x4
  224. setvalue(so+py,4,0)
  225. gg.toast('修改成功')
  226. end
  227. end
  228. function A5()
  229. ZDDJ = gg.choice({
  230. "加速",
  231. "寶物雷達",
  232. "土豪貓",
  233. "貓形電腦",
  234. "洞悉先機",
  235. "狙擊手",
  236. "一鍵全改",
  237. "返回上级目录",
  238. })
  239. if ZDDJ == nil then
  240. gg.toast('已取消')
  241. else
  242. if ZDDJ == 1 then A501() end
  243. if ZDDJ == 2 then A502() end
  244. if ZDDJ == 3 then A503() end
  245. if ZDDJ == 4 then A504() end
  246. if ZDDJ == 5 then A505() end
  247. if ZDDJ == 6 then A506() end
  248. if ZDDJ == 7 then A507() end
  249. if ZDDJ == 8 then Start() end
  250. end
  251. FMXR=-1
  252. end
  253. function A501()
  254. value=gg.prompt({'想要多少輸多少'},nil,{"number"})
  255. if value == nil then
  256. gg.toast('已取消')
  257. else
  258. so=gg.getRangesList((lib))[1].start
  259. py=(zhandoudaoju)
  260. setvalue(so+py,4,value[1])
  261. so=gg.getRangesList((lib))[1].start
  262. py=(zhandoudaoju)+0x4
  263. setvalue(so+py,4,0)
  264. gg.toast('修改成功')
  265. end
  266. end
  267. function A502()
  268. value=gg.prompt({'想要多少輸多少'},nil,{"number"})
  269. if value == nil then
  270. gg.toast('已取消')
  271. else
  272. so=gg.getRangesList((lib))[1].start
  273. py=(zhandoudaoju)+0x8
  274. setvalue(so+py,4,value[1])
  275. so=gg.getRangesList((lib))[1].start
  276. py=(zhandoudaoju)+0x8+0x4
  277. setvalue(so+py,4,0)
  278. gg.toast('修改成功')
  279. end
  280. end
  281. function A503()
  282. value=gg.prompt({'想要多少輸多少'},nil,{"number"})
  283. if value == nil then
  284. gg.toast('已取消')
  285. else
  286. so=gg.getRangesList((lib))[1].start
  287. py=(zhandoudaoju)+0x10
  288. setvalue(so+py,4,value[1])
  289. so=gg.getRangesList((lib))[1].start
  290. py=(zhandoudaoju)+0x10+0x4
  291. setvalue(so+py,4,0)
  292. gg.toast('修改成功')
  293. end
  294. end
  295. function A504()
  296. value=gg.prompt({'想要多少輸多少'},nil,{"number"})
  297. if value == nil then
  298. gg.toast('已取消')
  299. else
  300. so=gg.getRangesList((lib))[1].start
  301. py=(zhandoudaoju)+0x18
  302. setvalue(so+py,4,value[1])
  303. so=gg.getRangesList((lib))[1].start
  304. py=(zhandoudaoju)+0x18+0x4
  305. setvalue(so+py,4,0)
  306. gg.toast('修改成功')
  307. end
  308. end
  309. function A505()
  310. value=gg.prompt({'想要多少輸多少'},nil,{"number"})
  311. if value == nil then
  312. gg.toast('已取消')
  313. else
  314. so=gg.getRangesList((lib))[1].start
  315. py=(zhandoudaoju)+0x20
  316. setvalue(so+py,4,value[1])
  317. so=gg.getRangesList((lib))[1].start
  318. py=(zhandoudaoju)+0x20+0x4
  319. setvalue(so+py,4,0)
  320. gg.toast('修改成功')
  321. end
  322. end
  323. function A506()
  324. value=gg.prompt({'想要多少輸多少'},nil,{"number"})
  325. if value == nil then
  326. gg.toast('已取消')
  327. else
  328. so=gg.getRangesList((lib))[1].start
  329. py=(zhandoudaoju)+0x28
  330. setvalue(so+py,4,value[1])
  331. so=gg.getRangesList((lib))[1].start
  332. py=(zhandoudaoju)+0x28+0x4
  333. setvalue(so+py,4,0)
  334. gg.toast('修改成功')
  335. end
  336. end
  337. function A507()
  338. value=gg.prompt({'想要多少輸多少'},nil,{"number"})
  339. if value == nil then
  340. gg.toast('已取消')
  341. else
  342. so=gg.getRangesList((lib))[1].start
  343. py=(zhandoudaoju)
  344. setvalue(so+py,4,value[1])
  345. so=gg.getRangesList((lib))[1].start
  346. py=(zhandoudaoju)+0x4
  347. setvalue(so+py,4,0)
  348. so=gg.getRangesList((lib))[1].start
  349. py=(zhandoudaoju)+0x8
  350. setvalue(so+py,4,value[1])
  351. so=gg.getRangesList((lib))[1].start
  352. py=(zhandoudaoju)+0x8+0x4
  353. setvalue(so+py,4,0)
  354. so=gg.getRangesList((lib))[1].start
  355. py=(zhandoudaoju)+0x10
  356. setvalue(so+py,4,value[1])
  357. so=gg.getRangesList((lib))[1].start
  358. py=(zhandoudaoju)+0x10+0x4
  359. setvalue(so+py,4,0)
  360. so=gg.getRangesList((lib))[1].start
  361. py=(zhandoudaoju)+0x18
  362. setvalue(so+py,4,value[1])
  363. so=gg.getRangesList((lib))[1].start
  364. py=(zhandoudaoju)+0x18+0x4
  365. setvalue(so+py,4,0)
  366. so=gg.getRangesList((lib))[1].start
  367. py=(zhandoudaoju)+0x20
  368. setvalue(so+py,4,value[1])
  369. so=gg.getRangesList((lib))[1].start
  370. py=(zhandoudaoju)+0x20+0x4
  371. setvalue(so+py,4,0)
  372. so=gg.getRangesList((lib))[1].start
  373. py=(zhandoudaoju)+0x28
  374. setvalue(so+py,4,value[1])
  375. so=gg.getRangesList((lib))[1].start
  376. py=(zhandoudaoju)+0x28+0x4
  377. setvalue(so+py,4,0)
  378. gg.toast('修改成功')
  379. end
  380. end
  381. function A6()
  382. MLD = gg.choice({
  383. "喵力達-A",
  384. "喵力達-B",
  385. "喵力達-C",
  386. "一鍵全改",
  387. "返回上级目录",
  388. })
  389. if MLD == nil then
  390. gg.toast('已取消')
  391. else
  392. if MLD == 1 then A601() end
  393. if MLD == 2 then A602() end
  394. if MLD == 3 then A603() end
  395. if MLD == 4 then A604() end
  396. if MLD == 5 then Start() end
  397. end
  398. FMXR=-1
  399. end
  400. function A601()
  401. value=gg.prompt({'想要多少輸多少'},nil,{"number"})
  402. if value == nil then
  403. gg.toast('已取消')
  404. else
  405. so=gg.getRangesList((lib))[1].start
  406. py=(miaolida)
  407. setvalue(so+py,4,value[1])
  408. so=gg.getRangesList((lib))[1].start
  409. py=(miaolida)+0x4
  410. setvalue(so+py,4,0)
  411. gg.toast('修改成功')
  412. end
  413. end
  414. function A602()
  415. value=gg.prompt({'想要多少輸多少'},nil,{"number"})
  416. if value == nil then
  417. gg.toast('已取消')
  418. else
  419. so=gg.getRangesList((lib))[1].start
  420. py=(miaolida)+0x8
  421. setvalue(so+py,4,value[1])
  422. so=gg.getRangesList((lib))[1].start
  423. py=(miaolida)+0x8+0x4
  424. setvalue(so+py,4,0)
  425. gg.toast('修改成功')
  426. end
  427. end
  428. function A603()
  429. value=gg.prompt({'想要多少輸多少'},nil,{"number"})
  430. if value == nil then
  431. gg.toast('已取消')
  432. else
  433. so=gg.getRangesList((lib))[1].start
  434. py=(miaolida)+0x10
  435. setvalue(so+py,4,value[1])
  436. so=gg.getRangesList((lib))[1].start
  437. py=(miaolida)+0x10+0x4
  438. setvalue(so+py,4,0)
  439. gg.toast('修改成功')
  440. end
  441. end
  442. function A604()
  443. value=gg.prompt({'想要多少輸多少'},nil,{"number"})
  444. if value == nil then
  445. gg.toast('已取消')
  446. else
  447. so=gg.getRangesList((lib))[1].start
  448. py=(miaolida)
  449. setvalue(so+py,4,value[1])
  450. so=gg.getRangesList((lib))[1].start
  451. py=(miaolida)+0x4
  452. setvalue(so+py,4,0)
  453. so=gg.getRangesList((lib))[1].start
  454. py=(miaolida)+0x8
  455. setvalue(so+py,4,value[1])
  456. so=gg.getRangesList((lib))[1].start
  457. py=(miaolida)+0x8+0x4
  458. setvalue(so+py,4,0)
  459. so=gg.getRangesList((lib))[1].start
  460. py=(miaolida)+0x10
  461. setvalue(so+py,4,value[1])
  462. so=gg.getRangesList((lib))[1].start
  463. py=(miaolida)+0x10+0x4
  464. setvalue(so+py,4,0)
  465. gg.toast('修改成功')
  466. end
  467. end
  468. function A7()
  469. value=gg.prompt({'遊戲時數換算工具\n請輸入1-9999'},nil,{"number"})
  470. if value == nil then
  471. gg.toast('已取消')
  472. else
  473. a=value[1]
  474. b=3600
  475. c=30
  476. d=a*b*c
  477. so=gg.getRangesList((lib))[1].start
  478. py=(playedtime)
  479. setvalue(so+py,4,''..d..'')
  480. gg.toast('修改成功')
  481. end
  482. end
  483. function A8()
  484. MYS = gg.choice({
  485. "貓眼石(EX)",
  486. "貓眼石(稀有)",
  487. "貓眼石(激稀有)",
  488. "貓眼石(超激稀有)",
  489. "貓眼石(傳說)",
  490. "貓眼石(闇)",
  491. "一鍵全改",
  492. "返回上级目录",
  493. })
  494. if MYS == nil then
  495. gg.toast('已取消')
  496. else
  497. if MYS == 1 then A801() end
  498. if MYS == 2 then A802() end
  499. if MYS == 3 then A803() end
  500. if MYS == 4 then A804() end
  501. if MYS == 5 then A805() end
  502. if MYS == 6 then A806() end
  503. if MYS == 7 then A807() end
  504. if MYS == 8 then Start() end
  505. end
  506. FMXR=-1
  507. end
  508. function A801()
  509. value=gg.prompt({'想要多少輸多少'},nil,{"number"})
  510. if value == nil then
  511. gg.toast('已取消')
  512. else
  513. so=gg.getRangesList((lib))[1].start
  514. py=(maoyanshi)
  515. setvalue(so+py,4,value[1])
  516. so=gg.getRangesList((lib))[1].start
  517. py=(maoyanshi)+0x4
  518. setvalue(so+py,4,0)
  519. gg.toast('修改成功')
  520. end
  521. end
  522. function A802()
  523. value=gg.prompt({'想要多少輸多少'},nil,{"number"})
  524. if value == nil then
  525. gg.toast('已取消')
  526. else
  527. so=gg.getRangesList((lib))[1].start
  528. py=(maoyanshi)+0x8
  529. setvalue(so+py,4,value[1])
  530. so=gg.getRangesList((lib))[1].start
  531. py=(maoyanshi)+0x8+0x4
  532. setvalue(so+py,4,0)
  533. gg.toast('修改成功')
  534. end
  535. end
  536. function A803()
  537. value=gg.prompt({'想要多少輸多少'},nil,{"number"})
  538. if value == nil then
  539. gg.toast('已取消')
  540. else
  541. so=gg.getRangesList((lib))[1].start
  542. py=(maoyanshi)+0x10
  543. setvalue(so+py,4,value[1])
  544. so=gg.getRangesList((lib))[1].start
  545. py=(maoyanshi)+0x10+0x4
  546. setvalue(so+py,4,0)
  547. gg.toast('修改成功')
  548. end
  549. end
  550. function A804()
  551. value=gg.prompt({'想要多少輸多少'},nil,{"number"})
  552. if value == nil then
  553. gg.toast('已取消')
  554. else
  555. so=gg.getRangesList((lib))[1].start
  556. py=(maoyanshi)+0x18
  557. setvalue(so+py,4,value[1])
  558. so=gg.getRangesList((lib))[1].start
  559. py=(maoyanshi)+0x18+0x4
  560. setvalue(so+py,4,0)
  561. gg.toast('修改成功')
  562. end
  563. end
  564. function A805()
  565. value=gg.prompt({'想要多少輸多少'},nil,{"number"})
  566. if value == nil then
  567. gg.toast('已取消')
  568. else
  569. so=gg.getRangesList((lib))[1].start
  570. py=(maoyanshi)+0x20
  571. setvalue(so+py,4,value[1])
  572. so=gg.getRangesList((lib))[1].start
  573. py=(maoyanshi)+0x20+0x4
  574. setvalue(so+py,4,0)
  575. gg.toast('修改成功')
  576. end
  577. end
  578. function A806()
  579. value=gg.prompt({'想要多少輸多少'},nil,{"number"})
  580. if value == nil then
  581. gg.toast('已取消')
  582. else
  583. so=gg.getRangesList((lib))[1].start
  584. py=(maoyanshi)+0x28
  585. setvalue(so+py,4,value[1])
  586. so=gg.getRangesList((lib))[1].start
  587. py=(maoyanshi)+0x28+0x4
  588. setvalue(so+py,4,0)
  589. gg.toast('修改成功')
  590. end
  591. end
  592. function A807()
  593. value=gg.prompt({'想要多少輸多少'},nil,{"number"})
  594. if value == nil then
  595. gg.toast('已取消')
  596. else
  597. so=gg.getRangesList((lib))[1].start
  598. py=(maoyanshi)
  599. setvalue(so+py,4,value[1])
  600. so=gg.getRangesList((lib))[1].start
  601. py=(maoyanshi)+4
  602. setvalue(so+py,4,0)
  603. so=gg.getRangesList((lib))[1].start
  604. py=(maoyanshi)+8
  605. setvalue(so+py,4,value[1])
  606. so=gg.getRangesList((lib))[1].start
  607. py=(maoyanshi)+8+4
  608. setvalue(so+py,4,0)
  609. so=gg.getRangesList((lib))[1].start
  610. py=(maoyanshi)+16
  611. setvalue(so+py,4,value[1])
  612. so=gg.getRangesList((lib))[1].start
  613. py=(maoyanshi)+16+4
  614. setvalue(so+py,4,0)
  615. so=gg.getRangesList((lib))[1].start
  616. py=(maoyanshi)+24
  617. setvalue(so+py,4,value[1])
  618. so=gg.getRangesList((lib))[1].start
  619. py=(maoyanshi)+24+4
  620. setvalue(so+py,4,0)
  621. so=gg.getRangesList((lib))[1].start
  622. py=(maoyanshi)+32
  623. setvalue(so+py,4,value[1])
  624. so=gg.getRangesList((lib))[1].start
  625. py=(maoyanshi)+32+4
  626. setvalue(so+py,4,0)
  627. so=gg.getRangesList((lib))[1].start
  628. py=(maoyanshi)+40
  629. setvalue(so+py,4,value[1])
  630. so=gg.getRangesList((lib))[1].start
  631. py=(maoyanshi)+40+4
  632. setvalue(so+py,4,0)
  633. gg.toast('修改成功')
  634. end
  635. end
  636. function A9()
  637. CJQ = gg.choice({
  638. "銀券",
  639. "金券",
  640. "招福券",
  641. "招福券G",
  642. "白金券",
  643. "白金券碎片",
  644. "傳說黑券",
  645. "返回上级目录",
  646. })
  647. if CJQ == nil then
  648. gg.toast('已取消')
  649. else
  650. if CJQ == 1 then A901() end
  651. if CJQ == 2 then A902() end
  652. if CJQ == 3 then A903() end
  653. if CJQ == 4 then A904() end
  654. if CJQ == 5 then A905() end
  655. if CJQ == 6 then A906() end
  656. if CJQ == 7 then A907() end
  657. if CJQ == 8 then Start() end
  658. end
  659. FMXR=-1
  660. end
  661. function A901()
  662. value=gg.prompt({'想要多少輸多少\n極限值:無限'},nil,{"number"})
  663. if value == nil then
  664. gg.toast('已取消')
  665. else
  666. so=gg.getRangesList((lib))[1].start
  667. py=(yinquan)
  668. setvalue(so+py,4,value[1])
  669. so=gg.getRangesList((lib))[1].start
  670. py=(yinquan)+0x4
  671. setvalue(so+py,4,0)
  672. gg.toast('修改成功')
  673. end
  674. end
  675. function A902()
  676. value=gg.prompt({'想要多少輸多少\n極限值:無限'},nil,{"number"})
  677. if value == nil then
  678. gg.toast('已取消')
  679. else
  680. so=gg.getRangesList((lib))[1].start
  681. py=(jinquan)
  682. setvalue(so+py,4,value[1])
  683. so=gg.getRangesList((lib))[1].start
  684. py=(jinquan)+0x4
  685. setvalue(so+py,4,0)
  686. gg.toast('修改成功')
  687. end
  688. end
  689. function A903()
  690. value=gg.prompt({'想要多少輸多少\n極限值:無限'},nil,{"number"})
  691. if value == nil then
  692. gg.toast('已取消')
  693. else
  694. so=gg.getRangesList((lib))[1].start
  695. py=(zhaofuquan)
  696. setvalue(so+py,4,value[1])
  697. so=gg.getRangesList((lib))[1].start
  698. py=(zhaofuquan)+0x4
  699. setvalue(so+py,4,0)
  700. gg.toast('修改成功')
  701. end
  702. end
  703. function A904()
  704. value=gg.prompt({'想要多少輸多少\n極限值:無限'},nil,{"number"})
  705. if value == nil then
  706. gg.toast('已取消')
  707. else
  708. so=gg.getRangesList((lib))[1].start
  709. py=(zhaofuquanG)
  710. setvalue(so+py,4,value[1])
  711. so=gg.getRangesList((lib))[1].start
  712. py=(zhaofuquanG)+0x4
  713. setvalue(so+py,4,0)
  714. gg.toast('修改成功')
  715. end
  716. end
  717. function A905()
  718. value=gg.prompt({'想要多少輸多少\n極限值:29'},nil,{"number"})
  719. if value == nil then
  720. gg.toast('已取消')
  721. else
  722. so=gg.getRangesList((lib))[1].start
  723. py=(baijinquan)
  724. setvalue(so+py,4,value[1])
  725. so=gg.getRangesList((lib))[1].start
  726. py=(baijinquan)+0x4
  727. setvalue(so+py,4,0)
  728. gg.toast('修改成功')
  729. end
  730. end
  731. function A906()
  732. value=gg.prompt({'想要多少輸多少'},nil,{"number"})
  733. if value == nil then
  734. gg.toast('已取消')
  735. else
  736. so=gg.getRangesList((lib))[1].start
  737. py=(baijinquanshuipian)
  738. setvalue(so+py,4,value[1])
  739. so=gg.getRangesList((lib))[1].start
  740. py=(baijinquanshuipian)+0x4
  741. setvalue(so+py,4,0)
  742. gg.toast('修改成功')
  743. end
  744. end
  745. function A907()
  746. value=gg.prompt({'想要多少輸多少\n極限值:9'},nil,{"number"})
  747. if value == nil then
  748. gg.toast('已取消')
  749. else
  750. so=gg.getRangesList((lib))[1].start
  751. py=(chuanshuoheiquan)
  752. setvalue(so+py,4,value[1])
  753. so=gg.getRangesList((lib))[1].start
  754. py=(chuanshuoheiquan)+0x4
  755. setvalue(so+py,4,0)
  756. gg.toast('修改成功')
  757. end
  758. end
  759. function A10()
  760. SC = gg.choice({
  761. "紅磚",
  762. "羽毛",
  763. "備長炭",
  764. "鋼製齒輪",
  765. "黃金",
  766. "宇宙石",
  767. "神秘骨頭",
  768. "菊石",
  769. "紅磚Z",
  770. "羽毛Z",
  771. "備長炭Z",
  772. "鋼製齒輪Z",
  773. "黃金Z",
  774. "宇宙石Z",
  775. "神秘骨頭Z",
  776. "菊石Z",
  777. "一鍵全改",
  778. "返回上级目录",
  779. })
  780. if SC == nil then
  781. gg.toast('已取消')
  782. else
  783. if SC == 1 then A1001() end
  784. if SC == 2 then A1002() end
  785. if SC == 3 then A1003() end
  786. if SC == 4 then A1004() end
  787. if SC == 5 then A1005() end
  788. if SC == 6 then A1006() end
  789. if SC == 7 then A1007() end
  790. if SC == 8 then A1008() end
  791. if SC == 9 then A1009() end
  792. if SC == 10 then A1010() end
  793. if SC == 11 then A1011() end
  794. if SC == 12 then A1012() end
  795. if SC == 13 then A1013() end
  796. if SC == 14 then A1014() end
  797. if SC == 15 then A1015() end
  798. if SC == 16 then A1016() end
  799. if SC == 17 then A1017() end
  800. if SC == 18 then Start() end
  801. end
  802. FMXR=-1
  803. end
  804. function A1001()
  805. value=gg.prompt({'想要多少輸多少'},nil,{"number"})
  806. if value == nil then
  807. gg.toast('已取消')
  808. else
  809. so=gg.getRangesList((lib))[1].start
  810. py=(sucai)
  811. setvalue(so+py,4,value[1])
  812. so=gg.getRangesList((lib))[1].start
  813. py=(sucai)+0x4
  814. setvalue(so+py,4,0)
  815. gg.toast('修改成功')
  816. end
  817. end
  818. function A1002()
  819. value=gg.prompt({'想要多少輸多少'},nil,{"number"})
  820. if value == nil then
  821. gg.toast('已取消')
  822. else
  823. so=gg.getRangesList((lib))[1].start
  824. py=(sucai)+0x8
  825. setvalue(so+py,4,value[1])
  826. so=gg.getRangesList((lib))[1].start
  827. py=(sucai)+0x8+0x4
  828. setvalue(so+py,4,0)
  829. gg.toast('修改成功')
  830. end
  831. end
  832. function A1003()
  833. value=gg.prompt({'想要多少輸多少'},nil,{"number"})
  834. if value == nil then
  835. gg.toast('已取消')
  836. else
  837. so=gg.getRangesList((lib))[1].start
  838. py=(sucai)+0x10
  839. setvalue(so+py,4,value[1])
  840. so=gg.getRangesList((lib))[1].start
  841. py=(sucai)+0x10+0x4
  842. setvalue(so+py,4,0)
  843. gg.toast('修改成功')
  844. end
  845. end
  846. function A1004()
  847. value=gg.prompt({'想要多少輸多少'},nil,{"number"})
  848. if value == nil then
  849. gg.toast('已取消')
  850. else
  851. so=gg.getRangesList((lib))[1].start
  852. py=(sucai)+0x18
  853. setvalue(so+py,4,value[1])
  854. so=gg.getRangesList((lib))[1].start
  855. py=(sucai)+0x18+0x4
  856. setvalue(so+py,4,0)
  857. gg.toast('修改成功')
  858. end
  859. end
  860. function A1005()
  861. value=gg.prompt({'想要多少輸多少'},nil,{"number"})
  862. if value == nil then
  863. gg.toast('已取消')
  864. else
  865. so=gg.getRangesList((lib))[1].start
  866. py=(sucai)+0x20
  867. setvalue(so+py,4,value[1])
  868. so=gg.getRangesList((lib))[1].start
  869. py=(sucai)+0x20+0x4
  870. setvalue(so+py,4,0)
  871. gg.toast('修改成功')
  872. end
  873. end
  874. function A1006()
  875. value=gg.prompt({'想要多少輸多少'},nil,{"number"})
  876. if value == nil then
  877. gg.toast('已取消')
  878. else
  879. so=gg.getRangesList((lib))[1].start
  880. py=(sucai)+0x28
  881. setvalue(so+py,4,value[1])
  882. so=gg.getRangesList((lib))[1].start
  883. py=(sucai)+0x28+0x4
  884. setvalue(so+py,4,0)
  885. gg.toast('修改成功')
  886. end
  887. end
  888. function A1007()
  889. value=gg.prompt({'想要多少輸多少'},nil,{"number"})
  890. if value == nil then
  891. gg.toast('已取消')
  892. else
  893. so=gg.getRangesList((lib))[1].start
  894. py=(sucai)+0x30
  895. setvalue(so+py,4,value[1])
  896. so=gg.getRangesList((lib))[1].start
  897. py=(sucai)+0x30+0x4
  898. setvalue(so+py,4,0)
  899. gg.toast('修改成功')
  900. end
  901. end
  902. function A1008()
  903. value=gg.prompt({'想要多少輸多少'},nil,{"number"})
  904. if value == nil then
  905. gg.toast('已取消')
  906. else
  907. so=gg.getRangesList((lib))[1].start
  908. py=(sucai)+0x38
  909. setvalue(so+py,4,value[1])
  910. so=gg.getRangesList((lib))[1].start
  911. py=(sucai)+0x38+0x4
  912. setvalue(so+py,4,0)
  913. gg.toast('修改成功')
  914. end
  915. end
  916. function A1009()
  917. value=gg.prompt({'想要多少輸多少'},nil,{"number"})
  918. if value == nil then
  919. gg.toast('已取消')
  920. else
  921. so=gg.getRangesList((lib))[1].start
  922. py=(sucai)+0x40
  923. setvalue(so+py,4,value[1])
  924. so=gg.getRangesList((lib))[1].start
  925. py=(sucai)+0x40+0x4
  926. setvalue(so+py,4,0)
  927. gg.toast('修改成功')
  928. end
  929. end
  930. function A1010()
  931. value=gg.prompt({'想要多少輸多少'},nil,{"number"})
  932. if value == nil then
  933. gg.toast('已取消')
  934. else
  935. so=gg.getRangesList((lib))[1].start
  936. py=(sucai)+0x48
  937. setvalue(so+py,4,value[1])
  938. so=gg.getRangesList((lib))[1].start
  939. py=(sucai)+0x48+0x4
  940. setvalue(so+py,4,0)
  941. gg.toast('修改成功')
  942. end
  943. end
  944. function A1011()
  945. value=gg.prompt({'想要多少輸多少'},nil,{"number"})
  946. if value == nil then
  947. gg.toast('已取消')
  948. else
  949. so=gg.getRangesList((lib))[1].start
  950. py=(sucai)+0x50
  951. setvalue(so+py,4,value[1])
  952. so=gg.getRangesList((lib))[1].start
  953. py=(sucai)+0x50+0x4
  954. setvalue(so+py,4,0)
  955. gg.toast('修改成功')
  956. end
  957. end
  958. function A1012()
  959. value=gg.prompt({'想要多少輸多少'},nil,{"number"})
  960. if value == nil then
  961. gg.toast('已取消')
  962. else
  963. so=gg.getRangesList((lib))[1].start
  964. py=(sucai)+0x58
  965. setvalue(so+py,4,value[1])
  966. so=gg.getRangesList((lib))[1].start
  967. py=(sucai)+0x58+0x4
  968. setvalue(so+py,4,0)
  969. gg.toast('修改成功')
  970. end
  971. end
  972. function A1013()
  973. value=gg.prompt({'想要多少輸多少'},nil,{"number"})
  974. if value == nil then
  975. gg.toast('已取消')
  976. else
  977. so=gg.getRangesList((lib))[1].start
  978. py=(sucai)+0x60
  979. setvalue(so+py,4,value[1])
  980. so=gg.getRangesList((lib))[1].start
  981. py=(sucai)+0x60+0x4
  982. setvalue(so+py,4,0)
  983. gg.toast('修改成功')
  984. end
  985. end
  986. function A1014()
  987. value=gg.prompt({'想要多少輸多少'},nil,{"number"})
  988. if value == nil then
  989. gg.toast('已取消')
  990. else
  991. so=gg.getRangesList((lib))[1].start
  992. py=(sucai)+0x68
  993. setvalue(so+py,4,value[1])
  994. so=gg.getRangesList((lib))[1].start
  995. py=(sucai)+0x68+0x4
  996. setvalue(so+py,4,0)
  997. gg.toast('修改成功')
  998. end
  999. end
  1000. function A1015()
  1001. value=gg.prompt({'想要多少輸多少'},nil,{"number"})
  1002. if value == nil then
  1003. gg.toast('已取消')
  1004. else
  1005. so=gg.getRangesList((lib))[1].start
  1006. py=(sucai)+0x70
  1007. setvalue(so+py,4,value[1])
  1008. so=gg.getRangesList((lib))[1].start
  1009. py=(sucai)+0x70+0x4
  1010. setvalue(so+py,4,0)
  1011. gg.toast('修改成功')
  1012. end
  1013. end
  1014. function A1016()
  1015. value=gg.prompt({'想要多少輸多少'},nil,{"number"})
  1016. if value == nil then
  1017. gg.toast('已取消')
  1018. else
  1019. so=gg.getRangesList((lib))[1].start
  1020. py=(sucai)+0x78
  1021. setvalue(so+py,4,value[1])
  1022. so=gg.getRangesList((lib))[1].start
  1023. py=(sucai)+0x78+0x4
  1024. setvalue(so+py,4,0)
  1025. gg.toast('修改成功')
  1026. end
  1027. end
  1028. function A1017()
  1029. value=gg.prompt({'想要多少輸多少'},nil,{"number"})
  1030. if value == nil then
  1031. gg.toast('已取消')
  1032. else
  1033. so=gg.getRangesList((lib))[1].start
  1034. py=(sucai)
  1035. setvalue(so+py,4,value[1])
  1036. so=gg.getRangesList((lib))[1].start
  1037. py=(sucai)+0x4
  1038. setvalue(so+py,4,0)
  1039. so=gg.getRangesList((lib))[1].start
  1040. py=(sucai)+0x8
  1041. setvalue(so+py,4,value[1])
  1042. so=gg.getRangesList((lib))[1].start
  1043. py=(sucai)+0x8+0x4
  1044. setvalue(so+py,4,0)
  1045. so=gg.getRangesList((lib))[1].start
  1046. py=(sucai)+0x10
  1047. setvalue(so+py,4,value[1])
  1048. so=gg.getRangesList((lib))[1].start
  1049. py=(sucai)+0x10+0x4
  1050. setvalue(so+py,4,0)
  1051. so=gg.getRangesList((lib))[1].start
  1052. py=(sucai)+0x18
  1053. setvalue(so+py,4,value[1])
  1054. so=gg.getRangesList((lib))[1].start
  1055. py=(sucai)+0x18+0x4
  1056. setvalue(so+py,4,0)
  1057. so=gg.getRangesList((lib))[1].start
  1058. py=(sucai)+0x20
  1059. setvalue(so+py,4,value[1])
  1060. so=gg.getRangesList((lib))[1].start
  1061. py=(sucai)+0x20+0x4
  1062. setvalue(so+py,4,0)
  1063. so=gg.getRangesList((lib))[1].start
  1064. py=(sucai)+0x28
  1065. setvalue(so+py,4,value[1])
  1066. so=gg.getRangesList((lib))[1].start
  1067. py=(sucai)+0x28+0x4
  1068. setvalue(so+py,4,0)
  1069. so=gg.getRangesList((lib))[1].start
  1070. py=(sucai)+0x30
  1071. setvalue(so+py,4,value[1])
  1072. so=gg.getRangesList((lib))[1].start
  1073. py=(sucai)+0x30+0x4
  1074. setvalue(so+py,4,0)
  1075. so=gg.getRangesList((lib))[1].start
  1076. py=(sucai)+0x38
  1077. setvalue(so+py,4,value[1])
  1078. so=gg.getRangesList((lib))[1].start
  1079. py=(sucai)+0x38+0x4
  1080. setvalue(so+py,4,0)
  1081. so=gg.getRangesList((lib))[1].start
  1082. py=(sucai)+0x40
  1083. setvalue(so+py,4,value[1])
  1084. so=gg.getRangesList((lib))[1].start
  1085. py=(sucai)+0x40+0x4
  1086. setvalue(so+py,4,0)
  1087. so=gg.getRangesList((lib))[1].start
  1088. py=(sucai)+0x48
  1089. setvalue(so+py,4,value[1])
  1090. so=gg.getRangesList((lib))[1].start
  1091. py=(sucai)+0x48+0x4
  1092. setvalue(so+py,4,0)
  1093. so=gg.getRangesList((lib))[1].start
  1094. py=(sucai)+0x50
  1095. setvalue(so+py,4,value[1])
  1096. so=gg.getRangesList((lib))[1].start
  1097. py=(sucai)+0x50+0x4
  1098. setvalue(so+py,4,0)
  1099. so=gg.getRangesList((lib))[1].start
  1100. py=(sucai)+0x58
  1101. setvalue(so+py,4,value[1])
  1102. so=gg.getRangesList((lib))[1].start
  1103. py=(sucai)+0x58+0x4
  1104. setvalue(so+py,4,0)
  1105. so=gg.getRangesList((lib))[1].start
  1106. py=(sucai)+0x60
  1107. setvalue(so+py,4,value[1])
  1108. so=gg.getRangesList((lib))[1].start
  1109. py=(sucai)+0x60+0x4
  1110. setvalue(so+py,4,0)
  1111. so=gg.getRangesList((lib))[1].start
  1112. py=(sucai)+0x68
  1113. setvalue(so+py,4,value[1])
  1114. so=gg.getRangesList((lib))[1].start
  1115. py=(sucai)+0x68+0x4
  1116. setvalue(so+py,4,0)
  1117. so=gg.getRangesList((lib))[1].start
  1118. py=(sucai)+0x70
  1119. setvalue(so+py,4,value[1])
  1120. so=gg.getRangesList((lib))[1].start
  1121. py=(sucai)+0x70+0x4
  1122. setvalue(so+py,4,0)
  1123. so=gg.getRangesList((lib))[1].start
  1124. py=(sucai)+0x78
  1125. setvalue(so+py,4,value[1])
  1126. so=gg.getRangesList((lib))[1].start
  1127. py=(sucai)+0x78+0x4
  1128. setvalue(so+py,4,0)
  1129. gg.toast('修改成功')
  1130. end
  1131. end
  1132. function A11()
  1133. if(lib) == 'config.arm64_v8a.apk' then
  1134. gg.alert("當前處於O內存模式,該功能已被禁用")
  1135. Start()
  1136. else
  1137. MBH = gg.choice({
  1138. "紫色貓薄荷種子",
  1139. "紅色貓薄荷種子",
  1140. "藍色貓薄荷種子",
  1141. "綠色貓薄荷種子",
  1142. "黃色貓薄荷種子",
  1143. "彩虹貓薄種子",
  1144. "惡貓薄荷種子",
  1145. "古代貓薄荷種子",
  1146. "黄金貓薄荷種子",
  1147. "紫色貓薄荷",
  1148. "紅色貓薄荷",
  1149. "藍色貓薄荷",
  1150. "綠色貓薄荷",
  1151. "黃色貓薄荷",
  1152. "彩虹貓薄荷",
  1153. "惡貓貓薄荷",
  1154. "古代貓薄荷",
  1155. "黃金貓薄荷",
  1156. "一鍵全改",
  1157. "返回上级目录",
  1158. })
  1159. if MBH == nil then
  1160. gg.toast('已取消')
  1161. else
  1162. if MBH == 1 then A1101() end
  1163. if MBH == 2 then A1102() end
  1164. if MBH == 3 then A1103() end
  1165. if MBH == 4 then A1104() end
  1166. if MBH == 5 then A1105() end
  1167. if MBH == 6 then A1106() end
  1168. if MBH == 7 then A1107() end
  1169. if MBH == 8 then A1108() end
  1170. if MBH == 9 then A1109() end
  1171. if MBH == 10 then A1110() end
  1172. if MBH == 11 then A1111() end
  1173. if MBH == 12 then A1112() end
  1174. if MBH == 13 then A1113() end
  1175. if MBH == 14 then A1114() end
  1176. if MBH == 15 then A1115() end
  1177. if MBH == 16 then A1116() end
  1178. if MBH == 17 then A1117() end
  1179. if MBH == 18 then A1118() end
  1180. if MBH == 19 then A1119() end
  1181. if MBH == 20 then Start() end
  1182. end
  1183. FMXR=-1
  1184. end
  1185. end
  1186. function A1101()
  1187. value=gg.prompt({'想要多少輸多少'},nil,{"number"})
  1188. if value == nil then
  1189. gg.toast('已取消')
  1190. else
  1191. local t = (chain)
  1192. local tt = (bohe_a)
  1193. local ttt = S_Pointer(t, tt, true)
  1194. gg.setValues({{address = ttt, flags = 4, value = value[1]}})
  1195. gg.toast('修改成功')
  1196. end
  1197. end
  1198. function A1102()
  1199. value=gg.prompt({'想要多少輸多少'},nil,{"number"})
  1200. if value == nil then
  1201. gg.toast('已取消')
  1202. else
  1203. local t = (chain)
  1204. local tt = (bohe_b)
  1205. local ttt = S_Pointer(t, tt, true)
  1206. gg.setValues({{address = ttt, flags = 4, value = value[1]}})
  1207. gg.toast('修改成功')
  1208. end
  1209. end
  1210. function A1103()
  1211. value=gg.prompt({'想要多少輸多少'},nil,{"number"})
  1212. if value == nil then
  1213. gg.toast('已取消')
  1214. else
  1215. local t = (chain)
  1216. local tt = (bohe_c)
  1217. local ttt = S_Pointer(t, tt, true)
  1218. gg.setValues({{address = ttt, flags = 4, value = value[1]}})
  1219. gg.toast('修改成功')
  1220. end
  1221. end
  1222. function A1104()
  1223. value=gg.prompt({'想要多少輸多少'},nil,{"number"})
  1224. if value == nil then
  1225. gg.toast('已取消')
  1226. else
  1227. local t = (chain)
  1228. local tt = (bohe_d)
  1229. local ttt = S_Pointer(t, tt, true)
  1230. gg.setValues({{address = ttt, flags = 4, value = value[1]}})
  1231. gg.toast('修改成功')
  1232. end
  1233. end
  1234. function A1105()
  1235. value=gg.prompt({'想要多少輸多少'},nil,{"number"})
  1236. if value == nil then
  1237. gg.toast('已取消')
  1238. else
  1239. local t = (chain)
  1240. local tt = (bohe_e)
  1241. local ttt = S_Pointer(t, tt, true)
  1242. gg.setValues({{address = ttt, flags = 4, value = value[1]}})
  1243. gg.toast('修改成功')
  1244. end
  1245. end
  1246. function A1106()
  1247. value=gg.prompt({'想要多少輸多少'},nil,{"number"})
  1248. if value == nil then
  1249. gg.toast('已取消')
  1250. else
  1251. local t = (chain)
  1252. local tt = (bohe_f)
  1253. local ttt = S_Pointer(t, tt, true)
  1254. gg.setValues({{address = ttt, flags = 4, value = value[1]}})
  1255. gg.toast('修改成功')
  1256. end
  1257. end
  1258. function A1107()
  1259. value=gg.prompt({'想要多少輸多少'},nil,{"number"})
  1260. if value == nil then
  1261. gg.toast('已取消')
  1262. else
  1263. local t = (chain)
  1264. local tt = (bohe_g)
  1265. local ttt = S_Pointer(t, tt, true)
  1266. gg.setValues({{address = ttt, flags = 4, value = value[1]}})
  1267. gg.toast('修改成功')
  1268. end
  1269. end
  1270. function A1108()
  1271. value=gg.prompt({'想要多少輸多少'},nil,{"number"})
  1272. if value == nil then
  1273. gg.toast('已取消')
  1274. else
  1275. local t = (chain)
  1276. local tt = (bohe_h)
  1277. local ttt = S_Pointer(t, tt, true)
  1278. gg.setValues({{address = ttt, flags = 4, value = value[1]}})
  1279. gg.toast('修改成功')
  1280. end
  1281. end
  1282. function A1109()
  1283. value=gg.prompt({'想要多少輸多少'},nil,{"number"})
  1284. if value == nil then
  1285. gg.toast('已取消')
  1286. else
  1287. local t = (chain)
  1288. local tt = (bohe_i)
  1289. local ttt = S_Pointer(t, tt, true)
  1290. gg.setValues({{address = ttt, flags = 4, value = value[1]}})
  1291. gg.toast('修改成功')
  1292. end
  1293. end
  1294. function A1110()
  1295. value=gg.prompt({'想要多少輸多少'},nil,{"number"})
  1296. if value == nil then
  1297. gg.toast('已取消')
  1298. else
  1299. local t = (chain)
  1300. local tt = (bohe_j)
  1301. local ttt = S_Pointer(t, tt, true)
  1302. gg.setValues({{address = ttt, flags = 4, value = value[1]}})
  1303. gg.toast('修改成功')
  1304. end
  1305. end
  1306. function A1111()
  1307. value=gg.prompt({'想要多少輸多少'},nil,{"number"})
  1308. if value == nil then
  1309. gg.toast('已取消')
  1310. else
  1311. local t = (chain)
  1312. local tt = (bohe_k)
  1313. local ttt = S_Pointer(t, tt, true)
  1314. gg.setValues({{address = ttt, flags = 4, value = value[1]}})
  1315. gg.toast('修改成功')
  1316. end
  1317. end
  1318. function A1112()
  1319. value=gg.prompt({'想要多少輸多少'},nil,{"number"})
  1320. if value == nil then
  1321. gg.toast('已取消')
  1322. else
  1323. local t = (chain)
  1324. local tt = (bohe_l)
  1325. local ttt = S_Pointer(t, tt, true)
  1326. gg.setValues({{address = ttt, flags = 4, value = value[1]}})
  1327. gg.toast('修改成功')
  1328. end
  1329. end
  1330. function A1113()
  1331. value=gg.prompt({'想要多少輸多少'},nil,{"number"})
  1332. if value == nil then
  1333. gg.toast('已取消')
  1334. else
  1335. local t = (chain)
  1336. local tt = (bohe_m)
  1337. local ttt = S_Pointer(t, tt, true)
  1338. gg.setValues({{address = ttt, flags = 4, value = value[1]}})
  1339. gg.toast('修改成功')
  1340. end
  1341. end
  1342. function A1114()
  1343. value=gg.prompt({'想要多少輸多少'},nil,{"number"})
  1344. if value == nil then
  1345. gg.toast('已取消')
  1346. else
  1347. local t = (chain)
  1348. local tt = (bohe_n)
  1349. local ttt = S_Pointer(t, tt, true)
  1350. gg.setValues({{address = ttt, flags = 4, value = value[1]}})
  1351. gg.toast('修改成功')
  1352. end
  1353. end
  1354. function A1115()
  1355. value=gg.prompt({'想要多少輸多少'},nil,{"number"})
  1356. if value == nil then
  1357. gg.toast('已取消')
  1358. else
  1359. local t = (chain)
  1360. local tt = (bohe_o)
  1361. local ttt = S_Pointer(t, tt, true)
  1362. gg.setValues({{address = ttt, flags = 4, value = value[1]}})
  1363. gg.toast('修改成功')
  1364. end
  1365. end
  1366. function A1116()
  1367. value=gg.prompt({'想要多少輸多少'},nil,{"number"})
  1368. if value == nil then
  1369. gg.toast('已取消')
  1370. else
  1371. local t = (chain)
  1372. local tt = (bohe_p)
  1373. local ttt = S_Pointer(t, tt, true)
  1374. gg.setValues({{address = ttt, flags = 4, value = value[1]}})
  1375. gg.toast('修改成功')
  1376. end
  1377. end
  1378. function A1117()
  1379. value=gg.prompt({'想要多少輸多少'},nil,{"number"})
  1380. if value == nil then
  1381. gg.toast('已取消')
  1382. else
  1383. local t = (chain)
  1384. local tt = (bohe_q)
  1385. local ttt = S_Pointer(t, tt, true)
  1386. gg.setValues({{address = ttt, flags = 4, value = value[1]}})
  1387. gg.toast('修改成功')
  1388. end
  1389. end
  1390. function A1118()
  1391. value=gg.prompt({'想要多少輸多少'},nil,{"number"})
  1392. if value == nil then
  1393. gg.toast('已取消')
  1394. else
  1395. local t = (chain)
  1396. local tt = (bohe_r)
  1397. local ttt = S_Pointer(t, tt, true)
  1398. gg.setValues({{address = ttt, flags = 4, value = value[1]}})
  1399. gg.toast('修改成功')
  1400. end
  1401. end
  1402. function A1119()
  1403. value=gg.prompt({'想要多少輸多少'},nil,{"number"})
  1404. if value == nil then
  1405. gg.toast('已取消')
  1406. else
  1407. local t = (chain)
  1408. local tt = (bohe_a)
  1409. local ttt = S_Pointer(t, tt, true)
  1410. gg.setValues({{address = ttt, flags = 4, value = value[1]}})
  1411. local t = (chain)
  1412. local tt = (bohe_b)
  1413. local ttt = S_Pointer(t, tt, true)
  1414. gg.setValues({{address = ttt, flags = 4, value = value[1]}})
  1415. local t = (chain)
  1416. local tt = (bohe_c)
  1417. local ttt = S_Pointer(t, tt, true)
  1418. gg.setValues({{address = ttt, flags = 4, value = value[1]}})
  1419. local t = (chain)
  1420. local tt = (bohe_d)
  1421. local ttt = S_Pointer(t, tt, true)
  1422. gg.setValues({{address = ttt, flags = 4, value = value[1]}})
  1423. local t = (chain)
  1424. local tt = (bohe_e)
  1425. local ttt = S_Pointer(t, tt, true)
  1426. gg.setValues({{address = ttt, flags = 4, value = value[1]}})
  1427. local t = (chain)
  1428. local tt = (bohe_f)
  1429. local ttt = S_Pointer(t, tt, true)
  1430. gg.setValues({{address = ttt, flags = 4, value = value[1]}})
  1431. local t = (chain)
  1432. local tt = (bohe_g)
  1433. local ttt = S_Pointer(t, tt, true)
  1434. gg.setValues({{address = ttt, flags = 4, value = value[1]}})
  1435. local t = (chain)
  1436. local tt = (bohe_h)
  1437. local ttt = S_Pointer(t, tt, true)
  1438. gg.setValues({{address = ttt, flags = 4, value = value[1]}})
  1439. local t = (chain)
  1440. local tt = (bohe_i)
  1441. local ttt = S_Pointer(t, tt, true)
  1442. gg.setValues({{address = ttt, flags = 4, value = value[1]}})
  1443. local t = (chain)
  1444. local tt = (bohe_j)
  1445. local ttt = S_Pointer(t, tt, true)
  1446. gg.setValues({{address = ttt, flags = 4, value = value[1]}})
  1447. local t = (chain)
  1448. local tt = (bohe_k)
  1449. local ttt = S_Pointer(t, tt, true)
  1450. gg.setValues({{address = ttt, flags = 4, value = value[1]}})
  1451. local t = (chain)
  1452. local tt = (bohe_l)
  1453. local ttt = S_Pointer(t, tt, true)
  1454. gg.setValues({{address = ttt, flags = 4, value = value[1]}})
  1455. local t = (chain)
  1456. local tt = (bohe_m)
  1457. local ttt = S_Pointer(t, tt, true)
  1458. gg.setValues({{address = ttt, flags = 4, value = value[1]}})
  1459. local t = (chain)
  1460. local tt = (bohe_n)
  1461. local ttt = S_Pointer(t, tt, true)
  1462. gg.setValues({{address = ttt, flags = 4, value = value[1]}})
  1463. local t = (chain)
  1464. local tt = (bohe_o)
  1465. local ttt = S_Pointer(t, tt, true)
  1466. gg.setValues({{address = ttt, flags = 4, value = value[1]}})
  1467. local t = (chain)
  1468. local tt = (bohe_p)
  1469. local ttt = S_Pointer(t, tt, true)
  1470. gg.setValues({{address = ttt, flags = 4, value = value[1]}})
  1471. local t = (chain)
  1472. local tt = (bohe_q)
  1473. local ttt = S_Pointer(t, tt, true)
  1474. gg.setValues({{address = ttt, flags = 4, value = value[1]}})
  1475. local t = (chain)
  1476. local tt = (bohe_r)
  1477. local ttt = S_Pointer(t, tt, true)
  1478. gg.setValues({{address = ttt, flags = 4, value = value[1]}})
  1479. gg.toast('修改成功')
  1480. end
  1481. end
  1482. function A12()
  1483. if(lib) == 'config.arm64_v8a.apk' then
  1484. gg.alert("當前處於O內存模式,該功能已被禁用")
  1485. Start()
  1486. else
  1487. SS = gg.choice({
  1488. "紫獸石",
  1489. "紅獸石",
  1490. "蒼獸石",
  1491. "翠獸石",
  1492. "黃獸石",
  1493. "彩虹獸石",
  1494. "紫獸結晶",
  1495. "紅獸結晶",
  1496. "蒼獸結晶",
  1497. "翠獸結晶",
  1498. "黃獸結晶",
  1499. "一鍵全改",
  1500. "返回上级目录",
  1501. })
  1502. if SS == nil then
  1503. gg.toast('已取消')
  1504. else
  1505. if SS == 1 then A1201() end
  1506. if SS == 2 then A1202() end
  1507. if SS == 3 then A1203() end
  1508. if SS == 4 then A1204() end
  1509. if SS == 5 then A1205() end
  1510. if SS == 6 then A1206() end
  1511. if SS == 7 then A1207() end
  1512. if SS == 8 then A1208() end
  1513. if SS == 9 then A1209() end
  1514. if SS == 10 then A1210() end
  1515. if SS == 11 then A1211() end
  1516. if SS == 12 then A1212() end
  1517. if SS == 13 then Start() end
  1518. end
  1519. FMXR=-1
  1520. end
  1521. end
  1522. function A1201()
  1523. value=gg.prompt({'想要多少輸多少'},nil,{"number"})
  1524. if value == nil then
  1525. gg.toast('已取消')
  1526. else
  1527. local t = (chain)
  1528. local tt = (shoushi_a)
  1529. local ttt = S_Pointer(t, tt, true)
  1530. gg.setValues({{address = ttt, flags = 4, value = value[1]}})
  1531. gg.toast('修改成功')
  1532. end
  1533. end
  1534. function A1202()
  1535. value=gg.prompt({'想要多少輸多少'},nil,{"number"})
  1536. if value == nil then
  1537. gg.toast('已取消')
  1538. else
  1539. local t = (chain)
  1540. local tt = (shoushi_b)
  1541. local ttt = S_Pointer(t, tt, true)
  1542. gg.setValues({{address = ttt, flags = 4, value = value[1]}})
  1543. gg.toast('修改成功')
  1544. end
  1545. end
  1546. function A1203()
  1547. value=gg.prompt({'想要多少輸多少'},nil,{"number"})
  1548. if value == nil then
  1549. gg.toast('已取消')
  1550. else
  1551. local t = (chain)
  1552. local tt = (shoushi_c)
  1553. local ttt = S_Pointer(t, tt, true)
  1554. gg.setValues({{address = ttt, flags = 4, value = value[1]}})
  1555. gg.toast('修改成功')
  1556. end
  1557. end
  1558. function A1204()
  1559. value=gg.prompt({'想要多少輸多少'},nil,{"number"})
  1560. if value == nil then
  1561. gg.toast('已取消')
  1562. else
  1563. local t = (chain)
  1564. local tt = (shoushi_d)
  1565. local ttt = S_Pointer(t, tt, true)
  1566. gg.setValues({{address = ttt, flags = 4, value = value[1]}})
  1567. gg.toast('修改成功')
  1568. end
  1569. end
  1570. function A1205()
  1571. value=gg.prompt({'想要多少輸多少'},nil,{"number"})
  1572. if value == nil then
  1573. gg.toast('已取消')
  1574. else
  1575. local t = (chain)
  1576. local tt = (shoushi_e)
  1577. local ttt = S_Pointer(t, tt, true)
  1578. gg.setValues({{address = ttt, flags = 4, value = value[1]}})
  1579. gg.toast('修改成功')
  1580. end
  1581. end
  1582. function A1206()
  1583. value=gg.prompt({'想要多少輸多少'},nil,{"number"})
  1584. if value == nil then
  1585. gg.toast('已取消')
  1586. else
  1587. local t = (chain)
  1588. local tt = (shoushi_f)
  1589. local ttt = S_Pointer(t, tt, true)
  1590. gg.setValues({{address = ttt, flags = 4, value = value[1]}})
  1591. gg.toast('修改成功')
  1592. end
  1593. end
  1594. function A1207()
  1595. value=gg.prompt({'想要多少輸多少'},nil,{"number"})
  1596. if value == nil then
  1597. gg.toast('已取消')
  1598. else
  1599. local t = (chain)
  1600. local tt = (shoushi_g)
  1601. local ttt = S_Pointer(t, tt, true)
  1602. gg.setValues({{address = ttt, flags = 4, value = value[1]}})
  1603. gg.toast('修改成功')
  1604. end
  1605. end
  1606. function A1208()
  1607. value=gg.prompt({'想要多少輸多少'},nil,{"number"})
  1608. if value == nil then
  1609. gg.toast('已取消')
  1610. else
  1611. local t = (chain)
  1612. local tt = (shoushi_h)
  1613. local ttt = S_Pointer(t, tt, true)
  1614. gg.setValues({{address = ttt, flags = 4, value = value[1]}})
  1615. gg.toast('修改成功')
  1616. end
  1617. end
  1618. function A1209()
  1619. value=gg.prompt({'想要多少輸多少'},nil,{"number"})
  1620. if value == nil then
  1621. gg.toast('已取消')
  1622. else
  1623. local t = (chain)
  1624. local tt = (shoushi_i)
  1625. local ttt = S_Pointer(t, tt, true)
  1626. gg.setValues({{address = ttt, flags = 4, value = value[1]}})
  1627. gg.toast('修改成功')
  1628. end
  1629. end
  1630. function A1210()
  1631. value=gg.prompt({'想要多少輸多少'},nil,{"number"})
  1632. if value == nil then
  1633. gg.toast('已取消')
  1634. else
  1635. local t = (chain)
  1636. local tt = (shoushi_j)
  1637. local ttt = S_Pointer(t, tt, true)
  1638. gg.setValues({{address = ttt, flags = 4, value = value[1]}})
  1639. gg.toast('修改成功')
  1640. end
  1641. end
  1642. function A1211()
  1643. value=gg.prompt({'想要多少輸多少'},nil,{"number"})
  1644. if value == nil then
  1645. gg.toast('已取消')
  1646. else
  1647. local t = (chain)
  1648. local tt = (shoushi_k)
  1649. local ttt = S_Pointer(t, tt, true)
  1650. gg.setValues({{address = ttt, flags = 4, value = value[1]}})
  1651. gg.toast('修改成功')
  1652. end
  1653. end
  1654. function A1212()
  1655. value=gg.prompt({'想要多少輸多少'},nil,{"number"})
  1656. if value == nil then
  1657. gg.toast('已取消')
  1658. else
  1659. local t = (chain)
  1660. local tt = (shoushi_a)
  1661. local ttt = S_Pointer(t, tt, true)
  1662. gg.setValues({{address = ttt, flags = 4, value = value[1]}})
  1663. local t = (chain)
  1664. local tt = (shoushi_b)
  1665. local ttt = S_Pointer(t, tt, true)
  1666. gg.setValues({{address = ttt, flags = 4, value = value[1]}})
  1667. local t = (chain)
  1668. local tt = (shoushi_c)
  1669. local ttt = S_Pointer(t, tt, true)
  1670. gg.setValues({{address = ttt, flags = 4, value = value[1]}})
  1671. local t = (chain)
  1672. local tt = (shoushi_d)
  1673. local ttt = S_Pointer(t, tt, true)
  1674. gg.setValues({{address = ttt, flags = 4, value = value[1]}})
  1675. local t = (chain)
  1676. local tt = (shoushi_e)
  1677. local ttt = S_Pointer(t, tt, true)
  1678. gg.setValues({{address = ttt, flags = 4, value = value[1]}})
  1679. local t = (chain)
  1680. local tt = (shoushi_f)
  1681. local ttt = S_Pointer(t, tt, true)
  1682. gg.setValues({{address = ttt, flags = 4, value = value[1]}})
  1683. local t = (chain)
  1684. local tt = (shoushi_g)
  1685. local ttt = S_Pointer(t, tt, true)
  1686. gg.setValues({{address = ttt, flags = 4, value = value[1]}})
  1687. local t = (chain)
  1688. local tt = (shoushi_h)
  1689. local ttt = S_Pointer(t, tt, true)
  1690. gg.setValues({{address = ttt, flags = 4, value = value[1]}})
  1691. local t = (chain)
  1692. local tt = (shoushi_i)
  1693. local ttt = S_Pointer(t, tt, true)
  1694. gg.setValues({{address = ttt, flags = 4, value = value[1]}})
  1695. local t = (chain)
  1696. local tt = (shoushi_j)
  1697. local ttt = S_Pointer(t, tt, true)
  1698. gg.setValues({{address = ttt, flags = 4, value = value[1]}})
  1699. local t = (chain)
  1700. local tt = (shoushi_k)
  1701. local ttt = S_Pointer(t, tt, true)
  1702. gg.setValues({{address = ttt, flags = 4, value = value[1]}})
  1703. gg.toast('修改成功')
  1704. end
  1705. end
  1706. function A13()
  1707. BN = gg.choice({
  1708. "銅",
  1709. "銀",
  1710. "金",
  1711. "一鍵全改",
  1712. "返回",
  1713. })
  1714. if BN == nil then
  1715. gg.toast('已取消')
  1716. else
  1717. if BN == 1 then A1301() end
  1718. if BN == 2 then A1302() end
  1719. if BN == 3 then A1303() end
  1720. if BN == 4 then A1304() end
  1721. if BN == 5 then Start() end
  1722. end
  1723. FMXR=-1
  1724. end
  1725. function A1301()
  1726. value=gg.prompt({'想要多少輸多少'},nil,{"number"})
  1727. if value == nil then
  1728. gg.toast('已取消')
  1729. else
  1730. so=gg.getRangesList((lib))[1].start
  1731. py=(bennengbox)
  1732. setvalue(so+py,4,value[1])
  1733. so=gg.getRangesList((lib))[1].start
  1734. py=(bennengbox)+4
  1735. setvalue(so+py,4,0)
  1736. gg.toast('修改成功')
  1737. end
  1738. end
  1739. function A1302()
  1740. value=gg.prompt({'想要多少輸多少'},nil,{"number"})
  1741. if value == nil then
  1742. gg.toast('已取消')
  1743. else
  1744. so=gg.getRangesList((lib))[1].start
  1745. py=(bennengbox)+8
  1746. setvalue(so+py,4,value[1])
  1747. so=gg.getRangesList((lib))[1].start
  1748. py=(bennengbox)+8+4
  1749. setvalue(so+py,4,0)
  1750. gg.toast('修改成功')
  1751. end
  1752. end
  1753. function A1303()
  1754. value=gg.prompt({'想要多少輸多少'},nil,{"number"})
  1755. if value == nil then
  1756. gg.toast('已取消')
  1757. else
  1758. so=gg.getRangesList((lib))[1].start
  1759. py=(bennengbox)+16
  1760. setvalue(so+py,4,value[1])
  1761. so=gg.getRangesList((lib))[1].start
  1762. py=(bennengbox)+16+4
  1763. setvalue(so+py,4,0)
  1764. gg.toast('修改成功')
  1765. end
  1766. end
  1767. function A1304()
  1768. value=gg.prompt({'想要多少輸多少'},nil,{"number"})
  1769. if value == nil then
  1770. gg.toast('已取消')
  1771. else
  1772. so=gg.getRangesList((lib))[1].start
  1773. py=(bennengbox)
  1774. setvalue(so+py,4,value[1])
  1775. so=gg.getRangesList((lib))[1].start
  1776. py=(bennengbox)+4
  1777. setvalue(so+py,4,0)
  1778. so=gg.getRangesList((lib))[1].start
  1779. py=(bennengbox)+8
  1780. setvalue(so+py,4,value[1])
  1781. so=gg.getRangesList((lib))[1].start
  1782. py=(bennengbox)+8+4
  1783. setvalue(so+py,4,0)
  1784. so=gg.getRangesList((lib))[1].start
  1785. py=(bennengbox)+16
  1786. setvalue(so+py,4,value[1])
  1787. so=gg.getRangesList((lib))[1].start
  1788. py=(bennengbox)+16+4
  1789. setvalue(so+py,4,0)
  1790. gg.toast('修改成功')
  1791. end
  1792. end
  1793. function A14()
  1794. AUTOKILL = gg.choice({
  1795. "開",
  1796. "關",
  1797. "返回",
  1798. })
  1799. if AUTOKILL == nil then
  1800. gg.toast('已取消')
  1801. else
  1802. if AUTOKILL == 1 then A1401() end
  1803. if AUTOKILL == 2 then A1402() end
  1804. if AUTOKILL == 3 then Start() end
  1805. end
  1806. FMXR=-1
  1807. end
  1808. function A1401()
  1809. so=gg.getRangesList((lib))[1].start
  1810. py=(autowin)
  1811. setvalue(so+py,4,'~A8 MOV W8, XZR')
  1812. gg.toast('修改成功')
  1813. end
  1814. function A1402()
  1815. so=gg.getRangesList((lib))[1].start
  1816. py=(autowin)
  1817. setvalue(so+py,4,'~A8 LDR W8, [X8,#0x14]')
  1818. gg.toast("已關閉")
  1819. end
  1820. function A15()
  1821. DH = gg.choice({
  1822. "開",
  1823. "關",
  1824. "返回",
  1825. })
  1826. if DH == nil then
  1827. gg.toast('已取消')
  1828. else
  1829. if DH == 1 then A1501() end
  1830. if DH == 2 then A1502() end
  1831. if DH == 3 then Start() end
  1832. end
  1833. FMXR=-1
  1834. end
  1835. function A1501()
  1836. so=gg.getRangesList((lib))[1].start
  1837. py=(animation)
  1838. setvalue(so+py,4,'~A8 MOV X8, XZR')
  1839. gg.toast('修改成功15')
  1840. end
  1841. function A1502()
  1842. so=gg.getRangesList((lib))[1].start
  1843. py=(animation)
  1844. setvalue(so+py,4,'~A8 MOV W8, #0x1')
  1845. gg.toast("已關閉")
  1846. end
  1847. function UP()
  1848. gg.alert('版本號:8.1-rc1\n\n遊戲名字 : '..info.label..'\n遊戲版本號 : '..info.versionName..'\n遊戲內部版本號 : '..info.versionCode..'\n遊戲包名 : '..info.packageName..'\n\n如有BUG請聯繫腳本作者\nTelegram@sijimuge\n微信:feimengxinren044\nLine:pubglengeds205')
  1849. end
  1850. function DEBUG()
  1851. API = gg.makeRequest('  https://pastebin.com/raw/vhMuGyGv  ').content
  1852. if not API then
  1853. gg.alert('no interned access,please try again later')
  1854. else
  1855. pcall(load(API))
  1856. end
  1857. end
  1858. function End()
  1859. gg.setVisible(true)
  1860. print('Script ended without any errors\n腳本已退出,無任何報錯')
  1861. os.exit()
  1862. end
  1863. while(true)do
  1864. gg.sleep(1)
  1865. if gg.isVisible(true) then
  1866. FMXR=1
  1867. gg.setVisible(false)
  1868. end
  1869. if FMXR==1 then
  1870. Start()
  1871. end
  1872. end
  1873. else
  1874. gg.alert("不支持32位游戏\n请安装64位游戏后重试")
  1875. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement