• 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!

C++ Protection zone = no conditions

Blade33711

Member
Joined
Aug 6, 2012
Messages
133
Solutions
1
Reaction score
5
Location
Poland
I'm using tfs 0.4
What to do in order the players do not lose conditions after entering dp?
 
Solution
player.cpp

Replace
Code:
if(getZone() == ZONE_PROTECTION)
   {
 
     icons |= ICON_PROTECTIONZONE;
   
     // Don't show ICON_SWORDS if player is in protection zone.
     if(hasBitSet(ICON_SWORDS, icons))
       icons &= ~ICON_SWORDS;
   }

for this
Code:
if(getZone() == ZONE_PROTECTION)
     icons |= ICON_PROTECTIONZONE;
player.cpp

Replace
Code:
if(getZone() == ZONE_PROTECTION)
   {
 
     icons |= ICON_PROTECTIONZONE;
   
     // Don't show ICON_SWORDS if player is in protection zone.
     if(hasBitSet(ICON_SWORDS, icons))
       icons &= ~ICON_SWORDS;
   }

for this
Code:
if(getZone() == ZONE_PROTECTION)
     icons |= ICON_PROTECTIONZONE;
 
Solution
Back
Top