Sync with L2jServer HighFive Feb 10th 2015.
This commit is contained in:
@@ -29,7 +29,6 @@ import java.util.logging.Level;
|
||||
import java.util.logging.Logger;
|
||||
|
||||
import com.l2jserver.L2DatabaseFactory;
|
||||
import com.l2jserver.gameserver.idfactory.IdFactory;
|
||||
import com.l2jserver.gameserver.model.AirShipTeleportList;
|
||||
import com.l2jserver.gameserver.model.StatsSet;
|
||||
import com.l2jserver.gameserver.model.VehiclePathPoint;
|
||||
@@ -104,7 +103,7 @@ public class AirShipManager
|
||||
|
||||
public L2AirShipInstance getNewAirShip(int x, int y, int z, int heading)
|
||||
{
|
||||
final L2AirShipInstance airShip = new L2AirShipInstance(IdFactory.getInstance().getNextId(), _airShipTemplate);
|
||||
final L2AirShipInstance airShip = new L2AirShipInstance(_airShipTemplate);
|
||||
|
||||
airShip.setHeading(heading);
|
||||
airShip.setXYZInvisible(x, y, z);
|
||||
@@ -130,7 +129,7 @@ public class AirShipManager
|
||||
}
|
||||
else
|
||||
{
|
||||
airShip = new L2ControllableAirShipInstance(IdFactory.getInstance().getNextId(), _airShipTemplate, ownerId);
|
||||
airShip = new L2ControllableAirShipInstance(_airShipTemplate, ownerId);
|
||||
_airShips.put(ownerId, airShip);
|
||||
|
||||
airShip.setMaxFuel(600);
|
||||
|
@@ -22,7 +22,6 @@ import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
import com.l2jserver.Config;
|
||||
import com.l2jserver.gameserver.idfactory.IdFactory;
|
||||
import com.l2jserver.gameserver.model.L2World;
|
||||
import com.l2jserver.gameserver.model.StatsSet;
|
||||
import com.l2jserver.gameserver.model.VehiclePathPoint;
|
||||
@@ -103,8 +102,8 @@ public class BoatManager
|
||||
npcDat.set("baseMpReg", 3.e-3f);
|
||||
npcDat.set("basePDef", 100);
|
||||
npcDat.set("baseMDef", 100);
|
||||
L2CharTemplate template = new L2CharTemplate(npcDat);
|
||||
L2BoatInstance boat = new L2BoatInstance(IdFactory.getInstance().getNextId(), template);
|
||||
|
||||
L2BoatInstance boat = new L2BoatInstance(new L2CharTemplate(npcDat));
|
||||
_boats.put(boat.getObjectId(), boat);
|
||||
boat.setHeading(heading);
|
||||
boat.setXYZInvisible(x, y, z);
|
||||
|
@@ -352,7 +352,7 @@ public final class MercTicketManager
|
||||
L2NpcTemplate template = NpcData.getInstance().getTemplate(npcId);
|
||||
if (template != null)
|
||||
{
|
||||
final L2DefenderInstance npc = new L2DefenderInstance(IdFactory.getInstance().getNextId(), template);
|
||||
final L2DefenderInstance npc = new L2DefenderInstance(template);
|
||||
npc.setCurrentHpMp(npc.getMaxHp(), npc.getMaxMp());
|
||||
npc.setDecayed(false);
|
||||
npc.spawnMe(x, y, (z + 20));
|
||||
|
Reference in New Issue
Block a user