Results 1 to 8 of 8

Thread: Yew Cutter error (Cathy Yews)

  1. #1
    Join Date
    Mar 2014
    Posts
    7
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Question Yew Cutter error (Cathy Yews)

    Hey guys was trying to use Cathy Yews
    and im getting this error "Unknown identifier 'R_ChooseOptionTile' at line 131
    Compiling failed."

    Code:
    function FindBirdsNest1: Boolean;
    var                              //  seed nest [(5073, 1, (2726, 3492)), ring nest (5074, 1, (2726, 3493))]
      i: Integer;
      itemsInArea:TGroundItemArray;
    begin
      itemsInArea:=R_GetGroundItemsDistance(10);
      for i:=0 to high(itemsInArea) do
      begin
        if((itemsInArea[i].ID = 5073) or (itemsInArea[i].ID = 5074)) then
        begin
          birdsnest:=birdsnest+1;
          Writeln('Birds Nest Found.');
    error-> Result:=R_ChooseOptionTile('Take',itemsInArea[i].Tile);
        end;
      end;
    end;
    any idea how to fix this? thanks in advance

    Edit: Error 2= Identifier expected at line 333
    Compiling failed.


    Code:
    function R_ChooseOptionTileUptext2(Option, TileUptext: String; Tile: TPoint): Boolean;   //changed a little to minimize forloop
    var
      i, Tilex, Tiley: Integer;
      Tile2: TPoint;
    begin
      Result:= false;
      Tile2:= R_TileToMs(Tile);
      if (Tile2.x = 0) then
        Exit;
      Tilex:= Tile2.x;
      Tiley:= Tile2.y;
      for i:=1 to 3 do
      begin
        MouseBox(Tilex-i, Tiley-i, Tilex+i, Tiley+i, mouse_move);
        wait(103 + random(88));
        if IsUpTextMultiCustom([TileUptext]) then
        begin
          ClickMouse2(false);
          wait(103 + random(288));
        Result:= R_ChooseOptionMultiEx([Option], 'action', ClickLeft);
     Error->     Result:=true;
        end;
        wait(100 + random(50));
      end;
    end;
    Last edited by poop123456; 06-04-2014 at 02:09 AM.

  2. #2
    Join Date
    Dec 2011
    Location
    United States
    Posts
    960
    Mentioned
    21 Post(s)
    Quoted
    504 Post(s)

    Default

    Try replacing it with this
    Code:
    Result:=R_InteractTile(itemsInArea[i].Tile,'Take');

  3. #3
    Join Date
    Mar 2014
    Posts
    7
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default

    TY very much although i seem to be getting one more error
    if you would b willing to take a look id be grateful

  4. #4
    Join Date
    Aug 2007
    Location
    Colorado
    Posts
    7,421
    Mentioned
    268 Post(s)
    Quoted
    1442 Post(s)

    Default

    This might be because you're using an outdated version of the SRL-Reflection library; I'd suggest you update to the absolute newest. Although I can't be for sure, it's worth a try.

    Current projects:
    [ AeroGuardians (GotR minigame), Motherlode Miner, Blast furnace ]

    "I won't fall in your gravity. Open your eyes,
    you're the Earth and I'm the sky..."


  5. #5
    Join Date
    Mar 2014
    Posts
    7
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default

    Quote Originally Posted by Flight View Post
    This might be because you're using an outdated version of the SRL-Reflection library; I'd suggest you update to the absolute newest. Although I can't be for sure, it's worth a try.
    Thats what i thought as well and i updated reflection today but still having this issue

    This is the correct location right? https://code.google.com/p/osrreflect...flection.Simba

  6. #6
    Join Date
    Aug 2007
    Location
    Colorado
    Posts
    7,421
    Mentioned
    268 Post(s)
    Quoted
    1442 Post(s)

    Default

    If I'm not mistaken, you download it from this page:
    https://code.google.com/p/osrreflection/source/browse/

    From the "Download zip" link.

    Current projects:
    [ AeroGuardians (GotR minigame), Motherlode Miner, Blast furnace ]

    "I won't fall in your gravity. Open your eyes,
    you're the Earth and I'm the sky..."


  7. #7
    Join Date
    Mar 2014
    Posts
    7
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default

    yea then i am stumped hmmmm

  8. #8
    Join Date
    Aug 2007
    Location
    Colorado
    Posts
    7,421
    Mentioned
    268 Post(s)
    Quoted
    1442 Post(s)

    Default

    Quote Originally Posted by poop123456 View Post
    yea then i am stumped hmmmm
    It could be that the script itself is outdated, you might try asking for help directly on the thread where it's posted.

    Current projects:
    [ AeroGuardians (GotR minigame), Motherlode Miner, Blast furnace ]

    "I won't fall in your gravity. Open your eyes,
    you're the Earth and I'm the sky..."


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
  •