TwMS v1.45_ICS_人物自動左右走
//------------------------------------------------------------------
// Name: AutoLR
// Version: TWMS145
// Made Upload: Inndy
// Script Update: 歐歐=]
// 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:
Cmp [Esp], 008EC54F
Jne ICSReturn
Mov [Esp], AutoLRMain
ICSReturn:
Jmp GetFocus
//-------------------
AutoLRMain:
Cmp [AutoLRRange], 0
Je 008EC54F
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-04], FFFFFFFF
Pop Eax
Jmp 008EC819
GoRight:
Mov [Ebp-04], 00000001
Pop Eax
Jmp 008EC819
//-----------------------------------------------
00D2A118:
DD AutoLRICSEntry
[DISABLE]
00D2A118:
DD GetFocus
Dealloc(AutoLRICSEntry)
UnregisterSymbol(AutoLRMain)
Dealloc(AutoLRMain)
UnregisterSymbol(AutoLRRange)
Dealloc(AutoLRRange)
Dealloc(AutoLRValue)
// Name: AutoLR
// Version: TWMS145
// Made Upload: Inndy
// Script Update: 歐歐=]
// 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:
Cmp [Esp], 008EC54F
Jne ICSReturn
Mov [Esp], AutoLRMain
ICSReturn:
Jmp GetFocus
//-------------------
AutoLRMain:
Cmp [AutoLRRange], 0
Je 008EC54F
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-04], FFFFFFFF
Pop Eax
Jmp 008EC819
GoRight:
Mov [Ebp-04], 00000001
Pop Eax
Jmp 008EC819
//-----------------------------------------------
00D2A118:
DD AutoLRICSEntry
[DISABLE]
00D2A118:
DD GetFocus
Dealloc(AutoLRICSEntry)
UnregisterSymbol(AutoLRMain)
Dealloc(AutoLRMain)
UnregisterSymbol(AutoLRRange)
Dealloc(AutoLRRange)
Dealloc(AutoLRValue)
留言
張貼留言