Results 1 to 4 of 4

Thread: Ok, Someone telling me why my script freezes at login?

  1. #1
    Join Date
    Dec 2007
    Location
    Michigan, USA
    Posts
    280
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Ok, Someone telling me why my script freezes at login?

    Heres the script so far:
    SCAR Code:
    {/////|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||\\\\\
    /////|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||\\\\\
    |||||                                                                     |||||
    |||||                   PowerCutter Ver 1 by Mikevskater                  |||||
    |||||                  This ver only cuts normal trees...                 |||||
    |||||            Thanks ALOT to pwnaz0r for fixing my cut procedure!      |||||
    |||||                                                                     |||||
    \\\\\|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||/////
     \\\\\|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||/////
    }

    program FirstScript;
    {.include srl/srl.scar}

    var
      x,y: Integer;
      Logs: Integer;
      Clicks: Integer;
     
    const
      Tree = 4621949;
    ////////////////////////////////////////////////////////////////////////////////
    procedure DeclarePlayers;
    begin
      SRLId:= '3586';
      SRLPassword:= 'skater';
      HowManyPlayers := 1;
      NumberOfPlayers(HowManyPlayers);
      CurrentPlayer := 0;
     
      Players[0].Name   := 'User';
      Players[0].Pass   := 'Pass';
      Players[0].Nick   := 'Nick';
      Players[0].Active := True;
    end;
    ////////////////////////////////////////////////////////////////////////////////
    procedure Anti;
    begin
      FindNormalRandoms
      if (Findfight) then
      begin
        runaway('N', false, 3, 9000+random(1000));
      end;
    end;
    ////////////////////////////////////////////////////////////////////////////////
    procedure Antiban;
    begin
      case random(10) of
        0: BoredHuman;
        2: RandomMovement;
        4: PickUpMouse;
        6: HoverSkill('woodcutting', false);
        8: RandomRClick;
      end;
      wait(random(2000));
    end;
    ////////////////////////////////////////////////////////////////////////////////
    procedure Cut;
    var
      Inv: Integer;
    begin
      repeat
        if(FindObj(x,y,'ree',Tree,15)) and not(InvFull) then
        begin
          Inv := InvCount;
          Mouse(x,y,5,5,true);
          Flag;
          Clicks := Clicks + 1
          ReportVars[0]:= 1;
          Anti;
            repeat
              wait (random(1000));
            until(InvCount > Inv);
          Anti;
        end;
      until (InvFull);
    end;
    ////////////////////////////////////////////////////////////////////////////////
    Procedure Drop;
    var
      Logs: Integer;
    begin
    Logs := DTMFromString('78DA63CC65626078C68002F2428DC0342394C' +
           'F580254F396010D30A2AAA906AA794A404D1950CD2D026A92806A' +
           'EE1250130754F386809A34A09A8FF8D500000D2D0A5C');
      if(FindDTM(logs,x,y,MIX1,MIY1,MIX2,MIY2))then
      begin
        DropAll;
        wait(1000+random(500));
        Writeln('Dropped');
        Anti;
        Logs := Logs + 28
        ReportVars[0]:= 28;
      end;
    end;
    ////////////////////////////////////////////////////////////////////////////////
    procedure Proggy;
    begin
      ClearDebug;
      Writeln('/-----------------------------------\');
      Writeln('|    PowerCutter by MikeVSkater     |');
      Writeln('\-----------------------------------/');
      Writeln('/-----------------------------------\');
      writeln('           Clicks: '+inttostr(clicks));
      Writeln('            Logs: '+inttostr(logs));
      Writeln('        Time: '+TimeRunning);
      Writeln('\-----------------------------------/');
    end;
    ////////////////////////////////////////////////////////////////////////////////
    procedure Signature;
    begin
      ClearDebug;
      Writeln('PowerCutter made by Mikevskater');
      wait(500);
      Writeln('This is my first script so please help me '+
       'on anything you know that I dont?');
      Wait(1000+random(500))
    end;
    ////////////////////////////////////////////////////////////////////////////////
    procedure SetUp;
    begin
      SetUpSRL;
      ScriptID := '599';
    end;
    ////////////////////////////////////////////////////////////////////////////////
    begin
      Setup;
      DeclarePlayers;
      Signature;
      Disguise('Winamp');
      If SRLID = '' then
      begin
        Writeln('Register at SRL now and stop Leech`n');
        TerminateScript;
      end;
      wait(2000);
      If (Not FindRS) then
      begin
        Terminatescript;
      end else
      begin
        ActivateClient;
        Writeln('Found RuneScape');
        wait(5000);
        LoginPlayer;
      end;
      repeat
        If (Not loggedin)then
        begin
          Terminatescript;
        end;
        SetAngle(true);
        MakeCompass('n');
        Cut;
        AntiBan;
        Anti;
        Drop;
        Anti;
        AntiBan;
        Proggy;
      until(False)
    end.
    It will log in, then just sit there... any idea why?
    Forgot to put "mind" after someone in title, i don't have bad grammar just bad typing skills lmfao
    Kindof Inactive...

  2. #2
    Join Date
    Dec 2006
    Location
    Program TEXAS home of AUTOERS
    Posts
    7,934
    Mentioned
    26 Post(s)
    Quoted
    237 Post(s)

    Default

    low detail?

    or

    High detail?

    try both of those...
    it happens to me since sometimes i forget and it doesnt find the color or something and rs freezez until u stop the script

    btw the Setup PROCEDURE is useless just keep the srlid/srlsetup in the main loop

  3. #3
    Join Date
    Dec 2007
    Location
    Michigan, USA
    Posts
    280
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by p1nky View Post
    low detail?

    or

    High detail?

    try both of those...
    it happens to me since sometimes i forget and it doesnt find the color or something and rs freezez until u stop the script

    btw the Setup PROCEDURE is useless just keep the srlid/srlsetup in the main loop
    i run it in low, and it finds the colors but it freezes at login, it doesn't go to set angle... i ran a debug with printing numbers at every line, and the numbers stopped at the login line.... i think the only way for you to see is trying...? im really not that good at explaining (I've been told...)
    Kindof Inactive...

  4. #4
    Join Date
    Jun 2007
    Location
    Wednesday
    Posts
    2,446
    Mentioned
    3 Post(s)
    Quoted
    1 Post(s)

    Default

    I'll check it out in a minute, but this has happened before due to people only using 16 bit colour on their monitor and not 32.
    Edit: Tested it out and it worked fine. Waited a bit after activating the client, but then it went straight into login and even clicked a tree next to the bank after logging in :P so I think it's either you're using 16 bit monitor colour or you need to update/re-install your SRL.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Script freezes while finding a stove
    By Cazax in forum OSR Help
    Replies: 2
    Last Post: 01-25-2008, 01:48 PM
  2. Script freezes when nextplayer is called
    By Killerdou in forum OSR Help
    Replies: 0
    Last Post: 09-04-2007, 08:37 AM
  3. Script Freezes while using forms
    By Yakman in forum OSR Help
    Replies: 1
    Last Post: 10-07-2006, 08:40 PM

Posting Permissions

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