封魔法屏外攻击
原作者:BLUE
封魔法的屏外攻击具体代码
begin:
=>
=====================================================
:0051F136 0F857386FBFF jne 004D77AF
:0051F13C 8B45FC mov eax, dword ptr [ebp-04]
:0051F13F 8B4024 mov eax, dword ptr [eax+24]
:0051F142 2B45BC sub eax, dword ptr [ebp-44]
:0051F145 99 cdq
:0051F146 33C2 xor eax, edx
:0051F148 2BC2 sub eax, edx
:0051F14A 83F808 cmp eax, 00000008 --- (Abs(Self.C_X -Tag_X) <= 8
:0051F14D 0F8F1D86FBFF jg 004D7770 --- False
:0051F153 8B45FC mov eax, dword ptr [ebp-04]
:0051F156 8B4028 mov eax, dword ptr [eax+28]
:0051F159 2B45C0 sub eax, dword ptr [ebp-40]
:0051F15C 99 cdq
:0051F15D 33C2 xor eax, edx
:0051F15F 2BC2 sub eax, edx
:0051F161 83F807 cmp eax, 00000007 --- (Abs(self.C_Y - Tag_Y) <= 7)
:0051F164 0F8F0686FBFF jg 004D7770 --- False
:0051F16A 680D774D00 push 004D770D --- True
:0051F16F C3 ret
=====================================================
=>
=====================================================
:004D76FD 8B45FC mov eax, dword ptr [ebp-04]
:004D7700 80B80403000000 cmp byte ptr [eax+00000304], 00
:004D7707 6836F15100 push 0051F136
:004D770C C3 ret
:004D770D 8B45C0 mov eax, dword ptr [ebp-40]
=====================================================
0x00d6b07h:
0F85A2000000
6836F15100C3
0x0119536h:
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
0F857386FBFF8B45FC8B40242B45BC9933C22BC283F8080F8F1D86FBFF8B45FC8B40282B45C09933C22BC283F8070F8F0686FBFF680D774D00C3
多谢SCRIPT,看他的帖子,才写了这个,~~~转帖子请注明
UE 改法:
0x00d6b07h:
0F85A2000000
6836F15100C3
0x0119536h:
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
0F857386FBFF8B45FC8B40242B45BC9933C22BC283F8080F8F1D86FBFF8B45FC8B40282B45C09933C22BC283F8070F8F0686FBFF680D774D00C3