[Archive] [3.3.5] TC - Anti_Farm
[Archive] [3.3.5] TC - Anti_Farm
Quote: bool Player::RewardHonor(Unit* victim, uint32 groupsize, int32 honor, bool pvptoken)Add this:
Click to expand...
Quote: if(victim)Compile, enjoy!
{
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...
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)Add this:
Click to expand...
Quote: if(victim)Compile, enjoy!
{
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...