Chessboard corrections
http://www.uodemise.com/forum/showthread.php?t=154224&page=2 Stealth has the wrong hiding requirement http://www.uodemise.com/forum/showthread.php?t=155728 Players should be able to discord their own pet regardless of facet/guild, or lack thereof http://www.uodemise.com/forum/showthread.php?t=148376 Disposition of released/gone wild pets' pack inventory http://www.uodemise.com/forum/showthread.php?t=146385 Flagging mechanics regarding invisibility http://www.uodemise.com/forum/showthread.php?t=137631
This commit is contained in:
parent
cd2462621f
commit
f90c09ef55
7 changed files with 115 additions and 19 deletions
|
|
@ -152,6 +152,74 @@ namespace Server.Items
|
|||
}
|
||||
}
|
||||
|
||||
public class CreatureBackpack : Backpack //Used on BaseCreature
|
||||
{
|
||||
[Constructable]
|
||||
public CreatureBackpack( string name )
|
||||
{
|
||||
Name = name;
|
||||
Layer = Layer.Backpack;
|
||||
Hue = 5;
|
||||
Weight = 3.0;
|
||||
}
|
||||
|
||||
public override void AddNameProperty( ObjectPropertyList list )
|
||||
{
|
||||
if ( Name != null )
|
||||
list.Add( 1075257, Name ); // Contents of ~1_PETNAME~'s pack.
|
||||
else
|
||||
base.AddNameProperty( list );
|
||||
}
|
||||
|
||||
public override void OnItemRemoved( Item item )
|
||||
{
|
||||
if ( Items.Count == 0 )
|
||||
this.Delete();
|
||||
|
||||
base.OnItemRemoved( item );
|
||||
}
|
||||
|
||||
public override bool OnDragLift( Mobile from )
|
||||
{
|
||||
if ( from.AccessLevel > AccessLevel.Player )
|
||||
return true;
|
||||
|
||||
from.SendLocalizedMessage( 500169 ); // You cannot pick that up.
|
||||
return false;
|
||||
}
|
||||
|
||||
public override bool OnDragDropInto( Mobile from, Item item, Point3D p )
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public override bool TryDropItem( Mobile from, Item dropped, bool sendFullMessage )
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public CreatureBackpack( Serial serial ) : base( serial )
|
||||
{
|
||||
}
|
||||
|
||||
public override void Serialize( GenericWriter writer )
|
||||
{
|
||||
base.Serialize( writer );
|
||||
|
||||
writer.Write( (int) 1 ); // version
|
||||
}
|
||||
|
||||
public override void Deserialize( GenericReader reader )
|
||||
{
|
||||
base.Deserialize( reader );
|
||||
|
||||
int version = reader.ReadInt();
|
||||
|
||||
if ( version == 0 )
|
||||
Weight = 13.0;
|
||||
}
|
||||
}
|
||||
|
||||
public class StrongBackpack : Backpack //Used on Pack animals
|
||||
{
|
||||
[Constructable]
|
||||
|
|
|
|||
|
|
@ -16,38 +16,38 @@ namespace Server.Items
|
|||
{
|
||||
for ( int i = 0; i < 8; i++ )
|
||||
{
|
||||
CreatePiece( new PieceBlackPawn( this ), ( 25 * i ) + 43, 42 );
|
||||
CreatePiece( new PieceWhitePawn( this ), ( 25 * i ) + 43, 167 );
|
||||
CreatePiece( new PieceBlackPawn( this ), 67, ( 25 * i ) + 17 );
|
||||
CreatePiece( new PieceWhitePawn( this ), 192, ( 25 * i ) + 17 );
|
||||
}
|
||||
|
||||
// Rook
|
||||
CreatePiece( new PieceBlackRook( this ), 42, 5 );
|
||||
CreatePiece( new PieceBlackRook( this ), 216, 5 );
|
||||
CreatePiece( new PieceBlackRook( this ), 42, 180 );
|
||||
|
||||
CreatePiece( new PieceWhiteRook( this ), 42, 180 );
|
||||
CreatePiece( new PieceWhiteRook( this ), 216, 5 );
|
||||
CreatePiece( new PieceWhiteRook( this ), 216, 180 );
|
||||
|
||||
// Knight
|
||||
CreatePiece( new PieceBlackKnight( this ), 66, 7 );
|
||||
CreatePiece( new PieceBlackKnight( this ), 190, 7 );
|
||||
CreatePiece( new PieceBlackKnight( this ), 42, 30 );
|
||||
CreatePiece( new PieceBlackKnight( this ), 42, 155 );
|
||||
|
||||
CreatePiece( new PieceWhiteKnight( this ), 66, 182 );
|
||||
CreatePiece( new PieceWhiteKnight( this ), 190, 182 );
|
||||
CreatePiece( new PieceWhiteKnight( this ), 216, 30 );
|
||||
CreatePiece( new PieceWhiteKnight( this ), 216, 155 );
|
||||
|
||||
// Bishop
|
||||
CreatePiece( new PieceBlackBishop( this ), 94, 7 );
|
||||
CreatePiece( new PieceBlackBishop( this ), 168, 7 );
|
||||
CreatePiece( new PieceBlackBishop( this ), 42, 55 );
|
||||
CreatePiece( new PieceBlackBishop( this ), 42, 130 );
|
||||
|
||||
CreatePiece( new PieceWhiteBishop( this ), 94, 182 );
|
||||
CreatePiece( new PieceWhiteBishop( this ), 168, 182 );
|
||||
CreatePiece( new PieceWhiteBishop( this ), 216, 55 );
|
||||
CreatePiece( new PieceWhiteBishop( this ), 216, 130 );
|
||||
|
||||
// Queen
|
||||
CreatePiece( new PieceBlackQueen( this ), 142, 5 );
|
||||
CreatePiece( new PieceWhiteQueen( this ), 142, 180 );
|
||||
CreatePiece( new PieceBlackQueen( this ), 42, 105 );
|
||||
CreatePiece( new PieceWhiteQueen( this ), 216, 105 );
|
||||
|
||||
// King
|
||||
CreatePiece( new PieceBlackKing( this ), 117, 5 );
|
||||
CreatePiece( new PieceWhiteKing( this ), 117, 180 );
|
||||
CreatePiece( new PieceBlackKing( this ), 42, 80 );
|
||||
CreatePiece( new PieceWhiteKing( this ), 216, 80 );
|
||||
}
|
||||
|
||||
public Chessboard( Serial serial ) : base( serial )
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue