NWNX:EE  8193.37.14
nwnx_store.nss
Go to the documentation of this file.
1 
6 const string NWNX_Store = "NWNX_Store";
7 
12 int NWNX_Store_GetIsRestrictedBuyItem(object oStore, int nBaseItem);
13 
17 int NWNX_Store_GetBlackMarketMarkDown(object oStore);
18 
22 void NWNX_Store_SetBlackMarketMarkDown(object oStore, int nValue);
23 
27 int NWNX_Store_GetMarkDown(object oStore);
28 
32 void NWNX_Store_SetMarkDown(object oStore, int nValue);
33 
37 int NWNX_Store_GetMarkUp(object oStore);
38 
42 void NWNX_Store_SetMarkUp(object oStore, int nValue);
43 
47 int NWNX_Store_GetCurrentCustomersCount(object oStore);
48 
50 
51 int NWNX_Store_GetIsRestrictedBuyItem(object oStore, int nBaseItem)
52 {
53  NWNXPushInt(nBaseItem);
54  NWNXPushObject(oStore);
55  NWNXCall(NWNX_Store, "GetIsRestrictedBuyItem");
56  return NWNXPopInt();
57 }
58 
60 {
61  NWNXPushObject(oStore);
62  NWNXCall(NWNX_Store, "GetBlackMarketMarkDown");
63  return NWNXPopInt();
64 }
65 
66 void NWNX_Store_SetBlackMarketMarkDown(object oStore, int nValue)
67 {
68  NWNXPushInt(nValue);
69  NWNXPushObject(oStore);
70  NWNXCall(NWNX_Store, "SetBlackMarketMarkDown");
71 }
72 
73 int NWNX_Store_GetMarkDown(object oStore)
74 {
75  NWNXPushObject(oStore);
76  NWNXCall(NWNX_Store, "GetMarkDown");
77  return NWNXPopInt();
78 }
79 
80 void NWNX_Store_SetMarkDown(object oStore, int nValue)
81 {
82  NWNXPushInt(nValue);
83  NWNXPushObject(oStore);
84  NWNXCall(NWNX_Store, "SetMarkDown");
85 }
86 
87 int NWNX_Store_GetMarkUp(object oStore)
88 {
89  NWNXPushObject(oStore);
90  NWNXCall(NWNX_Store, "GetMarkUp");
91  return NWNXPopInt();
92 }
93 
94 void NWNX_Store_SetMarkUp(object oStore, int nValue)
95 {
96  NWNXPushInt(nValue);
97  NWNXPushObject(oStore);
98  NWNXCall(NWNX_Store, "SetMarkUp");
99 }
100 
102 {
103  NWNXPushObject(oStore);
104  NWNXCall(NWNX_Store, "GetCurrentCustomersCount");
105  return NWNXPopInt();
106 }
int NWNX_Store_GetCurrentCustomersCount(object oStore)
Return current customer count.
Definition: nwnx_store.nss:101
int NWNX_Store_GetMarkDown(object oStore)
Return the mark down of a store.
Definition: nwnx_store.nss:73
void NWNX_Store_SetMarkUp(object oStore, int nValue)
Set the mark up of a store.
Definition: nwnx_store.nss:94
int NWNX_Store_GetIsRestrictedBuyItem(object oStore, int nBaseItem)
Return status of a base item purchase status.
Definition: nwnx_store.nss:51
void NWNX_Store_SetBlackMarketMarkDown(object oStore, int nValue)
Set the blackmarket mark down of a store.
Definition: nwnx_store.nss:66
int NWNX_Store_GetBlackMarketMarkDown(object oStore)
Return the blackmarket mark down of a store.
Definition: nwnx_store.nss:59
void NWNX_Store_SetMarkDown(object oStore, int nValue)
Set the mark down of a store.
Definition: nwnx_store.nss:80
int NWNX_Store_GetMarkUp(object oStore)
Return the mark up of a store.
Definition: nwnx_store.nss:87