protected override void OnTarget(Mobile from, object targeted) { if (m_RedLeaves.Deleted) { return; } if (!m_RedLeaves.IsChildOf(from.Backpack)) { from.SendLocalizedMessage(1042664); // You must have the object in your backpack to use it. return; } Item item = targeted as Item; if (item == null || !item.IsChildOf(from.Backpack)) { from.SendLocalizedMessage(1042664); // You must have the object in your backpack to use it. } else if (!(item is BaseBook)) { item.LabelTo(from, 1061911); // You can only use red leaves to seal the ink into book pages! } else { BaseBook book = (BaseBook)item; if (!book.Writable) { book.LabelTo(from, 1061909); // The ink in this book has already been sealed. } else { m_RedLeaves.Consume(); book.Writable = false; book.LabelTo(from, 1061910); // You seal the ink to the page using wax from the red leaf. } } }