- UID
- 175467
- 帖子
- 24598
- 主題
- 1262
- 精華
- 0
- 積分
- 3045
- 楓幣
- 8734
- 威望
- 2456
- 存款
- 137915
- 贊助金額
- 1500
- 推廣
- 0
- GP
- 6115
- 閱讀權限
- 150
- 在線時間
- 4281 小時
- 註冊時間
- 2017-1-18
- 最後登入
- 2024-12-22
|
//TwMS v204.2 CRC 自動喝水
//Author: Doem 2017-04-09
[ENABLE]
RegisterSymbol(HPKey)
RegisterSymbol(MPKey)
RegisterSymbol(HP)
RegisterSymbol(MP)
Alloc(AutoDrinker, 128)
Label(PressHPKey)
Label(PressMPKey)
Label(Return)
Alloc(HPKey,04)
Alloc(MPKey,04)
Alloc(HP,04)
Alloc(MP,04)
//-----------------------
HP:
DD 000003E8 //1000
MP:
DD 00009C40 //40000
//-----------------------
HPKey:
DD 01520000
MPKey:
DD 01530000
//-----------------------
AutoDrinker:
PUSHAD
MOV EAX,[0354E56C]
CMP EAX,00000000
JE Return
MOV EBX,[EAX+1918]
MOV EAX,[EAX+1920]
MOV ECX,[HP]
MOV EDX,[MP]
CMP [EBX+1FC],ECX
JB PressHPKey
CMP [EAX+1FC],EDX
JB PressMPKey
JMP Return
PressHPKey:
MOV ECX,[032E054C]
PUSH 0000002D
PUSH [HPKey]
CALL 01DB3190
JMP Return
PressMPKey:
MOV ECX,[032E054C]
PUSH 0000002D
PUSH [MPKey]
CALL 01DB3190
Return:
POPAD
call 01F1E340
JMP 02088DF6+5
02088DF6:
JMP AutoDrinker
[DISABLE]
02088DF6:
DB E8 45 55 E9 FF
DeAlloc(HP)
DeAlloc(MP)
DeAlloc(HPKey)
DeAlloc(MPKey)
DeAlloc(AutoDrinker)
UnRegisterSymbol(HP)
UnRegisterSymbol(MP)
UnRegisterSymbol(HPKey)
UnRegisterSymbol(MPKey)
PS:此為舊版HOOK點如果對新版有疑惑可以考慮這個 |
|