////怪物順移全集
//原作: a00764599
//順移原本代碼作者: maxjojo
//更新:qwe8966351
//Address : 004146B2
//Eip : ALLFAST
//=================注意================注意===================
[ENABLE]
registersymbol(ALLFAST)
registersymbol(Moves1onoff)
registersymbol(Moves2onoff)
registersymbol(Moves3onoff)
registersymbol(Moves4onoff)
alloc(ALLFAST, 1024)
alloc(Moves1onoff, 4)
alloc(Moves2onoff, 4)
alloc(Moves3onoff, 4)
alloc(Moves4onoff, 4)
label(Stop)
label(Moves1)
label(Moves1Normal)
label(Moves2)
label(Moves2Normal)
label(Moves3)
label(Moves3Normal)
label(Moves4)
label(Moves4Normal)
//=======================================================
//怪瞬移1號開關 【0】關 【1】開
//=======================================================
Moves1onoff:
dd 1
//=======================================================
//怪瞬移2號開關 【0】關 【1】開
//=======================================================
Moves2onoff:
dd 0
//=======================================================
//怪瞬移3號開關 【0】關 【1】開
//=======================================================
Moves3onoff:
dd 0
//=======================================================
//怪瞬移4號開關 【0】關 【1】開
//=======================================================
Moves4onoff:
dd 1
//=======================================================
ALLFAST:
cmp dword ptr [esp], 00657EA1 //怪瞬移1號
je Moves1
cmp dword ptr [esp], 00657E56 //怪瞬移2號
je Moves2
cmp dword ptr [esp], 00657E48 //怪瞬移3號
je Moves3
cmp dword ptr [esp], 00657EC1//怪瞬移4號
je Moves4
//=======================================================
Stop:
push ebp
jmp 004146B3
//===怪瞬移1號====================================
Moves1:
cmp [Moves1onoff], 1
jne Moves1Normal
ret
Moves1Normal:
jmp Stop
//===怪瞬移2號====================================
Moves2:
cmp [Moves2onoff], 1
jne Moves2Normal
ret
Moves2Normal:
jmp Stop
//===怪瞬移3號====================================
Moves3:
cmp [Moves3onoff], 1
jne Moves3Normal
ret
Moves3Normal:
jmp Stop
//===怪瞬移4號====================================
Moves4:
cmp [Moves4onoff], 1
jne Moves4Normal
ret
Moves4Normal:
jmp Stop
[disable]
unregistersymbol(ALLFAST)
unregistersymbol(Moves1onoff)
unregistersymbol(Moves2onoff)
unregistersymbol(Moves3onoff)
unregistersymbol(Moves4onoff)
dealloc(Monster along moves)
dealloc(Moves1onoff)
dealloc(Moves2onoff)
dealloc(Moves3onoff)
dealloc(Moves4onoff) |