From 0b8b6c0e2a832cbb4ed7fb8922910f00bf46ef9c Mon Sep 17 00:00:00 2001 From: Revision Date: Tue, 5 Jul 2022 21:10:35 +0200 Subject: [PATCH] feat(Core/Player): SendListInventory with vendor id (#48) VendorId --- src/LuaEngine/PlayerMethods.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/LuaEngine/PlayerMethods.h b/src/LuaEngine/PlayerMethods.h index 3cd0666..2f48f99 100644 --- a/src/LuaEngine/PlayerMethods.h +++ b/src/LuaEngine/PlayerMethods.h @@ -2362,8 +2362,9 @@ namespace LuaPlayer int SendListInventory(lua_State* L, Player* player) { WorldObject* obj = Eluna::CHECKOBJ(L, 2); + uint32 vendorId = Eluna::CHECKVAL(L, 3, 0); - player->GetSession()->SendListInventory(obj->GET_GUID()); + player->GetSession()->SendListInventory(obj->GET_GUID(), vendorId); return 0; }