LUA Auto Login [the final solution] menu

User Tag List

Page 1 of 2 12 LastLast
Results 1 to 15 of 23
  1. #1
    mnbvc's Avatar Banned
    Reputation
    120
    Join Date
    Jul 2009
    Posts
    273
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    LUA Auto Login [the final solution]

    i had to work my auto login stuff over because i finally needed support for different accs on 1 bnet acc
    and because i often see shitty auto login lua codes in this forum, i think it could be useful for some people, so i'm posting this here

    - supports multiple wow accs on one bnet acc
    - changes realm if necessary
    - can simply be spam executed in an endscene hook via dostring/framescript_execute until your character is online, no need for any timers or additional ifs

    Code:
    string login =	"if (WoWAccountSelectDialog and WoWAccountSelectDialog:IsShown()) then "
    				"for i = 0, GetNumGameAccounts() do "
    					"if GetGameAccountInfo(i) == '" + accname + "' then "
    						"WoWAccountSelect_SelectAccount(i) "
    					"end "
    				"end "
    			"elseif (AccountLoginUI and AccountLoginUI:IsVisible()) then "
    				"DefaultServerLogin('" + username + "', '" + password + "') "
    				"AccountLoginUI:Hide() "
    			"elseif (RealmList and RealmList:IsVisible()) then "
    				"for i = 1, select('#',GetRealmCategories()) do "
    					"for j = 1, GetNumRealms(i) do "
    						"if GetRealmInfo(i, j) == '" + realm + "' then "
    							"RealmList:Hide() "
    							"ChangeRealm(i, j) "
    						"end "
    					"end "
    				"end "
    			"elseif (CharacterSelectUI and CharacterSelectUI:IsVisible()) then "
    				"if GetServerName() ~= '"+ realm + "' and (not RealmList or not RealmList:IsVisible()) then "
    					"RequestRealmList(1) "
    				"else "
    					"for i = 0,GetNumCharacters() do "
    						"if (GetCharacterInfo(i) == '" + name + "') then "
    							"CharacterSelect_SelectCharacter(i) "
    							"EnterWorld() "
    						"end "
    					"end "
    				"end "
    			"end ";
    username = your bnet login
    password = ...
    accname = your "sub account", if any
    name = character name
    realm = your characters realm


    i don't think that i missed something, but if it spits out an error let me know
    but only lua errors, if your app crashes then you ****ed up your own code, it's not an error in this lua code, and i don't care
    Last edited by mnbvc; 08-05-2010 at 10:25 PM.

    LUA Auto Login [the final solution]
  2. #2
    caytchen's Avatar Contributor
    Reputation
    138
    Join Date
    Apr 2007
    Posts
    162
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Ceterum censeo, I still think this stuff needs to be properly wrapped. Just my 2c.

  3. #3
    MaiN's Avatar Elite User
    Reputation
    335
    Join Date
    Sep 2006
    Posts
    1,047
    Thanks G/R
    0/10
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by caytchen View Post
    Ceterum censeo, I still think this stuff needs to be properly wrapped. Just my 2c.
    I agree, this just looks too unmanageable. Say you want it to create a character if there is no characters or perhaps delete a character.
    Last edited by MaiN; 08-06-2010 at 04:00 AM.
    [16:15:41] Cypher: caus the CPU is a dick
    [16:16:07] kynox: CPU is mad
    [16:16:15] Cypher: CPU is all like
    [16:16:16] Cypher: whatever, i do what i want

  4. #4
    Xarg0's Avatar Member
    Reputation
    61
    Join Date
    Jan 2008
    Posts
    389
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    the final solution hm?
    Final Solution - Wikipedia, the free encyclopedia

    Just my 2 euro cents...
    I hacked 127.0.0.1

  5. #5
    MaiN's Avatar Elite User
    Reputation
    335
    Join Date
    Sep 2006
    Posts
    1,047
    Thanks G/R
    0/10
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Xarg0 View Post
    the final solution hm?
    Final Solution - Wikipedia, the free encyclopedia

    Just my 2 euro cents...
    Finally I get that Stephen Lynch reference. Thank you very much.
    [16:15:41] Cypher: caus the CPU is a dick
    [16:16:07] kynox: CPU is mad
    [16:16:15] Cypher: CPU is all like
    [16:16:16] Cypher: whatever, i do what i want

  6. #6
    mnbvc's Avatar Banned
    Reputation
    120
    Join Date
    Jul 2009
    Posts
    273
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by caytchen View Post
    Ceterum censeo, I still think this stuff needs to be properly wrapped. Just my 2c.
    if you want to make it a little bit extra difficult, then you can ofc wrap it
    that's the same thing like wrapping combat rotation stuff, just unnecessary, because as a lua script it's just so easy

    Originally Posted by MaiN View Post
    I agree, this just looks too unmanageable. Say you want it to create a character if there is no characters or perhaps delete a character.
    sry, i'm currently not creating tons of lvl 1 chars and teleporting into a city to write a text, thus i never wanted to create a char automatically, but it's really no big problem to add this


    Originally Posted by Xarg0 View Post
    the final solution hm?
    Final Solution - Wikipedia, the free encyclopedia

    Just my 2 euro cents...
    nazis hm?
    http://en.wikipedia.org/wiki/Godwin%27s_law
    Last edited by mnbvc; 08-06-2010 at 05:42 AM.

  7. #7
    Xarg0's Avatar Member
    Reputation
    61
    Join Date
    Jan 2008
    Posts
    389
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    nazi reference != nazi comparison

    anyways one should learn from past mistakes, there shalt be no final solutions, never again!

    hopefully you've spotted the invisible irony tags by now
    and thanks for the copy pasta, yummy edit: (I'm refering to people copying your work now, just to make that one clear, I really appriciate your work )
    I hacked 127.0.0.1

  8. #8
    highvoltz's Avatar Active Member
    Reputation
    47
    Join Date
    Dec 2009
    Posts
    29
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    +rep

    Thanks for this, using it in my relogger/autologger.
    One thing I noticed that it doesn't work for characters names that doesn't use standard ANSI etc á,û,é. This is because lua doesn't really work that well with Unicode. to get around that I just use the character slot number instead of name etc CharacterSelect_SelectCharacter("+slot.ToString() +")"

    Also I have one problem. it sometimes causes the "character not found" popup to show, if I click that it than continues the login process. Is there a way to autoclick that or change the code so it doesn't show? I looked for any reference to the popup in blizzards UI files but couldn't find any.
    Last edited by highvoltz; 08-30-2010 at 08:11 PM.

  9. #9
    suicidity's Avatar Contributor
    Reputation
    207
    Join Date
    Oct 2006
    Posts
    1,439
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Xarg0 View Post
    anyways one should learn from past mistakes, there shalt be no final solutions, never again!
    Are you trying to say there should never be NO final solution; Suggesting that we need a final solution? Or that there should be no final solutions, never again "shall we try creating and employing a final solution"?

    If it's the latter, don't word your sentences idiotically.


  10. #10
    Scorpiona's Avatar Active Member
    Reputation
    17
    Join Date
    Mar 2009
    Posts
    42
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by suicidity View Post
    Are you trying to say there should never be NO final solution; Suggesting that we need a final solution? Or that there should be no final solutions, never again "shall we try creating and employing a final solution"?

    If it's the latter, don't word your sentences idiotically.
    Sounds like you need a final solution to all these final solutions...

  11. #11
    Barrt73Rus's Avatar Banned
    Reputation
    171
    Join Date
    May 2009
    Posts
    1,272
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    didn't work on 4.0.3

  12. #12
    miceiken's Avatar Contributor Authenticator enabled
    Reputation
    209
    Join Date
    Dec 2007
    Posts
    401
    Thanks G/R
    7/9
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Barrt73Rus View Post
    didn't work on 4.0.3
    I highly doubt that the lua usage of these commands have changed.

  13. #13
    Barrt73Rus's Avatar Banned
    Reputation
    171
    Join Date
    May 2009
    Posts
    1,272
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by miceiken View Post
    I highly doubt that the lua usage of these commands have changed.
    i enter code in .lua file, got DC and script nothing do

    or i wrong use it?

  14. #14
    oldmanofmen's Avatar Member
    Reputation
    12
    Join Date
    Jan 2010
    Posts
    104
    Thanks G/R
    4/3
    Trade Feedback
    3 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Barrt73Rus View Post
    i enter code in .lua file, got DC and script nothing do

    or i wrong use it?
    As you put it, you "wrong use it". As the original poster wrote: "- can simply be spam executed in an endscene hook via dostring/framescript_execute until your character is online, no need for any timers or additional ifs ". It does help to read about what you're using first before you dive in.

  15. #15
    mnbvc's Avatar Banned
    Reputation
    120
    Join Date
    Jul 2009
    Posts
    273
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    beside the fact that you are definitely doing it wrong there did indeed change something :P
    if you join a server with no char on it you will automatically see the char create gui since 4.x.x and the script will stop doing anything
    insert this before the last "end" to fix it:
    Code:
    "elseif (CharCreateRandomizeButton and CharCreateRandomizeButton:IsVisible()) then "
    	"CharacterCreate_Back() "

Page 1 of 2 12 LastLast

Similar Threads

  1. Random Lua Auto-login Stuff
    By Cypher in forum WoW Memory Editing
    Replies: 26
    Last Post: 07-09-2010, 04:11 PM
  2. why has WoW Manager WITHOUT Auto-Login v0.0.7.1 disappeared from the forum
    By dekdeck in forum WoW Bots Questions & Requests
    Replies: 3
    Last Post: 06-27-2010, 11:54 PM
  3. [Release] Allstar .ιllιlı. - WoW Auto Login! (The REAL one)
    By Allstar .ιllιlı. in forum Community Chat
    Replies: 24
    Last Post: 03-31-2009, 05:27 PM
  4. The Final Solution to the MMOwned Problem
    By Verye in forum Community Chat
    Replies: 3
    Last Post: 10-07-2008, 02:56 AM
All times are GMT -5. The time now is 11:05 AM. 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