feat: add ItemTemplate methods (#84)

This commit is contained in:
Axel Cocat
2022-12-31 00:10:09 +01:00
committed by GitHub
parent 28f8d6ae48
commit a2067451eb
5 changed files with 241 additions and 0 deletions

View File

@@ -324,6 +324,13 @@ namespace LuaGlobalFunctions
return 1;
}
int GetItemTemplate(lua_State* L)
{
uint32 entry = Eluna::CHECKVAL<uint32>(L, 1);
Eluna::Push(L, eObjectMgr->GetItemTemplate(entry));
return 1;
}
/**
* Builds a [GameObject]'s GUID.
*