Example #1
0
        public override void Serialize(GenericWriter writer)
        {
            base.Serialize(writer);
            writer.Write((int)1); // version

// Version 1 added the CaseSensitive member

            int count = m_TriggerList.Count;

            writer.Write(count);
            for (int i = 0; i < count; i++)
            {
                TriggerWord tw = (TriggerWord)m_TriggerList[i];
                writer.Write(tw.Word);
                writer.Write(tw.Response);
                writer.Write(tw.CaseSensitive.ToString());
            }


            writer.Write(m_ListenRange);
            writer.Write(m_SpamMsg);
            writer.Write(m_SpamActive);
            writer.Write(m_SpamOnEnterRange);
            writer.Write(m_MinimumSpamDelay);
            writer.Write(m_MaximumSpamDelay);
        }
Example #2
0
            public override void OnResponse(Mobile from, string text)
            {
                TriggerWord tw = new TriggerWord(m_Word, text, false);

                m_TriggerList.Add(tw);
                from.SendGump(new ReplyNPCGump(0, 100, 100, m_TriggerList, m_Owner));
            }
public override void OnResponse(Mobile from, string text)
{
TriggerWord tw = new TriggerWord(m_Word, text, false);
m_TriggerList.Add(tw);
from.SendGump(new ReplyNPCGump(0, 100, 100, m_TriggerList, m_Owner));
}