Results 1 to 7 of 7

Thread: script cant find bitmaps

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

    Default script cant find bitmaps

    My script is supposed to find the quest bitmap at al kharid to find where it is. but it cant find the bitmap so it doesnt know where it is and just sits there.this is what i have tell me if im doing it wrong... do i have to put =true after if(FindBitMapTol(tx,ty,quest,564,11,741,168)?

    SCAR Code:
    if(FindBitMapTol(tx,ty,quest,564,11,741,168)) then
    Players[CurrentPlayer].loc:='Bank'
    else
    Players[CurrentPlayer].loc:='Furn'
    end;

  2. #2
    Join Date
    Feb 2006
    Location
    Tracy/Davis, California
    Posts
    12,631
    Mentioned
    135 Post(s)
    Quoted
    418 Post(s)

    Default

    can you actauly show us you mitmap?
    Like the code
    Quest:= ASKLFJALKSFj

    and for minimap coordiants
    do
    MMX1,MMY1,MMY2,MMY2
    ^ build in minimap cords in SRL

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

    Default

    this is my bmp

    quest := BitmapFromString(15, 5, 'z78DA9D90510A80201005AFB4' +
    'A6D6FAB9E6DEFF4A060FEAC5524408F3213A3C46921CC7BC4 B37E' +
    '696347B5535DBBDF85A8781B85F4A1EE71B6FD26E7F255D27 3A41' +
    'D8D8CF4EE6BB99B7FDE3F7CDB1093673196E023E9963672E1 39BB' +
    '093374F7355666D');
    Color:= 14312782;

    ok ill put that in thanks

  4. #4
    Join Date
    Feb 2006
    Location
    Tracy/Davis, California
    Posts
    12,631
    Mentioned
    135 Post(s)
    Quoted
    418 Post(s)

    Default

    hmm ur bitmap seems fine to me idk why it isnt finding
    just use
    If FindSymbol(x,y,'Quest') then
    writeln('yay')

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

    Default

    k ill try that

  6. #6
    Join Date
    Sep 2006
    Posts
    5,219
    Mentioned
    4 Post(s)
    Quoted
    1 Post(s)

    Default

    Also try:

    procedure trytofindsymbol(symbol:string);
    begin
    tries2:=0;
    repeat
    tries:=0;
    repeat
    wait(500);
    //===rotate map a lil bit=====
    tries:=tries+1;
    until (FindSymbol(x,y,symbol) or (tries>10));
    if tries>10 then
    begin
    logout;
    loginplayer;
    end;
    tries2:=tries2+1;
    until (FindSymbol(x,y,symbol) or (tries2>3));
    if tries2>3 then
    begin
    writeln('couldn't find the symbol');
    terminatescript;
    end;
    end;

    you need to write something that rotates map lil bit, look at makecompass. Also you can change the number of tries.

    This is because rotating the map move symbols so that dots aren't on top, and logging out can move them even more.

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

    Default

    i will try that thanks Boreas

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. bitmaps make my script laggy
    By marpis in forum OSR Help
    Replies: 3
    Last Post: 12-15-2008, 09:19 PM
  2. Bitmaps making my script lag
    By marpis in forum OSR Help
    Replies: 4
    Last Post: 12-08-2008, 08:50 PM
  3. Find all the bitmaps in an area?
    By Infantry001 in forum OSR Help
    Replies: 13
    Last Post: 12-08-2008, 08:46 PM
  4. Cant find script/tut about...
    By the wc woman in forum OSR Help
    Replies: 3
    Last Post: 05-06-2008, 07:55 PM
  5. My script won't find a monster.
    By noobielul in forum OSR Help
    Replies: 6
    Last Post: 09-16-2007, 09:47 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
  •