//原作:zgenden
//代碼:005241DC
//EIP:Maxone
//功能:跳怪掉落1.跳怪掉落2
//-----------------------------------------------
[ENABLE]
registersymbol(Maxone)
alloc(Maxone,128)
label(QuitMaxone)
registersymbol(JDSwitch)
alloc(JDSwitch,4)
alloc(JDSwitch1, 4)
alloc(JDSwitch2, 4)
label(JumpDown1)
label(QuitJD1)
label(JumpDown2)
label(QuitJD2)
//-----------------------------------------------
JDSwitch:
DD 1 //總開關: 0.關 1.開
JDSwitch1:
DD 1 //跳怪掉落1: 0.關 1.開
JDSwitch2:
DD 1 //跳怪掉落2: 0.關 1.開
//-----------------------------------------------
Maxone:
cmp [JDSwitch],0
je QuitMaxone
cmp dword ptr [esp],00904A65
je JumpDown1
cmp dword ptr [esp],00904F61
je JumpDown2
ret
QuitMaxone:
ret
//-----------------------------------------------
JumpDown1:
add esp,4
cmp [JDSwitch1],1
jne QuitJD1
cmp [ebx+0230],2
jne QuitJD1
fsubr qword ptr [ebp-18]
add esp,10
fst qword ptr [ebp-18]
fcomp qword ptr [00A1DBB0]
jmp 00904DF4
QuitJD1:
fsubr qword ptr [ebp-18]
jmp 00904A68
//-----------------------------------------------
JumpDown2:
add esp,4
cmp [JDSwitch2],1
jne QuitJD2
fcomp qword ptr [ebp-08]
pop ecx
pop ecx
jmp 00904FCB
QuitJD2:
fcomp qword ptr [ebp-08]
jmp 00904F64
//-----------------------------------------------
[DISABLE]
dealloc(Maxone)
unregistersymbol(Maxone)
dealloc(JumpDown1KEY)
unregistersymbol(JumpDown1KEY)
dealloc(JDSwitch)
unregistersymbol(JDSwitch)
dealloc(JDSwitch1)
unregistersymbol(JDSwitch1)
dealloc(JDSwitch2)
unregistersymbol(JDSwitch2)