- UID
- 175467
- 帖子
- 24420
- 主題
- 1251
- 精華
- 0
- 積分
- 2997
- 楓幣
- 4040
- 威望
- 2418
- 存款
- 137915
- 贊助金額
- 1500
- 推廣
- 0
- GP
- 6032
- 閱讀權限
- 150
- 在線時間
- 4081 小時
- 註冊時間
- 2017-1-18
- 最後登入
- 2024-11-1
|
//TwMs v203.1 CRC 取得人物經驗、等級
//Author:zeach01
//Update:btb
[Enable]
RegisterSymbol(NowExp)
RegisterSymbol(MaxExp)
RegisterSymbol(NowLevel)
Alloc(NowExp,4)
Alloc(MaxExp,4)
Alloc(NowLevel,4)
Alloc(GetExp_Main,64)
Label(GetLevel)
01EFA436:
jmp GetExp_Main
GetExp_Main:
mov ecx,eax
mov [NowExp],eax
call 025F8E40
movzx eax,bl
push eax
movsd [ebp-7C],xmm0
call GetLevel
mov [MaxExp],eax
jmp 01EFA44B
GetLevel:
push ebp
mov ebp,esp
mov edx,[ebp+08]
mov [NowLevel],edx
cmp edx,000000FA
jg 007DB2A8
mov eax,00000001
cmp edx,eax
cmovl edx,eax
mov eax,[edx*8+03088570]
mov edx,[edx*8+03088574]
pop ebp
ret
[Disable]
01EFA436:
DB 8B C8 E8 03 EA 6F 00
DeAlloc(NowExp)
DeAlloc(MaxExp)
DeAlloc(NowLevel)
UnRegisterSymbol(NowExp)
UnRegisterSymbol(MaxExp)
UnRegisterSymbol(NowLevel)
|
|