@Override
protected void onEvtSpawn()
{
if (!is_private && !spawnActivated)
{
spawnActivated = true;
final L2NpcInstance actor = getActor();
final Location spawnLoc = actor.getSpawnedLoc().correctGeoZ();
final int i0 = Rnd.get(9);
if (i0 == 0)
{
//actor.teleToLocation(actor.getLoc());
//InstantTeleport(myself.sm, spawnLoc.x, spawnLoc.y, spawnLoc.z);
CreateOnePrivateEx(actor, silhouette, spawnLoc.x - 85, spawnLoc.y - 60, spawnLoc.z);
CreateOnePrivateEx(actor, silhouette, spawnLoc.x, spawnLoc.y - 120, spawnLoc.z);
CreateOnePrivateEx(actor, silhouette, spawnLoc.x + 85, spawnLoc.y - 60, spawnLoc.z);
CreateOnePrivateEx(actor, silhouette, spawnLoc.x - 120, spawnLoc.y, spawnLoc.z);
CreateOnePrivateEx(actor, silhouette, spawnLoc.x + 120, spawnLoc.y, spawnLoc.z);
CreateOnePrivateEx(actor, silhouette, spawnLoc.x - 85, spawnLoc.y + 60, spawnLoc.z);
CreateOnePrivateEx(actor, silhouette, spawnLoc.x, spawnLoc.y + 120, spawnLoc.z);
CreateOnePrivateEx(actor, silhouette, spawnLoc.x + 85, spawnLoc.y + 60, spawnLoc.z);
}
else if (i0 == 1)
{
actor.teleToLocation(spawnLoc.x - 85, spawnLoc.y - 60, spawnLoc.z);
actor.setSpawnedLoc(actor.getLoc());
CreateOnePrivateEx(actor, silhouette, spawnLoc.x, spawnLoc.y - 120, spawnLoc.z);
CreateOnePrivateEx(actor, silhouette, spawnLoc.x + 85, spawnLoc.y - 60, spawnLoc.z);
CreateOnePrivateEx(actor, silhouette, spawnLoc.x - 120, spawnLoc.y, spawnLoc.z);
CreateOnePrivateEx(actor, silhouette, spawnLoc.x, spawnLoc.y, spawnLoc.z);
CreateOnePrivateEx(actor, silhouette, spawnLoc.x + 120, spawnLoc.y, spawnLoc.z);
CreateOnePrivateEx(actor, silhouette, spawnLoc.x - 85, spawnLoc.y + 60, spawnLoc.z);
CreateOnePrivateEx(actor, silhouette, spawnLoc.x, spawnLoc.y + 120, spawnLoc.z);
CreateOnePrivateEx(actor, silhouette, spawnLoc.x + 85, spawnLoc.y + 60, spawnLoc.z);
}
else if (i0 == 2)
{
actor.teleToLocation(spawnLoc.x, spawnLoc.y - 120, spawnLoc.z);
actor.setSpawnedLoc(actor.getLoc());
CreateOnePrivateEx(actor, silhouette, spawnLoc.x - 85, spawnLoc.y - 60, spawnLoc.z);
CreateOnePrivateEx(actor, silhouette, spawnLoc.x + 85, spawnLoc.y - 60, spawnLoc.z);
CreateOnePrivateEx(actor, silhouette, spawnLoc.x - 120, spawnLoc.y, spawnLoc.z);
CreateOnePrivateEx(actor, silhouette, spawnLoc.x, spawnLoc.y, spawnLoc.z);
CreateOnePrivateEx(actor, silhouette, spawnLoc.x + 120, spawnLoc.y, spawnLoc.z);
CreateOnePrivateEx(actor, silhouette, spawnLoc.x - 85, spawnLoc.y + 60, spawnLoc.z);
CreateOnePrivateEx(actor, silhouette, spawnLoc.x, spawnLoc.y + 120, spawnLoc.z);
CreateOnePrivateEx(actor, silhouette, spawnLoc.x + 85, spawnLoc.y + 60, spawnLoc.z);
}
else if (i0 == 3)
{
actor.teleToLocation(spawnLoc.x + 85, spawnLoc.y - 60, spawnLoc.z);
actor.setSpawnedLoc(actor.getLoc());
CreateOnePrivateEx(actor, silhouette, spawnLoc.x - 85, spawnLoc.y - 60, spawnLoc.z);
CreateOnePrivateEx(actor, silhouette, spawnLoc.x, spawnLoc.y - 120, spawnLoc.z);
CreateOnePrivateEx(actor, silhouette, spawnLoc.x - 120, spawnLoc.y, spawnLoc.z);
CreateOnePrivateEx(actor, silhouette, spawnLoc.x, spawnLoc.y, spawnLoc.z);
CreateOnePrivateEx(actor, silhouette, spawnLoc.x + 120, spawnLoc.y, spawnLoc.z);
CreateOnePrivateEx(actor, silhouette, spawnLoc.x - 85, spawnLoc.y + 60, spawnLoc.z);
CreateOnePrivateEx(actor, silhouette, spawnLoc.x, spawnLoc.y + 120, spawnLoc.z);
CreateOnePrivateEx(actor, silhouette, spawnLoc.x + 85, spawnLoc.y + 60, spawnLoc.z);
}
else if (i0 == 4)
{
actor.teleToLocation(spawnLoc.x - 120, spawnLoc.y, spawnLoc.z);
actor.setSpawnedLoc(actor.getLoc());
CreateOnePrivateEx(actor, silhouette, spawnLoc.x - 85, spawnLoc.y - 60, spawnLoc.z);
CreateOnePrivateEx(actor, silhouette, spawnLoc.x, spawnLoc.y - 120, spawnLoc.z);
CreateOnePrivateEx(actor, silhouette, spawnLoc.x + 85, spawnLoc.y - 60, spawnLoc.z);
CreateOnePrivateEx(actor, silhouette, spawnLoc.x, spawnLoc.y, spawnLoc.z);
CreateOnePrivateEx(actor, silhouette, spawnLoc.x + 120, spawnLoc.y, spawnLoc.z);
CreateOnePrivateEx(actor, silhouette, spawnLoc.x - 85, spawnLoc.y + 60, spawnLoc.z);
CreateOnePrivateEx(actor, silhouette, spawnLoc.x, spawnLoc.y + 120, spawnLoc.z);
CreateOnePrivateEx(actor, silhouette, spawnLoc.x + 85, spawnLoc.y + 60, spawnLoc.z);
}
else if (i0 == 5)
{
actor.teleToLocation(spawnLoc.x + 120, spawnLoc.y, spawnLoc.z);
actor.setSpawnedLoc(actor.getLoc());
CreateOnePrivateEx(actor, silhouette, spawnLoc.x - 85, spawnLoc.y - 60, spawnLoc.z);
CreateOnePrivateEx(actor, silhouette, spawnLoc.x, spawnLoc.y - 120, spawnLoc.z);
CreateOnePrivateEx(actor, silhouette, spawnLoc.x + 85, spawnLoc.y - 60, spawnLoc.z);
CreateOnePrivateEx(actor, silhouette, spawnLoc.x - 120, spawnLoc.y, spawnLoc.z);
CreateOnePrivateEx(actor, silhouette, spawnLoc.x, spawnLoc.y, spawnLoc.z);
CreateOnePrivateEx(actor, silhouette, spawnLoc.x - 85, spawnLoc.y + 60, spawnLoc.z);
CreateOnePrivateEx(actor, silhouette, spawnLoc.x, spawnLoc.y + 120, spawnLoc.z);
CreateOnePrivateEx(actor, silhouette, spawnLoc.x + 85, spawnLoc.y + 60, spawnLoc.z);
}
else if (i0 == 6)
{
actor.teleToLocation(spawnLoc.x - 85, spawnLoc.y + 60, spawnLoc.z);
actor.setSpawnedLoc(actor.getLoc());
CreateOnePrivateEx(actor, silhouette, spawnLoc.x - 85, spawnLoc.y - 60, spawnLoc.z);
CreateOnePrivateEx(actor, silhouette, spawnLoc.x, spawnLoc.y - 120, spawnLoc.z);
CreateOnePrivateEx(actor, silhouette, spawnLoc.x + 85, spawnLoc.y - 60, spawnLoc.z);
CreateOnePrivateEx(actor, silhouette, spawnLoc.x - 120, spawnLoc.y, spawnLoc.z);
CreateOnePrivateEx(actor, silhouette, spawnLoc.x, spawnLoc.y, spawnLoc.z);
CreateOnePrivateEx(actor, silhouette, spawnLoc.x + 120, spawnLoc.y, spawnLoc.z);
CreateOnePrivateEx(actor, silhouette, spawnLoc.x, spawnLoc.y + 120, spawnLoc.z);
CreateOnePrivateEx(actor, silhouette, spawnLoc.x + 85, spawnLoc.y + 60, spawnLoc.z);
}
else if (i0 == 7)
{
actor.teleToLocation(spawnLoc.x, spawnLoc.y + 120, spawnLoc.z);
actor.setSpawnedLoc(actor.getLoc());
CreateOnePrivateEx(actor, silhouette, spawnLoc.x - 85, spawnLoc.y - 60, spawnLoc.z);
CreateOnePrivateEx(actor, silhouette, spawnLoc.x, spawnLoc.y - 120, spawnLoc.z);
CreateOnePrivateEx(actor, silhouette, spawnLoc.x + 85, spawnLoc.y - 60, spawnLoc.z);
CreateOnePrivateEx(actor, silhouette, spawnLoc.x - 120, spawnLoc.y, spawnLoc.z);
CreateOnePrivateEx(actor, silhouette, spawnLoc.x, spawnLoc.y, spawnLoc.z);
CreateOnePrivateEx(actor, silhouette, spawnLoc.x + 120, spawnLoc.y, spawnLoc.z);
CreateOnePrivateEx(actor, silhouette, spawnLoc.x - 85, spawnLoc.y + 60, spawnLoc.z);
CreateOnePrivateEx(actor, silhouette, spawnLoc.x + 85, spawnLoc.y + 60, spawnLoc.z);
}
else
{
actor.teleToLocation(spawnLoc.x + 85, spawnLoc.y + 60, spawnLoc.z);
actor.setSpawnedLoc(actor.getLoc());
CreateOnePrivateEx(actor, silhouette, spawnLoc.x - 85, spawnLoc.y - 60, spawnLoc.z);
CreateOnePrivateEx(actor, silhouette, spawnLoc.x, spawnLoc.y - 120, spawnLoc.z);
CreateOnePrivateEx(actor, silhouette, spawnLoc.x + 85, spawnLoc.y - 60, spawnLoc.z);
CreateOnePrivateEx(actor, silhouette, spawnLoc.x - 120, spawnLoc.y, spawnLoc.z);
CreateOnePrivateEx(actor, silhouette, spawnLoc.x, spawnLoc.y, spawnLoc.z);
CreateOnePrivateEx(actor, silhouette, spawnLoc.x + 120, spawnLoc.y, spawnLoc.z);
CreateOnePrivateEx(actor, silhouette, spawnLoc.x - 85, spawnLoc.y + 60, spawnLoc.z);
CreateOnePrivateEx(actor, silhouette, spawnLoc.x, spawnLoc.y + 120, spawnLoc.z);
}
}
super.onEvtSpawn();
}