Package com.l2jfrozen.gameserver.model.zone.type

Examples of com.l2jfrozen.gameserver.model.zone.type.L2WaterZone


                {
                  temp = new L2DerbyTrackZone(zoneId);
                }
                else if(zoneType.equals("WaterZone"))
                {
                  temp = new L2WaterZone(zoneId);
                }
                else if(zoneType.equals("NoHqZone"))
                {
                  temp = new L2NoHqZone(zoneId);
                }
View Full Code Here


     * position the hook on the water surface. If not, you have to be GM to
     * proceed past here... in that case, the hook will be positioned using
     * the old Z lookup method.
     */
    L2FishingZone aimingTo = FishingZoneManager.getInstance().isInsideFishingZone(x, y, z);
    L2WaterZone water = FishingZoneManager.getInstance().isInsideWaterZone(x, y, z);
    if(aimingTo != null && water != null && (GeoData.getInstance().canSeeTarget(player.getX(), player.getY(), player.getZ() + 50, x, y, water.getWaterZ() - 50)))
    {
      z = water.getWaterZ() + 10;
      // player.sendMessage("Hook x,y: " + x + "," + y + " - Water Z,
      // Player Z:" + z + ", " + player.getZ()); //debug line, shows hook
      // landing related coordinates. Uncoment if needed.
    }
    else if(aimingTo != null && water != null && GeoData.getInstance().canSeeTarget(player.getX(), player.getY(), player.getZ() + 50, x, y, water.getWaterZ() - 50))
      z = aimingTo.getWaterZ() + 10;
    else
    {
      //You can't fish here
      player.sendPacket(new SystemMessage(SystemMessageId.BAIT_ON_HOOK_BEFORE_FISHING));
View Full Code Here

TOP

Related Classes of com.l2jfrozen.gameserver.model.zone.type.L2WaterZone

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.