冰楓論壇

標題: TwMS_v199.1_CRC_人物移動加速 [打印本頁]

作者: 彩虹    時間: 2017-6-21 15:53
標題: TwMS_v199.1_CRC_人物移動加速
//TwMS_v199.1_CRC_人物移動加速
[Enable]
Alloc(CharSpeedUp, 256)
Alloc(Speed, 04)
Alloc(FakeTime, 04)
RegisterSymbol(Speed)
Label(SpeedChk)
Label(Normal)
Label(SetFakeTime)
Label(InitFakeTime)

Speed:
DD 05

FakeTime:
DD 00

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

SpeedChk:
test esi,esi
je Normal
dec esi
push esi
push ecx
call 0083CC90
pop ecx
pop esi
jmp SpeedChk

Normal:
pop esi
jmp 01B1E30D

//-----------------------
SetFakeTime:
cmp [FakeTime],00
je InitFakeTime
mov eax,[FakeTime]
add eax,000001FE

InitFakeTime:
mov [FakeTime],eax
DB 50 52 51 60 61
jmp 032E02F5

//-----------------------
01B1E308:
jmp CharSpeedUp

032E02F0:
jmp SetFakeTime

//-----------------------
[Disable]
01B1E308:
call 0083CC90

032E02F0:
DB 50 52 51 60 61

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





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