Example #1
0
 private void timer3_Tick(object sender, EventArgs e)
 {
     timermove = true;
     if (GetSatus2.go(webBrowser1.Document.Window.Frames[7].Document.Body.OuterText))
     {
         try
         {
             MoveTo(Settings2._Path[Number]);
             Number = Number + 1;
         }
         catch { timer3.Stop(); Number = 0; timermove = false; }
     }
 }
Example #2
0
 private void timer2_Tick_1(object sender, EventArgs e)
 {
     try
     {
         try
         {
             if (webBrowser1.Document.Window.Frames[7].Document.Body.OuterText.Contains("Position X: Y: "))
             {
                 webBrowser1.Navigate("http://" + Settings2._World + ".freewar.de/freewar/");
             }
         }
         catch { }
         Player2.XP        = GetSatus2.Erfahrung(webBrowser1.Document.Window.Frames[6].Document.Body.OuterHtml);
         Player2.CurrentLP = GetSatus2.CurrentLP(webBrowser1.Document.Window.Frames[6].Document.Body.OuterHtml);
         Player2.MaxLp     = GetSatus2.MaxLP(webBrowser1.Document.Window.Frames[6].Document.Body.OuterHtml);
         Player2.Money     = GetSatus2.Geld(webBrowser1.Document.Window.Frames[6].Document.Body.OuterHtml);
         Player2.Name      = Settings2._Username;
         Chat = webBrowser1.Document.Window.Frames[2].Document.Body.InnerText;
         Settings2.LoggedIn = true;
     }
     catch (Exception ee) { }
 }
Example #3
0
        private void webBrowser1_DocumentCompleted(object sender, WebBrowserDocumentCompletedEventArgs e)
        {
            if (webBrowser1.Url.ToString() == "http://" + Settings2._World + ".freewar.de/freewar/")
            {
                Login(Settings2._Username, Settings2._Password);
            }
            if (webBrowser1.Url.ToString() == "http://" + Settings2._World + ".freewar.de/freewar/internal/index.php")
            {
                webBrowser1.Navigate("http://" + Settings2._World + ".freewar.de/freewar/internal/frset.php");
            }
            if (Settings2._Autoarbeiter == true)
            {
                try
                {
                    if (webBrowser1.Document.Window.Frames[1].Document.Body.InnerHtml.Contains("solid\" alt=\"\" src=\"secimg2.php?randsec") || webBrowser1.Document.Window.Frames[1].Document.Body.InnerHtml.Contains("er Zugang zum Steinbruch wird gerade von anderen Wesen benutzt")) //KANN FALSCH SEIN
                    {
                        Autoarbeiter();
                    }
                }
                catch { }
                try
                {
                    if (((webBrowser1.Document.Window.Frames[1].Document.Body.InnerHtml.Contains("Du arbeitest gerade in der Goldmine")) & Points == null & CrackingInProgress == false) | (webBrowser1.Document.Window.Frames[7].Document.Body.OuterHtml.Contains("Minuten") & Points == null & CrackingInProgress == false))
                    {
                        webBrowser2.Navigate("http://" + Settings2._World + ".freewar.de/freewar/internal/secimg2.php?");
                    }
                }
                catch { }
                try
                {
                    if (webBrowser1.Document.Window.Frames[1].Document.Body.InnerHtml.Contains("eval=seccheck") & GetSatus2.px(webBrowser1.Document.Window.Frames[7].Document.Body.OuterHtml) == 96 & GetSatus2.py(webBrowser1.Document.Window.Frames[7].Document.Body.OuterHtml) == 99)
                    {
                        webBrowser1.Document.Window.Frames[1].Navigate("http://" + Settings2._World + ".freewar.de/freewar/internal/main.php?arrive_eval=seccheck&blankmain=1");
                    }
                    else if (webBrowser1.Document.Window.Frames[1].Document.Body.InnerHtml.Contains("eval=seccheck") & !webBrowser1.Document.Window.Frames[7].Document.Body.OuterHtml.Contains("Sekunden"))
                    {
                        webBrowser1.Document.Window.Frames[1].Navigate("http://" + Settings2._World + ".freewar.de/freewar/internal/main.php?arrive_eval=seccheck&blankmain=1");
                    }
                }
                catch { }

                if (CaptchaClicked)
                {
                    webBrowser1.Document.Window.Frames[1].Navigate("http://" + Settings2._World + ".freewar.de/freewar/internal/main.php");
                    CaptchaClicked = false;
                }
            }
        }