冰楓論壇

標題: 求227.1人物加速 [打印本頁]

作者: d9027860    時間: 2020-8-5 23:00
標題: 求227.1人物加速
227.1人物加速

作者: rhg59321    時間: 2020-8-5 23:00
// TwMS v227.1 CRC 人物移動加速
[Enable]
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,[Speed]

SpeedChk:
test esi,esi
je Return

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

Return:
pop esi
jmp 0296BBC5+5

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

mov eax,[FakeTime]
add eax,000001FE

InitFakeTime:
mov [FakeTime],eax
DB 50 52
jmp 04A5A0A4

//-----------------------
0296BBC5:
jmp CharSpeedUp

04A5A08B:
jmp SetFakeTime
//-----------------------

[Disable]
0296BBC5:
call 00B41610

04A5A08B:
DB 50 52 E9 12 00 00 00

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




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