sky0823 發表於 2014-7-25 01:34:05

TWMS_V172.1_ICS 座標左右走

// TWMS_V172.1_ICS 座標左右走
// Auther: Onion
// 更新時間:2014-07-24


Alloc(AutoLRICS,512)
Alloc(MyLR,4)
Alloc(X,4)
Label(AutoLR)
Label(GetWall)
Label(GetChrX)
Label(GoRight)
Label(GoLeft)

X:
ReadMem(+000012A4, 4)//人物 ,X
MyLR:
DD 1 //開啟後向右走

AutoLRICS:
Cmp , 00E3B413
Jne GetFocus
Mov ,AutoLR
Jmp GetFocus

AutoLR:
Call GetWall
Mov  ,Eax
Xor  Ecx,Ecx
Xor  Eax,Eax
Cmp  ,Eax
Jmp  00E3B85D

GetWall:
Call GetChrX
Mov  Ecx,  
Sub  Eax,Ecx
Cmp  Eax,0
Jle  GoRight
Call GetChrX
Mov  Ecx,Ecx
sub  Ecx,Eax
cmp  Ecx,0
Jle  GoLeft
Mov  Eax,
Ret

GetChrX:
Mov Eax,
Mov Eax,
Ret

GoRight:
Mov ,1
Mov Eax,1
Ret

GoLeft:
Mov ,FFFFFFFF
Mov Eax,FFFFFFFF
Ret

01679788:  //call dword ptr
DD AutoLRICS


01679788: //
DD GetFocus
DeAlloc(X)
DeAlloc(MyLR)
DeAlloc(AutoLRICS)
頁: [1]
查看完整版本: TWMS_V172.1_ICS 座標左右走