冰楓論壇
標題:
TwMS v229.2 登記找路 Thread
[打印本頁]
作者:
麗麗
時間:
2020-10-21 20:37
標題:
TwMS v229.2 登記找路 Thread
// TwMS v229.2 登記找路 Thread
[ENABLE]
RegisterSymbol(AutoFindway)
Alloc(AutoFindway,512)
RegisterSymbol(delay)
Alloc(delay,04)
Alloc(timer,04)
Label(do)
CreateThread(AutoFindway)
delay:
dd 3E8
timer:
dd 0
AutoFindway:
call 02BB0060
mov edx,eax
sub edx,[timer]
cmp edx,[delay]
jl AutoFindway
mov [timer],eax
// Check Status Start
mov eax,[042CFA94]
mov eax,[eax+00000174]
cmp eax,1
jne AutoFindway
mov eax,[042CFD74]
mov eax,[eax+00010A68]
cmp eax,0
je AutoFindway
mov eax,[042CFD74]
mov eax,[eax+00010A6C]
cmp eax,000F423F
je AutoFindway
// Check Status End
call do
jmp AutoFindway
do:
// Teleport
mov eax,[042CFD74]
mov ebx,[eax+00010A68] //X
mov edx,[eax+00010A6C] //Y
sub edx,2 //adjust Y
mov esi,[042CFD74]
lea ecx,[esi+04]
mov eax,[esi+04]
mov eax,[eax+24]
call eax
test eax,eax
je AutoFindway
push edx
push ebx
push 00
mov ecx,eax
call 00B73C20
//
mov eax,[042CFD74]
mov [eax+00011A1C],1
ret
[DISABLE]
AutoFindway:
ret
UnRegisterSymbol(AutoFindway)
DeAlloc(AutoFindway)
UnRegisterSymbol(delay)
DeAlloc(delay)
DeAlloc(timer)
複製代碼
歡迎光臨 冰楓論壇 (https://bingfong.com/)
Powered by 冰楓