SRL Archive - OSR Help

Yew Cutter error (Cathy Yews)


poop123456

2014-06-03 20:16:27

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

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.');
[B]error->[/B] 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.



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;

Wetish

2014-06-03 21:19:25

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

poop123456

2014-06-03 22:07:41

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

Flight

2014-06-03 22:31:31

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.

poop123456

2014-06-03 23:03:13

From: Flight
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/osrreflection/source/browse/Reflection.Simba

Flight

2014-06-03 23:25:07

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

From the "Download zip" link.

poop123456

2014-06-03 23:33:39

yea then i am stumped hmmmm

Flight

2014-06-03 23:45:57

From: poop123456
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.