2026/02/06 Update

Updated NWNxEE libraries.
Full compile.
This commit is contained in:
Jaysyn904
2026-02-06 12:34:03 -05:00
parent d0a4ee6f1f
commit f00c9f7382
767 changed files with 107 additions and 10 deletions

View File

@@ -1,11 +1,11 @@
#include "color_inc"
#include "dbg_inc"
#include "chr_inc"
#include "nwnx_player"
//#include "nwnx_player"
#include "nwnx_creature"
#include "nwnx_time"
//#include "nwnx_time"
#include "nwnx_admin"
#include "nwnx_deprecated"
//#include "nwnx_deprecated"
#include "anph_inc"
const string BADPARSE = "[BADPARSE]";
@@ -315,11 +315,12 @@ void main()
}
else if ((sParams = ParseCommand(sMessage, "/soundset")) != BADPARSE)
{
int nCurrentVoice = NWNX_Creature_GetSoundset(oPC);
//int nCurrentVoice = NWNX_Creature_GetSoundset(oPC);
int nCurrentVoice = GetSoundset(oPC);
int nNew = StringToInt(sParams);
if (nNew > 0 || sParams == "0")
{
NWNX_Creature_SetSoundset(oPC, nNew);
SetSoundset(oPC, nNew);
SendMessageToPC(oPC, "Soundset changed from " + IntToString(nCurrentVoice) + " to " + IntToString(nNew));
}
else

View File

@@ -8,6 +8,6 @@
void main()
{
ExecuteScript("prc_onplayerchat", OBJECT_SELF);
ExecuteScript("mod_onchat", OBJECT_SELF);
}
ExecuteScript("prc_onplayerchat", OBJECT_SELF);
}

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");
}