TwMS v1.52.2_ICS_控怪+跳怪掉落
[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_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,[00f70f00]
Mov Ebx, Ecx
Push Edi
//-----------------------------------
Cmp [Ebx+000002b8], 01
Je ControlMob
Cmp [Ebx+000002b8], 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, [00f75bac]
Mov Edi, [Edi+fa0]
Cmp [CtrlMob], 04
Je GetX
Cmp [CtrlMob], 03
Je GoPoint
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,[00f75bac]
mov edi,[edi+fa0]
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+000002b8], 06
Jmp GoPoint
GoRight:
Mov [Ebx+00000000EC], 00000004
Mov [Ebx+00000000FC], 00000001
Jmp Back
GoLeft:
Mov [Ebx+00000000EC], 00000005
Mov [Ebx+00000000FC], FFFFFFFF
Jmp Back
//-----------------------------------
Back:
Jmp 00A1818F
JumpMobFall:
Cmp [JumpDown], 0
Je 00A1715D
Push Ebp
Mov Ebp, Esp
Sub Esp, 0C
Push Ebx
Push Esi
Mov Esi, Ecx
cmp dword ptr [esi+000002b8],03
Push Edi
mov edi,[00f70f00]
Jmp 00a1725e
00DC06F8:
DD MobLR
00DC06FC:
DD JumpMobFall
[DISABLE]
00DC06F8:
DD 00A1817B //00a18097 //55 8B EC 83 EC 20 8B 45 08 53 56 8B 35
00DC06FC:
DD 00A1715D //00a17079 //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)
沒有留言:
張貼留言