diff --git a/Release/Neverwinter Nights Campaigns [PRC8].7z b/Release/Neverwinter Nights Campaigns [PRC8].7z index 8bc3ea9f..3ba4492c 100644 Binary files a/Release/Neverwinter Nights Campaigns [PRC8].7z and b/Release/Neverwinter Nights Campaigns [PRC8].7z differ diff --git a/Release/PRC8_20250209.7z b/Release/PRC8_20250209.7z new file mode 100644 index 00000000..53af3e14 Binary files /dev/null and b/Release/PRC8_20250209.7z differ diff --git a/Release/PRC8_20250205.7z b/_backup/PRC8_20250205.7z similarity index 100% rename from Release/PRC8_20250205.7z rename to _backup/PRC8_20250205.7z diff --git a/nwn/nwnprc/trunk/CompiledResources/PRC8_Tester.mod b/nwn/nwnprc/trunk/CompiledResources/PRC8_Tester.mod index 0adcdb81..66072b26 100644 Binary files a/nwn/nwnprc/trunk/CompiledResources/PRC8_Tester.mod and b/nwn/nwnprc/trunk/CompiledResources/PRC8_Tester.mod differ diff --git a/nwn/nwnprc/trunk/spells/x0_ch_hen_spawn.nss b/nwn/nwnprc/trunk/spells/x0_ch_hen_spawn.nss index a8ea038e..943f0958 100644 --- a/nwn/nwnprc/trunk/spells/x0_ch_hen_spawn.nss +++ b/nwn/nwnprc/trunk/spells/x0_ch_hen_spawn.nss @@ -138,11 +138,45 @@ void main() SetIdentified( oItem, TRUE); } - // * - // * Special CHAPTER 1 - XP2 - // * Levelup code - // * - if (sModuleTag == "x0_module1" && GetLocalInt(GetModule(), "X2_L_XP2") == TRUE) +// * +// * Special CHAPTER 1 - XP2 +// * Levelup code +// * +if (sModuleTag == "x0_module1" && GetLocalInt(GetModule(), "X2_L_XP2") == TRUE) +{ + if (GetLocalInt(OBJECT_SELF, "X2_KilledInUndermountain") == 1) + return; + SetLocalInt(OBJECT_SELF, "X2_KilledInUndermountain", 1); + + // Level up henchman to level 13 if in Starting Room + // Join script will level them up correctly once hired + if (sAreaTag == "q2a_yawningportal") + { + int nLevel = 1; + for (nLevel = 1; nLevel < 14; nLevel++) + { + LevelUpHenchman(OBJECT_SELF); + } + } + + // 'kill the henchman' + // * do not kill if spawning in main room or specified area + string szAreaTag = GetTag(GetArea(OBJECT_SELF)); + if (szAreaTag != "q2a_yawningportal" && szAreaTag != "q2c_um2east") + { + // Get the target creature by tag + object oTarget = GetObjectByTag(sMyTag); + + // Check if the target creature exists and its tag matches OBJECT_SELF's tag + if (GetIsObjectValid(oTarget) && GetTag(oTarget) == sMyTag) + { + effect eDamage = EffectDamage(1000); // Increased damage to ensure death + ApplyEffectToObject(DURATION_TYPE_INSTANT, eDamage, oTarget); // Apply damage to the target + } + } +} + +/* if (sModuleTag == "x0_module1" && GetLocalInt(GetModule(), "X2_L_XP2") == TRUE) { if (GetLocalInt(OBJECT_SELF, "X2_KilledInUndermountain") == 1) return; @@ -168,7 +202,7 @@ void main() //effect eDamage = EffectDamage(500); //DelayCommand(10.0, ApplyEffectToObject(DURATION_TYPE_INSTANT, eDamage, OBJECT_SELF)); } - } + } */ // * Nathyrra in Chapter 1 is not allowed to have her inventory fiddled with if (sMyTag == "x2_hen_nathyrra" && sModuleTag == "x0_module1")