Beispiel #1
0
 private static void EventSink_ChatRequest(ChatRequestEventArgs e)
 {
     if (e.Mobile != null && e.Mobile.NetState != null)
     {
         Server.Engines.Chat.ChatSystem.StartChat(e.Mobile.NetState);
     }
     //e.Mobile.SendMessage( "Chat is not currently supported." );
 }
        private static void EventSink_ChatRequest(ChatRequestEventArgs e)
        {
            Mobile player = e.Mobile;

            if (player.Account == null)
                return;

            Account account = player.Account as Account;

            if (account.GetTag("ChatInitializer") != "OK")
            {
                account.SetTag("ChatInitializer", "OK");
                player.SendMessage(68, "Chat: ENABLED");
                DisplayChatTo(player);
            }
        }
        private static void EventSink_ChatRequest(ChatRequestEventArgs e)
        {
            Mobile player = e.Mobile;

            if (player.Account == null)
            {
                return;
            }

            Account account = player.Account as Account;

            if (account.GetTag("ChatInitializer") != "OK")
            {
                account.SetTag("ChatInitializer", "OK");
                player.SendMessage(68, "Chat: ENABLED");
                DisplayChatTo(player);
            }
        }
Beispiel #4
0
		private static void EventSink_ChatRequest( ChatRequestEventArgs e )
		{
			e.Mobile.SendMessage( "Chat is not currently supported." );
		}
Beispiel #5
0
 private static void EventSink_ChatRequest(ChatRequestEventArgs e)
 {
     e.Mobile.SendMessage("Chat is not currently supported.");
 }
Beispiel #6
0
 public void InvokeChatRequest( ChatRequestEventArgs e )
 {
     if ( ChatRequest != null )
         ChatRequest( e );
 }