Ejemplo n.º 1
0
        private void Core_Login_Passed()
        {
            try
            {
                VSC = new VersionControl(); VSC.InitVersCheck();
                SND = new Sounds(); SND.SoundsInit();
                SCT = new SettingsControl(); SCT.SettingsInit();
                VCT = new ViewControl(); VCT.ViewInit();
                SCN = new Scanner(); SCN.ScannerInit();
                MCL = new MacroLogic(); MCL.MacroInit();
                LGM = new LogMethod(); LGM.LogInit();
                DTH = new DeathParse(); DTH.ParseInit();
                HUD = new HUDControl(); HUD.HUDInit();

                if (lib.Autorelog == true)
                {
                    if (RlgTmr.Enabled == true)
                    {
                        RlgTmr.Stop();
                        lib.Autorelog         = false;
                        MainView.Mode.Current = 0;
                        lib.Mode = 0;
                        Utility.AddWindowText(lib.MyServer + " : " + lib.MyName + " : " + lib.authtype + " : Current mode: SLAVE - Forced Login detected at " + DateTime.Now.ToString("h: mm:ss tt"));
                        Utility.AddChatText("FORCED LOGIN DETECTED! Mode switched: SLAVE.", 6);
                    }
                    else if (RlgTmr.Enabled == false)
                    {
                        MainView.Mode.Current = 3;
                        lib.Mode = 3;
                        Utility.AddWindowText(lib.MyServer + " : " + lib.MyName + " : " + lib.authtype + " : Current mode: MACRO - Relogger is set to " + lib.Timer + " seconds.");
                        if (lib.UseMacroLogic == true)
                        {
                            Utility.ActivateWindow();
                        }
                    }
                }
                else if (lib.Autorelog == false)
                {
                    MainView.Mode.Current = 0;
                    lib.Mode = 0;
                    Utility.AddWindowText(lib.MyServer + " : " + lib.MyName + " : " + lib.authtype + " : Current mode: SLAVE");
                }

                REP = new Report(); REP.ReportInit();
                Report.InitialLog("Login");
            }
            catch (Exception ex) { Repo.RecordException(ex); }
        }