This commit is contained in:
parent
34d969712e
commit
d444b9ba5c
70 changed files with 569 additions and 495 deletions
|
|
@ -149,7 +149,7 @@ namespace Server.Multis
|
|||
|
||||
public static List<BaseBoat> Boats{ get{ return m_Instances; } }
|
||||
|
||||
public BaseBoat() : base( 0x4000 )
|
||||
public BaseBoat() : base( 0x0 )
|
||||
{
|
||||
m_DecayTime = DateTime.Now + BoatDecayDelay;
|
||||
|
||||
|
|
@ -1184,8 +1184,8 @@ namespace Server.Multis
|
|||
if ( newComponents.Tiles[x][y].Length == 0 || Contains( tx, ty ) )
|
||||
continue;
|
||||
|
||||
Tile landTile = map.Tiles.GetLandTile( tx, ty );
|
||||
Tile[] tiles = map.Tiles.GetStaticTiles( tx, ty, true );
|
||||
LandTile landTile = map.Tiles.GetLandTile( tx, ty );
|
||||
StaticTile[] tiles = map.Tiles.GetStaticTiles( tx, ty, true );
|
||||
|
||||
bool hasWater = false;
|
||||
|
||||
|
|
@ -1203,8 +1203,8 @@ namespace Server.Multis
|
|||
|
||||
for ( int i = 0; i < tiles.Length; ++i )
|
||||
{
|
||||
Tile tile = tiles[i];
|
||||
bool isWater = ( tile.ID >= 0x5796 && tile.ID <= 0x57B2 );
|
||||
StaticTile tile = tiles[i];
|
||||
bool isWater = ( tile.ID >= 0x1796 && tile.ID <= 0x17B2 );
|
||||
|
||||
if ( tile.Z == p.Z && isWater )
|
||||
hasWater = true;
|
||||
|
|
@ -1221,7 +1221,7 @@ namespace Server.Multis
|
|||
|
||||
foreach ( Item item in eable )
|
||||
{
|
||||
if ( item.ItemID >= 0x4000 || item.Z < p.Z || !item.Visible )
|
||||
if ( item is BaseMulti || item.Z < p.Z || !item.Visible )
|
||||
continue;
|
||||
|
||||
int x = item.X - p.X + newComponents.Min.X;
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ namespace Server.Multis
|
|||
if ( !Core.AOS )
|
||||
LootType = LootType.Newbied;
|
||||
|
||||
m_MultiID = id & 0x3FFF;
|
||||
m_MultiID = id;
|
||||
m_Offset = offset;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@ namespace Server.Multis
|
|||
Weight = 1.0;
|
||||
LootType = LootType.Blessed;
|
||||
|
||||
m_MultiID = id & 0x3FFF;
|
||||
m_MultiID = id;
|
||||
m_Offset = offset;
|
||||
|
||||
m_ShipName = boat.ShipName;
|
||||
|
|
|
|||
|
|
@ -6,10 +6,10 @@ namespace Server.Multis
|
|||
{
|
||||
public class LargeBoat : BaseBoat
|
||||
{
|
||||
public override int NorthID{ get{ return 0x4010; } }
|
||||
public override int EastID{ get{ return 0x4011; } }
|
||||
public override int SouthID{ get{ return 0x4012; } }
|
||||
public override int WestID{ get{ return 0x4013; } }
|
||||
public override int NorthID{ get{ return 0x10; } }
|
||||
public override int EastID{ get{ return 0x11; } }
|
||||
public override int SouthID{ get{ return 0x12; } }
|
||||
public override int WestID{ get{ return 0x13; } }
|
||||
|
||||
public override int HoldDistance{ get{ return 5; } }
|
||||
public override int TillerManDistance{ get{ return -5; } }
|
||||
|
|
@ -51,7 +51,7 @@ namespace Server.Multis
|
|||
public override BaseBoat Boat{ get{ return new LargeBoat(); } }
|
||||
|
||||
[Constructable]
|
||||
public LargeBoatDeed() : base( 0x4010, new Point3D( 0, -1, 0 ) )
|
||||
public LargeBoatDeed() : base( 0x10, new Point3D( 0, -1, 0 ) )
|
||||
{
|
||||
}
|
||||
|
||||
|
|
@ -78,7 +78,7 @@ namespace Server.Multis
|
|||
{
|
||||
public override BaseBoat Boat{ get{ return new LargeBoat(); } }
|
||||
|
||||
public LargeDockedBoat( BaseBoat boat ) : base( 0x4010, new Point3D( 0, -1, 0 ), boat )
|
||||
public LargeDockedBoat( BaseBoat boat ) : base( 0x10, new Point3D( 0, -1, 0 ), boat )
|
||||
{
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -6,10 +6,10 @@ namespace Server.Multis
|
|||
{
|
||||
public class LargeDragonBoat : BaseBoat
|
||||
{
|
||||
public override int NorthID{ get{ return 0x4014; } }
|
||||
public override int EastID{ get{ return 0x4015; } }
|
||||
public override int SouthID{ get{ return 0x4016; } }
|
||||
public override int WestID{ get{ return 0x4017; } }
|
||||
public override int NorthID{ get{ return 0x14; } }
|
||||
public override int EastID{ get{ return 0x15; } }
|
||||
public override int SouthID{ get{ return 0x16; } }
|
||||
public override int WestID{ get{ return 0x17; } }
|
||||
|
||||
public override int HoldDistance{ get{ return 5; } }
|
||||
public override int TillerManDistance{ get{ return -5; } }
|
||||
|
|
@ -51,7 +51,7 @@ namespace Server.Multis
|
|||
public override BaseBoat Boat{ get{ return new LargeDragonBoat(); } }
|
||||
|
||||
[Constructable]
|
||||
public LargeDragonBoatDeed() : base( 0x4014, new Point3D( 0, -1, 0 ) )
|
||||
public LargeDragonBoatDeed() : base( 0x14, new Point3D( 0, -1, 0 ) )
|
||||
{
|
||||
}
|
||||
|
||||
|
|
@ -78,7 +78,7 @@ namespace Server.Multis
|
|||
{
|
||||
public override BaseBoat Boat{ get{ return new LargeDragonBoat(); } }
|
||||
|
||||
public LargeDockedDragonBoat( BaseBoat boat ) : base( 0x4014, new Point3D( 0, -1, 0 ), boat )
|
||||
public LargeDockedDragonBoat( BaseBoat boat ) : base( 0x14, new Point3D( 0, -1, 0 ), boat )
|
||||
{
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -6,10 +6,10 @@ namespace Server.Multis
|
|||
{
|
||||
public class MediumBoat : BaseBoat
|
||||
{
|
||||
public override int NorthID{ get{ return 0x4008; } }
|
||||
public override int EastID{ get{ return 0x4009; } }
|
||||
public override int SouthID{ get{ return 0x400A; } }
|
||||
public override int WestID{ get{ return 0x400B; } }
|
||||
public override int NorthID{ get{ return 0x8; } }
|
||||
public override int EastID{ get{ return 0x9; } }
|
||||
public override int SouthID{ get{ return 0xA; } }
|
||||
public override int WestID{ get{ return 0xB; } }
|
||||
|
||||
public override int HoldDistance{ get{ return 4; } }
|
||||
public override int TillerManDistance{ get{ return -5; } }
|
||||
|
|
@ -51,7 +51,7 @@ namespace Server.Multis
|
|||
public override BaseBoat Boat{ get{ return new MediumBoat(); } }
|
||||
|
||||
[Constructable]
|
||||
public MediumBoatDeed() : base( 0x4008, Point3D.Zero )
|
||||
public MediumBoatDeed() : base( 0x8, Point3D.Zero )
|
||||
{
|
||||
}
|
||||
|
||||
|
|
@ -78,7 +78,7 @@ namespace Server.Multis
|
|||
{
|
||||
public override BaseBoat Boat{ get{ return new MediumBoat(); } }
|
||||
|
||||
public MediumDockedBoat( BaseBoat boat ) : base( 0x4008, Point3D.Zero, boat )
|
||||
public MediumDockedBoat( BaseBoat boat ) : base( 0x8, Point3D.Zero, boat )
|
||||
{
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -6,10 +6,10 @@ namespace Server.Multis
|
|||
{
|
||||
public class MediumDragonBoat : BaseBoat
|
||||
{
|
||||
public override int NorthID{ get{ return 0x400C; } }
|
||||
public override int EastID{ get{ return 0x400D; } }
|
||||
public override int SouthID{ get{ return 0x400E; } }
|
||||
public override int WestID{ get{ return 0x400F; } }
|
||||
public override int NorthID{ get{ return 0xC; } }
|
||||
public override int EastID{ get{ return 0xD; } }
|
||||
public override int SouthID{ get{ return 0xE; } }
|
||||
public override int WestID{ get{ return 0xF; } }
|
||||
|
||||
public override int HoldDistance{ get{ return 4; } }
|
||||
public override int TillerManDistance{ get{ return -5; } }
|
||||
|
|
@ -51,7 +51,7 @@ namespace Server.Multis
|
|||
public override BaseBoat Boat{ get{ return new MediumDragonBoat(); } }
|
||||
|
||||
[Constructable]
|
||||
public MediumDragonBoatDeed() : base( 0x400C, Point3D.Zero )
|
||||
public MediumDragonBoatDeed() : base( 0xC, Point3D.Zero )
|
||||
{
|
||||
}
|
||||
|
||||
|
|
@ -78,7 +78,7 @@ namespace Server.Multis
|
|||
{
|
||||
public override BaseBoat Boat{ get{ return new MediumDragonBoat(); } }
|
||||
|
||||
public MediumDockedDragonBoat( BaseBoat boat ) : base( 0x400C, Point3D.Zero, boat )
|
||||
public MediumDockedDragonBoat( BaseBoat boat ) : base( 0xC, Point3D.Zero, boat )
|
||||
{
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -6,10 +6,10 @@ namespace Server.Multis
|
|||
{
|
||||
public class SmallBoat : BaseBoat
|
||||
{
|
||||
public override int NorthID{ get{ return 0x4000; } }
|
||||
public override int EastID{ get{ return 0x4001; } }
|
||||
public override int SouthID{ get{ return 0x4002; } }
|
||||
public override int WestID{ get{ return 0x4003; } }
|
||||
public override int NorthID{ get{ return 0x0; } }
|
||||
public override int EastID{ get{ return 0x1; } }
|
||||
public override int SouthID{ get{ return 0x2; } }
|
||||
public override int WestID{ get{ return 0x3; } }
|
||||
|
||||
public override int HoldDistance{ get{ return 4; } }
|
||||
public override int TillerManDistance{ get{ return -4; } }
|
||||
|
|
@ -51,7 +51,7 @@ namespace Server.Multis
|
|||
public override BaseBoat Boat{ get{ return new SmallBoat(); } }
|
||||
|
||||
[Constructable]
|
||||
public SmallBoatDeed() : base( 0x4000, Point3D.Zero )
|
||||
public SmallBoatDeed() : base( 0x0, Point3D.Zero )
|
||||
{
|
||||
}
|
||||
|
||||
|
|
@ -78,7 +78,7 @@ namespace Server.Multis
|
|||
{
|
||||
public override BaseBoat Boat{ get{ return new SmallBoat(); } }
|
||||
|
||||
public SmallDockedBoat( BaseBoat boat ) : base( 0x4000, Point3D.Zero, boat )
|
||||
public SmallDockedBoat( BaseBoat boat ) : base( 0x0, Point3D.Zero, boat )
|
||||
{
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -6,10 +6,10 @@ namespace Server.Multis
|
|||
{
|
||||
public class SmallDragonBoat : BaseBoat
|
||||
{
|
||||
public override int NorthID{ get{ return 0x4004; } }
|
||||
public override int EastID{ get{ return 0x4005; } }
|
||||
public override int SouthID{ get{ return 0x4006; } }
|
||||
public override int WestID{ get{ return 0x4007; } }
|
||||
public override int NorthID{ get{ return 0x4; } }
|
||||
public override int EastID{ get{ return 0x5; } }
|
||||
public override int SouthID{ get{ return 0x6; } }
|
||||
public override int WestID{ get{ return 0x7; } }
|
||||
|
||||
public override int HoldDistance{ get{ return 4; } }
|
||||
public override int TillerManDistance{ get{ return -4; } }
|
||||
|
|
@ -51,7 +51,7 @@ namespace Server.Multis
|
|||
public override BaseBoat Boat{ get{ return new SmallDragonBoat(); } }
|
||||
|
||||
[Constructable]
|
||||
public SmallDragonBoatDeed() : base( 0x4004, Point3D.Zero )
|
||||
public SmallDragonBoatDeed() : base( 0x4, Point3D.Zero )
|
||||
{
|
||||
}
|
||||
|
||||
|
|
@ -78,7 +78,7 @@ namespace Server.Multis
|
|||
{
|
||||
public override BaseBoat Boat{ get{ return new SmallDragonBoat(); } }
|
||||
|
||||
public SmallDockedDragonBoat( BaseBoat boat ) : base( 0x4004, Point3D.Zero, boat )
|
||||
public SmallDockedDragonBoat( BaseBoat boat ) : base( 0x4, Point3D.Zero, boat )
|
||||
{
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -103,13 +103,15 @@ namespace Server.Misc
|
|||
|
||||
object surface = map.GetTopSurface( from.Location );
|
||||
|
||||
if ( surface is Tile )
|
||||
{
|
||||
int id = ((Tile)surface).ID;
|
||||
if ( surface is LandTile ) {
|
||||
int id = ((LandTile)surface).ID;
|
||||
|
||||
return (id >= 168 && id <= 171)
|
||||
|| (id >= 310 && id <= 311)
|
||||
|| (id >= 0x5796 && id <= 0x57B2);
|
||||
|| (id >= 310 && id <= 311);
|
||||
} else if ( surface is StaticTile ) {
|
||||
int id = ((StaticTile)surface).ID;
|
||||
|
||||
return (id >= 0x1796 && id <= 0x17B2);
|
||||
}
|
||||
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue