Table of Contents

Class NwStore

Namespace
Anvil.API
Assembly
NWN.Anvil.dll

A store object for bartering, and items to purchase.

public sealed class NwStore : NwGameObject, IEquatable<NwObject>
Inheritance
NwStore
Implements
Inherited Members
Extension Methods

Properties

BuyStolenGoods

Gets or sets if this store purchases stolen goods.

CurrentCustomers

Gets the current customers of this store.

CustomerCount

Gets the number of current customers using this store.

IdentifyCost

Gets or sets the amount this store charges to identify an item.
Returns -1 if the store does not identify items.

IsValid

Gets a value indicating whether this is a valid object.

Items

Gets all items belonging to this store's inventory.

MarkDown

Gets or sets the base markdown price for items sold to this store.

MarkDownStolen

Gets or sets the base markdown price for stolen items sold to this store.

MarkUp

Gets or sets the base markup price for items in the store's inventory.

MaxBuyPrice

Gets or sets the maximum price this store will pay for an item.
Returns -1 if the store has no limit.

StoreGold
WillNotBuyItems

Gets the list of base item types that this store will not buy.
Has precedence over WillOnlyBuyItems.

WillOnlyBuyItems

Gets the list of base item types that this store will only buy.
Does nothing if WillNotBuyItems is populated.

Methods

AcquireItem(NwItem)

Adds the specified item to this store's inventory.

Clone(Location, string?, bool)

Creates a copy of this game object.

Create(string, Location, bool, string)
Deserialize(byte[])
Open(NwPlayer, int, int)

Open oStore for oPC.
You can mark up or down the prices with the optional parameters.

Serialize()

Events

OnClose
OnOpen

Operators

implicit operator CNWSStore?(NwStore?)