SRL Archive - SRL Suggestions

Email validation quickfix.


weequ

2012-05-10 11:09:09

function ValidateEmailScreen: Boolean;
begin
Result := ((GetColor(263, 308) = 15447637) and (GetColor(275, 255) = 12566463));
end;


function CloseValidateEmailScreen: Boolean;
var
I: Integer;
begin
Result := False;
if not ValidateEmailScreen then Exit;
Mouse(500, 423, 60, 15, MOUSE_LEFT);
while ValidateEmailScreen do
begin
Inc(I);
if I = 100 then Exit;
Wait(50);
end;
Wait(500+Random(500));
Result := True;
end;

then change LobbyTab to
function LobbyScreen: Boolean;
begin
CloseValidateEmailScreen;
Result := InRange(GetLobbyTab, L_PlayerInfo, L_Options);
end;

I'm not sure if this is the best way to do it but atleast it was easiest. You only get the screen if you haven't registered email I think. You get the screen every time you enter lobby (logging in and logging out to lobby).

Harry

2012-05-10 12:50:42

Cool. I personally would do a global var like "if ValidEmail = True then {enter in your login email}". Though would only work for people who actually used real email addresses to signup on.

weequ

2012-05-10 14:11:21

From: Harry
Cool. I personally would do a global var like "if ValidEmail = True then {enter in your login email}". Though would only work for people who actually used real email addresses to signup on.
I'm not sure if I understand what you mean. Where it would type the email and when ValidEmail would be true? My version just presses the skip button.

Harry

2012-05-10 14:13:18

From: weequ
I'm not sure if I understand what you mean. Where it would type the email and when ValidEmail would be true? My version just presses the skip button.

Yeah, so you could check your email and verify it with clicking the link. But I don't know how quick those expire, and it's only a one-time thing. Probably better to solve it manually instead of skipping it every time.

weequ

2012-05-10 14:22:57

From: Harry
Yeah, so you could check your email and verify it with clicking the link. But I don't know how quick those expire, and it's only a one-time thing. Probably better to solve it manually instead of skipping it every time.
I agree it's probably best to verify your emails but we should keep skipping as an option for those who don't want to register an email with runescape.

ryangraham24

2012-05-10 16:01:23

here's a quickfix, validate ur email -.-"

litoris

2012-05-10 16:12:01

From: ryangraham24
here's a quickfix, validate ur email -.-"


And lose the chance to sell the account in the future?

noobman

2012-05-10 16:41:05

This is exactly what i love in open source projects :D

tvjj

2012-05-11 13:03:56

im having a huge problem with this stupid verification crap i am playing an acct that i have had since 2007 and i dont remeber the original email, hence it will not let me verify, so i am going to give this a shot lol… so do i substitute


function LobbyTab(Tab: Integer): Boolean;
begin
Result := false;
if not InRange(Tab, L_PlayerInfo, L_Options) then
begin
Srl_Warn('LobbyTab', 'Tab ' + IntToStr(Tab) + ' is not valid.', warn_AllVersions);
Exit;
end;
result := GetLobbyTab = Tab;
if result then
Exit;
if GetColor(63 + (Tab-1)*102, 32) = 8029324 then
begin
Mouse(63 + (Tab-1)*102, 32, 10, 6, mouse_left);
result := true;
end;
end;

with this


function LobbyScreen: Boolean;
begin
CloseValidateEmailScreen;
Result := InRange(GetLobbyTab, L_PlayerInfo, L_Options);
end

and do i just put the other 2 into the regular script?
im still learning how to do all this, a little help would be awesome :D

weequ

2012-05-16 09:28:06

From: tvjj
im having a huge problem with this stupid verification crap i am playing an acct that i have had since 2007 and i dont remeber the original email, hence it will not let me verify, so i am going to give this a shot lol… so do i substitute


function LobbyTab(Tab: Integer): Boolean;
begin
Result := false;
if not InRange(Tab, L_PlayerInfo, L_Options) then
begin
Srl_Warn('LobbyTab', 'Tab ' + IntToStr(Tab) + ' is not valid.', warn_AllVersions);
Exit;
end;
result := GetLobbyTab = Tab;
if result then
Exit;
if GetColor(63 + (Tab-1)*102, 32) = 8029324 then
begin
Mouse(63 + (Tab-1)*102, 32, 10, 6, mouse_left);
result := true;
end;
end;

with this


function LobbyScreen: Boolean;
begin
CloseValidateEmailScreen;
Result := InRange(GetLobbyTab, L_PlayerInfo, L_Options);
end

and do i just put the other 2 into the regular script?
im still learning how to do all this, a little help would be awesome :D
No you don't replace LobbyTab, you must replace lobbyscreen. All those functions can be found in Login.simba

And you don't touch the original script.

Edit: You must also add the ValidateEmailScreen and CloseValidateEmailScreen functions to the Login.simba include (Above LobbyTab function).