hi guys today i'm giving out protection monitoring
/*Chars*/
char Teleport_Protection_t[4 * 4];
char Stats_Protection_t[4 * 4];
/*Bools*/
bool teleportprotection = false;
bool statsProtect = false;
/*Structures*/
unsigned int TeleportAnim_S(unsigned int r3, unsigned int senderData, unsigned int recieverData, unsigned int r6, unsigned int r7, unsigned int r8, unsigned int r9)
{
char *NameOfSender = (char*)(*(int*)(senderData + 0x78) + 0x10 + 0x4C);
if (teleportprotection) {
ShowProtection(NameOfSender, "tried to teleport/anim you!");
MessageResponce(NameOfSender);
}
return ((DWORD(*)(DWORD, DWORD, DWORD, DWORD, DWORD, DWORD, DWORD))NETWORK_START_SYNCED_SCENE_EVENT)(r3, senderData, recieverData, r6, r7, r8, r9);
}
unsigned int Stats_S(unsigned int r3, unsigned int senderData, unsigned int recieverData, unsigned int r6, unsigned int r7, unsigned int r8, unsigned int r9)
{
char *NameOfSender = (char*)(*(int*)(senderData + 0x78) + 0x10 + 0x4C);
if (statsProtect) {
ShowProtection(NameOfSender, "tried to modify your stats!");
MessageResponce(NameOfSender);
}
return ((DWORD(*)(DWORD, DWORD, DWORD, DWORD, DWORD, DWORD, DWORD))NETWORK_INCREMENT_STAT_EVENT)(r3, senderData, recieverData, r6, r7, r8, r9);
}
/*Call Protections*/
unsigned int TeleportAnim(unsigned int r3, unsigned int senderData, unsigned int recieverData, unsigned int r6, unsigned int r7, unsigned int r8, unsigned int r9)
{
static unsigned int ret = 0;
memcpy((void*)NETWORK_START_SYNCED_SCENE_EVENT, (void*)Teleport_Protection_t, 4 * 4);
if (repetitveCall[1] > 0)
{
repetitveCall[1]--;
return ret;
}
repetitveCall[1]++;
ret = TeleportAnim_S(r3, senderData, recieverData, r6, r7, r8, r9);
Utilities::PatchInJump((PDWORD)NETWORK_START_SYNCED_SCENE_EVENT, (DWORD)TeleportAnim, FALSE);
repetitveCall[1] = 0;
return ret;
}
unsigned int Stats_Protection(unsigned int r3, unsigned int senderData, unsigned int recieverData, unsigned int r6, unsigned int r7, unsigned int r8, unsigned int r9)
{
static unsigned int ret = 0;
memcpy((void*)NETWORK_INCREMENT_STAT_EVENT, (void*)Stats_Protection_t, 4 * 4);
if (repetitveCall[2] > 0)
{
repetitveCall[2]--;
return ret;
}
repetitveCall[2]++;
ret = Stats_S(r3, senderData, recieverData, r6, r7, r8, r9);
Utilities::PatchInJump((PDWORD)NETWORK_INCREMENT_STAT_EVENT, (DWORD)Stats_Protection, FALSE);
repetitveCall[2] = 0;
return ret;
}
/*Structure Hook*/
void Hook_To_Game(int mode)
{
switch (mode)
{
case 0:
memcpy((void*)Teleport_Protection_t, (void*)NETWORK_START_SYNCED_SCENE_EVENT, 4 * 4);
Utilities::PatchInJump((PDWORD)NETWORK_START_SYNCED_SCENE_EVENT, (DWORD)TeleportAnim, FALSE);
break;
case 1:
memcpy((void*)Stats_Protection_t, (void*)NETWORK_INCREMENT_STAT_EVENT, 4 * 4);
Utilities::PatchInJump((PDWORD)NETWORK_INCREMENT_STAT_EVENT, (DWORD)Stats_Protection, FALSE);
break;
}
}
/*Call On Hook*/
void Hook_Protections()
{
Hook_To_Game(0);//teleport/anim
Hook_To_Game(1);//change stats
}
credits to: Wesley Marcos
/*Chars*/
char Teleport_Protection_t[4 * 4];
char Stats_Protection_t[4 * 4];
/*Bools*/
bool teleportprotection = false;
bool statsProtect = false;
/*Structures*/
unsigned int TeleportAnim_S(unsigned int r3, unsigned int senderData, unsigned int recieverData, unsigned int r6, unsigned int r7, unsigned int r8, unsigned int r9)
{
char *NameOfSender = (char*)(*(int*)(senderData + 0x78) + 0x10 + 0x4C);
if (teleportprotection) {
ShowProtection(NameOfSender, "tried to teleport/anim you!");
MessageResponce(NameOfSender);
}
return ((DWORD(*)(DWORD, DWORD, DWORD, DWORD, DWORD, DWORD, DWORD))NETWORK_START_SYNCED_SCENE_EVENT)(r3, senderData, recieverData, r6, r7, r8, r9);
}
unsigned int Stats_S(unsigned int r3, unsigned int senderData, unsigned int recieverData, unsigned int r6, unsigned int r7, unsigned int r8, unsigned int r9)
{
char *NameOfSender = (char*)(*(int*)(senderData + 0x78) + 0x10 + 0x4C);
if (statsProtect) {
ShowProtection(NameOfSender, "tried to modify your stats!");
MessageResponce(NameOfSender);
}
return ((DWORD(*)(DWORD, DWORD, DWORD, DWORD, DWORD, DWORD, DWORD))NETWORK_INCREMENT_STAT_EVENT)(r3, senderData, recieverData, r6, r7, r8, r9);
}
/*Call Protections*/
unsigned int TeleportAnim(unsigned int r3, unsigned int senderData, unsigned int recieverData, unsigned int r6, unsigned int r7, unsigned int r8, unsigned int r9)
{
static unsigned int ret = 0;
memcpy((void*)NETWORK_START_SYNCED_SCENE_EVENT, (void*)Teleport_Protection_t, 4 * 4);
if (repetitveCall[1] > 0)
{
repetitveCall[1]--;
return ret;
}
repetitveCall[1]++;
ret = TeleportAnim_S(r3, senderData, recieverData, r6, r7, r8, r9);
Utilities::PatchInJump((PDWORD)NETWORK_START_SYNCED_SCENE_EVENT, (DWORD)TeleportAnim, FALSE);
repetitveCall[1] = 0;
return ret;
}
unsigned int Stats_Protection(unsigned int r3, unsigned int senderData, unsigned int recieverData, unsigned int r6, unsigned int r7, unsigned int r8, unsigned int r9)
{
static unsigned int ret = 0;
memcpy((void*)NETWORK_INCREMENT_STAT_EVENT, (void*)Stats_Protection_t, 4 * 4);
if (repetitveCall[2] > 0)
{
repetitveCall[2]--;
return ret;
}
repetitveCall[2]++;
ret = Stats_S(r3, senderData, recieverData, r6, r7, r8, r9);
Utilities::PatchInJump((PDWORD)NETWORK_INCREMENT_STAT_EVENT, (DWORD)Stats_Protection, FALSE);
repetitveCall[2] = 0;
return ret;
}
/*Structure Hook*/
void Hook_To_Game(int mode)
{
switch (mode)
{
case 0:
memcpy((void*)Teleport_Protection_t, (void*)NETWORK_START_SYNCED_SCENE_EVENT, 4 * 4);
Utilities::PatchInJump((PDWORD)NETWORK_START_SYNCED_SCENE_EVENT, (DWORD)TeleportAnim, FALSE);
break;
case 1:
memcpy((void*)Stats_Protection_t, (void*)NETWORK_INCREMENT_STAT_EVENT, 4 * 4);
Utilities::PatchInJump((PDWORD)NETWORK_INCREMENT_STAT_EVENT, (DWORD)Stats_Protection, FALSE);
break;
}
}
/*Call On Hook*/
void Hook_Protections()
{
Hook_To_Game(0);//teleport/anim
Hook_To_Game(1);//change stats
}
credits to: Wesley Marcos
This account is currently banned
Ban reason: Excessive Flaming
EDIT: multi-accounting/ban evading
Ban reason: Excessive Flaming
EDIT: multi-accounting/ban evading