TwMS v1.42_ICS_人物左右走(攻擊次數)
//TwMS v142.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,[00cbff70]
mov ebx,[ebx+4F58]
cmp ebx,63 //攻擊次數99
pop ebx
Jbe GetFocus
//------不要的話請刪除(上面)段落
Cmp [Esp], 008C11B6
Jne ICSReturn
Mov [Esp], AutoLRMain
ICSReturn:
Jmp GetFocus
//-------------------
AutoLRMain:
Cmp [AutoLRRange], 0
Je 008C11B6
Push Eax
Inc [AutoLRValue]
Mov Eax, [AutoLRRange]
Cmp Eax, [AutoLRValue]
Jge GoRight
Add Eax, [AutoLRRange]
Cmp Eax, [AutoLRValue]
Jge GoLeft
Mov [AutoLRValue], 1
GoRight:
Mov [Ebp-08], 00000001
//Xor Eax, Eax
Pop Eax
Jmp 008C1440
GoLeft:
Mov [Ebp-08], FFFFFFFF
//Xor Eax, Eax
Pop Eax
Jmp 008C1440
//-----------------------------------------------
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,[00cbff70]
mov ebx,[ebx+4F58]
cmp ebx,63 //攻擊次數99
pop ebx
Jbe GetFocus
//------不要的話請刪除(上面)段落
Cmp [Esp], 008C11B6
Jne ICSReturn
Mov [Esp], AutoLRMain
ICSReturn:
Jmp GetFocus
//-------------------
AutoLRMain:
Cmp [AutoLRRange], 0
Je 008C11B6
Push Eax
Inc [AutoLRValue]
Mov Eax, [AutoLRRange]
Cmp Eax, [AutoLRValue]
Jge GoRight
Add Eax, [AutoLRRange]
Cmp Eax, [AutoLRValue]
Jge GoLeft
Mov [AutoLRValue], 1
GoRight:
Mov [Ebp-08], 00000001
//Xor Eax, Eax
Pop Eax
Jmp 008C1440
GoLeft:
Mov [Ebp-08], FFFFFFFF
//Xor Eax, Eax
Pop Eax
Jmp 008C1440
//-----------------------------------------------
00CCCA80:
DD AutoLRICSEntry
[DISABLE]
00CCCA80:
DD GetFocus
Dealloc(AutoLRICSEntry)
UnregisterSymbol(AutoLRMain)
Dealloc(AutoLRMain)
UnregisterSymbol(AutoLRRange)
Dealloc(AutoLRRange)
Dealloc(AutoLRValue)
留言
張貼留言