you can try this
@@ -5265,48 +5220,6 @@ void Player::RepopAtGraveyard()
// stop countdown until repop
m_deathTimer = 0;
- // Custom Gravyards
- if (sWorld.getConfig(CONFIG_BOOL_GRAVYARD_AREA_ENABLE))
- {
- if (GetAreaId() == sWorld.getConfig(CONFIG_UINT32_GRAVYARD_AREA)) // Change "YOUR_AREA_ID" to the Area ID 4080 Quel Danas for custom Outdoor BG
- {
- uint32 cMap;
- float cx;
- float cy;
- float cz;
- float co;
-
- if (GetTeam() == ALLIANCE) // Alliance coords
- {
- cMap = sWorld.getConfig(CONFIG_UINT32_GRAVYARD_A_MAP);
- cx = sWorld.getConfig(CONFIG_FLOAT_GRAVYARD_A_X);
- cy = sWorld.getConfig(CONFIG_FLOAT_GRAVYARD_A_Y);
- cz = sWorld.getConfig(CONFIG_FLOAT_GRAVYARD_A_Z);
- co = sWorld.getConfig(CONFIG_FLOAT_GRAVYARD_A_O);
- }
- else
- {
- cMap = sWorld.getConfig(CONFIG_UINT32_GRAVYARD_H_MAP);
- cx = sWorld.getConfig(CONFIG_FLOAT_GRAVYARD_H_X);
- cy = sWorld.getConfig(CONFIG_FLOAT_GRAVYARD_H_Y);
- cz = sWorld.getConfig(CONFIG_FLOAT_GRAVYARD_H_Z);
- co = sWorld.getConfig(CONFIG_FLOAT_GRAVYARD_H_O);
- }
- TeleportTo(cMap, cx, cy, cz, co);
-
- if (isDead())
- {
- WorldPacket data(SMSG_DEATH_RELEASE_LOC, 4*4);
- data << cMap;
- data << cx;
- data << cy;
- data << cz;
- GetSession()->SendPacket(&data);
- }
- return;
- }
- }// Custom Gravyard ends