SRL Archive - SRL Archives

Cooking Functions


ReFLeX

2006-04-07 19:51:22


{*******************************************************************************
Procedure CookAll;
By: ReFLeX
Description: Clicks Cook All Option for Trout, Salmon, Cod, and Pike
*******************************************************************************}
procedure CookAll;
{.include SRL/SRL.scar}

var Fish : integer;
begin
Fish := DTMFromString('78DA63E460606050624001F11111609A1188F' +
'F0301A32090218EAA26293A8AE13F540D58AD0A90E0475593959C' +
'8CA206002E9309DC');

if FindDTM(Fish, x, y, 221, 386, 290, 435)then
begin;
Mouse(x, y, 0, 0, False);
wait(1000+random(500));
Mouse(x, y+5, 0, 0, True);
end else
writeln('Couldnt find the fish')
end.


{*******************************************************************************
Procedure CookLobs ;
By: ReFLeX
Description: Clicks Cook All Option for Lobsters
*******************************************************************************}
procedure CookLobs;
{.include SRL/SRL.scar}

var Lobs : integer;
begin;
Lobs := DTMFromString('78DA6314626060E06740015B124419FE03694' +
'620FE0F048CA240862C031A6084AB01F3248184280135CC404280' +
'801A1920C1825F0D00F7600AE3');

if FindDTM(Lobs, x, y, 221, 386, 290, 435)then
begin;
Mouse(x, y, 0, 0, False);
wait(1000+random(500));
Mouse(x, y+30, 0, 0, True);
end else
writeln('Couldnt find lobster')
end.
Standards may be wrong

Sdcit

2006-04-07 20:01:42

Dude…. use procedures in SRL.. also, use colors

weaselforce

2006-04-07 20:14:14

rofl, your standards do the wave. lol at least use some srl procedures. arnt x and y already defined "1" by srl…

ReFLeX

2006-04-07 20:19:21

Sry, ill add colors now. But this is my first attempt at a function. Bare with me, I'm trying to Learn

From: weaselforce
rofl, your standards do the wave. lol at least use some srl procedures. arnt x and y already defined "1" by srl…
better than no standards at all eh?

weaselforce

2006-04-07 21:22:47

lol no sweat, great job contributing. i'm terrible at standards also

The Prince of Randomness?

2006-04-07 21:57:19

EDIT: He romved his clickmouse script ;)

Renax

2006-04-08 10:27:24

prince your standards are terrible, and what if there is no cookable fish at 252, 413 ? don't use co-ords.

Wizzup?

2006-04-08 11:04:11

How can you make a DTM called fish? Does it work for all our little fishies?:p

The Un-Named

2006-04-08 11:36:46

I could get DTM's for most fish. :)

ReFLeX

2006-04-08 13:07:53

From: Wizzup?
How can you make a DTM called fish? Does it work for all our little fishies?:p
it works for trout and salmon and possibly pike. Each of the fish have the same color eye, so it looks for that.

The Prince of Randomness?

2006-04-08 19:22:22

From: Renax
prince your standards are terrible, and what if there is no cookable fish at 252, 413 ? don't use co-ords.


I dont get the standards, sorry for being ignorant.
Also i wasnt trying to spruce his up just make his script SRL. Sorry.