Spawner, Creature & Item work
Spawner work. Creatures & placeables in Kobold cave now respawn. Placeables in Forest of Hope: South now respawn. Fixed up a few more items & creatures.
This commit is contained in:
@@ -184,7 +184,7 @@ string SpawnGroup(object oSpawn, string sTemplate)
|
||||
case 1:
|
||||
sRetTemplate = "RA_BRIGAND001";
|
||||
break;
|
||||
case 2:
|
||||
case 2:
|
||||
sRetTemplate = "RA_BRIGAND001";
|
||||
break;
|
||||
case 3:
|
||||
@@ -360,7 +360,7 @@ string SpawnGroup(object oSpawn, string sTemplate)
|
||||
}
|
||||
}
|
||||
//
|
||||
|
||||
|
||||
//:: Kobolds
|
||||
if (sTemplate == "kobolds")
|
||||
{
|
||||
@@ -387,7 +387,7 @@ string SpawnGroup(object oSpawn, string sTemplate)
|
||||
}
|
||||
}
|
||||
//:: Kobolds
|
||||
|
||||
|
||||
// Giant Ants
|
||||
if (sTemplate == "giantants")
|
||||
{
|
||||
@@ -458,6 +458,50 @@ string SpawnGroup(object oSpawn, string sTemplate)
|
||||
}
|
||||
//
|
||||
|
||||
//:: Vorlak & his Kobolds
|
||||
if (sTemplate == "vorlaks_kobolds")
|
||||
{
|
||||
int nIsBossSpawned = GetLocalInt(oSpawn, "IsBossSpawned");
|
||||
|
||||
Debug("NESS: nIsBossSpawned :: oSpawn -> " + GetName(oSpawn));
|
||||
Debug("NESS: nIsBossSPawned :: Value -> " + IntToString(nIsBossSpawned));
|
||||
|
||||
if (nIsBossSpawned == TRUE)
|
||||
{
|
||||
// Find the Boss
|
||||
object oBoss = GetChildByTag(oSpawn, "OGRE_VORLAK");
|
||||
|
||||
Debug("NESS: oBoss -> " + (GetIsObjectValid(oBoss) ? GetName(oBoss) : "OBJECT_INVALID"));
|
||||
|
||||
// Check if Boss is Alive
|
||||
if (oBoss != OBJECT_INVALID && GetIsDead(oBoss) == FALSE)
|
||||
{
|
||||
Debug("NESS: oBoss is valid and alive, assigning templatle 'ra_koboldwar001'");
|
||||
|
||||
// He's alive, spawn a Peon to keep him Company
|
||||
sRetTemplate = "ra_koboldwar001";
|
||||
}
|
||||
else
|
||||
{
|
||||
Debug("NESS: oBoss is either invalid or dead, deactivating camp");
|
||||
|
||||
// He's dead, Deactivate Camp!
|
||||
SetLocalInt(oSpawn, "SpawnDeactivated", TRUE);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
Debug("NESS: Boss does not exist, assiging template 'OGRE_VORLAK'");
|
||||
|
||||
// No Boss, so Let's Spawn Him
|
||||
sRetTemplate = "OGRE_VORLAK";
|
||||
SetLocalInt(oSpawn, "IsBossSpawned", TRUE);
|
||||
}
|
||||
}
|
||||
//:: Vorlak & his Kobolds
|
||||
|
||||
|
||||
|
||||
// Goblins and Boss
|
||||
if (sTemplate == "gobsnboss")
|
||||
{
|
||||
|
Reference in New Issue
Block a user