冰楓論壇

標題: TwMS v197.1 CRC 人物移動加速 [打印本頁]

作者: neilwaker    時間: 2017-3-30 20:31
標題: TwMS v197.1 CRC 人物移動加速

// TwMS v197.1 CRC 人物移動加速
// Author: kkmomo
[Enable]
Alloc(CharSpeedUp, 256)
Alloc(Speed, 04)
Alloc(FakeTime, 04)
RegisterSymbol(Speed)
Label(SpeedChk)
Label(Normal)
Label(SetFakeTime)
Label(InitFakeTime)

Speed:
        DD 03

FakeTime:
        DD 00

//-----------------------
CharSpeedUp:
        push esi
        mov esi,[Speed]

SpeedChk:
        test esi,esi
        je Normal

        dec esi
        push esi
        push ecx
        call 0081A9D0
        pop ecx
        pop esi
        jmp SpeedChk

Normal:
        pop esi
        jmp 01A3B6B5

//-----------------------
SetFakeTime:
        cmp [FakeTime],00
        je InitFakeTime

        mov eax,[FakeTime]
        add eax,000001FE

InitFakeTime:
        mov [FakeTime],eax
        jmp 032D0866

//-----------------------
01A3B6B0:
        jmp CharSpeedUp

032D0858:
        jmp SetFakeTime

//-----------------------
[Disable]
01A3B6B0:
        call 0081A9D0

032D0858:
        db E9 09 00 00 00

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







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