Method Global:GetGUIDLow [-] [+]

Returns the low GUID from a GUID.

A GUID consists of a low GUID, type ID, and possibly an entry ID depending on the type ID.

Low GUID is an ID to distinct the objects of the same type.

Player and Creature for example can have the same low GUID but not GUID.

On TrinityCore all low GUIDs are different for all objects of the same type. For example creatures in instances are assigned new GUIDs when the Map is created.

On MaNGOS and cMaNGOS low GUIDs are unique only on the same map. For example creatures in instances use the same low GUID assigned for that spawn in the database. This is why to identify a creature you have to know the instanceId and low GUID. See [Map:GetIntstanceId]

Synopsis

lowguid = GetGUIDLow( guid )

Arguments

number guid

GUID of an Object.

Valid numbers: integers from 0 to 18,446,744,073,709,551,615.

Returns

number lowguid

Low GUID of the Object.

Valid numbers: integers from 0 to 4,294,967,295.

Generated on
© 2010 - 2024 Eluna Lua Engine