kusanagy

custom instance

Dec 1st, 2019
463
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 1.21 KB | None | 0 0
  1.     // stop countdown until repop
  2.     m_deathTimer = 0;
  3.  
  4.     // if no grave found, stay at the current location
  5.     // and don't show spirit healer location
  6.     if (ClosestGrave)
  7.     {
  8. +        if (GetMapId() != 560) // skip durnhold custom pvp area
  9.             TeleportTo(ClosestGrave->map_id, ClosestGrave->x, ClosestGrave->y, ClosestGrave->z, GetOrientation());
  10.         if (isDead())                                        // not send if alive, because it used in TeleportTo()
  11.         {
  12.             WorldPacket data(SMSG_DEATH_RELEASE_LOC, 4*4);  // show spirit healer position on minimap
  13.             data << ClosestGrave->map_id;
  14.             data << TaggedPosition<Position::XYZ>(ClosestGrave->x, ClosestGrave->y, ClosestGrave->z);
  15.             SendDirectMessage(&data);
  16.         }
  17.     }
  18.     else if (GetPositionZ() < GetMap()->GetMinHeight(GetPositionX(), GetPositionY()))
  19. +        if (GetMapId() != 560) // skip durnhold custom pvp area
  20.             TeleportTo(m_homebindMapId, m_homebindX, m_homebindY, m_homebindZ, GetOrientation());
  21.  
  22.     RemoveFlag(PLAYER_FLAGS, PLAYER_FLAGS_IS_OUT_OF_BOUNDS);
  23. }
  24.  
  25. bool Player::CanJoinConstantChannelInZone(ChatChannelsEntry const* channel, AreaTableEntry const* zone) const
Advertisement
Add Comment
Please, Sign In to add comment