[DiscordArchive] hello, do NPCs like auctioneers keep the same guid forever? through server restarts?
[DiscordArchive] hello, do NPCs like auctioneers keep the same guid forever? through server restarts?
Archived author: dogacan • Posted: 2022-07-21T13:20:37.279000+00:00
Original source
hello, do NPCs like auctioneers keep the same guid forever? through server restarts?
Archived author: dogacan • Posted: 2022-07-21T13:27:58.401000+00:00
Original source
but they can be killed and they respawn, so maybe not? some part of the guid stays the same?
Archived author: Naddley • Posted: 2022-07-21T13:40:39.029000+00:00
Original source
GUIDS dont change for spawned creature (creature table in DB) after restart or respawn
Archived author: <o> • Posted: 2022-07-21T13:53:59.647000+00:00
Original source
there are three kinds of ids attached to creatures at runtime, the entry, the guid, and the spawn id / db guid.
The entry is the reference to `creature_template` (`Creature::GetEntry`)
The spawn id / db guid is the persistent id used in the `creature` table (`Creature::GetSpawnId`)
The guid (sometimes called "map guid" or "map id") is a temporary thing used to track the creature in the world, **this is not persistent** (`Creature::GetGUID`)
Archived author: <o> • Posted: 2022-07-21T13:54:53.830000+00:00
Original source
temporary summons do not have a spawnId, of course
Archived author: Tea • Posted: 2022-07-21T14:12:51.136000+00:00
Original source
also respawns DO generate a new guid (GetGUID)
Archived author: Tea • Posted: 2022-07-21T14:13:53.563000+00:00
Original source
as does grid unload/reload
Archived author: Naddley • Posted: 2022-07-21T14:21:48.342000+00:00
Original source
SpawnID was what I meaned, was my mistake^^