#include "nw_i0_2q4luskan"
void main()
{
if (GetLocalInt(OBJECT_SELF, "Spectate Colosseum Go")== 0)
return;
if (GetLocalInt(OBJECT_SELF, "Gladiators In Game")!= 0)
return;
object oTarget;
location lTarget;oTarget = GetObjectByTag("NorthGameEntrance");
SetLocked(oTarget, FALSE);
AssignCommand(oTarget, ActionOpenDoor(oTarget));
oTarget = GetObjectByTag("SouthGameEntrance");
SetLocked(oTarget, FALSE);
AssignCommand(oTarget, ActionOpenDoor(oTarget));
switch( Random( 4 ))
{ case 0: SetLocalInt(OBJECT_SELF, "Gladiators In Game", 4);
//location lTarget; oTarget = GetWaypointByTag("NorthColosseumSpawn");
lTarget = GetLocation(oTarget);
CreateObject(OBJECT_TYPE_CREATURE, "carpathian", lTarget);
DelayCommand(2.0, CreateObjectVoid(OBJECT_TYPE_CREATURE, "carpathian", lTarget));
oTarget = GetWaypointByTag("SouthColosseumSpawn");
lTarget = GetLocation(oTarget);
CreateObject(OBJECT_TYPE_CREATURE, "sacrentian", lTarget);
DelayCommand(2.0, CreateObjectVoid(OBJECT_TYPE_CREATURE, "sacrentian", lTarget));
break;
case 1: SetLocalInt(OBJECT_SELF, "Gladiators In Game", 4);
//location lTarget;
oTarget = GetWaypointByTag("NorthColosseumSpawn");
lTarget = GetLocation(oTarget);
CreateObject(OBJECT_TYPE_CREATURE, "carpathian", lTarget);
DelayCommand(2.0, CreateObjectVoid(OBJECT_TYPE_CREATURE, "carpathian", lTarget));
oTarget = GetWaypointByTag("SouthColosseumSpawn");
lTarget = GetLocation(oTarget);
CreateObject(OBJECT_TYPE_CREATURE, "Sacrentian", lTarget);
DelayCommand(2.0, CreateObjectVoid(OBJECT_TYPE_CREATURE, "sacrentian", lTarget));
break;
case 2: SetLocalInt(OBJECT_SELF, "Gladiators In Game", 4);
//location lTarget;
oTarget = GetWaypointByTag("NorthColosseumSpawn");
lTarget = GetLocation(oTarget);
CreateObject(OBJECT_TYPE_CREATURE, "carpathian", lTarget);
DelayCommand(2.0, CreateObjectVoid(OBJECT_TYPE_CREATURE, "carpathian", lTarget));
oTarget = GetWaypointByTag("SouthColosseumSpawn");
lTarget = GetLocation(oTarget);
CreateObject(OBJECT_TYPE_CREATURE, "Sacrentian", lTarget);
DelayCommand(2.0, CreateObjectVoid(OBJECT_TYPE_CREATURE, "sacrentian", lTarget));
break;
case 3: SetLocalInt(OBJECT_SELF, "Gladiators In Game", 4);
//location lTarget;
oTarget = GetWaypointByTag("NorthColosseumSpawn");
lTarget = GetLocation(oTarget);
CreateObject(OBJECT_TYPE_CREATURE, "carpathian", lTarget);
DelayCommand(2.0, CreateObjectVoid(OBJECT_TYPE_CREATURE, "carpathian", lTarget));
oTarget = GetWaypointByTag("SouthColosseumSpawn");
lTarget = GetLocation(oTarget);
CreateObject(OBJECT_TYPE_CREATURE, "Sacrentian", lTarget);
DelayCommand(2.0, CreateObjectVoid(OBJECT_TYPE_CREATURE, "sacrentian", lTarget));
break;
}
}
Modifié par Lightfoot8, 09 novembre 2010 - 11:25 .