示例#1
0
            public LastInstance(Mobile player, string[] args, string argString)
            {
                m_Player = player;
                if (!m_LastListStorage.Contains(m_Player))
                {
                    m_Player.SendMessage("You haven't sent any messages yet.");
                    return;
                }

                m_SelectedPlayer = (Mobile)m_LastListStorage[m_Player];
                if (m_SelectedPlayer == null || m_SelectedPlayer.Deleted)
                {
                    m_Player.SendMessage("That player is no longer online");
                    return;
                }

                if (args.Length < 1)
                {
                    //They just used .reply by itself, so send them a text entry gump
                    TextEntry.SendTextEntryGump(m_Player, this, ("Message for " + m_SelectedPlayer.Name), "");
                }
                else
                {
                    //Otherwise, they entered a message, so send it
                    SendTheMessage(argString);
                }
            }
示例#2
0
 public void OnPlayerSelected(PlayerMobile selectedMobile)
 {
     m_SelectedPlayer = selectedMobile;
     if (m_EnteredMessageText != string.Empty)
     {
         SendTheMessage(m_EnteredMessageText);
     }
     else
     {
         TextEntry.SendTextEntryGump(m_Player, this, ("Message for " + selectedMobile.Name), "");
     }
 }