Results 1 to 7 of 7

Thread: So very lost with bitmaps

  1. #1
    Join Date
    Oct 2006
    Posts
    468
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default So very lost with bitmaps

    So I can't figure out what the hell I'm doing wrong with bitmaps. After adding multiple writeln checks I figured out that the script just stops doing anything as soon as it gets to any FindBitmap type function I'm using. Could anyone explain this to me please?

    Code:
    Procedure GoBank2;
    begin
      bankmen := BitmapFromString(8, 11, 'beNoLCfYP8ENGgUGBQBQcgh' +
           'D/908QiNDEgSJ//jB9/cpw9y4DsjhQEIjevmU4cwZFnIGBEagSKAh' +
           'koJkPFIEI0tN8dP8CANexX5o=');
      writeln('trying alternate banking route');
      MakeCompass('N');
      repeat
      if(FindDeformedBitmapToleranceRotationIn(bankmen, x, y, 532, 1, 716, 167, 15, 10, Accuracy, radians(2), radians(0), radians(359), finangle))then
       begin
         writeln('found bank bitmap');
         Mouse(x, y, 2, 2, true);
         FFlag(0);
         if(FindColorSpiralTolerance(x,y, 8887480, 2, 2, 518, 337, 15))then
          begin
            mouse(x,y, 1, 1, false);
            wait(350+random(100));
            chooseoption('Bank Banker');
            wait(1000+random(500));
          end;
        end;
      failsafecount := failsafecount + 1;
      if(failsafecount > 20)then
       begin
         writeln('failed to bank');
         terminatescript;
       end;
      writeln(failsafecount);
      until(BankScreen)
      if(Bankscreen)then
       begin
         deposit(2, 28, true);
         wait(250+random(250));
         CloseBank;
       end;
    end;

  2. #2
    Join Date
    Jan 2007
    Posts
    834
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    You're saying it stops at any FindBitmap so I would assume it's not finding the bitmap.

  3. #3
    Join Date
    Oct 2006
    Posts
    468
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I mean, if I put something such as writeln somewhere in the script after a findbitmap, it will never get to it.

  4. #4
    Join Date
    Oct 2008
    Location
    C:\Simba\Includes\
    Posts
    7,566
    Mentioned
    19 Post(s)
    Quoted
    180 Post(s)

    Default

    Have you tried just a simple FindBitmap?

    ~Camo
    Away for awhile, life is keeping me busy. | Want to get my attention in a thread? @Kyle Undefined; me.
    { MSI Phoenix || SRL Stats Sigs || Paste || Scripts || Quotes || Graphics }

    When posting a bug, please post debug! Help us, help you!

    I would love to change the world, but they won't give me the source code. || To be the best, you've got to beat the rest. || Logic never changes, just the syntax.
    If you PM me with a stupid question or one listed in FAQ, or about a script that is not mine, I will NOT respond.


    SRL is a Library of routines made by the SRL community written for the Program Simba. We produce Scripts for the game Runescape.


  5. #5
    Join Date
    Oct 2006
    Posts
    468
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    That appears to work, actually, although it doesn't find the bitmap. The bitmap I'm using is subject to change somewhat.

  6. #6
    Join Date
    Feb 2007
    Location
    Alberta,Canada
    Posts
    2,358
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    its like FindDTMRotated() it doesnt just stop if it doesnt find it once. Thus, your bitmap doesnt work and the script continually looks for it and can never find it.
    “Ignorance, the root and the stem of every evil.”

  7. #7
    Join Date
    Oct 2006
    Posts
    468
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Ohhh, thank you very much.

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
  •