冰楓論壇
標題:
TwMS v222.2 CRC 人物移動加速
[打印本頁]
作者:
prt
時間:
2020-1-26 15:16
標題:
TwMS v222.2 CRC 人物移動加速
本帖最後由 prt 於 2020-1-26 18:45 編輯
//TwMS v222.2 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 00A2B390
pop ecx
pop esi
jmp SpeedChk
Return:
pop esi
jmp 02625302+5
//-----------------------
SetFakeTime:
cmp [FakeTime],00
je InitFakeTime
mov eax,[FakeTime]
add eax,000001FE
InitFakeTime:
mov [FakeTime],eax
jmp 045FB1F1
//-----------------------
02625302:
jmp CharSpeedUp
045FB1A1:
jmp SetFakeTime
//-----------------------
[Disable]
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
InitFakeTime:
mov [FakeTime],eax
DB 60 50 52 0F 87 00 00 00 00 0F 31
jmp 045FB1C3
這裡有點錯誤,正確是
InitFakeTime:
mov [FakeTime],eax
jmp 045FB1F1
歡迎光臨 冰楓論壇 (https://bingfong.com/)
Powered by 冰楓