Auto ReLogin?

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Post Reply
Message
Author
xxsinz
Posts: 67
Joined: Wed May 27, 2009 9:45 am

Auto ReLogin?

#1 Post by xxsinz » Wed May 27, 2009 9:46 am

I get disconnected sometimes, and I was wondering if it would be possible to create a auto login.

User avatar
Administrator
Site Admin
Posts: 5307
Joined: Sat Jan 05, 2008 4:21 pm

Re: Auto ReLogin?

#2 Post by Administrator » Wed May 27, 2009 10:08 am

It is possible, but it will be an unsupported function of the bot. Mostly, to protect the user (and I don't want to hear anybody claiming I'm trying to steal their accounts -- I have enough of my own to worry about). There are addons on curse.com that do exactly this. I cannot remember the names of the addons that support this feature at the moment, though.

Edit: found one: http://forum.runesofmagic.com/showthread.php?t=44199

xxsinz
Posts: 67
Joined: Wed May 27, 2009 9:45 am

Re: Auto ReLogin?

#3 Post by xxsinz » Wed May 27, 2009 10:31 am

That is a cool addon but the author could never get it relogin, so if I am already logged in and I get logged off it does not log back in, could you point in the right direction to correct that?

User avatar
Administrator
Site Admin
Posts: 5307
Joined: Sat Jan 05, 2008 4:21 pm

Re: Auto ReLogin?

#4 Post by Administrator » Wed May 27, 2009 10:45 am

I would think all you'd have to do is add

Code: Select all

AccountLogin_Login();
Into AccountLogin_OnLoad(). It just seems to be that the returning to the log in screen isn't triggering the AccountLogin:Show() function.

xxsinz
Posts: 67
Joined: Wed May 27, 2009 9:45 am

Re: Auto ReLogin?

#5 Post by xxsinz » Wed May 27, 2009 11:04 am

Code: Select all

function AccountLogin_OnLoad()
	local file = "Interface\\Login\\Logo\\"..GetImageLocation().."\\RA_LOGO";
	AccountLogin.update = nil;
	AccountLoginVersion:SetText(GetVersion());
	AccountLoginLogo:SetTexture(file);
	AccountLogin_Login();
end
I made it look like that, but still not working, and what language is this in?

User avatar
Administrator
Site Admin
Posts: 5307
Joined: Sat Jan 05, 2008 4:21 pm

Re: Auto ReLogin?

#6 Post by Administrator » Wed May 27, 2009 1:28 pm

Lua. If that didn't work, I don't know what to tell you. Look for what event is fired when the login screen is brought up. When that event is fired, call that function to log in. That is, if there even is an event.

Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 2 guests