搜尋


返回清單
切換到指定樓層
通知這文章過時或找檔案 發表主題

7/23 更新後的 新基址 AHK 釣魚腳本 Trove 寶藏世界

[複製連結]
1
yk81078 ( Lv.70 熾天使 ) 發表於 2015-7-24 19:58:02 | 只看該作者 回覆獎勵 |降序瀏覽 |閱讀模式

新偏移地址:


所有站內附件皆會附上安全掃描報告
請會員查看純淨度百分比後判斷使用



相關檔案須知:
取得檔案前,請先詳細閱讀文章內容
避免不必要錯誤與誤會發生。
也可多參考文章討論樓層內容
了解附件檔案相關討論資訊。






Ctrl + j 開始

ctrl + k t暫停.
  1. #WinActivateForce

  2. ^j::
  3.   shouldRun = 1
  4.   if !setupDone
  5.   {
  6.     WinGet, pidn, PID, A
  7.     pid := pidn
  8.     WinGet, hwnds, ID, A
  9.     Handle := hwnds
  10.     Base := getProcessBaseAddress()
  11.     WaterAddress := GetAddressWater(Base,0x0097E114)
  12.     LavaAddress := GetAddressLava(Base,0x00964208)
  13.     ChocoAddress := GetAddressChoco(Base,0x00964208)
  14.     setupDone = 1
  15.   }
  16.   Loop
  17.   {
  18.     if shouldRun
  19.     {
  20.       ControlSend, , {c down}, ahk_pid %pid%
  21.       Sleep, 86
  22.       ControlSend, , {c up}, ahk_pid %pid%
  23.       Sleep, 500
  24.           
  25.       ControlSend, , {f down}, ahk_pid %pid%
  26.       Sleep, 86
  27.       ControlSend, , {f up}, ahk_pid %pid%
  28.           
  29.       Catch := 0
  30.       PoleCheck := 40

  31.       While Catch = 0
  32.       {
  33.         If (PoleCheckN = PoleCheck)
  34.         {
  35.           ControlSend, , {f down}, ahk_pid %pid%
  36.           Sleep, 86
  37.           ControlSend, , {f up}, ahk_pid %pid%
  38.         }
  39.         
  40.         CaughtWater := ReadMemory(WaterAddress)
  41.         CaughtLava := ReadMemory(LavaAddress)
  42.         CaughtChoco := ReadMemory(ChocoAddress)
  43.         
  44.         If (CaughtWater = 1 or CaughtLava = 1 or CaughtChoco = 1)
  45.         {
  46.           ControlSend, , {f down}, ahk_pid %pid%
  47.           Sleep, 86
  48.           ControlSend, , {f up}, ahk_pid %pid%
  49.           Random, Wait, 2000, 3500
  50.           Sleep, %Wait%
  51.           Catch := 1
  52.         }
  53.         else
  54.         {
  55.           PoleCheckN := PoleCheckN +1
  56.           Sleep, 1000
  57.         }
  58.         
  59.         FindAndDropBoots()
  60.       }
  61.     }
  62.     else
  63.     {
  64.       Return
  65.     }
  66.   }
  67. Return

  68. GetAddressWater(Base, Address)
  69. {
  70.   pointerBase := base + Address
  71.   y1 := ReadMemory(pointerBase)
  72.   y2 := ReadMemory(y1 + 0x144)
  73.   y3 := ReadMemory(y2 + 0xe4)
  74.   Return WaterAddress := (y3 + 0x70)
  75. }

  76. GetAddressLava(Base, Address)
  77. {
  78.   pointerBase := base + Address
  79.   y1 := ReadMemory(pointerBase)
  80.   y2 := ReadMemory(y1 + 0x144)
  81.   y3 := ReadMemory(y2 + 0xe4)
  82.   Return LavaAddress := (y3 + 0x514)
  83. }

  84. GetAddressChoco(Base, Address)
  85. {
  86.   pointerBase := base + Address
  87.   y1 := ReadMemory(pointerBase)
  88.   y2 := ReadMemory(y1 + 0x144)
  89.   y3 := ReadMemory(y2 + 0xe4)
  90.   Return ChocoAddress := (y3 + 0x2c0)
  91. }

  92. getProcessBaseAddress()
  93. {
  94.   Global Handle
  95.   return DllCall( A_PtrSize = 4
  96.   ? "GetWindowLong"
  97.   : "GetWindowLongPtr"
  98.   , "Ptr", Handle
  99.   , "Int", -6
  100.   , "Int64") ; Use Int64 to prevent negative overflow when AHK is 32 bit and target process is 64bit
  101.   ; If DLL call fails, returned value will = 0
  102. }

  103. ReadMemory(MADDRESS)
  104. {
  105.   Global pid
  106.   VarSetCapacity(MVALUE,4,0)
  107.   ProcessHandle := DllCall("OpenProcess", "Int", 24, "Char", 0, "UInt", pid, "UInt")
  108.   ;DllCall("ReadProcessMemory","UInt",ProcessHandle, "UInt",MADDRESS,"Str",MVALUE,"UInt",4,"UInt *",0)
  109.   DllCall("ReadProcessMemory", "UInt", ProcessHandle, "Ptr", MADDRESS, "Ptr", &MVALUE, "Uint",4)
  110.   Loop 4
  111.   result += *(&MVALUE + A_Index-1) << 8*(A_Index-1)
  112.   return, result
  113. }

  114. FindAndDropBoots()
  115. {
  116.   Imagesearch, Foundx, FoundY, 0, 0, A_ScreenWidth, A_ScreenHeight, *50 c:\boot.bmp
  117.   
  118.   While errorlevel = 0
  119.   {
  120.     MouseClickDrag, Left, %FoundX%, %FoundY%, 779, 412
  121.     Imagesearch, Foundx, FoundY, 0, 0, A_ScreenWidth, A_ScreenHeight, *50 c:\boot.bmp
  122.   }
  123. }

  124. ^k::
  125.   shouldRun = 0
  126. Return
複製代碼






大家正在看啥


收藏收藏 分享文章到FB上分享
回覆 使用道具 檢舉
複製專屬你的推廣連結:發至FB與各論壇宣傳:累積點數換GP商品 & 藍鑽
每五點閱率就可以兌換藍鑽積分或遊戲點卡 夢遊推廣文章換GP商品

你需要登入後才可以回覆 登入 | 加入會員

本版積分規則

Copyright (C) 2010-2020 夢遊電玩論壇

廣告合作:請直接聯繫我們,並附上您預刊登位置的預算。  

快速回覆 返回頂端 返回清單