int x = rset.getInt("locx");
int y = rset.getInt("locy");
int z = rset.getInt("locz");
int h = rset.getInt("heading");
template = new SpawnTemplate(PeriodOfDay.NONE, count, delay, delay_rnd);
template.addNpc(new SpawnNpcInfo(npcId, 1, StatsSet.EMPTY));
template.addSpawnRange(new Location(x, y, z, h));
SpawnHolder.getInstance().addSpawn(PeriodOfDay.NONE.name(), template);
}
}
catch (Exception e1)