Results 1 to 8 of 8

Thread: CrudCooker - Tickyy and I!

  1. #1
    Join Date
    Aug 2008
    Location
    England
    Posts
    320
    Mentioned
    0 Post(s)
    Quoted
    5 Post(s)

    Default CrudCooker - Tickyy and I!

    Hey everyone. Tickyy and I are working on a cooking script, called CrudCooker. I am making the script itself, while Tickyy improves, adds bits and modifies parts. I am currently up to making the basic blocks (Banking stuff) and I hope this script will attract some attention, like my CrudCatcher did. Anyone is invited to help, so Dr. D Dervish, *wink* *wink* .

    Currently up to:
    Banking stuff.

    Working on:
    Lighting the fire.

    -- BP

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

    Default

    Ok, good luck. I'm looking forward to reading over it when you guys post it.
    :-)

  3. #3
    Join Date
    Mar 2007
    Posts
    1,700
    Mentioned
    0 Post(s)
    Quoted
    8 Post(s)

    Default

    Here's a function you might want to use
    SCAR Code:
    function FindFire(var x, y: integer): Boolean;
    var
      P: TPointArray;
      Fire, Tol, j, fx, fy: integer;
      B: TBox;
      a: extended;
    begin
      if not LoggedIn then Exit;
      Debug('FindFire');
      FindColorsSpiralTolerance(MSCX, MSCY, P, 3385314, MSX1, MSY1, MSX2, MSY2, 40);
      RemovePointsInBox(P, PointToBox(Point(31, 4), Point(129, 24)));
      if Length(P) < 10 then Exit;
      Fire := BitmapFromString(1, 11, '3B3000F4C63FF8C83FF4C73EE6' +
        'BC39E6BC39BC922CE6BE45BC9E38BC9E3B352A00');
      Tol := 40;
      B := GetTPABounds(P);
      try
        for j := 1 to 3 do
        begin
          FindDeformedBitmapToleranceIn(Fire, fx, fy, B.x1-10, B.y1-10, B.x2+10, B.y2+10, Tol, 2, True, a);
          if a >= 1-j*0.2 then
          begin
            x := fx;
            y := fy+4;
            Result := True;
            Exit;
          end;
          DecEx(Tol, 5);
        end;
      except
        writeln('Exception');
      finally
        FreeBitmap(Fire);
      end;
    end;
    Usually when there's an exception, there is no fire.

  4. #4
    Join Date
    Dec 2008
    Posts
    2,813
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    sorry if I'm wrong (I don't know the whole try, except, finally things) but won't that only free the bitmap if it doesn't find the fire?

  5. #5
    Join Date
    Oct 2007
    Location
    #srl
    Posts
    6,102
    Mentioned
    39 Post(s)
    Quoted
    62 Post(s)

    Default

    Quote Originally Posted by 99_ View Post
    sorry if I'm wrong (I don't know the whole try, except, finally things) but won't that only free the bitmap if it doesn't find the fire?
    No, the way its written it will free it no matter what I believe.

  6. #6
    Join Date
    Mar 2007
    Posts
    1,700
    Mentioned
    0 Post(s)
    Quoted
    8 Post(s)

    Default

    SCAR Code:
    finally
      FreeBitmap(Fire);
    end;
    Means that it will always be freed. Unless of course you execute the script.

  7. #7
    Join Date
    Aug 2008
    Location
    England
    Posts
    320
    Mentioned
    0 Post(s)
    Quoted
    5 Post(s)

    Default

    Thanks Lord Saturn! I'll start working on it again now.

    -- BP

  8. #8
    Join Date
    Mar 2008
    Location
    New Jersey
    Posts
    1,673
    Mentioned
    1 Post(s)
    Quoted
    9 Post(s)

    Default

    so even though you call Exit; it still frees it? that's really cool, I didn't know you could do that, I might start doing that for DMT's I use, although what I do works just as well, I just load them all in the beginning and free them all in ScriptTerminate;.

    And I can't wait to see this script and you're working on starting the fire? so you have to have logs in your bank to use this? it doesn't use a range?

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Rimmington Miner ~ By Tickyy
    By Tickyy in forum RS3 Outdated / Broken Scripts
    Replies: 73
    Last Post: 03-07-2009, 03:18 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
  •