Results 1 to 2 of 2

Thread: Fire Maker help?

  1. #1
    Join Date
    Mar 2009
    Location
    About six feet off the ground.
    Posts
    95
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Fire Maker help?

    I've made a basic firemaking script that will click on the tinderbox and then the logs, then wait a few seconds.

    It compiles beautifully, but then when I hit F4 it goes directly to the failsafe.

    Is there something I've been missing? This tends to happen a lot.

    SCAR Code:
    program LightAll;
    {.include SRL/SRL.scar}
    var
      x, y, rx, ry, Logs, Tinderbox: Integer;
      Finish: String;
    procedure DeclareBMPs;
    begin
      Logs := BitmapFromString(1, 13, 'beNpr8/ZwMHFzMAYiZ2tDIBtIQ' +
           'hADA2NGgH52kOGSNu8lAMTMCmc=');
      Tinderbox := BitmapFromString(6, 1, 'beNqzNnS2NnS01HMw0wUyQ' +
           'AgAJhsECA==');
    end;
    procedure FindLogs;
    begin
      if FindBitmap(Logs, x, y) and FindBitmap(Tinderbox, rx, ry) then
        Begin
          MouseSpeed := 7;
          repeat
            MMouse(rx, ry, 2, 1);
            Wait(500+random(500));
            Mouse(rx, ry, 0, 0, true);
            Wait(1000+random(500));
            MMouse(x, y, 0, 0);
            Wait(500+random(500));
            Mouse(x, y, 0, 0, true);
            Wait(10000+random(5000));
          until(not FindBitmap(Logs, x, y));
          Finish := 'Finished.';
        end else
          Begin
            Finish := 'Did not finish.';
          end;
    end;
    procedure Prog;
    begin
      Writeln(Finish);
    end;
    procedure Idle;
    begin
      while not IsFKeyDown(4) do
        Wait(10);
    end;
    begin
      SetupSRL;
      ClearDebug;
      DeclareBMPs;
      Idle;
      FindLogs;
      Prog;
    end.
    ~Zeek
    Last major script: November 2009
    Attempted to rejoin: January 2011
    Rejoining: [][][][][]
    Current task: writing basic alching script

  2. #2
    Join Date
    Feb 2007
    Posts
    3,616
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Aequix View Post
    Not sure if it's any help - but I'm assuming it's something to do with the Bitmaps. I replaced the Bitmaps with DTMs of each item and the FindBitmap function with FindDTM and the script ran perfectly - holding down F4 it burns each log until it can't find one.
    What he said. Bad bitmaps. For items though, you should really try using DTM's.

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
  •