以下是我用VB寫的
ReadProcessMemory hProcess, ByVal PW_Base, ECXI, 4, 0&
ReadProcessMemory hProcess, ByVal ECXI + &H20, JSBase, 4, 0& '角色基址
ReadProcessMemory hProcess, ByVal JSBase + &HBA4, RWBase, 4, 0& '任務基址
ReadProcessMemory hProcess, ByVal RWBase + &H8, RWAdr, 4, 0& '任務陣列位址
ReadProcessMemory hProcess, ByVal RWAdr + &H0, ZNUM, 1, 0& '總任務數
ReadProcessMemory hProcess, ByVal RWAdr + &H4, ZRWNUM, 1, 0& '主任務數
For i = 0 To ZNUM
J = i + 1
ReadProcessMemory hProcess, ByVal RWAdr + &H8 + &H20 * i, Z1RWID, 2, 0& '主線任務1ID
ReadProcessMemory hProcess, ByVal RWAdr + &H8 + &H20 * J, F1RWID, 2, 0& '支線任務1ID
ReadProcessMemory hProcess, ByVal RWAdr + &HA + &H20 * i, ZRWBZ, 2, 0& '任務主/支線標誌 FFFFFF為主 否則為支
ReadProcessMemory hProcess, ByVal RWAdr + &HB + &H20 * i, FRWBZ, 2, 0& '任務主/支線標誌 FFFFFF為支 否則為
ReadProcessMemory hProcess, ByVal RWAdr + &HA + &H20 * i, ZBZ, 1, 0& '主線從屬標誌
ReadProcessMemory hProcess, ByVal RWAdr + &HA + &H20 * J, FBZ, 1, 0& '判斷支線從屬標誌
ReadProcessMemory hProcess, ByVal RWAdr + &H38 + &H20 * i, Z1GWNUM, 1, 0& '支線任務1所需殺怪數量
ReadProcessMemory hProcess, ByVal RWAddr + &H8 + &H20 * i + &HD, Z1RWNAMEAdr, 4, 0& '主線任務1名稱地址
ReadProcessMemory hProcess, ByVal Z1RWNAMEAdr + &H8, Z1RWNAME, 4, 0& '主線任務1名稱
ReadProcessMemory hProcess, ByVal Z1RWNAME, AKINAME1(0), 32, 0& '主線任務1名稱
ReadProcessMemory hProcess, ByVal RWAdr + &H8 + &H20 * J + &HD, F1RWNAMEAdr, 4, 0& '支線任務1名稱地址
ReadProcessMemory hProcess, ByVal F1RWNAMEAdr + &H8, F1RWNAME, 4, 0& '支線任務1名稱
ReadProcessMemory hProcess, ByVal F1RWNAME, AKINAME2(0), 32, 0& '支線任務1名稱
問題是看不到任務名稱及ID能請較一下需要改哪裡感謝 |