Package l2p.gameserver.serverpackets

Examples of l2p.gameserver.serverpackets.CharMoveToLocation


      broadcastPacket(new VehicleDeparture((L2Ship) this));
    }
    else
    {
      validateLocation(isPlayer() ? 2 : 1);
      broadcastPacket(new CharMoveToLocation(this));
    }
  }
View Full Code Here


      {
        activeChar.sendActionFailed();
      }
      else
      {
        activeChar.sendPacket(new CharMoveToLocation(activeChar.getObjectId(), _originLoc, _targetLoc));
      }
      return;
    }
    if(activeChar.isOutOfControl() && activeChar.getOlympiadGameId() == -1)
    {
View Full Code Here

          packets.add(new GetOnVehicle(activeChar, (L2Ship) activeChar.getVehicle(), activeChar.getInVehiclePosition()));
        }
      }
      if(activeChar.isMoving || activeChar.isFollow)
      {
        packets.add(new CharMoveToLocation(activeChar));
      }
      if(activeChar.getMountNpcId() != 0)
      {
        packets.add(new Ride(activeChar));
      }
View Full Code Here

    rewarder.setHeading((int) (Math.atan2(spawnLoc.y - rewarded.getY(), spawnLoc.x - rewarded.getX()) * L2Character.HEADINGS_IN_PI) + 32768); // Лицом к игроку
    rewarder.spawnMe();
    Functions.npcSayCustomMessage(rewarder, "scripts.events.SavingSnowman.RewarderPhrase1");
    Location targetLoc = Location.getAroundPosition(rewarded, rewarded, 40, 50, 10);
    rewarder.setSpawnedLoc(targetLoc);
    rewarder.broadcastPacket(new CharMoveToLocation(rewarder.getObjectId(), rewarder.getLoc(), targetLoc));
    executeTask("events.SavingSnowman.SavingSnowman", "reward", new Object[] {rewarder, rewarded}, 5000);
  }
View Full Code Here

    Location loc = rewarder.getSpawnedLoc();
    double radian = Util.convertHeadingToRadian(rewarder.getHeading());
    int x = loc.x - (int) (Math.sin(radian) * 300);
    int y = loc.y + (int) (Math.cos(radian) * 300);
    int z = loc.z;
    rewarder.broadcastPacket(new CharMoveToLocation(rewarder.getObjectId(), loc, new Location(x, y, z)));
    executeTask("events.SavingSnowman.SavingSnowman", "unspawnRewarder", new Object[] {rewarder}, 2000);
  }
View Full Code Here

TOP

Related Classes of l2p.gameserver.serverpackets.CharMoveToLocation

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.