TwMS v141.1 人物左右走(紅點)
//TwMS v141.1 人物左右走(紅點)
//更新: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,[00cc44f8]
mov ebx,[ebx+2c]
cmp ebx,1 //紅點人數:1人
pop ebx
jge GetFocus
//------不要的話請刪除(上面)段落
Cmp [Esp], 008C127E
Jne ICSReturn
Mov [Esp], AutoLRMain
ICSReturn:
Jmp GetFocus
//-------------------
AutoLRMain:
Cmp [AutoLRRange], 0
Je 008C127E
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 008C1501
GoRight:
Mov [Ebp-08], 00000001
Pop Eax
Jmp 008C1501
//-----------------------------------------------
00CCCA80:
DD AutoLRICSEntry
[DISABLE]
00CCCA80:
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,[00cc44f8]
mov ebx,[ebx+2c]
cmp ebx,1 //紅點人數:1人
pop ebx
jge GetFocus
//------不要的話請刪除(上面)段落
Cmp [Esp], 008C127E
Jne ICSReturn
Mov [Esp], AutoLRMain
ICSReturn:
Jmp GetFocus
//-------------------
AutoLRMain:
Cmp [AutoLRRange], 0
Je 008C127E
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 008C1501
GoRight:
Mov [Ebp-08], 00000001
Pop Eax
Jmp 008C1501
//-----------------------------------------------
00CCCA80:
DD AutoLRICSEntry
[DISABLE]
00CCCA80:
DD GetFocus
Dealloc(AutoLRICSEntry)
UnregisterSymbol(AutoLRMain)
Dealloc(AutoLRMain)
UnregisterSymbol(AutoLRRange)
Dealloc(AutoLRRange)
Dealloc(AutoLRValue)
留言
張貼留言