Page 1 of 1
Auto ReLogin?
Posted: Wed May 27, 2009 9:46 am
by xxsinz
I get disconnected sometimes, and I was wondering if it would be possible to create a auto login.
Re: Auto ReLogin?
Posted: Wed May 27, 2009 10:08 am
by Administrator
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
Re: Auto ReLogin?
Posted: Wed May 27, 2009 10:31 am
by xxsinz
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?
Re: Auto ReLogin?
Posted: Wed May 27, 2009 10:45 am
by Administrator
I would think all you'd have to do is add
Into AccountLogin_OnLoad(). It just seems to be that the returning to the log in screen isn't triggering the AccountLogin:Show() function.
Re: Auto ReLogin?
Posted: Wed May 27, 2009 11:04 am
by xxsinz
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?
Re: Auto ReLogin?
Posted: Wed May 27, 2009 1:28 pm
by Administrator
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.