Jump to content

graveyard


Guest manofwar95

Recommended Posts

I think the graveyards are fetched from DBC, but i think you can override the dbc values with the database values. But i do not think you can create new ones (This is just guessing since i have never actually done it, just read the code once quick while looking for alternatives to my server, but decided not to)

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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