SRL Archive - News and General

Makeshift Login Fix


Floor66

2011-03-01 15:13:57

In gametab.scar:
{*******************************************************************************
function GetLobbyTab: Integer;
By: Bionicle1800
Description: Gets current lobby tab.
*******************************************************************************}
function GetLobbyTab: Integer;
var
tx, x, y : Integer;
begin
tx := 63;
for Result := 1 to 5 do
begin
if FindColorTolerance(x, y, 3093560, tx, 21, (tx + 122), 49, 2) then
Exit;
IncEx(tx, 122);
end;
Result := -1;
end;

And in login.scar:

//line 659:
if (LobbyScreen) then
MouseBox(256, 442, 507, 478, 1); //Button

I guess it'll be fixed soon enough but I needed this fast so here you go if you do too :)

I don't think that switching lobby tabs works yet.

And no, this is probably not the most efficient way to do this.

Flight

2011-03-01 19:39:10

Ha that's a simple enough fix. :p Nice job Floor66, I was actually thinking of trying to redo the login on my own, but I didn't know if it would have any purpose because it would probably be updated by the Dev team within a matter of hours.

HarryJames

2011-03-01 19:54:55

I think it already has.

I launched my script, it opened SMART. I checked back onto it 10 minutes later, and it was running.

That was nice and quick!

NCDS

2011-03-01 19:58:39

http://villavu.com/forum/showthread.php?p=784442#post784442 ;)