* @param player Player
*/
@Override
public void onEvtTwiceClick(final Player player)
{
final DoorInstance door = getActor();
if (door.getReflection().isDefault())
{
return;
}
if (!ArrayUtils.contains(ssqDoors, door.getDoorId()))
{
return;
}
if (!player.isInRange(door, 150))
{
return;
}
switch (door.getDoorId())
{
case 17240102:
for (NpcInstance n : door.getReflection().getNpcs())
{
if (room1.isInside(n.getX(), n.getY(), n.getZ()) && !n.isDead())
{
return;
}
}
break;
case 17240104:
for (NpcInstance n : door.getReflection().getNpcs())
{
if (room2.isInside(n.getX(), n.getY(), n.getZ()) && !n.isDead())
{
return;
}
}
break;
case 17240106:
for (NpcInstance n : door.getReflection().getNpcs())
{
if (room3.isInside(n.getX(), n.getY(), n.getZ()) && !n.isDead())
{
return;
}
}
break;
case 17240108:
for (NpcInstance n : door.getReflection().getNpcs())
{
if (room4.isInside(n.getX(), n.getY(), n.getZ()) && !n.isDead())
{
return;
}
}
break;
case 17240110:
for (NpcInstance n : door.getReflection().getNpcs())
{
if (room5.isInside(n.getX(), n.getY(), n.getZ()) && !n.isDead())
{
return;
}
}
break;
}
door.getReflection().openDoor(door.getDoorId());
}