Amon_PRC8/_module/nss/hurwarspawn.nss

103 lines
3.8 KiB
Plaintext
Raw Permalink Normal View History

2025-04-03 19:00:46 -04:00
//::///////////////////////////////////////////////
//:: NW_O2_SKELETON.nss
//:: Copyright (c) 2001 Bioware Corp.
void ActionCreate(string sCreature, location lLoc)
{
CreateObject(OBJECT_TYPE_CREATURE, sCreature, lLoc);
}
void main()
{
object oCreature = GetNearestCreature(CREATURE_TYPE_PLAYER_CHAR, PLAYER_CHAR_IS_PC);
if (GetLocalInt(OBJECT_SELF, "DoOnce")==0)
{
if (GetIsObjectValid(oCreature) == TRUE && GetDistanceToObject(oCreature) < 10.0)
{
SetLocalInt(OBJECT_SELF, "DoOnce", 1);
location lLoc1 = GetLocation(GetWaypointByTag("HurWar1"));
location lLoc2 = GetLocation(GetWaypointByTag("HurWar2"));
location lLoc3 = GetLocation(GetWaypointByTag("HurWar3"));
location lLoc4 = GetLocation(GetWaypointByTag("HurWar4"));
location lLoc5 = GetLocation(GetWaypointByTag("HurWar5"));
location lLoc6 = GetLocation(GetWaypointByTag("HurWar6"));
location lLoc7 = GetLocation(GetWaypointByTag("HurWar7"));
location lLoc8 = GetLocation(GetWaypointByTag("HurWar8"));
location lLoc9 = GetLocation(GetWaypointByTag("HurWar9"));
location lLoc10 = GetLocation(GetWaypointByTag("HurWar10"));
location lLoc11 = GetLocation(GetWaypointByTag("HurWar11"));
location lLoc12 = GetLocation(GetWaypointByTag("HurWar12"));
location lLoc13 = GetLocation(GetWaypointByTag("HurWar13"));
location lLoc14 = GetLocation(GetWaypointByTag("HurWar14"));
location lLoc15 = GetLocation(GetWaypointByTag("HurWar15"));
location lLoc16 = GetLocation(GetWaypointByTag("HurWar16"));
location lLoc17 = GetLocation(GetWaypointByTag("HurWar17"));
location lLoc18 = GetLocation(GetWaypointByTag("HurWar18"));
string sCreature = "SilianHurAxeman";
DelayCommand(2.1, ActionCreate(sCreature, lLoc7));
DelayCommand(2.2, ActionCreate(sCreature, lLoc8));
DelayCommand(2.4, ActionCreate(sCreature, lLoc9));
DelayCommand(2.6, ActionCreate(sCreature, lLoc10));
DelayCommand(3.0, ActionCreate(sCreature, lLoc12));
DelayCommand(5.2, ActionCreate(sCreature, lLoc11));
sCreature = "HraskiWarrior1";
DelayCommand(3.7, ActionCreate(sCreature, lLoc15));
DelayCommand(3.6, ActionCreate(sCreature, lLoc15));
DelayCommand(5.0, ActionCreate(sCreature, lLoc10));
sCreature = "HurLoyalist";
DelayCommand(3.2, ActionCreate(sCreature, lLoc13));
DelayCommand(3.4, ActionCreate(sCreature, lLoc14));
DelayCommand(5.6, ActionCreate(sCreature, lLoc13));
DelayCommand(5.8, ActionCreate(sCreature, lLoc14));
DelayCommand(6.0, ActionCreate(sCreature, lLoc15));
sCreature = "HraskiWarrior2";
DelayCommand(3.8, ActionCreate(sCreature, lLoc16));
DelayCommand(3.9, ActionCreate(sCreature, lLoc16));
DelayCommand(4.3, ActionCreate(sCreature, lLoc18));
sCreature = "HraskiWarrior3";
DelayCommand(5.4, ActionCreate(sCreature, lLoc12));
DelayCommand(4.1, ActionCreate(sCreature, lLoc17));
DelayCommand(4.0, ActionCreate(sCreature, lLoc17));
sCreature = "HraskiBannerman";
DelayCommand(4.2, ActionCreate(sCreature, lLoc18));
sCreature = "RhutishanLord";
DelayCommand(2.8, ActionCreate(sCreature, lLoc11));
sCreature = "RhutishanOrc";
DelayCommand(4.4, ActionCreate(sCreature, lLoc7));
DelayCommand(4.6, ActionCreate(sCreature, lLoc8));
DelayCommand(4.8, ActionCreate(sCreature, lLoc9));
sCreature = "RedHandWizard001";
DelayCommand(1.8, ActionCreate(sCreature, lLoc6));
DelayCommand(0.3, ActionCreate(sCreature, lLoc1));
DelayCommand(0.9, ActionCreate(sCreature, lLoc3));
sCreature = "ForestOgre";
DelayCommand(0.6, ActionCreate(sCreature, lLoc2));
DelayCommand(1.2, ActionCreate(sCreature, lLoc4));
DelayCommand(1.5, ActionCreate(sCreature, lLoc5));
SetPlotFlag(OBJECT_SELF, FALSE);
DelayCommand(6.5, ExecuteScript("killself", OBJECT_SELF));
}
}
}