- UID
- 19632
- 帖子
- 2073
- 主題
- 352
- 精華
- 0
- 積分
- 601
- 楓幣
- 59
- 威望
- 123
- 存款
- 0
- 贊助金額
- 1500
- 推廣
- 5
- GP
- 11
- 閱讀權限
- 180
- 性別
- 男
- 在線時間
- 2051 小時
- 註冊時間
- 2013-1-6
- 最後登入
- 2024-12-9
|
本帖最後由 乂Boyue乂 於 2017-1-31 04:36 編輯
- // TwMs v195.2 ICS 取得人物血魔
- // Author: neilwaker
- [Enable]
- Alloc(GetHpMp,256)
- RegisterSymbol(GetHpMp)
- Alloc(Hp,4)
- RegisterSymbol(Hp)
- Alloc(MaxHp,4)
- RegisterSymbol(MaxHp)
- Alloc(Mp,4)
- RegisterSymbol(Mp)
- Alloc(MaxMp,4)
- RegisterSymbol(MaxMp)
- Label(L1)
- Label(L2)
- Label(GetHp)
- Label(GetMp)
- GetHpMp:
- cmp [esp+20],00FF4488 //a1 ?? ?? ?? ?? ff 76 ?? 8d b8 ?? ?? ?? ?? 05
- jne L1
- nop
- mov [esp+20],GetHp
- jmp L2
- L1:
- cmp [esp+20],00FF477E //ff 77 ?? 8b 1d ?? ?? ?? ?? 83 c7 ?? 57 81 c3 ?? ?? ?? ?? e8
- jne L2
- nop
- mov [esp+20],GetMp
- L2:
- nop
- push InterlockedDecrement
- ret
-
- GetHp:
- mov eax,[02122E40]
- push [esi+5E]
- lea edi,[eax+00002238]
- add eax,000024B0
- add esi,56
- push esi
- mov [ebp-24],eax
- call 00403FC1
- mov [Hp],eax
- push [edi+68]
- mov esi,eax
- add edi,60
- push edi
- mov [ebp-28],esi
- call 00403FC1
- mov [MaxHp],eax
- jmp 00FF44B8
- GetMp:
- push [edi+76]
- mov ebx,[02122E40]
- add edi,6E
- push edi
- add ebx,00002238
- call 00403FC1
- mov [Mp],eax
- push [ebx+00000080]
- add ebx,78
- push ebx
- mov edi,eax
- call 00403FC1
- mov [MaxMp],eax
- jmp 00FF47A7
-
- 01979134:
- DD GetHpMp
- [Disable]
- 01979134:
- DD InterlockedDecrement
- DeAlloc(GetHpMp)
- UnRegisterSymbol(GetHpMp)
- DeAlloc(Hp)
- UnRegisterSymbol(Hp)
- DeAlloc(MaxHp)
- UnRegisterSymbol(MaxHp)
- DeAlloc(Mp)
- UnRegisterSymbol(Mp)
- DeAlloc(MaxMp)
- UnRegisterSymbol(MaxMp)
複製代碼 |
|