Results 1 to 3 of 3

Thread: why does my script stop?

  1. #1
    Join Date
    Apr 2012
    Location
    UK
    Posts
    269
    Mentioned
    2 Post(s)
    Quoted
    46 Post(s)

    Default why does my script stop?

    smart starts up it logs in but then it says successfully executed.

    Code:
    program SPSTut;
    {$DEFINE SMART}
    {$i srl/srl.simba}
    {$i sps/sps.simba}
    
    {$IFDEF SMART}
        {$i srl/srl/misc/paintsmart.simba}
    {$ENDIF}
    
    Procedure DeclarePlayers;
    begin
      HowManyPlayers := 1;
      NumberOfPlayers(HowManyPlayers);
      CurrentPlayer := 0;
    
      Players[0].Name :='';
      Players[0].Pass :='';
      Players[0].Nick :='';
      Players[0].Active:=True;
    end;
    
    Procedure Antiban;
    Begin
       if(not(LoggedIn))then
      Exit;
      FindNormalRandoms;
      Case Random(100) Of
        1: HoverSkill('magic', False);  
        2: HoverSkill('random', False);
        3: Boredhuman;
        4: Wait(2500 + random(4500));
        5: HoverSkill('smithing', False);
        6: PickUpMouse;
        7: RandomMovement;
        8: RandomRClick;
      end;
    end;
    
    Procedure walkingtest;
    Var
      myPath:TPointArray;
    begin
    FindNormalRandoms;
    SPS_Setup(RUNESCAPE_SURFACE,['11_7','11_6','10_6','10_7','12_7','12_6']);
     myPath := [Point(234, 211), Point(243, 181), Point(254, 150), Point(261, 119), Point(273, 93), Point(304, 87), Point(325, 71), Point(314, 57), Point(336, 28)];
      SPS_WalkPath(myPath);
    end;
    
      begin
      SetUpSRL;
      ActivateClient;
      DeclarePlayers;
      LoginPlayer;
     end.

  2. #2
    Join Date
    Mar 2007
    Posts
    5,125
    Mentioned
    275 Post(s)
    Quoted
    901 Post(s)

    Default

    After
    Simba Code:
    LoginPlayer;

    Add

    Simba Code:
    While not RsReady do
    Wait(100);
    walkingtest;

    See how that goes

    Forum account issues? Please send me a PM

  3. #3
    Join Date
    Jan 2012
    Posts
    2,568
    Mentioned
    35 Post(s)
    Quoted
    356 Post(s)

    Default

    You did not include ur walkingtest procedure in your mainloop. All that is in ur mainloop is
    Simba Code:
    begin
      SetUpSRL;
      ActivateClient;
      DeclarePlayers;
      LoginPlayer;
    end.
    which means after LoginPlayer it will terminate.

    When you make any procedures, u must always include it in ur mainloop for it to work

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
  •