58 lines
1.7 KiB
Plaintext
58 lines
1.7 KiB
Plaintext
// A series of scripts "pcbanner6-10" which is fired on the death of a Helm Banner
|
|
void main()
|
|
{
|
|
// Respawn Horde Banner
|
|
location loc = GetLocation(OBJECT_SELF);
|
|
CreateObject(OBJECT_TYPE_PLACEABLE, "hordebanner008", loc, TRUE);
|
|
|
|
// Respawn Outpost dependent creatures if not already alive
|
|
object oPrimaryNPC = GetObjectByTag("Henrick");
|
|
if(!(GetLocalInt(oPrimaryNPC, "nWarlordDead") == 1))
|
|
{
|
|
|
|
loc = GetLocation(GetObjectByTag("spawngruntscout8"));
|
|
object oCreature = GetObjectByTag("ms_spawngruntscout8");
|
|
|
|
if(!(GetCurrentHitPoints(oCreature) > 0))
|
|
{
|
|
CreateObject(OBJECT_TYPE_CREATURE, "orcgruntscout008", loc, TRUE);
|
|
}
|
|
|
|
oCreature = GetObjectByTag("ms_spawnshaman8");
|
|
if(!(GetCurrentHitPoints(oCreature) > 0))
|
|
{
|
|
loc = GetLocation(GetObjectByTag("spawnshaman8"));
|
|
CreateObject(OBJECT_TYPE_CREATURE, "shaman008", loc, TRUE);
|
|
}
|
|
|
|
// Get average PC level
|
|
int nScaleFactor = GetLocalInt(GetObjectByTag("TrashCan"), "nDifficultylevel");
|
|
|
|
// Spawn in additional creature based on Scalefactor
|
|
|
|
|
|
if(nScaleFactor > 0)
|
|
{
|
|
oCreature = GetObjectByTag("ms_spawnelite8");
|
|
if(!(GetCurrentHitPoints(oCreature) > 0))
|
|
{
|
|
loc = GetLocation(GetObjectByTag("spawnelite8"));
|
|
CreateObject(OBJECT_TYPE_CREATURE, "orcelite008", loc, TRUE);
|
|
}
|
|
}
|
|
|
|
if(nScaleFactor == 0)
|
|
{
|
|
oCreature = GetObjectByTag("ms_spawnchamp8");
|
|
if(!(GetCurrentHitPoints(oCreature) > 0))
|
|
{
|
|
loc = GetLocation(GetObjectByTag("spawnchamp8"));
|
|
CreateObject(OBJECT_TYPE_CREATURE, "orcchampion008", loc, TRUE);
|
|
}
|
|
}
|
|
|
|
|
|
}
|
|
}
|
|
|