冰楓論壇

標題: TwMS v204.2 CRC 取得人物經驗、等級 [打印本頁]

作者: btb    時間: 2018-2-3 14:17
標題: TwMS v204.2 CRC 取得人物經驗、等級
//TwMS v204.2 CRC 取得人物經驗、等級
//Author:zeach01


[Enable]
RegisterSymbol(NowExp)
RegisterSymbol(MaxExp)
RegisterSymbol(NowLevel)
Alloc(NowExp,4)
Alloc(MaxExp,4)
Alloc(NowLevel,4)
Alloc(GetExp_Main,64)
Label(GetLevel)

020F8086:
jmp GetExp_Main

GetExp_Main:
mov ecx,eax
mov [NowExp],eax
call 02802A30
movzx eax,bl
push eax
DB F2 0F 11 45 A8        
call GetLevel
mov [MaxExp],eax
jmp 020F809B  

GetLevel:
push ebp
mov ebp,esp
mov edx,[ebp+08]
mov [NowLevel],edx
cmp edx,000000FA
jg 00825298
mov eax,00000001
cmp edx,eax
cmovl edx,eax
mov eax,[edx*8+035439B8]
mov edx,[edx*8+035439BC]
pop ebp
ret



[Disable]
020F8086:               
DB 8B C8 E8 A3 A9 70 00         

DeAlloc(NowExp)
DeAlloc(MaxExp)
DeAlloc(NowLevel)
UnRegisterSymbol(NowExp)
UnRegisterSymbol(MaxExp)
UnRegisterSymbol(NowLevel)






歡迎光臨 冰楓論壇 (https://bingfong.com/) Powered by 冰楓