actor.broadcastPacket(new ExShowScreenMessage("Войны выходите. Защитите Seed of Destruction.", 3000, ScreenMessageAlign.MIDDLE_CENTER, false));
Reflection r = actor.getReflection();
for(int index = 0; index < TRAPS_COUNT; index++)
{
// Не спауним ловушки, если они уже есть в том месте
L2MonsterInstance oldTrap = null;
if(index < _traps.size())
{
oldTrap = _traps.get(index);
}
if(oldTrap != null && !oldTrap.isDead())
{
continue;
}
L2MonsterInstance trap = new L2MonsterInstance(IdFactory.getInstance().getNextId(), NpcTable.getTemplate(TRAP_NPC_ID));
trap.setSpawnedLoc(TRAP_LOCS[index]);
trap.setReflection(r);
trap.onSpawn();
trap.spawnMe(trap.getSpawnedLoc());
r.addSpawn(trap.getSpawn());
if(index < _traps.size())
{
_traps.remove(index);
}
_traps.add(index, trap);