Ejemplo n.º 1
0
            public void OnWebAPIUserNonce(SteamUser.WebAPIUserNonceCallback e)
            {
                Log.Debug("Received new WebAPIUserNonce.");

                if (e.Result == EResult.OK)
                {
                    Bot._myUserNonce = e.Nonce;
                    Bot._userWebLogOn();
                    Log.Success("Web logon complete.");
                }
                else
                {
                    Log.Error("WebAPIUserNonce Error: " + e.Result);
                }
            }
Ejemplo n.º 2
0
            public void OnLoginKey(SteamUser.LoginKeyCallback e)
            {
                Bot._myUniqueId = e.UniqueID.ToString();

                Bot._userWebLogOn();

                if (Trade.CurrentSchema == null)
                {
                    Log.Info("Downloading Schema...");
                    Trade.CurrentSchema = Schema.FetchSchema(Bot.ApiKey, Bot.schemaLang);
                    Log.Success("Schema Downloaded!");
                }

                Bot.SteamFriends.SetPersonaName(Bot.DisplayNamePrefix + Bot.DisplayName);
                Bot.SteamFriends.SetPersonaState(EPersonaState.Online);

                Log.Success("Steam Bot Logged In Completely!");

                Bot._getUserHandler(Bot.SteamClient.SteamID).OnLoginCompleted();
            }