冰楓論壇
標題:
TwMs_196.2_ICS_仿以前007的左右走+正常版左右走
[打印本頁]
作者:
彩虹
時間:
2017-2-27 02:24
標題:
TwMs_196.2_ICS_仿以前007的左右走+正常版左右走
//TwMs_196.2仿以前007的左右走+正常版左右走
[ENABLE]
registersymbol(MyAuto)
alloc(MyAuto,1024)
registersymbol(MyAutoLR)
alloc(MyAutoLR,1024)
registersymbol(MyAutoLRNo007)
alloc(MyAutoLRNo007,1024)
registersymbol(MyAutoLRKeyLR)
alloc(MyAutoLRKeyLR,4)
registersymbol(MyAutoLRKeyLRVal)
alloc(MyAutoLRKeyLRVal,4)
registersymbol(AutoLRMob)
alloc(AutoLRMob,4)
registersymbol(tick)
alloc(tick,4)
registersymbol(delay)
alloc(delay,4)
registersymbol(nextGo)
alloc(nextGo,4)
registersymbol(step)
alloc(step,4)
registersymbol(AutoLRPeopleX)
alloc(AutoLRPeopleX,4)
Label(MyAutoLR00)
Label(MyAutoLR01)
Label(MyAutoLR02)
Label(test1)
Label(test2)
Label(SetLR)
Label(back)
Label(back2)
Label(Set01)
Label(Set02)
Label(Cmp1)
Label(Cmp2)
//-----------------------------------------------
AutoLRPeopleX:
DD 0 // 定點X
AutoLRMob:
DD 1 //1.007 2.左右
MyAutoLRKeyLR:
DD 19
step:
DD 1
delay:
DD 1388
//-----------------------------------------------
MyAuto:
cmp [esp], 012F4F9A //3b c7 0f 85 ?? ?? 00 00 8b 0d ?? ?? ?? 00
jne GetFocus
cmp [AutoLRMob],0
je GetFocus
cmp [AutoLRMob],1
je Cmp1
cmp [AutoLRMob],2
je Cmp2
jmp GetFocus
Cmp1:
mov [esp],MyAutoLR
jmp GetFocus
Cmp2:
mov [esp],MyAutoLRNo007
jmp GetFocus
MyAutoLRNo007:
pushad
Inc [MyAutoLRKeyLRVal]
Mov Eax, [MyAutoLRKeyLR]
Cmp Eax, [MyAutoLRKeyLRVal]
Jge MyAutoLR02
Add Eax, [MyAutoLRKeyLR]
Cmp Eax, [MyAutoLRKeyLRVal]
Jge MyAutoLR01
Mov [MyAutoLRKeyLRVal], 1
Jmp MyAutoLR02
MyAutoLR:
cmp [step], 0
je MyAutoLR00
cmp [step], 2
jle back
push eax
call 0128DFDB
sub eax,[delay]
cmp eax,[nextGo]
pop eax
jbe MyAutoLR00
push eax
call 0128DFDB
Add eax, [delay]
mov [nextGo], eax
pop eax
jmp SetLR
SetLR:
cmp [step],3
je Set02
cmp [step],4
je Set01
Set01:
mov [step],1
jmp back
Set02:
mov [step],2
jmp back
back:
pushad
mov eax,[0213A454]
mov eax,[eax+674]
cmp eax,FA0
jg back2
popad
cmp [step],1
je test1
cmp [step],2
je test2
jmp MyAutoLR00
back2:
popad
jmp MyAutoLR00
test1:
pushad
mov ebx,[AutoLRPeopleX]
add ebx,15
mov eax,[0214E60C]
mov eax,[eax+17B8]
cmp ebx,eax
jge MyAutoLR01
mov [step],3
jmp MyAutoLR02
test2:
pushad
mov ebx,[AutoLRPeopleX]
sub ebx,10
mov eax,[0214E60C]
mov eax,[eax+17B8]
cmp ebx,eax
jle MyAutoLR02
mov [step],4
jmp MyAutoLR01
MyAutoLR01:
popad
mov [ebp-10],1
jmp MyAutoLR00
MyAutoLR02:
popad
mov [ebp-10],ffffffff
jmp MyAutoLR00
MyAutoLR00:
jmp 012F5517
02157888:
DD MyAuto
[DISABLE]
02157888:
DD GetFocus
unregistersymbol(AwesomeMan)
dealloc(AwesomeMan)
unregistersymbol(MyAutoLR)
dealloc(MyAutoLR)
歡迎光臨 冰楓論壇 (https://bingfong.com/)
Powered by 冰楓