• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

TFS 0.X PVP Zone Bug

Sanzenkai

Member
Joined
Aug 25, 2023
Messages
31
Reaction score
13
Hello, it seems that my source has the same bug as this guys source, can somebody help me? his post have the correct answer i guess but its not the same version, mine is source TFS 0.4 (8.60)

My PvP Zone on the arena of my server keep making people get PZ Locked, i would like to fix that, please.

 

Attachments

Solution
player.cpp

look for this line
C++:
void Player::onTarget(Creature* target)
{

Add below.
C++:
// Fix avoid pz in pvp zones.
    if (target && target->getZone() == ZONE_HARDCORE) {
        return;
    }
player.cpp

look for this line
C++:
void Player::onTarget(Creature* target)
{

Add below.
C++:
// Fix avoid pz in pvp zones.
    if (target && target->getZone() == ZONE_HARDCORE) {
        return;
    }
 
Last edited:
Solution
Back
Top