基地址分享/探討
大家好~今天在寫按鍵精靈的用到一些基地址 比對拿出來跟大家分享一下分別是HP,MP,SP=EB 的基地址 花了一點時間找 有需要可以自行拉走EB
"PathOfExile.exe"+00A1C4EC(Float)
758
188
784
218
708
MP
"PathOfExile.exe"+00A1C4EC(4B)
264
7c
688
604
388
HP
"PathOfExile.exe"+00A1C4EC(4B)
2c8
7c
608
210
708個人最近回鍋這遊戲在研究POE自動打怪的思路就只差這個沒研究出來希望有各方高手可以提點提點到底那些大商是如何精準判斷哪裡有怪又如何能準確繞完整張地圖呢??
找到關鍵的CALL! 真想知道 按鍵精靈 要怎運用這個!! a8029boy2 發表於 2016-6-30 10:47 static/image/common/back.gif
真想知道 按鍵精靈 要怎運用這個!!
Dim 基址,偏移,Val(15),HP,MP,SP,比(2)
HP = Array(&H708,&H210,&H608,&H7c,&H2c8)
MP = Array(&H388, &H604, &H688, &H7c, &H264)
SP = Array(&H708, &H218, &H784, &H188, &H758)
基址 = &H012A0000
偏移 = &H00A1C4EC
Val(0) = Plugin.Memory.Read32Bit(Hwnd,基址 +偏移)
//HP
Val(1) = Plugin.Memory.Read32Bit(Hwnd, Val(0) + HP(0))
Val(2) = Plugin.Memory.Read32Bit(Hwnd, Val(1) + HP(1))
Val(3) = Plugin.Memory.Read32Bit(Hwnd, Val(2) + HP(2))
Val(4) = Plugin.Memory.Read32Bit(Hwnd, Val(3) + HP(3))
Val(5) = Plugin.Memory.Read32Bit(Hwnd, Val(4) + HP(4))
//MP
Val(6) = Plugin.Memory.Read32Bit(Hwnd, Val(0) + MP(0))
Val(7) = Plugin.Memory.Read32Bit(Hwnd, Val(6) + MP(1))
Val(8) = Plugin.Memory.Read32Bit(Hwnd, Val(7) + MP(2))
Val(9) = Plugin.Memory.Read32Bit(Hwnd, Val(8) + MP(3))
Val(10) = Plugin.Memory.Read32Bit(Hwnd, Val(9) + MP(4))
//SP
Val(11) = Plugin.Memory.Read32Bit(Hwnd, Val(0) + SP(0))
Val(12) = Plugin.Memory.Read32Bit(Hwnd, Val(11) + SP(1))
Val(13) = Plugin.Memory.Read32Bit(Hwnd, Val(12) + SP(2))
Val(14) = Plugin.Memory.Read32Bit(Hwnd, Val(13) + SP(3))
Val(15) = Plugin.Memory.ReadSingle(Hwnd, Val(14) + SP(4))
MessageBox "HP:"&Val(5)&"MP:"&Val(10)&"SP:"&Val(15)
頁:
[1]