Results 1 to 6 of 6

Thread: is there a way to...?

  1. #1
    Join Date
    Jun 2007
    Location
    Greenville, SC
    Posts
    1,149
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    is there a way to...?

    search for a dtm in the last inventory slot making a boolean true?

    for example:
    SCAR Code:
    begin
      if (FindDTM(LongbowDTM, x, y,...~~~what would i put here?~~~... )) or
         (FindDTM(ShortbowDTM, x, y,...what would i put here?... )) then
      begin
        Result := True;
      end;
    end;

  2. #2
    Join Date
    Oct 2006
    Posts
    412
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    it would be the x1,y1,x2,y2 coordinates of a box around the inventory slot that you want, in this case the last one.

    FindDTM(LongbowDTM, x, y,683,431,725,458)

  3. #3
    Join Date
    Jun 2007
    Location
    Greenville, SC
    Posts
    1,149
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)
    what do you mean? like for example:

    SCAR Code:
    begin
      if (FindDTM(LongbowDTM, x, y, x27, y27, x28, y28)) or
         (FindDTM(ShortbowDTM, x, y,same as ^ )) then
      begin
        Result := True;
      end;
    end;

    thats what im thinking...

    btw, thank you for helping

  4. #4
    Join Date
    Oct 2006
    Posts
    412
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    FindDTM(LongbowDTM, x, y,683,431,725,458)

    683,431,725,458 are the window coordinates for the last spot in the inventory. if you drag the cross hairs to the rs window, and look in the bottom left of the scar window, it will give you x,y coordinates of where you mouse is. you want to put your mouse at the top left corner of where you want to start looking, and then write down those 2 numbers, thats x1 and y1. then put your mouse at the bottom right of where you want to be looking, and thats x2 and y2, and together you have a box to search in.

  5. #5
    Join Date
    Jun 2007
    Location
    Greenville, SC
    Posts
    1,149
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    thank you soooooooooo much! your the best

    *muhahaha! i get to release my updated fletcher after some testing*

  6. #6
    Join Date
    Oct 2006
    Posts
    412
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    You're welcome.

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
  •