Results 1 to 11 of 11

Thread: function FindBoxEx(SwitchPlayers, Active: boolean): boolean;

  1. #1
    Join Date
    Jan 2007
    Location
    USA
    Posts
    1,782
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default function FindBoxEx(SwitchPlayers, Active: boolean): boolean;

    Well, this probably isn't worthy of using in SRL. Thought I would post here as a quick fix until the boxsolving is working (whenever I call findNormalRandoms, it always thinks there is a box whether there is or isnt one.

    SCAR Code:
    function FindBoxEx(SwitchPlayers, Active: boolean): boolean;
    var
      BoxMask, bx, by: integer;
    begin
      GameTab(4);
      BoxMask := BitmapFromString(16, 12, 'z78DA3330A026700303039A81' +
           '51F3879FF96E4860A884C6E0319978F594B8D98D08409EC9002B4' +
           'CE1CD');
      result:= FindBitMapMaskTolerance(BoxMask, bx, by, 554, 207, 727, 464, 1, 1);
      if result then
      begin
        MMouse(bx,by,0,0);
        If IsUpText('ox')then
          begin
            Players[CurrentPlayer].Rand:= 'Box Found';
            Writeln('Box Found!');
            If SwitchPlayers then
            begin
              NextPlayer(Active);
              exit;
            end;
            if (UseBoxSolver) then
                SolveBox
              else
                GambleBox;  
          end;
      end;
      FreeBitmap(BoxMask);
    end;

    Join the fastest growing merchanting clan on the the net!

  2. #2
    Join Date
    Jan 2007
    Location
    Kansas
    Posts
    3,760
    Mentioned
    1 Post(s)
    Quoted
    3 Post(s)

    Default

    Why don't you call the Box Solver after you find the box?


  3. #3
    Join Date
    Nov 2006
    Location
    NSW, Australia
    Posts
    3,487
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    Ha? What do you mean Bob? He uses FindNormalRandoms and the box always results as true...
    [CENTER][img]http://signatures.mylivesignature.com/54486/113/4539C8FAAF3EAB109A3CC1811EF0941B.png[/img][/CENTER]
    [CENTER][BANANA]TSN ~ Vacation! ~ says :I Love Santy[/BANANA][/CENTER]

    [CENTER][BANANA]Raymond - Oh rilie? says :Your smart[/BANANA][/CENTER]

  4. #4
    Join Date
    Jan 2007
    Location
    Kansas
    Posts
    3,760
    Mentioned
    1 Post(s)
    Quoted
    3 Post(s)

    Default

    I mean in his that after if finds the box it switches players or it does nothing. It should call the box solver.


  5. #5
    Join Date
    Jan 2007
    Location
    USA
    Posts
    1,782
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Box solver does not work

    Join the fastest growing merchanting clan on the the net!

  6. #6
    Join Date
    Jan 2007
    Location
    Kansas
    Posts
    3,760
    Mentioned
    1 Post(s)
    Quoted
    3 Post(s)

    Default

    Works for me?


  7. #7
    Join Date
    Jan 2007
    Location
    USA
    Posts
    1,782
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Have you tried it recently(since yesterday)

    Join the fastest growing merchanting clan on the the net!

  8. #8
    Join Date
    Jan 2007
    Location
    Kansas
    Posts
    3,760
    Mentioned
    1 Post(s)
    Quoted
    3 Post(s)

    Default

    Let me check last nights auto.

    SCAR Code:
    /~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\
    |     SRL 4 Randoms Report     |
    |      [url]www.srl-forums.com[/url]      |
    |~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
    | SRL Logs         :       137 |
    | Trades Made      :         1 |
    | Fights           :         1 |
    | Talks            :         1 |
    | Old Men          :         1 |
    | Boxes Solved     :         1 |
    \~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~/

    Yep, it works for me


  9. #9
    Join Date
    Jan 2007
    Location
    USA
    Posts
    1,782
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    there

    Join the fastest growing merchanting clan on the the net!

  10. #10
    Join Date
    Oct 2006
    Location
    Ontario,Canada
    Posts
    1,718
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    for me if it doesn't get it in the 30 seconds it has to get the answer it screws up and just keeps clicking the box in the inv.

  11. #11
    Join Date
    Jan 2007
    Location
    USA
    Posts
    1,782
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    yeah, see, not working -.-

    Join the fastest growing merchanting clan on the the net!

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
  •