Forums WoW Modding Tutorials Miscellaneous [Archive] [3.3.5] TC - Anti_Farm

[Archive] [3.3.5] TC - Anti_Farm

[Archive] [3.3.5] TC - Anti_Farm

rektbyfaith
Administrator
0
11-04-2025, 05:04 PM
#1
Archived author: dokuro • Posted: 2025-11-04T18:04:39.522611
Original source

Anti Farm

Here is a little tip to fight against multi boxing / farming.

Open your Player.cpp file.

Look for the following line, towards lines 6750:
Quote: bool Player::RewardHonor(Unit* victim, uint32 groupsize, int32 honor, bool pvptoken)

Click to expand...
Add this:
Quote: if(victim)

{

if(victim->GetTypeId() == TYPEID_PLAYER)

{

if(GetSession()->GetRemoteAddress() == victim->ToPlayer()->GetSession()->GetRemoteAddress())

{

ChatHandler(GetSession()).PSendSysMessage("Vous ne pouvez pas recevoir de récompense en tuant quelqu'un avec la même adresse ip");

return false;

}

}

}

Click to expand...
Compile, enjoy!

Credit to : Killit5 from Open-Wow
rektbyfaith
11-04-2025, 05:04 PM #1

Archived author: dokuro • Posted: 2025-11-04T18:04:39.522611
Original source

Anti Farm

Here is a little tip to fight against multi boxing / farming.

Open your Player.cpp file.

Look for the following line, towards lines 6750:

Quote: bool Player::RewardHonor(Unit* victim, uint32 groupsize, int32 honor, bool pvptoken)

Click to expand...
Add this:
Quote: if(victim)

{

if(victim->GetTypeId() == TYPEID_PLAYER)

{

if(GetSession()->GetRemoteAddress() == victim->ToPlayer()->GetSession()->GetRemoteAddress())

{

ChatHandler(GetSession()).PSendSysMessage("Vous ne pouvez pas recevoir de récompense en tuant quelqu'un avec la même adresse ip");

return false;

}

}

}

Click to expand...
Compile, enjoy!

Credit to : Killit5 from Open-Wow

Recently Browsing
 1 Guest(s)
Recently Browsing
 1 Guest(s)