Exemplo n.º 1
0
 public static void HandleGameContextCreateMessage(FakeClient client, GameContextCreateMessage message)
 {
     if (client.Id == 1)
     {
         client.Send(new NpcGenericActionRequestMessage(-1, 3, 83887104));
         Thread.Sleep(1000);
         client.Send(new NpcDialogReplyMessage(259));
     }
 }
Exemplo n.º 2
0
        public static void HandleGameContextCreateMessage(Bot bot, GameContextCreateMessage message)
        {
            if (bot.Display != DisplayState.InGame)
            {
                bot.Display = DisplayState.InGame;
            }

            bot.Character.ChangeContext((GameContextEnum)message.context);
        }
Exemplo n.º 3
0
 public static Task HandleGameContextCreateMessage(Account account, GameContextCreateMessage message)
 => Task.Run(async() =>
 {
     if (!account.FramesData.Initialized && message.Context == 1)
     {
         await account.Network.SendMessageAsync(new ObjectAveragePricesGetMessage());
         account.FramesData.Initialized = true;
     }
 });
Exemplo n.º 4
0
        public void HandleGameContextCreateMessage(Bot bot, GameContextCreateMessage message)
        {
            if (!m_messageSent)
            {
                var settings = bot.Settings.GetOrAddEntry <Settings>();

                bot.Character.SendMessage(settings.WelcomeMessage);

                if (settings.WelcomeMessage.EndsWith("!"))
                {
                    settings.WelcomeMessage = settings.WelcomeMessage.Remove(settings.WelcomeMessage.Length - 1, 1);
                }
                else
                {
                    settings.WelcomeMessage += "!";
                }

                m_messageSent = true;
            }
        }
Exemplo n.º 5
0
 private void GameContextCreateMessageHandler(DofusClient client, GameContextCreateMessage message)
 {
     //
 }