private void Connect() { if (m_TimerConnectionThread != null) { m_TimerConnectionThread.Change(Timeout.Infinite, Timeout.Infinite); } Thread.Sleep(GetRandomTime()); m_Running = new Running(); if (m_CurrentBotIndex < m_Bots.Count) { m_CurrentBot = m_Bots[m_CurrentBotIndex]; if (m_CurrentBot.IsBegun) { if ((m_CurrentBot.SocketManager != null) && (m_CurrentBot.SocketManager.Connected())) { return; } m_CurrentBot.Initialize(); //account.Log(new ConnectionTextInformation("Connexion.")); //m_CurrentBot.SocketManager = new SocketManager(); //m_CurrentBot.SocketManager.Connect(new ConnectionInformations("213.248.126.39", 5555, "d'identification")); } return; } m_CurrentBotIndex = 0; // GetNextMeal(); }
private void Connect() { if (m_TimerConnectionThread != null) m_TimerConnectionThread.Change(Timeout.Infinite, Timeout.Infinite); Thread.Sleep(GetRandomTime()); m_Running = new Running(); if (m_CurrentBotIndex < m_Bots.Count) { m_CurrentBot = m_Bots[m_CurrentBotIndex]; if (m_CurrentBot.IsBegun) { if ((m_CurrentBot.SocketManager != null) && (m_CurrentBot.SocketManager.Connected())) return; m_CurrentBot.Initialize(); //account.Log(new ConnectionTextInformation("Connexion.")); //m_CurrentBot.SocketManager = new SocketManager(); //m_CurrentBot.SocketManager.Connect(new ConnectionInformations("213.248.126.39", 5555, "d'identification")); } return; } m_CurrentBotIndex = 0; // GetNextMeal(); }
public void StartFeeding() { m_Running = new Running(); m_Running.Init(); }
public void TryFeeding() { Running = new Running(); Running.Init(); }