Add GetDBTableGuid method

This commit is contained in:
Rochet2
2015-07-05 10:03:05 +03:00
parent 447021e849
commit 02c7a06410
3 changed files with 35 additions and 1 deletions

View File

@@ -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 */
/**