Results 1 to 9 of 9

Thread: editting scripts.

  1. #1
    Join Date
    Jan 2013
    Posts
    22
    Mentioned
    0 Post(s)
    Quoted
    4 Post(s)

    Default editting scripts.

    so basically.. i was messing round editting scripts (i take no credit for the scripts and that)

    Code:
    Begin
    
    
      RequirementsCheck;
      {$IFDEF SMART}
      SRL_SixHourFix := True;
      Smart_FixSpeed := True;
      {$ENDIF}
      ClearDebug;
      SetupSRL;
      SmartSetRefresh(100);
    
      DeclarePlayers;
      AddOnTerminate('ReleaseDTMs');
      DefineVars;
    
      If (Not LoggedIn) Then
       Begin
         Writeln('Not In-Game Trying Log-In');
         If Not WaitLoggedIn(1000) Then
           Begin
             LoginPlayer;
             Wait(1583+Random(3293));
             ClickNorth(SRL_ANGLE_HIGH);
             Wait(1583+Random(1293));
             ToggleXPBar(True);
             MarkTime(PlayerActivityTimer);
           End;
       End;
    
    
      If Not FireOrb then
        TerminateScript;
      FirstRun := True;
      SPS_Setup(RUNESCAPE_OTHER,['TurpOrbsV2']);
      FindNormalRandoms;
      ToggleActionBar(True);
      ReturnToBank;
      
    
      Repeat
    
       //AntiBan;
        BankTaverley;
        WalkToObelisk;
        ChargeOrbs;
        ReturnToBank;
        Inc(RunCount);
        Report;
               If (Not LoggedIn) Then
          Begin
            Writeln('Not In-Game Trying Log-In');
            If Not WaitLoggedIn(1000) Then
              Begin
                LoginPlayer;
                Wait(1583+Random(3293));
                ClickNorth(SRL_ANGLE_HIGH);
                Wait(1583+Random(1293));
                ToggleXPBar(True);
                MarkTime(PlayerActivityTimer);
              End;
          End;
      Until false
    End.
    it doesn't log in if it's logged out haha. (also doesn't bypass the 6hours)
    i know it's not neat and sht, i'm sorry, forgive me pls (i took some stuff out that i editted in)
    it logs in and works if i click the stop/play button.

  2. #2
    Join Date
    Sep 2010
    Posts
    5,762
    Mentioned
    136 Post(s)
    Quoted
    2739 Post(s)

    Default

    Why does it have 2 login checks in the same block did you add that? And did you add the loop at the bottom that does the same thing as the top?

  3. #3
    Join Date
    Jan 2013
    Posts
    22
    Mentioned
    0 Post(s)
    Quoted
    4 Post(s)

    Default

    Quote Originally Posted by Officer Barbrady View Post
    Why does it have 2 login checks in the same block did you add that? And did you add the loop at the bottom that does the same thing as the top?
    oops. yeah i didn't mean to add it twice, lol. which one should i remove ? the first?

    not sure what you mean by the last bit, this is the bottom loop. i haven't posted the rest of the script 'cause that works all cool.

    it's just the 6 hours i'm trying to figure out why it doesn't log back in haha

  4. #4
    Join Date
    Sep 2010
    Posts
    5,762
    Mentioned
    136 Post(s)
    Quoted
    2739 Post(s)

    Default

    Quote Originally Posted by Shenzi View Post
    oops. yeah i didn't mean to add it twice, lol. which one should i remove ? the first?

    not sure what you mean by the last bit, this is the bottom loop. i haven't posted the rest of the script 'cause that works all cool.

    it's just the 6 hours i'm trying to figure out why it doesn't log back in haha
    Po I see what you did the first one wasn't in the main loop, in each procedure does it exit if not logged In? It cold be trying to find s stung while not logged in, you could make it exit the procedure and go back t the loop by doing

    If (not logged) in then exit

  5. #5
    Join Date
    Jan 2013
    Posts
    22
    Mentioned
    0 Post(s)
    Quoted
    4 Post(s)

    Default

    so, if i changed it too...

    Code:
     
    Repeat
      BankTaverley;
      Exit;
        If (Not LoggedIn) Then
       Begin
         Writeln('Not In-Game Trying Log-In');
         If Not WaitLoggedIn(1000) Then
           Begin
             LoginPlayer;
             Wait(1583+Random(3293));
             ClickNorth(SRL_ANGLE_HIGH);
             Wait(1583+Random(1293));
             ToggleXPBar(True);
             MarkTime(PlayerActivityTimer);
           End;
       End;
    Until false
    so if i did something like that, it'd work?
    there isn't 'If not logged in' in every procedure only in the loop.

  6. #6
    Join Date
    Sep 2010
    Posts
    5,762
    Mentioned
    136 Post(s)
    Quoted
    2739 Post(s)

    Default

    Quote Originally Posted by Shenzi View Post
    so, if i changed it too...

    Code:
     
    Repeat
      BankTaverley;
      Exit;
        If (Not LoggedIn) Then
       Begin
         Writeln('Not In-Game Trying Log-In');
         If Not WaitLoggedIn(1000) Then
           Begin
             LoginPlayer;
             Wait(1583+Random(3293));
             ClickNorth(SRL_ANGLE_HIGH);
             Wait(1583+Random(1293));
             ToggleXPBar(True);
             MarkTime(PlayerActivityTimer);
           End;
       End;
    Until false
    so if i did something like that, it'd work?
    there isn't 'If not logged in' in every procedure only in the loop.
    No add it inside the procedure, why do you need edit the script anyway? Is it broken?

  7. #7
    Join Date
    Jan 2013
    Posts
    22
    Mentioned
    0 Post(s)
    Quoted
    4 Post(s)

    Default

    Quote Originally Posted by Officer Barbrady View Post
    No add it inside the procedure, why do you need edit the script anyway? Is it broken?
    oright, thanks ^^
    and it's not 'broken' ... it works to an extent.
    like sometimes the colours mess up + the 6 hour doesn't work at all so trying to correct that.
    so i've just been playing 'round with the colours and tolerance and such haha.

  8. #8
    Join Date
    Sep 2010
    Posts
    5,762
    Mentioned
    136 Post(s)
    Quoted
    2739 Post(s)

    Default

    Quote Originally Posted by Shenzi View Post
    oright, thanks ^^
    and it's not 'broken' ... it works to an extent.
    like sometimes the colours mess up + the 6 hour doesn't work at all so trying to correct that.
    so i've just been playing 'round with the colours and tolerance and such haha.
    The change those lol, also contact the script writer @Turpinator

  9. #9
    Join Date
    Jan 2013
    Posts
    22
    Mentioned
    0 Post(s)
    Quoted
    4 Post(s)

    Default

    Quote Originally Posted by Officer Barbrady View Post
    The change those lol, also contact the script writer @Turpinator
    i've already been speaking with him
    he made some changes which helped. but some keep messing up lol

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
  •