TwMS v149.2_ICS_牆值左右走


//TwMS v149.2_ICS_牆值左右走
//更新:Homax

[Enable]
Alloc(AutoLRICS,512)
Alloc(MyLR,4)
Label(AutoLR)
Label(GetWall)
Label(GetChrX)
Label(GoRight)
Label(GoLeft)

MyLR:
DD 1 //開啟後向右走

00e19908:
DD AutoLRICS

AutoLRICS:
Cmp [Esp],00982E09
Jne GetFocus
Mov [Esp],AutoLR
Jmp GetFocus

AutoLR:
Call GetWall
Mov  [ebp-04],Eax
xor ecx,ecx
xor eax,eax
cmp [ebp-08],eax
Jmp  009830dc

GetWall:
Call GetChrX
Mov  Ecx,[00e10478]
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,[00e14158]
Mov Eax,[Eax+f98]
Ret

GoRight:
Mov [MyLR],1
Mov Eax,1
Ret

GoLeft:
Mov [MyLR],FFFFFFFF
Mov Eax,FFFFFFFF
Ret

[Disable]
00e19908:
DD GetFocus
DeAlloc(MyLR)
DeAlloc(AutoLRICS)

本月最夯