diff --git a/NWN.Core/src/NWNX/Plugins/PlayerPlugin.cs b/NWN.Core/src/NWNX/Plugins/PlayerPlugin.cs index 999cab2..c7e36ed 100644 --- a/NWN.Core/src/NWNX/Plugins/PlayerPlugin.cs +++ b/NWN.Core/src/NWNX/Plugins/PlayerPlugin.cs @@ -815,6 +815,16 @@ public static void ReloadColorPalettes(uint oPlayer) NWNXCall(NWNX_Player, "ReloadColorPalettes"); } + /// Get the current open store of oPlayer. + /// The player. + /// The open store or OBJECT_INVALID if no store is open. + public static uint GetOpenStore(uint oPlayer) + { + NWNXPushObject(oPlayer); + NWNXCall(NWNX_Player, "GetOpenStore"); + return NWNXPopObject(); + } + // @} public static void INTERNAL_StopGuiTimingBar(uint player, string script = "", int id = -1) {