TwMS v140.1_ICS_人物左右走(紅點)
//------------------------------------------------------------------
// Name: AutoLR
// Version: TWMS140
// Update: Inndy
// Address: 008BFB2C
// EIP: AutoLRMain
// Cortrol: AutoLRRange
// 0: Off, Else:Range
//------------------------------------------------------------------
[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:
//------紅點偵測...不需要可以移掉
mov eax,[00cc2258]
mov eax,[eax+2c]
cmp eax,0 //人數...目前為1人停止
jg GetFocus
//------紅點偵測結束
Cmp [Esp], 008BFB32
Jne ICSReturn
Mov [Esp], AutoLRMain
ICSReturn:
Jmp GetFocus
//-------------------
AutoLRMain:
Cmp [AutoLRRange], 0
Je 008BFB32
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 008bfdb5
GoRight:
Mov [Ebp-08], 00000001
Pop Eax
Jmp 008bfdb5
//-----------------------------------------------
00CCA7D8:
DD AutoLRICSEntry
[DISABLE]
00CCA7D8:
DD GetFocus
Dealloc(AutoLRICSEntry)
UnregisterSymbol(AutoLRMain)
Dealloc(AutoLRMain)
UnregisterSymbol(AutoLRRange)
Dealloc(AutoLRRange)
Dealloc(AutoLRValue)
// Name: AutoLR
// Version: TWMS140
// Update: Inndy
// Address: 008BFB2C
// EIP: AutoLRMain
// Cortrol: AutoLRRange
// 0: Off, Else:Range
//------------------------------------------------------------------
[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:
//------紅點偵測...不需要可以移掉
mov eax,[00cc2258]
mov eax,[eax+2c]
cmp eax,0 //人數...目前為1人停止
jg GetFocus
//------紅點偵測結束
Cmp [Esp], 008BFB32
Jne ICSReturn
Mov [Esp], AutoLRMain
ICSReturn:
Jmp GetFocus
//-------------------
AutoLRMain:
Cmp [AutoLRRange], 0
Je 008BFB32
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 008bfdb5
GoRight:
Mov [Ebp-08], 00000001
Pop Eax
Jmp 008bfdb5
//-----------------------------------------------
00CCA7D8:
DD AutoLRICSEntry
[DISABLE]
00CCA7D8:
DD GetFocus
Dealloc(AutoLRICSEntry)
UnregisterSymbol(AutoLRMain)
Dealloc(AutoLRMain)
UnregisterSymbol(AutoLRRange)
Dealloc(AutoLRRange)
Dealloc(AutoLRValue)
留言
張貼留言