2026/02/06 Update
Updated NWNxEE Full compile.
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user