{
return;
}
for (InstantZone.SpawnInfo s : si)
{
SimpleSpawner c;
switch (s.getSpawnType())
{
case 0:
for (Location loc : s.getCoords())
{
c = new SimpleSpawner(s.getNpcId());
c.setReflection(this);
c.setRespawnDelay(s.getRespawnDelay(), s.getRespawnRnd());
c.setAmount(s.getCount());
c.setLoc(loc);
c.doSpawn(true);
if (s.getRespawnDelay() == 0)
{
c.stopRespawn();
}
else
{
c.startRespawn();
}
addSpawn(c);
}
break;
case 1:
c = new SimpleSpawner(s.getNpcId());
c.setReflection(this);
c.setRespawnDelay(s.getRespawnDelay(), s.getRespawnRnd());
c.setAmount(1);
c.setLoc(s.getCoords().get(Rnd.get(s.getCoords().size())));
c.doSpawn(true);
if (s.getRespawnDelay() == 0)
{
c.stopRespawn();
}
else
{
c.startRespawn();
}
addSpawn(c);
break;
case 2:
c = new SimpleSpawner(s.getNpcId());
c.setReflection(this);
c.setRespawnDelay(s.getRespawnDelay(), s.getRespawnRnd());
c.setAmount(s.getCount());
c.setTerritory(s.getLoc());
for (int j = 0; j < s.getCount(); j++)
{
c.doSpawn(true);
}
if (s.getRespawnDelay() == 0)
{
c.stopRespawn();
}
else
{
c.startRespawn();
}
addSpawn(c);
}
}
}