TwMS v1.44_ICS_人物左右走(紅點)
//TwMS v1.44 人物左右走(紅點)
//更新:Onion
[ENABLE]
Alloc(AutoLRICSEntry, 64)
Label(ICSReturn)
RegisterSymbol(AutoLRMain)
Alloc(AutoLRMain, 128)
Label(GoLeft)
Label(GoRight)
RegisterSymbol(AutoLRRange)
Alloc(AutoLRRange, 4)
Alloc(AutoLRValue, 4)
//-----------------------------------------------
AutoLRRange: //左右走距離(範圍)
DD A
//-----------------------------------------------
AutoLRICSEntry:
//------紅點偵測
push ebx
mov ebx,[00CF7E78]
mov ebx,[ebx+2c]
cmp ebx,1 //紅點人數:1人
pop ebx
jge GetFocus
//------不要的話請刪除(上面)段落
Cmp [Esp], 008E0387
Jne ICSReturn
Mov [Esp], AutoLRMain
ICSReturn:
Jmp GetFocus
//-------------------
AutoLRMain:
Cmp [AutoLRRange], 0
Je 008E0387
Push Eax
Inc [AutoLRValue]
Mov Eax, [AutoLRRange]
Cmp Eax, [AutoLRValue]
Jge GoLeft
Add Eax, [AutoLRRange]
Cmp Eax, [AutoLRValue]
Jge GoRight
Mov [AutoLRValue], 1
Jmp GoLeft
GoLeft:
Mov [Ebp-08], FFFFFFFF
Pop Eax
Jmp 008E061A
GoRight:
Mov [Ebp-08], 00000001
Pop Eax
Jmp 008E061A
//-----------------------------------------------
00d00670:
DD AutoLRICSEntry
[DISABLE]
00d00670:
DD GetFocus
Dealloc(AutoLRICSEntry)
UnregisterSymbol(AutoLRMain)
Dealloc(AutoLRMain)
UnregisterSymbol(AutoLRRange)
Dealloc(AutoLRRange)
Dealloc(AutoLRValue)
//更新:Onion
[ENABLE]
Alloc(AutoLRICSEntry, 64)
Label(ICSReturn)
RegisterSymbol(AutoLRMain)
Alloc(AutoLRMain, 128)
Label(GoLeft)
Label(GoRight)
RegisterSymbol(AutoLRRange)
Alloc(AutoLRRange, 4)
Alloc(AutoLRValue, 4)
//-----------------------------------------------
AutoLRRange: //左右走距離(範圍)
DD A
//-----------------------------------------------
AutoLRICSEntry:
//------紅點偵測
push ebx
mov ebx,[00CF7E78]
mov ebx,[ebx+2c]
cmp ebx,1 //紅點人數:1人
pop ebx
jge GetFocus
//------不要的話請刪除(上面)段落
Cmp [Esp], 008E0387
Jne ICSReturn
Mov [Esp], AutoLRMain
ICSReturn:
Jmp GetFocus
//-------------------
AutoLRMain:
Cmp [AutoLRRange], 0
Je 008E0387
Push Eax
Inc [AutoLRValue]
Mov Eax, [AutoLRRange]
Cmp Eax, [AutoLRValue]
Jge GoLeft
Add Eax, [AutoLRRange]
Cmp Eax, [AutoLRValue]
Jge GoRight
Mov [AutoLRValue], 1
Jmp GoLeft
GoLeft:
Mov [Ebp-08], FFFFFFFF
Pop Eax
Jmp 008E061A
GoRight:
Mov [Ebp-08], 00000001
Pop Eax
Jmp 008E061A
//-----------------------------------------------
00d00670:
DD AutoLRICSEntry
[DISABLE]
00d00670:
DD GetFocus
Dealloc(AutoLRICSEntry)
UnregisterSymbol(AutoLRMain)
Dealloc(AutoLRMain)
UnregisterSymbol(AutoLRRange)
Dealloc(AutoLRRange)
Dealloc(AutoLRValue)
留言
張貼留言