Results 1 to 10 of 10

Thread: Choosing The Bow?

  1. #1
    Join Date
    May 2007
    Location
    England
    Posts
    4,140
    Mentioned
    11 Post(s)
    Quoted
    266 Post(s)

    Default Choosing The Bow?

    After the script that I am making has clicked on the knife and the log (Fletching) when this come up:



    How would I make it so that it right clicks on any of the bows to make, depending on what the user wants to make?

    Thanks,
    Rich
    <3

    Quote Originally Posted by Eminem
    I don't care if you're black, white, straight, bisexual, gay, lesbian, short, tall, fat, skinny, rich or poor. If you're nice to me, I'll be nice to you. Simple as that.

  2. #2
    Join Date
    Mar 2007
    Posts
    4,810
    Mentioned
    3 Post(s)
    Quoted
    3 Post(s)

    Default

    SCAR Code:
    Function ClickBowText(Text : String) : Boolean;
    Begin
      Result := ClickText(Lowercase(Text), NPCChars, MCX1, MCY1, MCX2, MCY2);
    End;

    So just put part of the text as its parameters, must be exact like

    SCAR Code:
    If ClickBowText('hort') Then
      Writeln('clicked text :)');


  3. #3
    Join Date
    Mar 2007
    Posts
    1,700
    Mentioned
    0 Post(s)
    Quoted
    8 Post(s)

    Default

    The FindText function.

  4. #4
    Join Date
    May 2007
    Location
    England
    Posts
    4,140
    Mentioned
    11 Post(s)
    Quoted
    266 Post(s)

    Default

    Ok, thanks guys!
    <3

    Quote Originally Posted by Eminem
    I don't care if you're black, white, straight, bisexual, gay, lesbian, short, tall, fat, skinny, rich or poor. If you're nice to me, I'll be nice to you. Simple as that.

  5. #5
    Join Date
    May 2007
    Location
    England
    Posts
    4,140
    Mentioned
    11 Post(s)
    Quoted
    266 Post(s)

    Default

    Meh, I've got another question. Is there any way that I can measure the amount of logs in the inventory? I want this so that I can know when to start the banking procedure after it's finished one load.
    <3

    Quote Originally Posted by Eminem
    I don't care if you're black, white, straight, bisexual, gay, lesbian, short, tall, fat, skinny, rich or poor. If you're nice to me, I'll be nice to you. Simple as that.

  6. #6
    Join Date
    Mar 2007
    Posts
    4,810
    Mentioned
    3 Post(s)
    Quoted
    3 Post(s)

    Default

    Use InvCount

  7. #7
    Join Date
    Jan 2008
    Location
    NC, USA.
    Posts
    4,429
    Mentioned
    0 Post(s)
    Quoted
    4 Post(s)

    Default

    SCAR Code:
    function ItemCoordsDtm(area: string; dtm: Integer): TPointArray;
    var
      startx, starty, rowsize, colsize, colnumber, rownumber, col, row: Integer;
      x1, y1, x2, y2: Integer;
      itemx, itemy: Integer;
      i: Integer;
    begin
      if not loggedin then exit;
      SetArrayLength(Result, 0);
      if (CheckArea(area)) then
      begin
        AreaInfo(area, startx, starty, rowsize, colsize, colnumber, rownumber);
        for row := 0 to rownumber - 1 do
          for col := 0 to colnumber - 1 do
          begin
            x1 := startx + col * colsize;
            y1 := starty + row * rowsize;
            x2 := x1 + colsize;
            y2 := y1 + rowsize;
            if (FindDTM(dtm, itemx, itemy, x1, y1, x2, y2)) then
            begin
              i := GetArrayLength(Result);
              SetArrayLength(Result, i + 1);
              Result[i].x := x1;
              Result[i].y := y1;
            end;
          end;
      end;
    end;



    function CountItemsDtm(area: string; dtm: Integer): Integer;
    var
      coords: TPointArray;
    begin
      if not loggedin then exit;
      coords := ItemCoordsDtm(area, dtm);
      Result := GetArrayLength(coords);
    end;
    Copy and paste into top of your script...
    Use/example: Banked := Banked + CountItemsDtm('inv', YourDTM)
    Quote Originally Posted by irc
    [00:55:29] < Guest3097> I lol at how BenLand100 has become noidea
    [01:07:40] <@BenLand100> i'm not noidea i'm
    [01:07:44] -!- BenLand100 is now known as BenLand42-
    [01:07:46] <@BenLand42-> shit
    [01:07:49] -!- BenLand42- is now known as BenLand420
    [01:07:50] <@BenLand420> YEA

  8. #8
    Join Date
    May 2007
    Location
    England
    Posts
    4,140
    Mentioned
    11 Post(s)
    Quoted
    266 Post(s)

    Default

    What I mean is, is there something that would work like this:
    SCAR Code:
    if InvFullWith(DTM) then

    PS: I just made up that command as an example.
    <3

    Quote Originally Posted by Eminem
    I don't care if you're black, white, straight, bisexual, gay, lesbian, short, tall, fat, skinny, rich or poor. If you're nice to me, I'll be nice to you. Simple as that.

  9. #9
    Join Date
    Jan 2008
    Location
    NC, USA.
    Posts
    4,429
    Mentioned
    0 Post(s)
    Quoted
    4 Post(s)

    Default

    Ok. Check if the there are no logs left in the inv, then if there arnt, continue, if there are... restart your fletching procedure...
    Quote Originally Posted by irc
    [00:55:29] < Guest3097> I lol at how BenLand100 has become noidea
    [01:07:40] <@BenLand100> i'm not noidea i'm
    [01:07:44] -!- BenLand100 is now known as BenLand42-
    [01:07:46] <@BenLand42-> shit
    [01:07:49] -!- BenLand42- is now known as BenLand420
    [01:07:50] <@BenLand420> YEA

  10. #10
    Join Date
    May 2007
    Location
    England
    Posts
    4,140
    Mentioned
    11 Post(s)
    Quoted
    266 Post(s)

    Default

    My God! You're a genius...How could not have thought of that! Thanks!
    <3

    Quote Originally Posted by Eminem
    I don't care if you're black, white, straight, bisexual, gay, lesbian, short, tall, fat, skinny, rich or poor. If you're nice to me, I'll be nice to you. Simple as that.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Coordinates choosing is acting weird.
    By mrpickle in forum OSR Help
    Replies: 4
    Last Post: 11-28-2008, 09:45 PM
  2. Pker Accounts - Choosing and Training (Non-members)
    By warrior993 in forum Skill Guides
    Replies: 8
    Last Post: 08-09-2008, 06:04 PM
  3. Choosing random element from array
    By Repentinus in forum C/C++ Help and Tutorials
    Replies: 5
    Last Post: 12-24-2007, 11:11 PM

Posting Permissions

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