Example #1
0
 private static void OnLogin(LoginEventArgs e)
 {
     if (GetInfo(e.Mobile).Messages.Count != 0)
     {
         PmNotifyGump.SendTo(e.Mobile);
     }
 }
Example #2
0
        public void AddMessage(Mobile from, Message msg)
        {
            c_Messages.Add(msg);
            PmNotifyGump.SendTo(c_Mobile);

            if (GetSound(from) != 0)
            {
                c_Mobile.SendSound(GetSound(from));
            }

            if (c_Away && c_AwayMsg != "")
            {
                from.SendMessage(GetInfo(from).SystemColor, "{0}: {1}", c_Mobile.Name, c_AwayMsg);
            }
        }
Example #3
0
        public Message GetNextMessage()
        {
            if (c_Messages.Count == 0)
            {
                return(new Message());
            }

            Message msg = (Message)c_Messages[0];

            c_Messages.Remove(msg);

            if (c_Messages.Count != 0)
            {
                PmNotifyGump.SendTo(c_Mobile);
            }

            return(msg);
        }