[TUTORIAL] How to make players respawn at corpse

Etox

Gamer | Noob
Divine
Etox Rep
4
0
0
Rep
4
Etox Vouches
0
0
0
Vouches
0
Posts
198
Likes
166
3 YEARS
3 YEARS OF SERVICE
LEVEL 5 70 XP
Hey, a nice little thing for PvP Servers, or general fun servers :)
  1. First step is to run this query in your world database: delete from game_graveyard_zone; Credits to Death for helping me with this back in the day!
  2. Then you have to locate this: src/server/game/globals/ObjectMgr.cpp
  3. Find this in Objectmgr.cpp:
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 it to this: (You comment it)
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; }
 
Last edited:
Liked By 4 members :

3,571

1,285

9,621

433

Top