- UID
- 119417
- 帖子
- 11011
- 主題
- 4333
- 精華
- 0
- 積分
- 5407
- 楓幣
- 14246
- 威望
- 5309
- 存款
- 70
- 贊助金額
- 0
- 推廣
- 0
- GP
- 738
- 閱讀權限
- 150
- 性別
- 保密
- 在線時間
- 1958 小時
- 註冊時間
- 2015-10-18
- 最後登入
- 2024-12-25
|
- //TwMs v196.3_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],00FF8A80 //a1 ?? ?? ?? ?? ff 76 ?? 8d b8 ?? ?? ?? ?? 05
- jne L1
- nop
- mov [esp+20],GetHp
- jmp L2
- L1:
- cmp [esp+20],00FF8D76 //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 00FF8AB0
- 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 00FF8D9F
-
- 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)
複製代碼 |
|