Results 1 to 6 of 6

Thread: Kebab Buyer - need help with FindSymbol

  1. #1
    Join Date
    Apr 2007
    Location
    Australia
    Posts
    4,163
    Mentioned
    9 Post(s)
    Quoted
    19 Post(s)

    Default Kebab Buyer - need help with FindSymbol

    well yer im making a kebab buyer. got a problem though:

    SCAR Code:
    procedure StoreWalk;
    begin
      Instore := false;     // set it to false first in the loop, or it will think it's constantly in the store lol
      if(FindSymbol(x, y, 'Kebab shop')) then
        begin
         Wait(100+random(10));
         Mouse(x,y,1,1,true);
         Writeln('Walking to Kebab Store');
         Flag;
         InStore := true;
         Writeln('We are in the store!');
        end else
        begin
          Writeln('Store Bitmap not found...');
          killscript(0);
        end;
    end;

    What happens with this is it just kills the script, saying "Store bitmap not found..." in the debug box, even though im starting it in the right place and everything lol.

    The question is: Why the hell doesnt it find the symbol?? lol

    I do have another way of finding it, just it uses a bitmap and i would prefer to do it this way, to use less memory and stuff

    Thanks in advance

  2. #2
    Join Date
    Oct 2006
    Location
    Ireland
    Posts
    855
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    If its being covered by even one player it doesnt work.. thats why I don't use findsymbol

  3. #3
    Join Date
    Apr 2007
    Location
    Finland
    Posts
    938
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

  4. #4
    Join Date
    Aug 2006
    Posts
    408
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Maybe make it try more than once?

  5. #5
    Join Date
    Jan 2007
    Location
    Nomming bits in your RAM
    Posts
    385
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    See if this fixes your problem, Did a quick bitmap, and had it go to that bitmap (part of the icon) instead of the icon. Hope it works
    SCAR Code:
    procedure StoreWalk;
    begin
    Var
    Kebabicon: String;
      Instore := false;     // set it to false first in the loop, or it will think it's constantly in the store lol
      Kebabicon := BitmapFromString(5, 3, '00000000FF0011FF0161FF' +
           '2E00FF00000000000000000000F52825000000000000119201F52' +
           '825F52825000000');
      FindBitmapToleranceIn(Kebabicon,x,y,563,14,716,174,30);
        begin
         Wait(100+random(10));
         Mouse(x,y,1,1,true);
         Writeln('Walking to Kebab Store');
         Flag;
         InStore := true;
         Writeln('We are in the store!');
        end else
        begin
          Writeln('Store Bitmap not found...');
          killscript(0);
        end;
    end;
    Current Project: Catching up. XD. Potentially back for the summer, depending on how things go.

  6. #6
    Join Date
    Apr 2007
    Location
    Australia
    Posts
    4,163
    Mentioned
    9 Post(s)
    Quoted
    19 Post(s)

    Default

    thanks for that macro, but i was hoping to stay away from using BMPs. if theres no other way though I geuss i will have to use them

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. kebab
    By joshdabest01 in forum OSR Help
    Replies: 4
    Last Post: 10-31-2008, 01:22 AM
  2. Kebab Buyer
    By zelda1997 in forum OSR Help
    Replies: 4
    Last Post: 04-17-2008, 04:08 PM
  3. Al Kharid kebab buyer?
    By The Lewter in forum RS3 Outdated / Broken Scripts
    Replies: 18
    Last Post: 05-29-2007, 04:45 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •