How to include an antirandom in a script

Discussion in 'Scar/Simba Help' started by pker overkil, Nov 15, 2007.

How to include an antirandom in a script
  1. Unread #1 - Nov 15, 2007 at 9:15 PM
  2. pker overkil
    Joined:
    Feb 11, 2007
    Posts:
    387
    Referrals:
    0
    Sythe Gold:
    0

    pker overkil Forum Addict

    How to include an antirandom in a script

    can anyone help me with an antirandom procedure for a draynor power chopper? also it MUST include a box solver because getting mysterious boxes is probably one of the most common events. it should also be able to drop the thing that comes out of the box.
     
  3. Unread #2 - Nov 16, 2007 at 7:36 PM
  4. Jukka
    Joined:
    Nov 23, 2005
    Posts:
    244
    Referrals:
    0
    Sythe Gold:
    0

    Jukka Active Member

    How to include an antirandom in a script

    FindNormalRandoms;
     
  5. Unread #3 - Nov 16, 2007 at 8:56 PM
  6. Town
    Joined:
    Jan 21, 2007
    Posts:
    3,776
    Referrals:
    3
    Sythe Gold:
    5

    Town Grand Master
    Scar Programmers

    How to include an antirandom in a script

    Jukka, that wouldn't drop anything.

    Maybe you'll like this:

    Code:
    program New;
    {.include SRL\SRL.scar}
    var
      x, y, i, BoxMask: Integer;
      aPoint: TPoint;
    begin
      BoxMask := BitmapFromString(25, 25, 'beNpjYMAF/mMABtIBLo0km' +
           'UyS7bhMJtsLyCbASQoBJUFKSeCMGjVq1KhRw94ouCFUKfFwcck2h4' +
           'wqgCQHEDSZEo8QdjYABzDsFA==');
      if (FindBox) then
        if (FindBitmapMaskTolerance(BoxMask, x, y, MIX1, MIY1, MIX2, MIY2, 5, 5)) then
        begin
          aPoint.x := x; aPoint.y := y;
          for i := 1 to 28 do
          begin
            if (PointInBox(aPoint, InvBox(i))) then
            begin
              OpenBox;
              SolveBox;
              DropItem(i);
            end;
          end;
        end;
    end.
     
< boxbreaker2.txt help | what does it mean if scar says successfully compiled successfully executed. >

Users viewing this thread
1 guest


 
 
Adblock breaks this site