TwMS v1.52.2_ICS_牆值左右走
[Enable]
Alloc(AutoLRICS,512)
Alloc(MyLR,4)
Label(AutoLR)
Label(GetWall)
Label(GetChrX)
Label(GoRight)
Label(GoLeft)
MyLR:
DD 1 //開啟後向右走
00F7D268:
DD AutoLRICS
AutoLRICS:
Cmp [Esp], 00A1D2D4 //3b c7 0f 85 3c 03 00 00
Jne GetFocus
Mov [Esp],AutoLR
Jmp GetFocus
AutoLR:
Call GetWall
Mov [ebp-04],Eax
Xor Ecx,Ecx
Xor Eax,Eax
Cmp [ebp-04],Eax
Jmp 00A1D61F
GetWall:
Call GetChrX
Mov Ecx,[00F70F00]
Sub Eax,[Ecx+1c]
Cmp Eax,04
Jle GoRight
Call GetChrX
Mov Ecx,[Ecx+24]
sub Ecx,Eax
cmp Ecx,04
Jle GoLeft
Mov Eax,[MyLR]
Ret
GetChrX:
Mov Eax,[00F75BAC]
Mov Eax,[Eax+FA0]
Ret
GoRight:
Mov [MyLR],1
Mov Eax,1
Ret
GoLeft:
Mov [MyLR],FFFFFFFF
Mov Eax,FFFFFFFF
Ret
[Disable]
00F7D268:
DD GetFocus
DeAlloc(MyLR)
DeAlloc(AutoLRICS)
沒有留言:
張貼留言