Code:
DWORD Client;
DWORD_PTR dw_EntityList = 0x4A56D04;
DWORD_PTR dw_LocalPlayer = 0xA3943C;
DWORD_PTR dw_GlowObject = 0x4F6C8E4;
DWORD LocalPlayer;
DWORD EntityPlayer;
DWORD GlowObject;
int LocalTeam;
int EntityTeam;
int ClassID;
int GlowIndex;
bool isDormant;
int one;
int two;
int three;
int four;
void RISEBoss(int Index)
{
ReadProcessMemory(Process, (LPVOID)(Client + dw_EntityList + (Index * 0x10)), &EntityPlayer, sizeof(DWORD), NULL);
ReadProcessMemory(Process, (LPVOID)(Client + dw_LocalPlayer), &LocalPlayer, sizeof(DWORD), NULL);
ReadProcessMemory(Process, (LPVOID)(Client + dw_GlowObject), &GlowObject, sizeof(DWORD), NULL);
ReadProcessMemory(Process, (LPVOID)(LocalPlayer + 0xF0), &LocalTeam, sizeof(int), NULL);
ReadProcessMemory(Process, (LPVOID)(EntityPlayer + 0xF0), &EntityTeam, sizeof(int), NULL);
ReadProcessMemory(Process, (LPVOID)(EntityPlayer + 0xA310), &GlowIndex, sizeof(int), NULL);
ReadProcessMemory(Process, (LPVOID)(EntityPlayer + 0xE9), &isDormant, sizeof(bool), NULL);
ReadProcessMemory(Process, (LPVOID)(EntityPlayer + 0x8), &one, sizeof(DWORD), NULL);
ReadProcessMemory(Process, (LPVOID)(one + 2 * 0x4), &two, sizeof(DWORD), NULL);
ReadProcessMemory(Process, (LPVOID)(two + 0x1), &three, sizeof(DWORD), NULL);
ReadProcessMemory(Process, (LPVOID)(three + 8), &four, sizeof(DWORD), NULL);
ReadProcessMemory(Process, (LPVOID)(three + 20), &ClassID, sizeof(DWORD), NULL);
}
#pragma endregion
template <class cData>
void WPM_Protect(DWORD Address, cData Coding)
{
DWORD old;
VirtualProtectEx(Process, (LPVOID)Address, sizeof(cData), PAGE_EXECUTE_READWRITE, &old);
WriteProcessMemory(Process, (LPVOID)Address, &Coding, sizeof(cData), NULL);
VirtualProtectEx(Process, (LPVOID)Address, sizeof(cData), old, NULL);
}
void Set()
{
WPM_Protect<float>((GlowObject + ((GlowIndex * 0x38) + 0x4)), 184);
WPM_Protect<float>((GlowObject + ((GlowIndex * 0x38) + 0x8)), 0);
WPM_Protect<float>((GlowObject + ((GlowIndex * 0x38) + 0xC)), 0);
WPM_Protect<float>((GlowObject + ((GlowIndex * 0x38) + 0x40)), 0.4f);
WPM_Protect<bool>((GlowObject + ((GlowIndex * 0x38) + 0x24)), true);
WPM_Protect<bool>((GlowObject + ((GlowIndex * 0x38) + 0x25)), false);
}
void ESP()
{
for (int i = 0; i <= 64; i++)
{
RISEBoss(i);
if (LocalPlayer == NULL)
continue;
if (EntityPlayer == NULL)
continue;
if (isDormant == NULL)
continue;
if (LocalTeam == NULL)
continue;
if (ClassID == 35)
{
Set();
}
else
break;
}
Sleep(1);
}