[TrinityCore] How to make players respawn at corpse

Etox

Epic Member
Senior User
179
2014
6
Location
Norway
First run this in your world database

@Credits to Death.
delete from game_graveyard_zone;

Then you have to locate this: src/server/game/globals/ObjectMgr.cpp


Find this:

WorldSafeLocsEntry const* ObjectMgr::GetDefaultGraveYard(uint32 team)
{
enum DefaultGraveyard
{
HORDE_GRAVEYARD = 10, // Crossroads
ALLIANCE_GRAVEYARD = 4, // Westfall
};

if (team == HORDE)
return sWorldSafeLocsStore.LookupEntry(HORDE_GRAVEYARD);
else if (team == ALLIANCE)
return sWorldSafeLocsStore.LookupEntry(ALLIANCE_GRAVEYARD);
else return NULL;
}

And change with this:


WorldSafeLocsEntry const* ObjectMgr::GetDefaultGraveYard(uint32 team)
{
/*enum DefaultGraveyard
{
HORDE_GRAVEYARD = 10, // Crossroads
ALLIANCE_GRAVEYARD = 4, // Westfall
};

if (team == HORDE)
return sWorldSafeLocsStore.LookupEntry(HORDE_GRAVEYARD);
else if (team == ALLIANCE)
return sWorldSafeLocsStore.LookupEntry(ALLIANCE_GRAVEYARD);*/
return NULL;
}




Players should appear over their body when they die, hope this helped you!
 
Last edited:

Bingo

Verified Member
20
2014
0
Very nice but this is how i maked it and its more easy for people who just get started or people who use repacks.You can make no sickness from the configs.They will take their body from the angel.Again very nice tutorial. Its not the same thing but at least they take the body without runing around to find it and without waiting.
 

Etox

Epic Member
Senior User
179
2014
6
Location
Norway
Very nice but this is how i maked it and its more easy for people who just get started or people who use repacks.You can make no sickness from the configs.They will take their body from the angel.Again very nice tutorial. Its not the same thing but at least they take the body without runing around to find it and without waiting.

Yeah, you can also do that, however if you want to spawn where you died, I guess the tutorial I made is easier, instead of making new graveyards all over the place. ^^ Glad you liked it!


VERY nice indeed!!!

Thank you :)
 
Top