private void Client_ConnectionOpened() { ConnectionOpened?.Invoke(); Game.SendAuthentication(Account.Name, Account.Password, HardwareHash.GenerateRandom()); }
private void MacRealButton_Click(object sender, RoutedEventArgs e) { MacAddressTextBox.Text = HardwareHash.RetrieveMAC(); }
public void Update() { if (_authenticationRequired) { if (Encryption.StateReady) { Game.SendAuthentication(Account.Name, Account.Password, Account.DeviceId ?? HardwareHash.GenerateRandom()); _authenticationRequired = false; } return; } AutoReconnector.Update(); if (_loginRequested) { LoginUpdate(); _loginRequested = false; return; } if (Game != null && Game.IsInBattle && Game.IsInactive && AI != null && AI.UseMandatoryAction()) { return; } if (Running != State.Started) { return; } if (Game.IsCreatingNewCharacter) { LogMessage("Creating a new character with a random skin..."); Game.CreateCharacter(Rand.Next(14), Rand.Next(28), Rand.Next(8), Rand.Next(6), Rand.Next(5)); return; } if (PokemonEvolver.Update()) { return; } if (MoveTeacher.Update()) { return; } if (Game.IsMapLoaded && Game.AreNpcReceived && Game.IsInactive) { ExecuteNextAction(); } }
private void MacRandomButton_Click(object sender, RoutedEventArgs e) { MacAddressTextBox.Text = HardwareHash.GenerateRandom(); }