2026/02/06 Update
Updated NWNxEE Full compile.
This commit is contained in:
7
_module/nss/clr_craft_vars.nss
Normal file
7
_module/nss/clr_craft_vars.nss
Normal file
@@ -0,0 +1,7 @@
|
||||
void main()
|
||||
{
|
||||
object oPC = GetClickingObject();
|
||||
|
||||
DeleteLocalInt(OBJECT_SELF, "PRC_CRAFT_HB");
|
||||
|
||||
}
|
||||
@@ -20,10 +20,10 @@ int GetNewAutoSoloHitDice(object oNPC)
|
||||
int nTotalPCs = 0;
|
||||
int nHDBoost = 0;
|
||||
int iNewHD = 0;
|
||||
int nMaxHD = GetLocalInt(OBJECT_SELF,"MAXHD");
|
||||
int nHD = GetHitDice(OBJECT_SELF);
|
||||
int nMaxHD = GetLocalInt(oNPC,"MAXHD");
|
||||
int nHD = GetHitDice(oNPC);
|
||||
|
||||
object oArea = GetArea(OBJECT_SELF);
|
||||
object oArea = GetArea(oNPC);
|
||||
|
||||
string sAreaName = GetName(oArea);
|
||||
|
||||
@@ -61,8 +61,8 @@ int GetNewAutoSoloHitDice(object oNPC)
|
||||
//WriteTimestampedLogEntry("OnSpawn: AutoSoloHD is adding "+IntToString(nHDBoost)+" Hit Dice for a total of "+IntToString(iNewHD)+".");
|
||||
return iNewHD;
|
||||
|
||||
//DelayCommand(0.0f, NWNX_Creature_SetLevelByPosition(OBJECT_SELF, 1, iNewHD));
|
||||
//DelayCommand(0.1f, SetCurrentHitPoints(OBJECT_SELF, iNewHP));
|
||||
//DelayCommand(0.0f, NWNX_Creature_SetLevelByPosition(oNPC, 1, iNewHD));
|
||||
//DelayCommand(0.1f, SetCurrentHitPoints(oNPC, iNewHP));
|
||||
|
||||
}
|
||||
|
||||
@@ -73,12 +73,12 @@ int GetNewAutoSoloHitPoints(object oNPC)
|
||||
int nHPBoost = 0;
|
||||
int iNewHP = 0;
|
||||
int iNewHD = 0;
|
||||
int nMaxHD = GetLocalInt(OBJECT_SELF,"MAXHD");
|
||||
int nHD = GetHitDice(OBJECT_SELF);
|
||||
int nCurrentHP = GetCurrentHitPoints(OBJECT_SELF);
|
||||
int nHDType = GetClassHDType(OBJECT_SELF);
|
||||
int nMaxHD = GetLocalInt(oNPC,"MAXHD");
|
||||
int nHD = GetHitDice(oNPC);
|
||||
int nCurrentHP = GetCurrentHitPoints(oNPC);
|
||||
int nHDType = GetClassHDType(oNPC);
|
||||
|
||||
object oArea = GetArea(OBJECT_SELF);
|
||||
object oArea = GetArea(oNPC);
|
||||
|
||||
string sAreaName = GetName(oArea);
|
||||
|
||||
@@ -119,8 +119,8 @@ int GetNewAutoSoloHitPoints(object oNPC)
|
||||
//SendMessageToAllDMs("OnSpawn: AutoSoloHP is adding "+IntToString(nHPBoost)+" Hit Points for a total of "+IntToString(iNewHP)+".");
|
||||
//WriteTimestampedLogEntry("OnSpawn: AutoSoloHP is adding "+IntToString(nHPBoost)+" Hit Points for a total of "+IntToString(iNewHP)+".");
|
||||
return iNewHP;
|
||||
//DelayCommand(0.0f, NWNX_Creature_SetLevelByPosition(OBJECT_SELF, 1, iNewHD));
|
||||
//DelayCommand(0.1f, SetCurrentHitPoints(OBJECT_SELF, iNewHP));
|
||||
//DelayCommand(0.0f, NWNX_Creature_SetLevelByPosition(oNPC, 1, iNewHD));
|
||||
//DelayCommand(0.1f, SetCurrentHitPoints(oNPC, iNewHP));
|
||||
|
||||
}
|
||||
|
||||
@@ -212,14 +212,14 @@ void LevelMob(object oCreature, int iLevel)
|
||||
int iPackage;
|
||||
|
||||
//:: Determine if Class Package should be randomized
|
||||
int iRandPack = GetLocalInt(OBJECT_SELF, "RANDOM_PACKAGE");
|
||||
int iRandPack = GetLocalInt(oCreature, "RANDOM_PACKAGE");
|
||||
|
||||
//:: Get the current Hit Dice of the creature.
|
||||
int iCreHD = GetHitDice(oCreature);
|
||||
|
||||
//:: Get the max and min Hit Dice for this creature
|
||||
int iMax = GetLocalInt(OBJECT_SELF, "MAXHD");
|
||||
int iMin = GetLocalInt(OBJECT_SELF, "MINHD");
|
||||
int iMax = GetLocalInt(oCreature, "MAXHD");
|
||||
int iMin = GetLocalInt(oCreature, "MINHD");
|
||||
if(iMax == 0)iMax = 60; //:: Creatures have a max of 60 HD
|
||||
if(iMin == 0)iMin = 3;
|
||||
|
||||
|
||||
4
_module/nss/dummy_event.nss
Normal file
4
_module/nss/dummy_event.nss
Normal file
@@ -0,0 +1,4 @@
|
||||
void main()
|
||||
{
|
||||
//This doesn't do anything.
|
||||
}
|
||||
@@ -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");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user