prt 發表於 2020-1-26 15:16:43

TwMS v222.2 CRC 人物移動加速

本帖最後由 prt 於 2020-1-26 18:45 編輯

//TwMS v222.2 CRC 人物移動加速

Alloc(CharSpeedUp, 256)
Alloc(Speed, 04)
Alloc(FakeTime, 04)
RegisterSymbol(Speed)
Label(SpeedChk)
Label(Return)
Label(SetFakeTime)
Label(InitFakeTime)

Speed: // 速度設定
        DD 03

FakeTime:
        DD 00

//-----------------------
CharSpeedUp:
        push esi
        mov esi,

SpeedChk:
        test esi,esi
        je Return

        dec esi
        push esi
        push ecx
        call 00A2B390
        pop ecx
        pop esi
        jmp SpeedChk

Return:
        pop esi
        jmp 02625302+5

//-----------------------
SetFakeTime:
        cmp ,00
        je InitFakeTime

        mov eax,
        add eax,000001FE

InitFakeTime:
        mov ,eax
        jmp 045FB1F1

//-----------------------
02625302:
        jmp CharSpeedUp

045FB1A1:
        jmp SetFakeTime

//-----------------------

02625302:
        call 00A2B390

045FB1A1:
        DB 60 50 52 0F 87 00 00 00 00 0F 31

DeAlloc(CharSpeedUp)
DeAlloc(FakeTime)
DeAlloc(Speed)
UnRegisterSymbol(Speed)

btb 發表於 2020-1-26 17:17:02

InitFakeTime:
        mov ,eax
        DB 60 50 52 0F 87 00 00 00 00 0F 31
        jmp 045FB1C3
這裡有點錯誤,正確是
InitFakeTime:
        mov ,eax
jmp 045FB1F1
頁: [1]
查看完整版本: TwMS v222.2 CRC 人物移動加速