TwMS v1.42_ICS_牆值左右走(雪女人物左右)
//TwMS v1.42_ICS_牆值左右走(雪女人物左右)
//原創:Future Doraemon Four
//改寫更新:Onion
[Enable]
Alloc(AutoLRICS,512)
Alloc(MyLR,4)
Label(AutoLR)
Label(GetWall)
Label(GetChrX)
Label(GoRight)
Label(GoLeft)
MyLR:
DD 1 //開啟後向右走
00CCCA80:
DD AutoLRICS
AutoLRICS:
Cmp [Esp],008C11B6
Jne GetFocus
Mov [Esp],AutoLR
Jmp GetFocus
AutoLR:
Call GetWall
Mov [ebp-08],Eax
Xor Ecx,Ecx
Xor Eax,Eax
Cmp [ebp-04],Eax
Jmp 008C1439
GetWall:
Call GetChrX
Mov Ecx,[00CC4458]
Sub Eax,[Ecx+1c]
Cmp Eax,64
Jle GoRight
Call GetChrX
Mov Ecx,[Ecx+24]
sub Ecx,Eax
cmp Ecx,64
Jle GoLeft
Mov Eax,[MyLR]
Ret
GetChrX:
Mov Eax,[00CC7B68]
Mov Eax,[Eax+B0C]
Ret
GoRight:
Mov [MyLR],1
Mov Eax,1
Ret
GoLeft:
Mov [MyLR],FFFFFFFF
Mov Eax,FFFFFFFF
Ret
[Disable]
00CCCA80:
DD GetFocus
DeAlloc(MyLR)
DeAlloc(AutoLRICS)
//原創:Future Doraemon Four
//改寫更新:Onion
[Enable]
Alloc(AutoLRICS,512)
Alloc(MyLR,4)
Label(AutoLR)
Label(GetWall)
Label(GetChrX)
Label(GoRight)
Label(GoLeft)
MyLR:
DD 1 //開啟後向右走
00CCCA80:
DD AutoLRICS
AutoLRICS:
Cmp [Esp],008C11B6
Jne GetFocus
Mov [Esp],AutoLR
Jmp GetFocus
AutoLR:
Call GetWall
Mov [ebp-08],Eax
Xor Ecx,Ecx
Xor Eax,Eax
Cmp [ebp-04],Eax
Jmp 008C1439
GetWall:
Call GetChrX
Mov Ecx,[00CC4458]
Sub Eax,[Ecx+1c]
Cmp Eax,64
Jle GoRight
Call GetChrX
Mov Ecx,[Ecx+24]
sub Ecx,Eax
cmp Ecx,64
Jle GoLeft
Mov Eax,[MyLR]
Ret
GetChrX:
Mov Eax,[00CC7B68]
Mov Eax,[Eax+B0C]
Ret
GoRight:
Mov [MyLR],1
Mov Eax,1
Ret
GoLeft:
Mov [MyLR],FFFFFFFF
Mov Eax,FFFFFFFF
Ret
[Disable]
00CCCA80:
DD GetFocus
DeAlloc(MyLR)
DeAlloc(AutoLRICS)
留言
張貼留言