Exemplo n.º 1
0
 public override void OnClick()
 {
     if (m_From.CheckAlive() && m_Book.IsChildOf(m_From.Backpack))
     {
         m_From.Prompt = new NameBookPrompt(m_Book);
         m_From.SendLocalizedMessage(1062479);                     // Type in the new name of the book:
     }
 }
Exemplo n.º 2
0
            public override void OnResponse(Mobile from, string text)
            {
                if (text.Length > 40)
                {
                    text = text.Substring(0, 40);
                }

                if (from.CheckAlive() && m_Book.IsChildOf(from.Backpack))
                {
                    m_Book.Name = Utility.FixHtml(text.Trim());

                    from.SendMessage("This TMap Book name has been changed");
                }
            }