Forums WoW Modding Support Archives TrinityCore Discord Archives [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?

[DiscordArchive] hello, do NPCs like auctioneers keep the same guid forever? through server restarts?

rektbyfaith
Administrator
0
07-21-2022, 01:20 PM
#1
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?
rektbyfaith
07-21-2022, 01:20 PM #1

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?

rektbyfaith
Administrator
0
07-21-2022, 01:27 PM
#2
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?
rektbyfaith
07-21-2022, 01:27 PM #2

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?

rektbyfaith
Administrator
0
07-21-2022, 01:40 PM
#3
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
rektbyfaith
07-21-2022, 01:40 PM #3

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

rektbyfaith
Administrator
0
07-21-2022, 01:53 PM
#4
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`)
rektbyfaith
07-21-2022, 01:53 PM #4

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`)

rektbyfaith
Administrator
0
07-21-2022, 01:54 PM
#5
Archived author: <o> • Posted: 2022-07-21T13:54:53.830000+00:00
Original source

temporary summons do not have a spawnId, of course
rektbyfaith
07-21-2022, 01:54 PM #5

Archived author: <o> • Posted: 2022-07-21T13:54:53.830000+00:00
Original source

temporary summons do not have a spawnId, of course

rektbyfaith
Administrator
0
07-21-2022, 02:12 PM
#6
Archived author: Tea • Posted: 2022-07-21T14:12:51.136000+00:00
Original source

also respawns DO generate a new guid (GetGUID)
rektbyfaith
07-21-2022, 02:12 PM #6

Archived author: Tea • Posted: 2022-07-21T14:12:51.136000+00:00
Original source

also respawns DO generate a new guid (GetGUID)

rektbyfaith
Administrator
0
07-21-2022, 02:13 PM
#7
Archived author: Tea • Posted: 2022-07-21T14:13:53.563000+00:00
Original source

as does grid unload/reload
rektbyfaith
07-21-2022, 02:13 PM #7

Archived author: Tea • Posted: 2022-07-21T14:13:53.563000+00:00
Original source

as does grid unload/reload

rektbyfaith
Administrator
0
07-21-2022, 02:21 PM
#8
Archived author: Naddley • Posted: 2022-07-21T14:21:48.342000+00:00
Original source

SpawnID was what I meaned, was my mistake^^
rektbyfaith
07-21-2022, 02:21 PM #8

Archived author: Naddley • Posted: 2022-07-21T14:21:48.342000+00:00
Original source

SpawnID was what I meaned, was my mistake^^

Recently Browsing
 
Recently Browsing