[ENABLE]
Alloc(JumpMobFall, 512)
Alloc(MobLR, 512)
RegisterSymbol(MobGoX)
Alloc(MobGoX, 4)
RegisterSymbol(JumpDown)
Alloc(JumpDown, 4)
RegisterSymbol(CtrlMob)
Alloc(CtrlMob, 4)
RegisterSymbol(PeopleMobX)
Alloc(PeopleMobX, 4)
Label(ControlMob)
Label(Back)
Label(GoLeft)
Label(GoRight)
Label(GoMe)
Label(GoMe_R)
Label(GoMe_L)
Label(GoPoint)
Label(GoX)
Label(GetX)
PeopleMobX:
DD 0
JumpDown:
DD 0 // 跳怪掉落開關
CtrlMob:
DD 0 // 控怪開關,0關1左2右3跟隨4取點5定點
MobLR:
Push Ebp
Mov Ebp, Esp
Sub Esp, 20
Mov Eax, [Ebp+08]
Push Ebx
Push Esi
mov esi,[00e1ca18]
Mov Ebx, Ecx
Push Edi
//-----------------------------------
Cmp [Ebx+000002A8], 01
Je ControlMob
Cmp [Ebx+000002A8], 03
Je ControlMob
Jmp Back
ControlMob:
Cmp [CtrlMob], 00
Je Back
Cmp [CtrlMob], 01
Je GoLeft
Cmp [CtrlMob], 02
Je GoRight
Cmp [CtrlMob], 05
Je GoX
Mov Edi, [00E20700]
Mov Edi, [Edi+f98]
Cmp [CtrlMob], 04
Je GetX
Cmp [CtrlMob], 03
Je GoMe
Jmp Back
GoMe:
Push Edi
Mov Edi, [00e1847c]
Mov Edi, [Edi+047C]
And Edi, 01
Test Edi, Edi
Je GoMe_R
Jne GoMe_L
Pop Edi
Jmp Back
GoMe_R:
Pop Edi
Add Edi, 64
Jmp GoPoint
GoMe_L:
Pop Edi
Sub Edi, 64
Jmp GoPoint
GoPoint:
Cmp [Ebx+000006A4], Edi
Jl GoRight
Jg GoLeft
Jmp Back
GetX:
Mov Edi,[PeopleMobX] //定點X
Mov [MobGoX], Edi
Mov [CtrlMob], 05
Jmp GoX
GoX:
Mov Edi, [MobGoX]
Sub Edi, 2
Cmp [Ebx+000006A4], Edi
Jl GoRight
Add Edi, 4
Cmp [Ebx+000006A4], Edi
Jg GoLeft
Mov [Ebx+000002A8], 06
Jmp GoMe
GoRight:
Mov [Ebx+00000000EC], 00000004
Mov [Ebx+00000000FC], 00000001
Jmp Back
GoLeft:
Mov [Ebx+00000000EC], 00000005
Mov [Ebx+00000000FC], FFFFFFFF
Jmp Back
//-----------------------------------
Back:
Jmp 00984679
JumpMobFall:
Cmp [JumpDown], 0
Je 00983647
Push Ebp
Mov Ebp, Esp
Sub Esp, 0C
Push Ebx
Push Esi
Mov Esi, Ecx
Cmp dword ptr [Esi+000002A8], 03
Push Edi
mov edi,[00e1ca18]
Jmp 00983748
00C837A0:
DD MobLR
00C837A4:
DD JumpMobFall
[DISABLE]
00c8d9f8:
DD 00984665 //0097de6c //55 8B EC 83 EC 20 8B 45 08 53 56 8B 35
00c8d9fc:
DD 00983647 //0097CE4E //55 8b ec 83 ec 0c 53 56 8b f1 83 be ?? ?? 00
Dealloc(JumpMobFall)
Dealloc(MobLR)
Dealloc(CtrlMob)
Dealloc(MobGoX)
Dealloc(JumpDown)
UnregisterSymbol(CtrlMob)
UnregisterSymbol(MobGoX)
UnregisterSymbol(JumpDown)
2014年2月6日 星期四
TwMS v1.50.2_ICS_程式控怪+跳怪掉落
訂閱:
張貼留言 (Atom)
沒有留言:
張貼留言