SRL Archive - OSR Help

smart just keeps opening new windows


ty6567

2013-06-20 13:04:40

so i'm making a script and i wanted to test my walking path. when i start the script SMART loads and logs me in, but instead of walking the path i have set it just opens up another smart window and starts loading runescape again. i realize this is probably just a stupid mistake on my part but this is my first script and i cant figure it out, so any help is appreciated.

this is the entire script so far (i just wanted to test the walking before i continued on with it):
 program new;
{$Define smart8}
{$I SRL-OSR/SRL.simba}
{$I SPS/SPS-OSR.simba}
Var
myPath:TPointArray;




Procedure DeclarePlayer;
begin
HowManyPlayers := 1;
NumberOfPlayers(HowManyPlayers);
CurrentPlayer := 0;
//fill out name, pass, and nick between the ''

Players[0].Name :=''; // this is your login name not your in game name
Players[0].Pass :='';
Players[0].Nick :=''; // your nick is your IN GAME NAME (not your login name) with the first letter left off
Players[0].Active:=True;
end;




procedure WalkTo;
begin
SetupSRL;
SPS_Setup(RUNESCAPE_SURFACE, ['7_5+8_5']);
myPath := [Point(651, 494), Point(583, 480), Point(529, 436), Point(466, 403), Point(415, 358), Point(355, 387), Point(326, 449)];
SPS_WalkPAth(myPath);
end;




begin
ClearDebug;
SetupSRL;
DeclarePlayer;
ActivateClient;
If Not LoggedIn then
LoginPlayer;
WalkTo;
end.

Thanks in advance for any help

Kevin

2013-06-20 13:08:56

Your walkTo method calls SetupSRL every time you call it.

That will setup a new SMART window :p

Just remove that call and you'll be fine.

ty6567

2013-06-20 13:32:56

From: Kevin
Your walkTo method calls SetupSRL every time you call it.

That will setup a new SMART window :p

Just remove that call and you'll be fine.


that fixed it, thank you.