- UID
- 210863
- 帖子
- 985
- 主題
- 263
- 精華
- 0
- 積分
- 2641
- 楓幣
- 1358
- 威望
- 2611
- 存款
- 5000
- 贊助金額
- 0
- 推廣
- 102
- GP
- 1172
- 閱讀權限
- 100
- 性別
- 男
- 在線時間
- 593 小時
- 註冊時間
- 2017-10-24
- 最後登入
- 2024-11-13
|
[Enable]
RegisterSymbol(SwitchLR)
RegisterSymbol(X)
RegisterSymbol(RBound)
RegisterSymbol(LBound)
Alloc(AutoLRICS,512)
Alloc(MyLR,4)
Alloc(X,4)
Alloc(Step,4)
Alloc(LBound,4)
Alloc(RBound,4)
Alloc(SwitchLR,4)
Label(InitFun)
Label(AutoLR)
Label(GetWall)
Label(GetChrX)
Label(GoRight)
Label(GoLeft)
//-------------------------
LBound:
DD 1E
RBound:
DD 1E
X:
ReadMem([033C4A10]+155c, 4)
//------------------------
SwitchLR:
DD 1
Step:
DD 0
MyLR:
DD 1
AutoLRICS:
Cmp [Esp],00C7A7E6
Jne GetFocus
Mov Eax,[Step]
Cmp Eax,0
je InitFun
Mov Eax,[SwitchLR]
Cmp Eax,01
jne GetFocus
Mov [Esp],AutoLR
Jmp GetFocus
InitFun:
Mov [Step],1
Mov Eax,[X]
Sub Eax,[LBound]
Mov [LBound],Eax
Mov Eax,[X]
Add Eax,[RBound]
Mov [RBound],Eax
Ret
AutoLR:
Call GetWall
Mov [ebp-1C],Eax
Xor Ecx,Ecx
Xor Eax,Eax
Cmp [ebp-1C],Eax
Jmp 00C7A6F0
GetWall:
call GetChrX
Mov Ecx,[LBound]
Sub Eax,Ecx
Cmp Eax,0
Jle GoRight
call GetChrX
Mov Ecx,[RBound]
sub Ecx,Eax
cmp Ecx,0
Jle GoLeft
Mov Eax,[MyLR]
Ret
GetChrX:
Mov Eax,[033C4A10]
Mov Eax,[Eax+155c]
ret
GoRight:
Mov [MyLR],1
Mov Eax,1
Ret
GoLeft:
Mov [MyLR],FFFFFFFF
Mov Eax,FFFFFFFF
Ret
033C8D88:
DD AutoLRICS
[Disable]
033C8D88:
DD GetFocus
DeAlloc(LBound)
DeAlloc(RBound)
DeAlloc(Step)
DeAlloc(X)
DeAlloc(MyLR)
DeAlloc(AutoLRICS)
UnRegisterSymbol(SwitchLR)
UnRegisterSymbol(X)
UnRegisterSymbol(RBound)
UnRegisterSymbol(LBound)
|
|