void defaultFirstCharTimer_Tick(object sender, EventArgs e) { try { var defaultFirstCharacters = DefaultFirstCharacterLoader.DefaultFirstCharacters; foreach (var character in defaultFirstCharacters) { if (character.ZoneId == zonename && character.Server == server) { // Bypass movies/logos if (state == 1 || state == 2) { PostMessageTools.SendMouseClick(350, 100); } if (state == 3) { loginCharacterTools.LoginCharacter(character.CharacterName); } break; } } if (state >= 3) { defaultFirstCharTimer.Stop(); } state++; } catch (Exception ex) { Debug.LogException(ex); } }
void defaultFirstCharTimer_Tick(object sender, EventArgs e) { try { loginNextCharTimer.Stop(); if (!String.IsNullOrEmpty(nextCharacter)) { loginCharacterTools.LoginCharacter(nextCharacter); nextCharacter = null; } else if (nextCharByInt >= 0 && nextCharByInt <= 10) { loginCharacterTools.LoginByIndex(nextCharByInt); nextCharByInt = -1; } } catch (Exception ex) { Debug.LogException(ex); } }