Removed JAI

Removed JAI, added CODI AI.  Fixed encounters & NPCs in Forest of Hope Central.  Fixed Outcast store not opening.  Added Druid Grove & associated NPCS.
This commit is contained in:
Jaysyn904
2022-12-04 01:43:33 -05:00
parent 9a3a98bf52
commit f143ccfc24
353 changed files with 136542 additions and 85666 deletions

View File

@@ -1,11 +1,14 @@
//::///////////////////////////////////////////////
//:: Name ra_bandit_spawn
//::
//:: Copyright (c) 2001 Bioware Corp.
//:: Copyright (c) 2022 Project RATDOG
//:://////////////////////////////////////////////
/*
NPC OnSpawn event script caller to run
CODI AI & PRC events.
*/
//:://////////////////////////////////////////////
/*
Default On Spawn script
2003-07-28: Georg Zoeller:
If you set a ninteger on the creature named
@@ -23,10 +26,17 @@
nearby or in the module (checks near first).
It will make that NPC this horse's master.
20221201: Jaysyn
Modified to read desired CODI AI spawner
from string var "SPAWN_TYPE" set on the NPC,
defaults to fighter.
*/
//:://////////////////////////////////////////////
//:: Created By: Keith Warner, Georg Zoeller
//:: Created On: June 11/03
//:: Modified By: Jaysyn
//:: Modified On: 20221201
//:://////////////////////////////////////////////
const int EVENT_USER_DEFINED_PRESPAWN = 1510;
@@ -52,7 +62,17 @@ void GrowEm(object oPC)
void main()
{
string sTag;
string sResRef = GetResRef(OBJECT_SELF);
string sSpawnType = GetLocalString(OBJECT_SELF,"SPAWN_TYPE");
if (sSpawnType == "")
{
sSpawnType = "no_spw_ftr";
}
object oNPC;
// User defined OnSpawn event requested?
int nSpecEvent = GetLocalInt(OBJECT_SELF,"X2_USERDEFINED_ONSPAWN_EVENTS");
@@ -448,7 +468,7 @@ void main()
// Check for randomizations.
// RndBanditArmor(OBJECT_SELF);
RndBanditArmor(OBJECT_SELF);
ms_Nomenclature(OBJECT_SELF);
@@ -472,11 +492,14 @@ void main()
rnd_tattoo(OBJECT_SELF);
}
// Execute PRC OnSpawn script.
ExecuteScript("prc_npc_spawn", OBJECT_SELF);
// Execute default OnSpawn script.
ExecuteScript("nw_c2_default9", OBJECT_SELF);
//:: Execute CODI AI OnSpawn script.
ExecuteScript(sSpawnType, OBJECT_SELF);
//:: Execute default OnSpawn script.
//ExecuteScript("nw_c2_default9", OBJECT_SELF);
//:: Execute PRC OnSpawn script.
ExecuteScript("prc_npc_spawn", OBJECT_SELF);
//Post Spawn event requeste
if (nSpecEvent == 2 || nSpecEvent == 3)