Re-uploaded instead of migrated

Re-uploaded instead of migrated.
This commit is contained in:
Jaysyn904
2024-08-03 15:05:13 -04:00
parent 53776f5b96
commit defc8f9f6d
934 changed files with 643472 additions and 0 deletions

50
_module/nss/pcbanner9.nss Normal file
View File

@@ -0,0 +1,50 @@
// 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, "hordebanner009", loc, TRUE);
// Respawn Outpost dependent creatures if not already alive
object oPrimaryNPC = GetObjectByTag("Henrick");
if(!(GetLocalInt(oPrimaryNPC, "nWarlordDead") == 1))
{
object oCreature = GetObjectByTag("ms_spawnshaman9");
if(!(GetCurrentHitPoints(oCreature) > 0))
{
loc = GetLocation(GetObjectByTag("spawnshaman9"));
CreateObject(OBJECT_TYPE_CREATURE, "shaman009", 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_spawnelite9");
if(!(GetCurrentHitPoints(oCreature) > 0))
{
loc = GetLocation(GetObjectByTag("spawnelite9"));
CreateObject(OBJECT_TYPE_CREATURE, "orcelite009", loc, TRUE);
}
}
if(nScaleFactor == 0)
{
oCreature = GetObjectByTag("ms_spawnchamp9");
if(!(GetCurrentHitPoints(oCreature) > 0))
{
loc = GetLocation(GetObjectByTag("spawnchamp9"));
CreateObject(OBJECT_TYPE_CREATURE, "orcchampion009", loc, TRUE);
}
}
}
}