06-01-2010, 03:06 PM
Список обновлений.
http://forum.asterios.tm/index.php?showtopic=54357
Кусок кода по кораблям.
ICQ - 710923
http://forum.asterios.tm/index.php?showtopic=54357
Кусок кода по кораблям.
Код:
private static Location findPositionToOust(L2Player player)
{
L2AirShip airship = (L2AirShip) player.getVehicle();
if(airship == null)
return null;
Location returnLoc = null;
if(airship.isClanAirShip())
{
for(L2Character cha : L2World.getAroundCharacters(airship, 4000, 2000))
if(cha instanceof L2AirShipControllerInstance)
{
AirShipDock ad = AirShipDocksTable.getInstance().getAirShipDockByNpcId(cha.getNpcId());
returnLoc = ad.getUpsetLoc();
if(returnLoc != null)
break;
}
}
else
{
L2VehicleTrajet t = airship._cycle == 1 ? airship._t1 : airship._t2;
returnLoc = t._return;
}
if(returnLoc == null)
returnLoc = player._stablePoint;
return returnLoc;
}