- UID
- 175467
- 帖子
- 24581
- 主題
- 1262
- 精華
- 0
- 積分
- 3043
- 楓幣
- 8552
- 威望
- 2455
- 存款
- 137915
- 贊助金額
- 1500
- 推廣
- 0
- GP
- 6111
- 閱讀權限
- 150
- 在線時間
- 4261 小時
- 註冊時間
- 2017-1-18
- 最後登入
- 2024-12-18
|
//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)
|
|