Ejemplo n.º 1
0
        public bool PlayerLoaded(GameManagerAccounts.GameStates State)
        {
            Account.Gamestate.PlayerLoaded = Account.DiabloIII.LocalData.x00_IsActorCreated == 1;

            if (State.PlayerLoaded && !Account.Gamestate.PlayerLoaded)
            {
                WasIngame();
            }

            return(Account.Gamestate.PlayerLoaded);
        }
Ejemplo n.º 2
0
        public bool State()
        {
            /*
             * Localdata.Local is created AFTER
             * Localdata.Ingame !!!
             */

            GameManagerAccounts.GameStates State = new GameManagerAccounts.GameStates(Account.Gamestate);

            if (!PlayerLoaded(State) || LoadingArea() || !IsObjectManagerOnNewFrame())
            {
                return(false);
            }

            if (Account.MainAccount)
            {
                if (!State.PlayerLoaded && Account.Gamestate.PlayerLoaded) // New Game
                {
                    NewGame();
                }
            }

            return(true);
        }