- UID
- 34080
- 帖子
- 12354
- 主題
- 187
- 精華
- 0
- 積分
- 146
- 楓幣
- 2556
- 威望
- 95
- 存款
- 0
- 贊助金額
- 0
- 推廣
- 0
- GP
- 54
- 閱讀權限
- 20
- 性別
- 男
- 在線時間
- 1022 小時
- 註冊時間
- 2013-7-27
- 最後登入
- 2023-11-22
|
//TwMs_v181.3_ICS_控怪掉落+怪物加速
//更新:Boby
[Enable]
RegisterSymbol(MobControlOnOff)
RegisterSymbol(MobControl)
RegisterSymbol(MobSpX)
RegisterSymbol(MobSpeed)
RegisterSymbol(FallDown)
Alloc(MobSpeed, 4)
Alloc(MobFall,512)
Alloc(MobSpX,4)
Alloc(MobControlOnOff,4)
Alloc(FallDown,8)
Alloc(MobControl,32)
Label(MobControlHook)
Label(speed)
Label(MobFallMain)
Label(Right)
Label(Back)
Label(Stop)
Label(Left)
Label(Me)
Label(X)
MobSpeed:
DD 00 //16進位 0 1 2 3 4 5 6 7 8 9 A B C D E F
MobControlOnOff:
DD 01
MobControl:
DD 03 //01左 02右 03跟隨 04定怪 05定點
FallDown:
DD 01
MobSpX:
ReadMem([0184F9A0]+00001678, 4) //人物 ,X
//------------------------------------------------
MobFall:
cmp [esp+3C],008C028C
je speed
Cmp [MobControlOnOff],01
Jne 00A44EDE
Cmp [Esp+DC],00FD9A78
Jne 00A44EDE
Mov [Esp+DC], MobFallMain
Jmp 00A44EDE
speed:
mov eax,[esp+38]
add eax,[MobSpeed]
mov [esp+10],eax
mov [esp+28],eax
jmp 00A44EDE
MobFallMain:
cmp [esi],0152203C
jne 00FD999A
mov eax,[esi]
push ebx
lea ecx,[ebp+08]
push ecx
lea ecx,[ebp-18]
push ecx
mov ecx,esi
push 00FD9A88
jmp MobControlHook
MobControlHook:
cmp [MobControl],01 //左
je Left
cmp [MobControl],02 //右
je Right
cmp [MobControl],03 //跟隨
je Me
cmp [MobControl],04 //定怪
je Stop
Cmp [MobControl],05
je X //定點
Stop:
mov [ecx+1A0], 0
jmp Back
Me:
mov eax,[0184F9A0]
mov eax,[eax+1678]
cmp eax,[ecx+7EC]
jg Right
jl Left
mov [ecx+1A0], 0
jmp Back
X:
mov eax,[MobSpX]
Cmp [ecx+7EC], Eax
Jg Left
Jl Right
mov [ecx+1A0], 0
jmp Back
Left:
mov [ecx+190], 5
mov [ecx+1A0], -1
jmp Back
Right:
mov [ecx+190], 4
mov [ecx+1A0], 1
Back:
cmp [FallDown],1
je 00FD3D93
Push 00FE0706
0180A77C:
DD MobFall
[Disable]
0180A77C:
DD 00A44EDE
UnRegisterSymbol(MobSpeed)
UnRegisterSymbol(MobControlOnOff)
UnRegisterSymbol(MobControl)
UnRegisterSymbol(MobSpX)
UnRegisterSymbol(FallDown)
UnRegisterSymbol(mod)
DeAlloc(MobControlOnOff)
DeAlloc(MobSpeed)
DeAlloc(FallDown)
DeAlloc(MobFallMain)
DeAlloc(MobControl)
DeAlloc(FallDown)
DeAlloc(MobSpX)
DeAlloc(MobFall)
DeAlloc(mod)
|
|