Updated for v117 using AoB saved from v116.
Physical Mob disarm
Code:
Code:
[ENABLE]
alloc(IntersectRectHook,128)
label(returnhere_intersectrect)
label(ret_false)
IntersectRect:
jmp IntersectRectHook
returnhere_intersectrect:
IntersectRectHook:
cmp [esp],0072D766
je ret_false
mov edi,edi
push ebp
mov ebp,esp
jmp returnhere_intersectrect
ret_false:
mov eax,0
ret 0C
[DISABLE]
IntersectRect:
mov edi,edi
push ebp
mov ebp,esp
dealloc(IntersectRectHook)
Magic Mob Disarm
Code:
Code:
[ENABLE]
alloc(IntersectRectHook,128)
label(returnhere_intersectrect)
label(ret_false)
IntersectRect:
jmp IntersectRectHook
returnhere_intersectrect:
IntersectRectHook:
cmp [esp],00713B44
je ret_false
cmp [esp],00713B6D
je ret_false
cmp [esp],00713B88
je ret_false
cmp [esp],00713BAB
je ret_false
cmp [esp],00707A52
je ret_false
mov edi,edi
push ebp
mov ebp,esp
jmp returnhere_intersectrect
ret_false:
mov eax,0
ret 0C
[DISABLE]
IntersectRect:
mov edi,edi
push ebp
mov ebp,esp
dealloc(IntersectRectHook)
FMA
Code:
Code:
[ENABLE]
alloc(IntersectRectHook,128)
label(returnhere_intersectrect)
label(ret_true)
IntersectRect:
jmp IntersectRectHook
returnhere_intersectrect:
IntersectRectHook:
cmp [esp],0072DF1E
je ret_true
mov edi,edi
push ebp
mov ebp,esp
jmp returnhere_intersectrect
ret_true:
mov eax,1
ret 0C
[DISABLE]
IntersectRect:
mov edi,edi
push ebp
mov ebp,esp
FMA+Physical Mob Disarm+Magic Mob Disarm
Code:
Code:
[ENABLE]
alloc(IntersectRectHook,128)
label(IntersectRect_Return)
label(return_false)
label(return_true)
IntersectRect:
jmp IntersectRectHook
IntersectRect_Return:
IntersectRectHook:
cmp [esp],0072D766
je return_false
cmp [esp],00713B44
je ret_false
cmp [esp],00713B6D
je ret_false
cmp [esp],00713B88
je ret_false
cmp [esp],00713BAB
je ret_false
cmp [esp],00707A52
je ret_false
cmp [esp],0072DF1E
je return_true
mov edi,edi
push ebp
mov ebp,esp
jmp IntersectRect_Return
return_false:
mov eax,0
ret 000C
return_true:
mov eax,1
ret 000C
[DISABLE]
IntersectRect:
mov edi,edi
push ebp
mov ebp,esp
dealloc(IntersectRectHook)
Here's Mob Disarm with no FMA:
Code:
[ENABLE]
alloc(IntersectRectHook,128)
label(IntersectRect_Return)
label(return_false)
IntersectRect:
jmp IntersectRectHook
IntersectRect_Return:
IntersectRectHook:
cmp [esp],0072D766
je return_false
cmp [esp],00713B44
je ret_false
cmp [esp],00713B6D
je ret_false
cmp [esp],00713B88
je ret_false
cmp [esp],00713BAB
je ret_false
cmp [esp],00707A52
je ret_false
mov edi,edi
push ebp
mov ebp,esp
jmp IntersectRect_Return
return_false:
mov eax,0
ret 000C
[DISABLE]
IntersectRect:
mov edi,edi
push ebp
mov ebp,esp
dealloc(IntersectRectHook)
Credits:
anthony_