Package com.l2jfrozen.util

Examples of com.l2jfrozen.util.Point3D


    if (player.isInBoat())
    {
      if (player.getBoat().getObjectId() == _boatId)
      {
        player.setInBoatPosition(new Point3D(_x, _y, _z));
        player.getPosition().setHeading(_heading);
        player.broadcastPacket(new StopMoveInVehicle(player, _boatId));
      }
    }
  }
View Full Code Here


    // Get the L2Skill template corresponding to the skillID received from the client
    L2Skill skill = SkillTable.getInstance().getInfo(_skillId, level);

    if(skill != null)
    {
      activeChar.setCurrentSkillWorldPosition(new Point3D(_x, _y, _z));

      // normally magicskilluse packet turns char client side but for these skills, it doesn't (even with correct target)
      activeChar.setHeading(Util.calculateHeadingFrom(activeChar.getX(), activeChar.getY(), _x , _y));
      activeChar.broadcastPacket(new ValidateLocation(activeChar));
      activeChar.useMagic(skill, _ctrlPressed, _shiftPressed);
View Full Code Here

      L2WorldRegion region = getWorldRegion();
      if (region == null) return;
      boolean canCast = true;
      if (skill.getTargetType() == SkillTargetType.TARGET_GROUND && this instanceof L2PcInstance)
      {
        Point3D wp = ((L2PcInstance) this).getCurrentSkillWorldPosition();
        if (!region.checkEffectRangeInsidePeaceZone(skill, wp.getX(), wp.getY(), wp.getZ()))
          canCast = false;
      }
      else if (!region.checkEffectRangeInsidePeaceZone(skill, getX(), getY(), getZ()))
        canCast = false;
      if (!canCast)
View Full Code Here

    L2BoatInstance boat = BoatManager.getInstance().GetBoat(_id);
    if(boat == null)
      return;

    GetOnVehicle Gon = new GetOnVehicle(activeChar, boat, _x, _y, _z);
    activeChar.setInBoatPosition(new Point3D(_x, _y, _z));
    activeChar.getPosition().setXYZ(boat.getPosition().getX(), boat.getPosition().getY(), boat.getPosition().getZ());
    activeChar.broadcastPacket(Gon);
    activeChar.revalidateZone(true);

  }
View Full Code Here

      if(!cw.isActive())
      {
        continue;
      }

      Point3D pos = cw.getWorldPosition();

      if(pos != null)
      {
        list.add(new CursedWeaponInfo(pos, cw.getItemId(), cw.isActivated() ? 1 : 0));
      }
View Full Code Here

    int y = caster.getY();
    int z = caster.getZ();
   
    if (caster instanceof L2PcInstance && getTargetType() == L2Skill.SkillTargetType.TARGET_GROUND)
    {
      Point3D wordPosition = ((L2PcInstance) caster).getCurrentSkillWorldPosition();
     
      if (wordPosition != null)
      {
        x = wordPosition.getX();
        y = wordPosition.getY();
        z = wordPosition.getZ();
      }
    }
    getEffects(caster, effectPoint, false, false, false);
   
    effectPoint.setIsInvul(true);
View Full Code Here

   */
  public final Point3D getWorldPosition()
  {
    if(_worldPosition == null)
    {
      _worldPosition = new Point3D(0, 0, 0);
    }

    return _worldPosition;
  }
View Full Code Here

    int y = getEffector().getY();
    int z = getEffector().getZ();

    if(getEffector() instanceof L2PcInstance && getSkill().getTargetType() == L2Skill.SkillTargetType.TARGET_GROUND)
    {
      Point3D wordPosition = ((L2PcInstance) getEffector()).getCurrentSkillWorldPosition();

      if(wordPosition != null)
      {
        x = wordPosition.getX();
        y = wordPosition.getY();
        z = wordPosition.getZ();
      }
    }
    effectPoint.setIsInvul(true);
    effectPoint.spawnMe(x, y, z);
View Full Code Here

   *
   * @return the home
   */
  public Point3D getHome()
  {
    return new Point3D(_homeX, _homeY, _homeZ);
  }
View Full Code Here

        sendPacket(ActionFailed.STATIC_PACKET);
        return;
      }
    }

    final Point3D worldPosition = getCurrentSkillWorldPosition();

    if(sklTargetType == SkillTargetType.TARGET_GROUND && worldPosition == null)
    {
      _log.info("WorldPosition is null for skill: " + skill.getName() + ", player: " + getName() + ".");
      sendPacket(ActionFailed.STATIC_PACKET);
View Full Code Here

TOP

Related Classes of com.l2jfrozen.util.Point3D

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.