Jump to content

[HELP] Sanctuary Zone


Recommended Posts

  • 39 years later...

Hi, I'm trying to make a Sanctuary zone, I've read a few posts so that is what I did:

   if([color=Red]([/color]zone->IsSanctuary()[color=Red]) || GetAreaId() == 3317[/color])       // in sanctuary
   {
       SetByteFlag(UNIT_FIELD_BYTES_2, 1, UNIT_BYTE2_FLAG_SANCTUARY);
       pvpInfo.inNoPvPArea = true;
       CombatStopWithPets();
   }

(red parts added)

Everything works fine, but the problem is, that I can turn my PvP on... Any ideas?

Link to comment
Share on other sites

void Player::Update( uint32 p_time )
{
   if(!IsInWorld())
       return;

   if(GetZoneId() == 3317)
   UpdatePvP(false, true);

   // undelivered mail

Still nothing... BTW I cant write "player->" cause it wasn't declared

UpdatePvP(false, true); - UpdatePvP(bool state, bool ovrride) = ovrride means you dont have to wait 15min in friendly territory so it continues to SetPvP(false);

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use