Package lineage2.gameserver.network.serverpackets

Examples of lineage2.gameserver.network.serverpackets.FlyToLocation


  @Override
  public void onPlayerEnter(Player player)
  {
    super.onPlayerEnter(player);
    player.sendPacket(new ExSendUIEvent(player, 0, 1, (int) (System.currentTimeMillis() - _savedTime) / 1000, 0, NpcString.NONE));
  }
View Full Code Here


  @Override
  public void onPlayerExit(Player player)
  {
    super.onPlayerExit(player);
    player.sendPacket(new ExSendUIEvent(player, 1, 1, 0, 0));
  }
View Full Code Here

          {
            spawnRoom(7);
            setReenterTime(System.currentTimeMillis());
            for(Player p : getPlayers())
            {
              p.sendPacket(new ExSendUIEvent(p, 1, 1, 0, 0));
              p.sendPacket(new SystemMessage(SystemMessage.THIS_DUNGEON_WILL_EXPIRE_IN_S1_MINUTES).addNumber(5));
            }
            startCollapseTimer(5 * 60 * 1000L);
            timeSpent = (int) (System.currentTimeMillis() - _savedTime) / 1000;
          }
View Full Code Here

    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

        {
          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

    {
      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

    _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

   
    _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

            {         
          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

        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

Related Classes of lineage2.gameserver.network.serverpackets.FlyToLocation

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.