mirror of
https://github.com/azerothcore/mod-ale
synced 2025-11-29 15:38:17 +08:00
Add GetDBTableGuid method
This commit is contained in:
@@ -837,6 +837,22 @@ namespace LuaCreature
|
||||
}
|
||||
#endif
|
||||
|
||||
/**
|
||||
* Returns the guid of the [Creature] that is used as the ID in the database
|
||||
*
|
||||
* @return uint32 dbguid
|
||||
*/
|
||||
int GetDBTableGUIDLow(Eluna* /*E*/, lua_State* L, Creature* creature)
|
||||
{
|
||||
#ifdef TRINITY
|
||||
Eluna::Push(L, creature->GetDBTableGUIDLow());
|
||||
#else
|
||||
// on mangos based this is same as lowguid
|
||||
Eluna::Push(L, creature->GetGUIDLow());
|
||||
#endif
|
||||
return 1;
|
||||
}
|
||||
|
||||
/* SETTERS */
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user