Results 1 to 5 of 5

Thread: Runtime Error.

  1. #1
    Join Date
    Aug 2007
    Location
    Australia
    Posts
    133
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Runtime Error.

    Could somebody please help me? I am getting this error:

    SCAR Code:
    [Runtime Error] : Exception: Access violation at address 006D72AA in module 'scar.exe'. Read of address 00000000 in line 31 in script C:\Program Files\SCAR 3.15\Scripts\ess.scar

    for this script:

    SCAR Code:
    program essMiner;
    {.include SRL/SRL/Misc/Smart.scar}
    {.include SRL/SRL.scar}
    {.include SRL/SRL/Skill/Mining.scar}

    var
      x, y, paxe: Integer;

    procedure DeclarePlayers;
    begin
      CurrentPlayer := 0;
      NumberOfPlayers(1);

      Players[0].Name :='pureguy304';
      Players[0].Pass :='';
      Players[0].Nick :='regu';
      Players[0].Active:=True;
    end;

    procedure DTM;
    begin
      paxe := DTMFromString('78DA6314656460980FC448C0D9CE8E4107280' +
           '412FD0F048C1C40D616543510591809A45931CDC150230C64CD22' +
           'A04601C85A46408D241176F101597308A8E107B296506E17000ED' +
           '90B69');
    end;

    procedure WieldAxe;
    begin
      Status('Wielding pickaxe');
      if (FindDTM(paxe, x, y, MIX1, MIY1, MIX2, MIY2)) then Mouse(x, y, 8, 8, true) else
      begin
        GameTab(5);
        if (FindDTM(paxe, x, y, MIX1, MIY1, MIX2, MIY2)) then Exit else
        begin
          Writeln('Could not find pickaxe. Exiting.');
          LogOut;
          TerminateScript;
        end;
      end;
      FindPickHeadColor;
    end;



    begin
      SmartSetup('world108', True, True, False);
      SetTargetDC(SmartGetDC);
      SetupSRL;
      ActivateClient;
      DeclarePlayers;
      Status('Logging in player');
      if not LoggedIn then LoginPlayer;
      WieldAxe;
      MakeCompass('N');
    end.
    Thankyou.
    Quote Originally Posted by The Un-Named View Post
    You can do this a few times before mods catch on...

    "oh fuck, I think the icecream truck just knocked a kid over, brb".

  2. #2
    Join Date
    Mar 2007
    Posts
    3,042
    Mentioned
    1 Post(s)
    Quoted
    14 Post(s)

    Default

    You've never loaded your DTM. You need to call DTM; somewhere before you try to find your pickaxe.
    :-)

  3. #3
    Join Date
    Aug 2007
    Location
    Australia
    Posts
    133
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Oh dam. Lol noobish mistake. Cheers for that.
    Quote Originally Posted by The Un-Named View Post
    You can do this a few times before mods catch on...

    "oh fuck, I think the icecream truck just knocked a kid over, brb".

  4. #4
    Join Date
    Sep 2008
    Location
    New Zealand
    Posts
    157
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

  5. #5
    Join Date
    Aug 2007
    Location
    Australia
    Posts
    133
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Thanks for trying.
    Quote Originally Posted by The Un-Named View Post
    You can do this a few times before mods catch on...

    "oh fuck, I think the icecream truck just knocked a kid over, brb".

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [Runtime Error] : Exception: buffer error
    By GasMan in forum OSR Help
    Replies: 11
    Last Post: 05-13-2007, 02:07 PM
  2. Runtime Error
    By CamHart in forum OSR Help
    Replies: 2
    Last Post: 11-23-2006, 05:21 AM
  3. Runtime error
    By sk8ter in forum OSR Help
    Replies: 3
    Last Post: 10-30-2006, 01:55 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
  •