Results 1 to 3 of 3

Thread: Invalid Jump

  1. #1
    Join Date
    Mar 2007
    Posts
    151
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Invalid Jump

    SCAR Code:
    Procedure MineOre;
    label
      Loads1;
    label
      Loads2;
    label
      SkipMine;
    var
      Loads, SafeOre, x, y: Integer;
    begin
      Loads1:
      MultiStuff;
      Loads2:
      repeat
        if IsFKeyDown(4) then
        begin
          ProgressReport;
        end;
        if AllPlayersInactive then
        begin
          Logout;
          TerminateScript;
        end;
        wait(180 +random(320));
        Inc(SafeOre);
        if FindColorSpiralTolerance(x, y, RockColor, 0, 0, 514, 336, 10) then
        begin
          Status('Clicking Ore');
          MMouse(x, y, 8, 8);
          wait(120 +random(80));
          if IsUpText('ock') then
          begin
            SafeOre := 0;
            GetMousePos(x, y);
              case random(20) of
                1: begin
                     Mouse(x, y, 0, 0, false);
                     wait(85+random(165));
                     ChooseOption('ine');
                     goto SkipMine;
                   end;
              end;
            Mouse(x, y, 0, 0, true);
            SkipMine:
            Status('Mining Ore');
            AntiRandoms;
            WaitWhileMine;
          end;
          AntiRandoms;
        end;
      until (InvFull) or (SafeOre > 25);
      wait(120 +random(80));
      if InvFull then
      begin
        SafeOre := 0;
        DropOre;
        Inc(Loads);
      end;
      if (SafeOre > 25) then
      begin
        Loads := 0;
        LogOut;
        NextPlayer(false);
      end;
      if (Loads >= LoadsToDo) then
      begin
        Loads := 0;
        LogOut;
        ClearDebug;
        ProgressReport;
        NextPlayer(true);
        goto Loads1;
      end;
      if not AllPlayersInactive then
      begin
        goto Loads2;
      end;
      WriteLn('All players are inactive.');
      TerminateScript;
    end;

    Getting invalid jump, Halp?

  2. #2
    Join Date
    Oct 2006
    Location
    finland, helsinki
    Posts
    2,501
    Mentioned
    3 Post(s)
    Quoted
    2 Post(s)

    Default

    u cannot use goto in a loop.

    Code:
    • Narcle: I recall Jukka releasing a bunch of scripts like this before... Its how he rolls I think. rofl
    • Solarwind: Dude, you are like... t3h s3x.
    • Hy71194: JuKKa you're a machine! You released 3 scripts in 10 minutes! :O
    • benjaa: woah.... Jukka is the man Guildminer pwns all
    • NaumanAkhlaQ: And JuKKa Is my Her0!

  3. #3
    Join Date
    Mar 2007
    Posts
    151
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    So how would i go about making it randomly right click mine an ore, instead of always left click? =/

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Error: Invalid jump in script.
    By Pancakes in forum OSR Help
    Replies: 2
    Last Post: 08-29-2007, 01:26 PM
  2. Error: Invalid jump in script?
    By Pancakes in forum News and General
    Replies: 14
    Last Post: 07-29-2007, 01:45 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
  •