Forums WoW Modding Support Archives Azerothcore Discord Archives [DiscordArchive] Getting the guid of a specific creature seems so difficult though, considering RegisterCreatureEvent

[DiscordArchive] Getting the guid of a specific creature seems so difficult though, considering RegisterCreatureEvent

[DiscordArchive] Getting the guid of a specific creature seems so difficult though, considering RegisterCreatureEvent

Pages (2): 1 2 Next
rektbyfaith
Administrator
0
09-10-2021, 07:07 AM
#1
Archived author: Fero • Posted: 2021-09-10T07:07:00.623000+00:00
Original source

Getting the guid of a specific creature seems so difficult though, considering RegisterCreatureEvent, that returns the creature object, takes the creature id from creature_template, and then returns the guid of all the creatures spawned??
rektbyfaith
09-10-2021, 07:07 AM #1

Archived author: Fero • Posted: 2021-09-10T07:07:00.623000+00:00
Original source

Getting the guid of a specific creature seems so difficult though, considering RegisterCreatureEvent, that returns the creature object, takes the creature id from creature_template, and then returns the guid of all the creatures spawned??

rektbyfaith
Administrator
0
09-10-2021, 07:38 AM
#2
Archived author: Honey • Posted: 2021-09-10T07:38:54.136000+00:00
Original source

I dont know what route the functions/voids go. Keep in mind that Not every void is exposed to Eluna
rektbyfaith
09-10-2021, 07:38 AM #2

Archived author: Honey • Posted: 2021-09-10T07:38:54.136000+00:00
Original source

I dont know what route the functions/voids go. Keep in mind that Not every void is exposed to Eluna

rektbyfaith
Administrator
0
09-10-2021, 07:41 AM
#3
Archived author: Fero • Posted: 2021-09-10T07:41:51.996000+00:00
Original source

is there no way i can get the guid of a single creature using either it's template_id or entry in the creature table without making a "registercreatureevent" for EVERY single creature that i want to be affected? :/
rektbyfaith
09-10-2021, 07:41 AM #3

Archived author: Fero • Posted: 2021-09-10T07:41:51.996000+00:00
Original source

is there no way i can get the guid of a single creature using either it's template_id or entry in the creature table without making a "registercreatureevent" for EVERY single creature that i want to be affected? :/

rektbyfaith
Administrator
0
09-10-2021, 07:42 AM
#4
Archived author: Fero • Posted: 2021-09-10T07:42:17.384000+00:00
Original source

plus, if i create a RegisterCreatureEvent, i'll have to spam the database perhaps thousands of times for guids over and over
rektbyfaith
09-10-2021, 07:42 AM #4

Archived author: Fero • Posted: 2021-09-10T07:42:17.384000+00:00
Original source

plus, if i create a RegisterCreatureEvent, i'll have to spam the database perhaps thousands of times for guids over and over

rektbyfaith
Administrator
0
09-10-2021, 07:58 AM
#5
Archived author: Fero • Posted: 2021-09-10T07:58:17.147000+00:00
Original source

<@!595620700706832414> how does http://eluna.uiwow.com/Global/GetUnitGUID.html work? it entry is lowguid it's just going to be entry entry?
[Embed: Global:GetUnitGUID - Eluna]
API documentation for the Global:GetUnitGUID method in the Eluna engine.
http://eluna.uiwow.com/Global/GetUnitGUID.html
rektbyfaith
09-10-2021, 07:58 AM #5

Archived author: Fero • Posted: 2021-09-10T07:58:17.147000+00:00
Original source

<@!595620700706832414> how does http://eluna.uiwow.com/Global/GetUnitGUID.html work? it entry is lowguid it's just going to be entry entry?
[Embed: Global:GetUnitGUID - Eluna]
API documentation for the Global:GetUnitGUID method in the Eluna engine.
http://eluna.uiwow.com/Global/GetUnitGUID.html

rektbyfaith
Administrator
0
09-10-2021, 08:03 AM
#6
Archived author: Honey • Posted: 2021-09-10T08:03:02.619000+00:00
Original source

Entry is the `creature_template`
LowGuid is the creature id in `creature`. Unique to all creatures.
Guid is the core-wide unique id across all worldobjects, which identifies this very creature (at runtime)
rektbyfaith
09-10-2021, 08:03 AM #6

Archived author: Honey • Posted: 2021-09-10T08:03:02.619000+00:00
Original source

Entry is the `creature_template`
LowGuid is the creature id in `creature`. Unique to all creatures.
Guid is the core-wide unique id across all worldobjects, which identifies this very creature (at runtime)

rektbyfaith
Administrator
0
09-10-2021, 08:08 AM
#7
Archived author: Fero • Posted: 2021-09-10T08:08:12.130000+00:00
Original source

local creature = GetUnitGUID(500000, 75000) -- 500000 being from creature and 75000 being from creature_template should work correct?
rektbyfaith
09-10-2021, 08:08 AM #7

Archived author: Fero • Posted: 2021-09-10T08:08:12.130000+00:00
Original source

local creature = GetUnitGUID(500000, 75000) -- 500000 being from creature and 75000 being from creature_template should work correct?

rektbyfaith
Administrator
0
09-10-2021, 08:09 AM
#8
Archived author: Honey • Posted: 2021-09-10T08:09:23.178000+00:00
Original source

`creature` is the guid then. I think you want to convert it to the object
rektbyfaith
09-10-2021, 08:09 AM #8

Archived author: Honey • Posted: 2021-09-10T08:09:23.178000+00:00
Original source

`creature` is the guid then. I think you want to convert it to the object

rektbyfaith
Administrator
0
09-10-2021, 08:10 AM
#9
Archived author: Fero • Posted: 2021-09-10T08:10:06.022000+00:00
Original source

17379399636802827768 this is the value of creature
rektbyfaith
09-10-2021, 08:10 AM #9

Archived author: Fero • Posted: 2021-09-10T08:10:06.022000+00:00
Original source

17379399636802827768 this is the value of creature

rektbyfaith
Administrator
0
09-10-2021, 08:10 AM
#10
Archived author: Fero • Posted: 2021-09-10T08:10:48.060000+00:00
Original source

the ingame **.npc info** guid of my creature is 2140
rektbyfaith
09-10-2021, 08:10 AM #10

Archived author: Fero • Posted: 2021-09-10T08:10:48.060000+00:00
Original source

the ingame **.npc info** guid of my creature is 2140

Pages (2): 1 2 Next
Recently Browsing
 1 Guest(s)
Recently Browsing
 1 Guest(s)