SRL Archive - OSR Help

Some issues with Smart and SRL-6 [] Please take a look


footballjds

2013-11-08 11:35:44

Hello gents,

I'm having issues with SMART and SRL-6.

Please take a look at the debug that was spat out by my script:
http://paste.villavu.com/show/5496/

The script is simply:
program UltimateCrafter;
{$DEFINE SMART}
{$I SRL-6/SRL.simba}

procedure declarePlayers;
begin
setLength(players, 1);
with players[0] do
begin
loginName := 'usr';
bankPin := '';
password := 'pw';
isActive := true;
world := -1;
end;
currentPlayer := 0;
end;

function FindBank: TPoint;
var
x, y: integer;
searchArea: TBox;
begin
searchArea := [0, 1, 0, 1];
findColorSpiralTolerance(x, y, 1053721, searchArea, 10);

end;

function OpenBank: boolean;
begin
end;

function HandleBanking: boolean;
begin
end;

function CraftInventory: boolean;
begin
end;

procedure LightAntiBan;
begin
end;

begin
SetupSRL;
declarePlayers;
end.

footballjds

2013-11-08 11:37:21

I believe this is related to the isLoggedIn function.

Why is SRL searching out of bounds?

The issue only presents itself if I run my script with smart already loaded and my account logged in.

footballjds

2013-11-08 13:19:59

issue resolved.

Thanks turp


Make sure you don't have your interfaces locked.

euphemism

2013-11-08 13:39:30

Dat triple post. Would you mind sharing the solution to your issue so that it might help others in the future?

Olly

2013-11-08 13:45:26

There's a setting to disable title bars, which he did that was screwing everything up :p

footballjds

2013-11-08 16:28:12

From: euphemism
Dat triple post. Would you mind sharing the solution to your issue so that it might help others in the future?

yeah, oops, as olly said
From: Olly
There's a setting to disable title bars, which he did that was screwing everything up :p





So the issue was there is this setting that disables the "title bars" for interfaces when they're locked. I had this checked.

Which is why i originally thought I had to leave the interfaces unlocked to get things working.


olly and turp both assisted in resolving this.

Thanks guys, now i can script again :P