Example #1
0
        public virtual bool OnDroppedInto( Mobile from, Container target, Point3D p )
        {
            if ( !from.OnDroppedItemInto( this, target, p ) )
                return false;

            return target.OnDragDropInto( from, this, p );
        }
Example #2
0
        public virtual bool OnDroppedInto( Mobile from, Container target, Point3D p, byte gridloc )
        {
            if ( IsUnderYourFeet( from, target ) )
            {
                from.SendMessage( "No puedes mover eso, ¡estás pisando la bolsa!" );
                return false;
            }
            else if ( !from.OnDroppedItemInto( this, target, p ) )
            {
                return false;
            }
            else if ( NonTransferable && from.IsPlayer && target != from.Backpack && from.AccessLevel <= AccessLevel.GameMaster )
            {
                HandleInvalidTransfer( from );
                return false;
            }

            return target.OnDragDropInto( from, this, p, gridloc );
        }