Jump to content

False.Genesis

Members
  • Posts

    78
  • Joined

  • Last visited

    Never
  • Donations

    0.00 GBP 

Everything posted by False.Genesis

  1. this is strange, i tested it multiple times and it worked just fine... did anyone else test this and can report his findings?
  2. - this fixes the problem added in 303 that some players are blue permanently and cannot attack while others can. - for rev 6944 - as far as i know there was no bug report yet - patch be me (False.Genesis / ProjectEden) diff --git a/src/game/Player.cpp b/src/game/Player.cpp index 75deff4..73a09e3 100644 --- a/src/game/Player.cpp +++ b/src/game/Player.cpp @@ -6292,12 +6292,14 @@ void Player::UpdateZone(uint32 newZone) if(zone->flags & AREA_FLAG_SANCTUARY) // in sanctuary { SetFlag(PLAYER_FLAGS, PLAYER_FLAGS_SANCTUARY); + SetByteFlag(UNIT_FIELD_BYTES_2, 1, UNIT_BYTE2_FLAG_SANCTUARY ); if(sWorld.IsFFAPvPRealm()) RemoveFlag(PLAYER_FLAGS,PLAYER_FLAGS_FFA_PVP); } else { RemoveFlag(PLAYER_FLAGS, PLAYER_FLAGS_SANCTUARY); + RemoveByteFlag(UNIT_FIELD_BYTES_2, 1, UNIT_BYTE2_FLAG_SANCTUARY ); } if(zone->flags & AREA_FLAG_CAPITAL) // in capital city
  3. afaik REPLACE INTO is not SQL standard, but an extension by mySQL (other db systems might not support it - not sure about postgre, never used it). if used in a transaction, delete+insert have exactly the same effect.
×
×
  • 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