Login State menu

Shout-Out

User Tag List

Thread: Login State

Page 1 of 2 12 LastLast
Results 1 to 15 of 20
  1. #1
    Cypher's Avatar Kynox's Sister's Pimp
    Reputation
    1358
    Join Date
    Apr 2006
    Posts
    5,368
    Thanks G/R
    0/6
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Login State

    Y halo thar.

    I was wondering if anyone knows where the global is that stores the current login state. (Logged out, authenticating, logged in, etc etc)

    I mainly need to detect whether I'm in-game or not. But the more states the better.

    (Need this to get event handling working properly.)

    Thanks. Cookies, epix, and +9 rep to whomever finds it.

    Login State
  2. #2
    Allstar .ιllιlı.'s Avatar Banned
    Reputation
    284
    Join Date
    Jan 2009
    Posts
    481
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    So you want a program to see if you're online?

    Well, you have to look for someone with C++ experience, and he has to attach a packet sniffer to the wow protocol.
    Last edited by Allstar .ιllιlı.; 03-15-2009 at 07:09 AM.

  3. #3
    Cypher's Avatar Kynox's Sister's Pimp
    Reputation
    1358
    Join Date
    Apr 2006
    Posts
    5,368
    Thanks G/R
    0/6
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    ....

    No. I want the global address that tells me at what part of the login process I'm up to.

    unsigned int* pLoginState = 0xB00B1E5;
    enum LoginState
    {
    LOGIN_STATE_LOGINSCREEN,
    LOGIN_STATE_CHARSELECT,
    LOGIN_STATE_ZONINGIN,
    LOGIN_STATE_INGAME
    }
    if (*LoginState == LOGIN_STATE_INGAME)
    // doshit

    I just made up the enum and address of course. But that's what I want. I need to detect what part of the login process I'm at so I know when to register and unregister certain data.

  4. #4
    BoogieManTM's Avatar Active Member
    Reputation
    52
    Join Date
    May 2008
    Posts
    193
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    To my knowledge, such state does not exist. Authentication is pretty easy to nail down, just watch the packet stream for SMSG_AUTH_RESPONSE, if it sends 0C in the first byte (only byte i read), you're logged in.. if you get an smsg_char_enum, you're at the login screen, if you get an SMSG_COMPRESSED_OBJECT_UPDATE, you're in world (though you may not have a UI yet, might still be at the loading screen for real clients)

  5. #5
    kynox's Avatar Member
    Reputation
    830
    Join Date
    Dec 2006
    Posts
    888
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Allstar .ιllιlı. View Post
    I see..

    You need to inject a .dll file for this to work (i guess).
    It's not going to be easy. I think you can use a packet sniffer (as said before) to get the data it sends. And using that data, you can find out at which part you're up to.

    This is just theory, there's a big chance it won't work

    Hope that helps
    Greetz
    Please, GTFO this section.

    @ Cypher: 0x00FC1944


    Originally Posted by Allstar .ιllιlı. View Post
    So you want a program to see if you're online?

    Well, you have to look for someone with C++ experience, and he has to attach a packet sniffer to the wow protocol.
    Last edited by KuRIoS; 03-15-2009 at 09:19 AM.

  6. #6
    swayenvoy's Avatar Member
    Reputation
    1
    Join Date
    Jul 2008
    Posts
    19
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Code:
     public enum Gamestate : uint
        {
            Login = 0x1,
            Charselect = 0x2,
            Game = 0x3,
        }
    
    private const uint GAME_STATE = 0x103F6E8;
    
    public Gamestate Status
            {
                get
                {
                    if (ObjectMgrBase == 0)
                    {
                        string state = iBlackMagic.ReadASCIIString(GAME_STATE, 256);
    #if DEBUG
                        Debug.WriteLine("State returned: " + state);
    #endif
                        if (state == "login")
                        {
                            return Gamestate.Login;
                        }
                        else
                        {
                            return Gamestate.Charselect;
                        }
                    }
                    else
                    {
                        return Gamestate.Game;
                    }
                }
            }
    probably not the best way but works.

    Edit: Oh kynox posted a flag

  7. #7
    Nesox's Avatar ★ Elder ★
    Reputation
    1280
    Join Date
    Mar 2007
    Posts
    1,238
    Thanks G/R
    0/3
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by kynox View Post
    Please, GTFO this section.

    @ Cypher: 0x00FC1944
    @Kynox: How did you find that? ive tried to find a function that uses that adress but without any luck.
    I'll post my OOGManager after it's done, someone might find it useful
    Last edited by Nesox; 03-15-2009 at 04:32 PM.

  8. #8
    Cypher's Avatar Kynox's Sister's Pimp
    Reputation
    1358
    Join Date
    Apr 2006
    Posts
    5,368
    Thanks G/R
    0/6
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks. Got it working.

  9. #9
    kynox's Avatar Member
    Reputation
    830
    Join Date
    Dec 2006
    Posts
    888
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Nesox View Post
    @Kynox: How did you find that? ive tried to find a function that uses that adress but without any luck.
    I'll post my OOGManager after it's done, someone might find it useful
    Warden scans it (O_O?), so i came across it at some point.

  10. #10
    Nesox's Avatar ★ Elder ★
    Reputation
    1280
    Join Date
    Mar 2007
    Posts
    1,238
    Thanks G/R
    0/3
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by kynox View Post
    Warden scans it (O_O?), so i came across it at some point.
    Ok (㑵-o_O-㑵)

  11. #11
    swayenvoy's Avatar Member
    Reputation
    1
    Join Date
    Jul 2008
    Posts
    19
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by kynox View Post
    @ Cypher: 0x00FC1944
    Seems to be a wired flag.

    Before the First Login its 0xFF
    At the Charselect Selection Screen it becomes 0x04
    After Loading its 0x16
    After Logout at the Charselect Screen it's still 0x16
    Back at the Loging Screen still 0x16
    After logingin back to Charselect Screen it's 0x04 again
    ....

    Is it only me who see this wired stuff?

  12. #12
    Nesox's Avatar ★ Elder ★
    Reputation
    1280
    Join Date
    Mar 2007
    Posts
    1,238
    Thanks G/R
    0/3
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by swayenvoy View Post
    Seems to be a wired flag.

    Before the First Login its 0xFF
    At the Charselect Selection Screen it becomes 0x04
    After Loading its 0x16
    After Logout at the Charselect Screen it's still 0x16
    Back at the Loging Screen still 0x16
    After logingin back to Charselect Screen it's 0x04 again
    ....

    Is it only me who see this wired stuff?
    The 'messagebox' wow so kindly shows us evry time we log in. It changes values depending on what it shows, so it's good if ure making a OOGManager or some other out of game class so you know if you get stuck in a Que to a realm or something. And for the gluescreens there is a static variable you can read that tells you if ure at the Login glue charselect or charcreate/realmwizard. it wont change after you login tho but it's not hard to check if ure logged in.

  13. #13
    Cypher's Avatar Kynox's Sister's Pimp
    Reputation
    1358
    Join Date
    Apr 2006
    Posts
    5,368
    Thanks G/R
    0/6
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Kynox: Is this the one it checks for the Blizz authenticator?

  14. #14
    kynox's Avatar Member
    Reputation
    830
    Join Date
    Dec 2006
    Posts
    888
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Cypher View Post
    Kynox: Is this the one it checks for the Blizz authenticator?
    Yes (filler)

  15. #15
    Cypher's Avatar Kynox's Sister's Pimp
    Reputation
    1358
    Join Date
    Apr 2006
    Posts
    5,368
    Thanks G/R
    0/6
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by kynox View Post
    Yes (filler)

    Strange... The address harko posted is close to this but still a few bytes off (Or at least, it was when I looked a day or two again). Then again, I was probably mildly intoxicated at the time so maybe I was seeing things.

Page 1 of 2 12 LastLast

Similar Threads

  1. Current Login Music->TBC Login Music
    By Avianar47 in forum World of Warcraft Model Editing
    Replies: 9
    Last Post: 11-22-2006, 06:01 AM
  2. Error: Your login interface files are corrupt
    By Grtis in forum World of Warcraft General
    Replies: 0
    Last Post: 10-28-2006, 06:38 PM
  3. Require a login to view ALL threads
    By Piratewolf in forum Suggestions
    Replies: 4
    Last Post: 08-24-2006, 06:14 AM
  4. can't login.
    By robtuner in forum World of Warcraft General
    Replies: 2
    Last Post: 07-21-2006, 12:44 PM
  5. [Program] Re-login on Disconnect
    By Cypher in forum World of Warcraft Bots and Programs
    Replies: 4
    Last Post: 05-14-2006, 01:01 AM
All times are GMT -5. The time now is 04:07 PM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search