NWNX:EE  8193.37.17
Store

Files

file  nwnx_store.nss
 

Functions

int NWNX_Store_GetIsRestrictedBuyItem (object oStore, int nBaseItem)
 Return status of a base item purchase status. More...
 
int NWNX_Store_GetBlackMarketMarkDown (object oStore)
 Return the blackmarket mark down of a store. More...
 
void NWNX_Store_SetBlackMarketMarkDown (object oStore, int nValue)
 Set the blackmarket mark down of a store. More...
 
int NWNX_Store_GetMarkDown (object oStore)
 Return the mark down of a store. More...
 
void NWNX_Store_SetMarkDown (object oStore, int nValue)
 Set the mark down of a store. More...
 
int NWNX_Store_GetMarkUp (object oStore)
 Return the mark up of a store. More...
 
void NWNX_Store_SetMarkUp (object oStore, int nValue)
 Set the mark up of a store. More...
 
int NWNX_Store_GetCurrentCustomersCount (object oStore)
 Return current customer count. More...
 
int NWNX_Store_GetBlackMarket (object oStore)
 Return the black market status. More...
 
void NWNX_Store_SetBlackMarket (object oStore, int nValue)
 Set the black market status. More...
 
int NWNX_Store_GetGold (object oStore)
 Return the gold amount. More...
 
void NWNX_Store_SetGold (object oStore, int nValue)
 Set the gold amount. More...
 
int NWNX_Store_GetIdentifyCost (object oStore)
 Return the identify cost. More...
 
void NWNX_Store_SetIdentifyCost (object oStore, int nValue)
 Set the identify cost. More...
 
int NWNX_Store_GetMaxBuyPrice (object oStore)
 Return the MaxBuyPrice amount. More...
 
void NWNX_Store_SetMaxBuyPrice (object oStore, int nValue)
 Set the MaxBuyPrice amount. More...
 

Function Documentation

◆ NWNX_Store_GetIsRestrictedBuyItem()

int NWNX_Store_GetIsRestrictedBuyItem ( object  oStore,
int  nBaseItem 
)

Return status of a base item purchase status.

Parameters
oStoreThe store object.
nBaseItemA BASE_ITEM_* value
Returns
TRUE if the quest has been completed. -1 if the player does not have the journal entry.

Definition at line 91 of file nwnx_store.nss.

◆ NWNX_Store_GetBlackMarketMarkDown()

int NWNX_Store_GetBlackMarketMarkDown ( object  oStore)

Return the blackmarket mark down of a store.

Parameters
oStoreThe store object.
Returns
mark down of a store, -1 on error

Definition at line 99 of file nwnx_store.nss.

◆ NWNX_Store_SetBlackMarketMarkDown()

void NWNX_Store_SetBlackMarketMarkDown ( object  oStore,
int  nValue 
)

Set the blackmarket mark down of a store.

Parameters
oStoreThe store object.
nValueThe amount.

Definition at line 106 of file nwnx_store.nss.

◆ NWNX_Store_GetMarkDown()

int NWNX_Store_GetMarkDown ( object  oStore)

Return the mark down of a store.

Parameters
oStoreThe store object.
Returns
mark down of a store, -1 on error

Definition at line 113 of file nwnx_store.nss.

◆ NWNX_Store_SetMarkDown()

void NWNX_Store_SetMarkDown ( object  oStore,
int  nValue 
)

Set the mark down of a store.

Parameters
oStoreThe store object.
nValueThe amount.

Definition at line 120 of file nwnx_store.nss.

◆ NWNX_Store_GetMarkUp()

int NWNX_Store_GetMarkUp ( object  oStore)

Return the mark up of a store.

Parameters
oStoreThe store object.
Returns
mark up of a store, -1 on error

Definition at line 127 of file nwnx_store.nss.

◆ NWNX_Store_SetMarkUp()

void NWNX_Store_SetMarkUp ( object  oStore,
int  nValue 
)

Set the mark up of a store.

Parameters
oStoreThe store object.
nValueThe amount.

Definition at line 134 of file nwnx_store.nss.

◆ NWNX_Store_GetCurrentCustomersCount()

int NWNX_Store_GetCurrentCustomersCount ( object  oStore)

Return current customer count.

Parameters
oStoreThe store object.
Returns
count, or -1 on error

Definition at line 141 of file nwnx_store.nss.

◆ NWNX_Store_GetBlackMarket()

int NWNX_Store_GetBlackMarket ( object  oStore)

Return the black market status.

Parameters
oStoreThe store object.
Returns
status, -1 on error

Definition at line 148 of file nwnx_store.nss.

◆ NWNX_Store_SetBlackMarket()

void NWNX_Store_SetBlackMarket ( object  oStore,
int  nValue 
)

Set the black market status.

Parameters
oStoreThe store object.
nValueTRUE/FALSE.

Definition at line 155 of file nwnx_store.nss.

◆ NWNX_Store_GetGold()

int NWNX_Store_GetGold ( object  oStore)

Return the gold amount.

Parameters
oStoreThe store object.
Returns
status, -1 on error

Definition at line 162 of file nwnx_store.nss.

◆ NWNX_Store_SetGold()

void NWNX_Store_SetGold ( object  oStore,
int  nValue 
)

Set the gold amount.

Parameters
oStoreThe store object.
nValueAmount

Definition at line 169 of file nwnx_store.nss.

◆ NWNX_Store_GetIdentifyCost()

int NWNX_Store_GetIdentifyCost ( object  oStore)

Return the identify cost.

Parameters
oStoreThe store object.
Returns
status, -1 on error

Definition at line 176 of file nwnx_store.nss.

◆ NWNX_Store_SetIdentifyCost()

void NWNX_Store_SetIdentifyCost ( object  oStore,
int  nValue 
)

Set the identify cost.

Parameters
oStoreThe store object.
nValueCost

Definition at line 183 of file nwnx_store.nss.

◆ NWNX_Store_GetMaxBuyPrice()

int NWNX_Store_GetMaxBuyPrice ( object  oStore)

Return the MaxBuyPrice amount.

Parameters
oStoreThe store object.
Returns
status, -1 on error

Definition at line 190 of file nwnx_store.nss.

◆ NWNX_Store_SetMaxBuyPrice()

void NWNX_Store_SetMaxBuyPrice ( object  oStore,
int  nValue 
)

Set the MaxBuyPrice amount.

Parameters
oStoreThe store object.
nValueAmount

Definition at line 197 of file nwnx_store.nss.