Code:
#define UnlimitedHP		0xXXXXXX;

void Patch(void *adr, void *ptr, int size)
{
	DWORD OldProtection;
	VirtualProtect(adr,size,PAGE_EXECUTE_READWRITE, &OldProtection);
	memcpy(adr,ptr,size);
	VirtualProtect(adr,size,OldProtection, &OldProtection);
}

if (GetAsyncKeyState(VK_F1)&1) 
{
	DWORD z1 = 0;
	DWORD dwModule = (DWORD)GetModuleHandleA("DragonNest.exe");
	if (dwModule > 0)
	{
		z1 = dwModule + (DWORD)UnlimitedHP;
		Patch((void *)(z1),(void*)(PBYTE)"\x70",1);
	}
}
Someone explain me why the patch line where x70 byte ? I dont know where to get it or what to do with it.
I want to know exactly why they put x70 instead of x00 or something ? .Im curious. Thanks for the help.
I know that line was ptr but how come it was x70 ?