public override bool OnDragDrop( Mobile from, Item dropped )
{
if ( dropped is MonsterContract )
{
MonsterContract MC = dropped as MonsterContract;
if ( !IsChildOf( from.Backpack ) )
{
from.SendLocalizedMessage( 1062385 ); // You must have the book in your backpack to add deeds to it.
return false;
}
else if ( m_Entries.Count < 20 )
{
m_Entries.Add( new MonsterContractEntry( MC.Monster, MC.AmountKilled, MC.AmountToKill, MC.Reward ) );
m_Entries.Sort();//#01
InvalidateProperties();
from.SendLocalizedMessage( 1062386 ); // Deed added to book.
if ( from is PlayerMobile )
from.SendGump( new MonsterContractBookGump( (PlayerMobile)from, this ) );
dropped.Delete();
return true;
}
else
{
from.SendLocalizedMessage( 1062387 ); // The book is full of deeds.
return false;
}
}
from.SendMessage( "This is not a valid contract.");
return false;
}