diff --git a/src/LuaEngine/LuaFunctions.cpp b/src/LuaEngine/LuaFunctions.cpp index e01c4a9..c77e03f 100644 --- a/src/LuaEngine/LuaFunctions.cpp +++ b/src/LuaEngine/LuaFunctions.cpp @@ -1191,6 +1191,7 @@ ElunaRegister PacketMethods[] = { "ReadLong", &LuaPacket::ReadLong }, { "ReadULong", &LuaPacket::ReadULong }, { "ReadGUID", &LuaPacket::ReadGUID }, + { "ReadPackedGUID", &LuaPacket::ReadPackedGUID }, { "ReadString", &LuaPacket::ReadString }, { "ReadFloat", &LuaPacket::ReadFloat }, { "ReadDouble", &LuaPacket::ReadDouble }, diff --git a/src/LuaEngine/methods/WorldPacketMethods.h b/src/LuaEngine/methods/WorldPacketMethods.h index 750c096..aa84cae 100644 --- a/src/LuaEngine/methods/WorldPacketMethods.h +++ b/src/LuaEngine/methods/WorldPacketMethods.h @@ -173,6 +173,19 @@ namespace LuaPacket return 1; } + /** + * Reads and returns an unsigned 64-bit integer value from the [WorldPacket]. + * + * @return uint64 value : value returned as string + */ + int ReadPackedGUID(lua_State* L, WorldPacket* packet) + { + uint64 guid; + packet->readPackGUID(guid); + Eluna::Push(L, guid); + return 1; + } + /** * Reads and returns a string value from the [WorldPacket]. *