Examples of FlyToLocation


Examples of l2p.gameserver.serverpackets.FlyToLocation

    {
      Location flyLoc = getFlyLocation(target, skill);
      if(flyLoc != null)
      {
        _flyLoc = flyLoc;
        broadcastPacket(new FlyToLocation(this, flyLoc, skill.getFlyType()));
      }
      else
      {
        sendPacket(Msg.CANNOT_SEE_TARGET);
        return;
View Full Code Here

Examples of l2p.gameserver.serverpackets.FlyToLocation

        for(L2Character target : targets)
        {
          target.setHeading(this, false);
          flyLoc = getFlyLocation(null, skill);
          target.setLoc(flyLoc);
          broadcastPacket(new FlyToLocation(target, flyLoc, skill.getFlyType()));
        }
        break;
      case DUMMY:
      case CHARGE:
        flyLoc = _flyLoc;
View Full Code Here

Examples of l2p.gameserver.serverpackets.FlyToLocation

          double radian = Math.toRadians(angle - 90);
          int x1 = -(int) (Math.sin(radian) * 600);
          int y1 = (int) (Math.cos(radian) * 600);
          Location flyLoc = GeoEngine.moveCheck(player.getX(), player.getY(), player.getZ(), player.getX() + x1, player.getY() + y1, player.getReflection().getGeoIndex());
          player.setLoc(flyLoc);
          player.broadcastPacket(new FlyToLocation(player, flyLoc, FlyType.THROW_HORIZONTAL));
        }
      }
      for(int i = 0; i < _crystaline.length; i++)
      {
        L2NpcInstance npc = _crystaline[i];
View Full Code Here

Examples of lineage2.gameserver.network.serverpackets.FlyToLocation

    if (track == null)
    {
      return;
    }
    Location destLoc = track.getStartLocation();
    activeChar.sendPacket(new FlyToLocation(activeChar, destLoc, FlyToLocation.FlyType.DUMMY, 0));
    JumpWay way = track.getWay(0);
    if (way == null)
    {
      return;
    }
View Full Code Here

Examples of lineage2.gameserver.network.serverpackets.FlyToLocation

        {
          flyLoc = target.getFlyLocation(null, skill);
          if (flyLoc == null)
            _log.warn(skill.getFlyType() + " have null flyLoc.");
          target.setLoc(flyLoc);
          broadcastPacket(new FlyToLocation(target, flyLoc, skill.getFlyType(), 0));
        }
        break;
      // CASTER FLYTYPE
      case CHARGE:
        Location flyLocCharge;
        for(Creature target : targets)
        {
          double radian = PositionUtils.convertHeadingToRadian(this.getHeading());
          flyLocCharge = target.getLoc();
          flyLocCharge.set(flyLocCharge.getX() + (int) (Math.sin(radian) * 40), flyLocCharge.getY() - (int) (Math.cos(radian) * 40), flyLocCharge.getZ());
          setLoc(flyLocCharge);
          broadcastPacket(new FlyToLocation(this, flyLocCharge, skill.getFlyType(), 0));
        }
        break;
      case DUMMY:
      case WARP_BACK:
      case WARP_FORWARD:
        flyLoc = getFlyLocation(null, skill);
        if (flyLoc != null)
        {
          setLoc(flyLoc);
          broadcastPacket(new FlyToLocation(this, flyLoc, skill.getFlyType(), 0));
        }
        else
        {
          sendPacket(SystemMsg.CANNOT_SEE_TARGET);
        }
View Full Code Here

Examples of lineage2.gameserver.network.serverpackets.FlyToLocation

    {
      Location flyLoc = _effected.getFlyLocation(((SymbolInstance) getEffector()).getOwner(), getSkill());
      if (flyLoc == null)
        _log.warn("EffectTargetToOwner Loc null check this!");
      _effected.setLoc(flyLoc);
      _effected.broadcastPacket(new FlyToLocation(_effected, flyLoc, getSkill().getFlyType(), 0));
    }
  }
View Full Code Here

Examples of lineage2.gameserver.network.serverpackets.FlyToLocation

    _loc = GeoEngine.moveCheck(tagetLoc.x, tagetLoc.y, tagetLoc.z, _x, _y, _effected.getGeoIndex());
    if(!_effected.isKnockedBack())
      _effected.startKnockingback();
    if (_loc == null)
      _log.info("EffectKnockBack Loc null check this!");
    _effected.broadcastPacket(new FlyToLocation(_effected, _loc, FlyType.PUSH_HORIZONTAL, getSkill().getFlySpeed()));
    _effected.abortAttack(true, true);
    _effected.abortCast(true, true);
    _effected.setXYZ(_loc.getX(), _loc.getY(), _loc.getZ());
    _effected.broadcastPacket(new ValidateLocation(_effected));
  }
View Full Code Here

Examples of lineage2.gameserver.network.serverpackets.FlyToLocation

   
    _x = loc.getX();
    _y = loc.getY();
    _z = loc.getZ();
   
    _effector.broadcastPacket(new FlyToLocation(_effector, loc, FlyType.DUMMY, getSkill().getFlySpeed()));
    _effector.abortAttack(true, false);
    _effector.abortCast(true, false);
    _effector.setXYZ(_x, _y, _z);
    _effector.setHeading(_effected.getHeading());
    _effector.broadcastPacket(new ValidateLocation(_effector));
View Full Code Here

Examples of lineage2.gameserver.network.serverpackets.FlyToLocation

            {         
          Location flyLoc = _effected.getFlyLocation(getEffector(), getSkill());
          _effected.abortCast(true, true);
          if (flyLoc == null)
            _log.info("EffectTargetToMe Loc null check this!");
          _effected.broadcastPacket(new FlyToLocation(_effected, flyLoc, getSkill().getFlyType(),getSkill().getFlySpeed()));
          _x = flyLoc.getX();
          _y = flyLoc.getY();
          _z = flyLoc.getZ();
          _effected.setXYZ(flyLoc.getX(),flyLoc.getY(),flyLoc.getZ());
          _effected.broadcastPacket(new ValidateLocation(_effected));
View Full Code Here

Examples of lineage2.gameserver.network.serverpackets.FlyToLocation

        playerNearEffected.sendPacket(new ExAlterSkillRequest(chainSkill,temporalReplaceSkill,3))
      }
    }
    if (loc == null)
      _log.info("EffectKnockDown Loc null check this!");
    _effected.broadcastPacket(new FlyToLocation(_effected, loc, FlyType.PUSH_DOWN_HORIZONTAL, getSkill().getFlySpeed()));//need to check: if the effected is already knocked down, move the target again?
    _effected.abortAttack(true, true);
    _effected.abortCast(true, true);
    _effected.setXYZ(loc.getX(), loc.getY(), loc.getZ());
    _effected.broadcastPacket(new ValidateLocation(_effected));
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.