TwMS v150_ICS_牆值左右走
//TwMS v150_ICS_牆值左右走
//原創:smart44
//原創改寫:Onion
[Enable]
Alloc(AutoLRICS,512)
Alloc(MyLR,4)
Label(AutoLR)
Label(GetWall)
Label(GetChrX)
Label(GoRight)
Label(GoLeft)
MyLR:
DD 1 //開啟後向右走
00E25EC0:
DD AutoLRICS
AutoLRICS:
Cmp [Esp],009895B7
Jne GetFocus
Mov [Esp],AutoLR
Jmp GetFocus
AutoLR:
Call GetWall
Mov [Ebp-04],Eax
Jmp 0098988A
GetWall:
Call GetChrX
Mov Ecx,[00E1CA18]
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,[00E20700]
Mov Eax,[Eax+0F98]
Ret
GoRight:
Mov [MyLR],1
Mov Eax,1
Ret
GoLeft:
Mov [MyLR],FFFFFFFF
Mov Eax,FFFFFFFF
Ret
[Disable]
00E25EC0:
DD GetFocus
DeAlloc(MyLR)
DeAlloc(AutoLRICS)
留言
張貼留言