Re-uploaded instead of migrated
Re-uploaded instead of migrated.
This commit is contained in:
49
_module/nss/pcbanner10.nss
Normal file
49
_module/nss/pcbanner10.nss
Normal file
@@ -0,0 +1,49 @@
|
||||
// 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, "hordebanner010", loc, TRUE);
|
||||
|
||||
// Respawn Outpost dependent creatures if not already alive
|
||||
object oPrimaryNPC = GetObjectByTag("Henrick");
|
||||
if(!(GetLocalInt(oPrimaryNPC, "nWarlordDead") == 1))
|
||||
{
|
||||
object oCreature = GetObjectByTag("ms_spawnshaman10");
|
||||
if(!(GetCurrentHitPoints(oCreature) > 0))
|
||||
{
|
||||
loc = GetLocation(GetObjectByTag("spawnshaman10"));
|
||||
CreateObject(OBJECT_TYPE_CREATURE, "shaman010", 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_spawnelite10");
|
||||
if(!(GetCurrentHitPoints(oCreature) > 0))
|
||||
{
|
||||
loc = GetLocation(GetObjectByTag("spawnelite10"));
|
||||
CreateObject(OBJECT_TYPE_CREATURE, "orcelite010", loc, TRUE);
|
||||
}
|
||||
}
|
||||
|
||||
if(nScaleFactor == 0)
|
||||
{
|
||||
oCreature = GetObjectByTag("ms_spawnchamp10");
|
||||
if(!(GetCurrentHitPoints(oCreature) > 0))
|
||||
{
|
||||
loc = GetLocation(GetObjectByTag("spawnchamp10"));
|
||||
CreateObject(OBJECT_TYPE_CREATURE, "orcchampion010", loc, TRUE);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user