32 lines
1002 B
Plaintext
32 lines
1002 B
Plaintext
|
void main()
|
||
|
{
|
||
|
object oHalyar = GetObjectByTag("Halyar");
|
||
|
|
||
|
if (GetIsInCombat(oHalyar) == TRUE)
|
||
|
{
|
||
|
int nIncrement = GetLocalInt(OBJECT_SELF, "SpawnTimer");
|
||
|
int nTimeSet = nIncrement + 1;
|
||
|
SetLocalInt(OBJECT_SELF, "SpawnTimer", nTimeSet);
|
||
|
|
||
|
if (GetLocalInt(OBJECT_SELF, "SpawnTimer") >= 5)
|
||
|
{
|
||
|
CreateObject(OBJECT_TYPE_CREATURE, "HurLoyalist",
|
||
|
GetLocation(GetNearestObjectByTag("HurWar1")));
|
||
|
CreateObject(OBJECT_TYPE_CREATURE, "HurLoyalist",
|
||
|
GetLocation(GetNearestObjectByTag("HurWar2")));
|
||
|
ActionWait(3.0);
|
||
|
CreateObject(OBJECT_TYPE_CREATURE, "HurLoyalist",
|
||
|
GetLocation(GetNearestObjectByTag("HurWar3")));
|
||
|
ActionWait(1.5);
|
||
|
CreateObject(OBJECT_TYPE_CREATURE, "SilianHurAxeman",
|
||
|
GetLocation(GetNearestObjectByTag("HurWar4")));
|
||
|
ActionWait(1.0);
|
||
|
CreateObject(OBJECT_TYPE_CREATURE, "HurLoyalist",
|
||
|
GetLocation(GetNearestObjectByTag("HurWar5")));
|
||
|
CreateObject(OBJECT_TYPE_CREATURE, "HurLoyalist",
|
||
|
GetLocation(GetNearestObjectByTag("HurWar6")));
|
||
|
SetLocalInt(OBJECT_SELF, "SpawnTimer", 0);
|
||
|
}
|
||
|
}
|
||
|
}
|