Results 1 to 3 of 3

Thread: smart just keeps opening new windows

  1. #1
    Join Date
    Mar 2013
    Posts
    12
    Mentioned
    0 Post(s)
    Quoted
    9 Post(s)

    Default smart just keeps opening new windows

    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):
    Code:
     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

  2. #2
    Join Date
    Sep 2012
    Location
    Here.
    Posts
    2,007
    Mentioned
    88 Post(s)
    Quoted
    1014 Post(s)

    Default

    Your walkTo method calls SetupSRL every time you call it.

    That will setup a new SMART window

    Just remove that call and you'll be fine.

  3. #3
    Join Date
    Mar 2013
    Posts
    12
    Mentioned
    0 Post(s)
    Quoted
    9 Post(s)

    Default

    Quote Originally Posted by Kevin View Post
    Your walkTo method calls SetupSRL every time you call it.

    That will setup a new SMART window

    Just remove that call and you'll be fine.
    that fixed it, thank you.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •