- UID
- 19632
- 帖子
- 2073
- 主題
- 352
- 精華
- 0
- 積分
- 601
- 楓幣
- 59
- 威望
- 123
- 存款
- 0
- 贊助金額
- 1500
- 推廣
- 5
- GP
- 11
- 閱讀權限
- 180
- 性別
- 男
- 在線時間
- 2051 小時
- 註冊時間
- 2013-1-6
- 最後登入
- 2024-12-9
|
- //TwMs v196.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],00FF8A3D //a1 ?? ?? ?? ?? ff 76 ?? 8d b8 ?? ?? ?? ?? 05
- jne L1
- nop
- mov [esp+20],GetHp
- jmp L2
- L1:
- cmp [esp+20],00FF8D33 //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,[0213A540]
- 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 000FF8A6D
- GetMp:
- push [edi+76]
- mov ebx,[0213A540]
- 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 00FF8D5C
-
- 0198B134:
- DD GetHpMp
- [Disable]
- 0198B134:
- DD InterlockedDecrement
- DeAlloc(GetHpMp)
- UnRegisterSymbol(GetHpMp)
- DeAlloc(Hp)
- UnRegisterSymbol(Hp)
- DeAlloc(MaxHp)
- UnRegisterSymbol(MaxHp)
- DeAlloc(Mp)
- UnRegisterSymbol(Mp)
- DeAlloc(MaxMp)
- UnRegisterSymbol(MaxMp)
複製代碼 |
|