PDA

View Full Version : TrinityCore WotLK GUID



LordSeaworth
08-03-2016, 08:29 PM
Could someone explain me how GUID work exactly?

Like does every npc (even the same entries) have a unique something to be reconized?
And how can you get lets say a players guid or a specific npc guid.
Also what are LowGUID's.
How can you get a specific guid for a player's current character. Not just the account name. Seems i can't find a GetName for players on the eluna api.

Sorry to ask you so many questions.
Just trying to get trough everything i will need.

Tommy
08-03-2016, 10:32 PM
Could someone explain me how GUID work exactly?

Like does every npc (even the same entries) have a unique something to be reconized?
And how can you get lets say a players guid or a specific npc guid.
Also what are LowGUID's.
How can you get a specific guid for a player's current character. Not just the account name. Seems i can't find a GetName for players on the eluna api.

Sorry to ask you so many questions.
Just trying to get trough everything i will need.

Eluna API (http://eluna.emudevs.com) explains all of your method questions.
- Eluna API (http://eluna.emudevs.com)

1. Yes. Every gameobject, item, npc, etc. has a specific guid to make that object unique to the world.
2. Call :GetGUID() (http://eluna.emudevs.com/Object/GetGUID.html) via player, gameobject and other object types.
3. Explained in Object:GetGUIDLow() (http://eluna.emudevs.com/Object/GetGUIDLow.html) & Global:GetGUIDLow() (http://eluna.emudevs.com/Global/GetGUIDLow.html) doc entry.
4. Same as #2, you'd call "player:GetGUID()". In most cases "GetGUIDLow()" is somewhat recommended to use than "GetGUID()". :GetName() (http://eluna.emudevs.com/WorldObject/GetName.html) exists. Search Eluna API (http://eluna.emudevs.com).