Package lineage2.gameserver.model

Examples of lineage2.gameserver.model.Zone$ZoneListenerList


   * Method init.
   */
  private void init()
  {
    _zoneListener = new ZoneListener();
    Zone zone = ReflectionUtils.getZone(ZONE_NAME);
    if (zone != null)
    {
      zone.addListener(_zoneListener);
    }
  }
View Full Code Here


  private void init()
  {
    _zoneListener = new ZoneListener();
    for (String s : zones)
    {
      Zone zone = ReflectionUtils.getZone(s);
      zone.addListener(_zoneListener);
    }
  }
View Full Code Here

  public void onLoad()
  {
    _zoneListener = new ZoneListener();
    for (String s : zones)
    {
      Zone zone = ReflectionUtils.getZone(s);
      zone.addListener(_zoneListener);
    }
  }
View Full Code Here

  private static int _RED = 262003;

  private void init()
  {
    _zoneListener = new ZoneListener();
    Zone zone = ReflectionUtils.getZone(TELEPORT_ZONE_NAME);
    zone.addListener(_zoneListener);
  }
View Full Code Here

    _zoneListener = new ZoneListener();
    if ((_teleportZones != null) && !_teleportZones.isEmpty())
    {
      for (String s : _teleportZones.keySet())
      {
        Zone zone = ReflectionUtils.getZone(s);
        zone.addListener(_zoneListener);
      }
    }
    _regionsData[0] = new SeedRegion(new String[]
    {
      "[14_23_beastacon_for_melee_for_pc]",
View Full Code Here

   * @param zoneName String
   * @param val boolean
   */
  void chanceZoneActive(String zoneName, boolean val)
  {
    Zone zone = ReflectionUtils.getZone(zoneName);
    zone.setActive(val);
  }
View Full Code Here

  {
    _zoneListener = new ZoneListener();

    for(String s : zones)
    {
      Zone zone = ReflectionUtils.getZone(s);
      zone.addListener(_zoneListener);
    }
  }
View Full Code Here

    {
      _zones = new HashMap<>(zones.size());
    }
    for (ZoneTemplate template : zones.values())
    {
      Zone zone = new Zone(template);
      zone.setReflection(this);
      switch (zone.getType())
      {
        case no_landing:
        case SIEGE:
          zone.addListener(NoLandingZoneListener.STATIC);
          break;
        case AirshipController:
          zone.addListener(new AirshipControllerZoneListener());
          break;
        case RESIDENCE:
          zone.addListener(ResidenceEnterLeaveListenerImpl.STATIC);
          break;
        default:
          break;
      }
      if (template.isEnabled())
      {
        zone.setActive(true);
      }
      _zones.put(template.getName(), zone);
    }
  }
View Full Code Here

    {
      _zones = new HashMap<>(zones.size());
    }
    for (InstantZone.ZoneInfo t : zones.values())
    {
      Zone zone = new Zone(t.getTemplate());
      zone.setReflection(this);
      switch (zone.getType())
      {
        case no_landing:
        case SIEGE:
          zone.addListener(NoLandingZoneListener.STATIC);
          break;
        case AirshipController:
          zone.addListener(new AirshipControllerZoneListener());
          break;
        case RESIDENCE:
          zone.addListener(ResidenceEnterLeaveListenerImpl.STATIC);
          break;
        default:
          break;
      }
      if (t.isActive())
      {
        zone.setActive(true);
      }
      _zones.put(t.getTemplate().getName(), zone);
    }
  }
View Full Code Here

    if ((lure == null) || (lure.getCount() < 1))
    {
      player.sendPacket(Msg.BAITS_ARE_NOT_PUT_ON_A_HOOK);
      return;
    }
    Zone zone = player.getZone(ZoneType.FISHING);
    if (zone == null)
    {
      return;
    }
    zone.getParams().getInteger("distribution_id");
    int lureId = lure.getItemId();
    int group = lineage2.gameserver.model.Fishing.getFishGroup(lure.getItemId());
    int type = lineage2.gameserver.model.Fishing.getRandomFishType(lureId);
    int lvl = lineage2.gameserver.model.Fishing.getRandomFishLvl(player);
    List<FishTemplate> fishs = FishTable.getInstance().getFish(group, type, lvl);
View Full Code Here

TOP

Related Classes of lineage2.gameserver.model.Zone$ZoneListenerList

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.