@Override public boolean testImpl(L2Character effector, L2Character effected, Skill skill, L2Item item) { if (effector.getActingPlayer() == null) { return false; } for (L2ZoneType zone : ZoneManager.getInstance().getZones(effector)) { if (_zones.contains(zone.getId())) { return true; } } return false; }
@Override public String onEnterZone(L2Character character, L2ZoneType zone) { if ((character instanceof L2PcInstance) && !character.isDead() && !character.isTeleporting() && ((L2PcInstance) character).isOnline()) { final InstanceWorld tmpworld = InstanceManager.getInstance().getWorld(character.getInstanceId()); if (tmpworld instanceof NornilsWorld) { for (int _auto[] : _auto_gates) { if (zone.getId() == _auto[0]) { openDoor(_auto[1], tmpworld.getInstanceId()); } if (zone.getId() == 20111) { spawn3(character); } else if (zone.getId() == 20112) { spawn4(character); } } } } return super.onEnterZone(character, zone); }