Log in

View Full Version : Anothor problem with SRL!!!



deviney
05-31-2007, 02:54 PM
Hello again people,

Its me Deviney!

Just spent all yestarday figuring what was up with scar/SRL. when i finnaly got the SRL setup script to run correctly, i was chuffed lol.

I then though i would make a script but now i seem to get an error saying:

Failed when compiling
Line 59: [Error] (14813:10): Unknown identifier 'FindItemColor' in script C:\Program Files\SCAR 2.03\includes\srl/srl/skill/Fishing.scar

am using srl v 3.7 and scar divi 2.6

heres the script

program fishinglobbys;
{.include srl/srl.scar}
{.include SRL/SRL/skill/fishing.scar}

var fishy: Integer;
procedure findfish;
begin
fishy := BitmapFromString(1, 2, '88B0E9A8C8FF');
if(FindBitmap(fishy,x,y))then
begin
Mouse(x,y,2,2,true);
Writeln('found fish!');
end;
end;

begin
findfish
end.

Fearlesssss
05-31-2007, 09:47 PM
You need to add another include. I think its:

{.include SRL/SRL/Extended/xDTM.scar}

I could be wrong but put this before the fishing.scar include ;)

badandymitch
05-31-2007, 09:49 PM
you dont have setupsrl, its
SetupSRL;
put it in the main loop

evilwalrus
05-31-2007, 10:12 PM
indeed

maux
07-19-2007, 05:46 AM
hey plz now that the SRL and the SCAR have been updated (I have SRL 3.81 and SCAR divi 3.06) I have the same stupid error evrytime I run any fishing script, could someone help me?

itSchRis917
07-19-2007, 06:37 AM
Pretty sure you need the xInventory include.


{.include SRL\SRL\Extended\xInventory.scar}