Ejemplo n.º 1
0
 private void LoginEndScene(ref int FrameCounter, bool IsIngame)
 {
     if (IsIngame)
     {
         return;
     }
     Relog.Login();
 }
Ejemplo n.º 2
0
        private void RelogRoutine()
        {
            if (Relog.CurrentWindowName == "RealmList")
            {
                if (Wait.For("CancelRealmSelection", 2000))
                {
                    Wait.Remove("PressLogin");
                    Relog.ResetLogin();
                }
            }
            switch (Relog.LoginState)
            {
            case Constants.Enums.LoginState.login:
            {
                var glueText = Relog.GetGlueDialogText().ToLower();
                if (!glueText.Contains("is full"))
                {
                    if (Wait.For("WrongInfo", 5000, false) && (glueText.Contains("the information you have") ||
                                                               glueText.Contains("disconnected")))
                    {
                        if (!Wait.For("RelogReset", 2000, false))
                        {
                            if (!Wait.For("RelogReset2", 1, false))
                            {
                                Wait.Remove("PressLogin");
                                Relog.ResetLogin();
                            }
                        }
                    }
                }
                if (glueText == "" && Wait.For("SendAccountDetailsWait", 5000))
                {
                    Relog.Login();
                    Wait.Remove("RelogReset");
                    Wait.Remove("RelogReset2");
                    Wait.Remove("StartGhostWalk");
                    Access.Info.SpiritWalk.GeneratePath = true;
                    Wait.Remove("WrongInfo");
                }
            }
            break;

            case Constants.Enums.LoginState.charselect:
                if (Wait.For("EnterWorldClicker", 2000))
                {
                    Functions.EnterWorld();
                }
                break;
            }
        }