- UID
- 75389
- 帖子
- 658
- 主題
- 88
- 精華
- 0
- 積分
- 365
- 楓幣
- 3619
- 威望
- 248
- 存款
- 500
- 贊助金額
- 0
- 推廣
- 0
- GP
- 6
- 閱讀權限
- 30
- 在線時間
- 2347 小時
- 註冊時間
- 2014-8-5
- 最後登入
- 2024-9-16
|
- //TwMs v199.2_CRC_取得人物經驗、等級
- //Author:zeach01
- //Update:XMAX
- [Enable]
- GlobalAlloc(NowExp,4)
- GlobalAlloc(MaxExp,4)
- GlobalAlloc(NowLevel,4)
- Alloc(GetExp_Main,64)
- Label(GetLevel)
- 01E0FC9B:
- jmp GetExp_Main
- GetExp_Main:
- mov ecx,eax
- mov [NowExp],eax
- call 0250FCE0
- movzx eax,bl
- push eax
- movsd [ebp-7C],xmm0
- call GetLevel
- mov [MaxExp],eax
- jmp 01E0FCB0
- GetLevel:
- push ebp
- mov ebp,esp
- mov edx,[ebp+08]
- mov [NowLevel],edx
- cmp edx,000000FA
- jg 007C31A8
- mov eax,00000001
- cmp edx,eax
- cmovl edx,eax
- mov eax,[edx*8+02EE9EA8]
- mov edx,[edx*8+02EE9EAC]
- pop ebp
- ret
- [Disable]
- 01E0FC9B: //8b c8 e8 ** ** ** ** 0f b6 c3
- DB 8B C8 E8 3E 00 70 00
- DeAlloc(NowExp)
- DeAlloc(MaxExp)
- DeAlloc(NowLevel)
- UnRegisterSymbol(NowExp)
- UnRegisterSymbol(MaxExp)
- UnRegisterSymbol(NowLevel)
複製代碼 |
|