2026/02/06 Update

Updated NWNxEE.
Full compile.
This commit is contained in:
Jaysyn904
2026-02-06 11:53:42 -05:00
parent fe5ec4c70e
commit 76af5f1b26
131 changed files with 111 additions and 2 deletions

View File

@@ -46,6 +46,46 @@ void NWNX_Store_SetMarkUp(object oStore, int nValue);
/// @return count, or -1 on error
int NWNX_Store_GetCurrentCustomersCount(object oStore);
/// @brief Return the black market status
/// @param oStore The store object.
/// @return status, -1 on error
int NWNX_Store_GetBlackMarket(object oStore);
/// @brief Set the black market status
/// @param oStore The store object.
/// @param nValue TRUE/FALSE.
void NWNX_Store_SetBlackMarket(object oStore, int nValue);
/// @brief Return the gold amount
/// @param oStore The store object.
/// @return status, -1 on error
int NWNX_Store_GetGold(object oStore);
/// @brief Set the gold amount
/// @param oStore The store object.
/// @param nValue Amount
void NWNX_Store_SetGold(object oStore, int nValue);
/// @brief Return the identify cost
/// @param oStore The store object.
/// @return status, -1 on error
int NWNX_Store_GetIdentifyCost(object oStore);
/// @brief Set the identify cost
/// @param oStore The store object.
/// @param nValue Cost
void NWNX_Store_SetIdentifyCost(object oStore, int nValue);
/// @brief Return the MaxBuyPrice amount
/// @param oStore The store object.
/// @return status, -1 on error
int NWNX_Store_GetMaxBuyPrice(object oStore);
/// @brief Set the MaxBuyPrice amount
/// @param oStore The store object.
/// @param nValue Amount
void NWNX_Store_SetMaxBuyPrice(object oStore, int nValue);
/// @}
int NWNX_Store_GetIsRestrictedBuyItem(object oStore, int nBaseItem)
@@ -104,3 +144,59 @@ int NWNX_Store_GetCurrentCustomersCount(object oStore)
NWNXCall(NWNX_Store, "GetCurrentCustomersCount");
return NWNXPopInt();
}
int NWNX_Store_GetBlackMarket(object oStore)
{
NWNXPushObject(oStore);
NWNXCall(NWNX_Store, "GetBlackMarket");
return NWNXPopInt();
}
void NWNX_Store_SetBlackMarket(object oStore, int nValue)
{
NWNXPushInt(nValue);
NWNXPushObject(oStore);
NWNXCall(NWNX_Store, "SetBlackMarket");
}
int NWNX_Store_GetGold(object oStore)
{
NWNXPushObject(oStore);
NWNXCall(NWNX_Store, "GetGold");
return NWNXPopInt();
}
void NWNX_Store_SetGold(object oStore, int nValue)
{
NWNXPushInt(nValue);
NWNXPushObject(oStore);
NWNXCall(NWNX_Store, "SetGold");
}
int NWNX_Store_GetIdentifyCost(object oStore)
{
NWNXPushObject(oStore);
NWNXCall(NWNX_Store, "GetIdentifyCost");
return NWNXPopInt();
}
void NWNX_Store_SetIdentifyCost(object oStore, int nValue)
{
NWNXPushInt(nValue);
NWNXPushObject(oStore);
NWNXCall(NWNX_Store, "SetIdentifyCost");
}
int NWNX_Store_GetMaxBuyPrice(object oStore)
{
NWNXPushObject(oStore);
NWNXCall(NWNX_Store, "GetMaxBuyPrice");
return NWNXPopInt();
}
void NWNX_Store_SetMaxBuyPrice(object oStore, int nValue)
{
NWNXPushInt(nValue);
NWNXPushObject(oStore);
NWNXCall(NWNX_Store, "SetMaxBuyPrice");
}

View File

@@ -3,6 +3,7 @@
//#include "en3_prcclsconst"
#include "prc_inc_racial"
#include "utl_i_sqluuid"
#include "inc_2dacache"
string GetClass(object oPC);
string GetClassByPos(object oPC, int iPos);
@@ -303,7 +304,19 @@ switch (GetClassByPosition(iPos,oPC))
return sClass;
}
string GetRace(object oPC)
string GetRace(object oPC)
{
string sRace = GetSubRace(oPC);
if (sRace == "")
{
sRace = GetStringByStrRef(StringToInt(Get2DACache("racialtypes", "Name", MyPRCGetRacialType(oPC))));
}
return sRace;
}
/* string GetRace(object oPC)
{
string sRace;
@@ -324,7 +337,7 @@ if (sRace == "")
}
return sRace;
}
} */
void GetKiller()
{