Exemplo n.º 1
0
 private void VoteProcess()
 {
     if (enabled && voting && WB_Main.Url.ToString() == "https://heroes-wow.com/wotlk/index.php?page=vote")
     {
         Log("Voted on site " + currentSite);
         LBL_Status.Text = "Voted on site " + currentSite;
         TM_VoteProcess.Start();
         WB_Main.AllowNavigation = false;
     }
 }
Exemplo n.º 2
0
        private void TM_VoteProcess_Tick(object sender, EventArgs e)
        {
            TM_VoteProcess.Stop();
            WB_Main.AllowNavigation = true;
            switch (currentSite)
            {
            case 1:
                currentSite++;
                InternetSetCookie("http://heroes-wow.com", "HTTP_REFERER", "http%3A%2F%2Fwww.top100arena.com%2Fout.asp%3Fid%3D44752");
                WB_Main.Navigate("https://heroes-wow.com/wotlk/execute.php?take=vote&site=2");
                break;

            case 2:
                currentSite++;
                InternetSetCookie("http://heroes-wow.com", "HTTP_REFERER", "http%3A%2F%2Fwww.openwow.com%2Fvisit%3D2125");
                WB_Main.Navigate("https://heroes-wow.com/wotlk/execute.php?take=vote&site=3");
                break;

            case 3:
                currentSite++;
                InternetSetCookie("http://heroes-wow.com", "HTTP_REFERER", "http%3A%2F%2Fwww.rpg-paradize.com%2Fsite-Heroes%2BWoW%2B548%2Band%2B335a%2B255%2BLevel-22237");
                WB_Main.Navigate("https://heroes-wow.com/wotlk/execute.php?take=vote&site=4");
                break;

            case 4:
                currentSite++;
                InternetSetCookie("http://heroes-wow.com", "HTTP_REFERER", "http%3A%2F%2Ftopg.org%2Fserver-heroes-wow-id347987");
                WB_Main.Navigate("https://heroes-wow.com/wotlk/execute.php?take=vote&site=5");
                break;

            case 5:
                currentSite++;
                InternetSetCookie("http://heroes-wow.com", "HTTP_REFERER", "http%3A%2F%2Fwww.wowstatus.net%2F%7Ewowstatus%2Fserverlist%2Fout%2Fid%2F725206%2Flink%2Fhomepage");
                WB_Main.Navigate("https://heroes-wow.com/wotlk/execute.php?take=vote&site=6");
                break;

            case 6:
                currentSite += 2;
                InternetSetCookie("http://heroes-wow.com", "HTTP_REFERER", "http%3A%2F%2Ftopwow.ru%2Findex.php");
                WB_Main.Navigate("https://heroes-wow.com/wotlk/execute.php?take=vote&site=8");
                break;

            case 8:
                currentSite += 2;
                InternetSetCookie("http://heroes-wow.com", "HTTP_REFERER", "http%3A%2F%2Fwww.wowtop.es%2Findex.php");
                WB_Main.Navigate("https://heroes-wow.com/wotlk/execute.php?take=vote&site=10");
                break;

            case 10:
                currentSite++;
                InternetSetCookie("http://heroes-wow.com", "HTTP_REFERER", "http%3A%2F%2Fwww.gowonda.com%2Fserveur-wow-4956-Heroes-WoW-5.4.8-and-3.3.5a-255-Level.htm");
                WB_Main.Navigate("https://heroes-wow.com/wotlk/execute.php?take=vote&site=11");
                break;

            case 11:
                Log("Successfully voted !");
                LBL_Status.Text = "Successfully voted !";
                voting          = false;
                currentSite     = 0;
                if (!File.Exists("LastVote"))
                {
                    File.Create("LastVote").Close();
                }
                StreamWriter writer = new StreamWriter("LastVote");
                writer.Write(DateTime.Now);
                writer.Close();
                TM_VoteCheck.Start();
                WB_Main.Navigate("http://heroes-wow.com/wotlk/");
                break;
            }
        }