冰楓論壇
標題:
TwMS v229.4 CRC 人物移動加速
[打印本頁]
作者:
prt
時間:
2020-11-4 22:10
標題:
TwMS v229.4 CRC 人物移動加速
//TwMS v229.4 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 00B710D0
pop ecx
pop esi
jmp SpeedChk
Return:
pop esi
jmp 029DAA8B+5
//-----------------------
SetFakeTime:
cmp [FakeTime],00
je InitFakeTime
mov eax,[FakeTime]
add eax,000001FE
InitFakeTime:
mov [FakeTime],eax
DB 60 57 50 52 0F 31 5A 58
jmp 04AE84D3
//-----------------------
029DAA8B:
jmp CharSpeedUp
04AE84C5:
jmp SetFakeTime
//-----------------------
[Disable]
029DAA8B:
call 00B710D0
04AE84C5:
DB 60 57 50 52 0F 31 5A 58
DeAlloc(CharSpeedUp)
DeAlloc(FakeTime)
DeAlloc(Speed)
UnRegisterSymbol(Speed)
複製代碼
歡迎光臨 冰楓論壇 (https://bingfong.com/)
Powered by 冰楓