- UID
- 7083
- 帖子
- 66
- 主題
- 16
- 精華
- 0
- 積分
- 18
- 楓幣
- 8153
- 威望
- 15
- 存款
- 0
- 贊助金額
- 0
- 推廣
- 0
- GP
- 15
- 閱讀權限
- 10
- 性別
- 保密
- 在線時間
- 63 小時
- 註冊時間
- 2012-3-23
- 最後登入
- 2023-10-7
|
v190.3 控怪有問題 , 請求大師指點 , thanks.
//TwMs_v190.3_ICS_控怪
[Enable]
RegisterSymbol(MobFall)
Alloc(MobFall,512)
Alloc(MobControl,32)
Label(MobControlHook)
Label(MobFallMain)
Label(Right)
Label(Back)
Label(Stop)
Label(Left)
Label(Me)
Label(X)
MobControl:
DD 01 //01左 02右 03跟隨 04定怪 05定點
//------------------------------------------------
MobFall:
Cmp [Esp+DC],011d8b54
Jne 00b48b0f
Mov [Esp+DC], MobFallMain
Jmp 00b48b0f
MobFallMain:
cmp [esi],01834514
jne 011d8a80
mov eax,[esi]
push ebx
lea ecx,[ebp+08]
push ecx
lea ecx,[ebp-18]
push ecx
mov ecx,esi
push 011d8b64
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,[01bfb9d8]
mov eax,[eax+168c]
cmp eax,[ecx+88c]
jg Right
jl Left
mov [ecx+1A0], 0
jmp Back
X:
mov eax,[01bfb9d8]
mov eax,[eax+168c]
Cmp [ecx+88c], 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:
Push 011e0a0f
01ba8adc:
DD MobFall
[Disable]
01ba8adc:
DD 00b48b0f
UnRegisterSymbol(MobControl)
DeAlloc(MobFallMain)
DeAlloc(MobControl)
|
|