SRL Archive - SRL Archives

FillBucket [Crafting]


JPHamlett

2009-10-23 22:22:03

this function will click the bucket in the inv and then find the fountain and click it



Function FillBucket(Invspot : integer): boolean;
var
water: tpoint;
begin
if not gametab(tab_inv) then exit;
mouseitem(invspot, true);
if findcolorspiraltolerance(water.x, water.y, 14851710, msx1, msy1, msx2, msy2, 5) then
begin
mouse(water.x, water.y, 4, 4, true);
result := true;
exit;
end else
writeln('Failed to find water fountain');
result := false;
end;

tell me what u think

Nava2

2009-10-24 01:06:54

Kinda not needed…

Its too much a needed function for a script that SHOULD be written by the scripter.

YoHoJo

2009-10-24 01:41:05

1) It should auto-detect the bucket anyways, so there are no parameters
2) Too 'specific' if you know what I mean, we don't want SRL turning into

Procram AutoMiner;
Begin
MineRock(Iron);
WalkToVarrock;
Bank;
WalkToMine;
end.

Although, that would be kinda neat? :D

Cartmann

2009-10-27 16:47:18

It would be kind of awesome if SCAR SRL had some "official" scripts in whom everybody worked on makeing it perfect and undetectable?

XRaye

2009-10-27 17:07:44

From: Cartmann
It would be kind of awesome if SCAR SRL had some "official" scripts in whom everybody worked on makeing it perfect and undetectable?


Yeah but eventually there will be arguments and the script will either be abandoned or split.

EDIT:

Cool was my 500th post :)

Bionicle

2009-10-27 17:09:56

From: YoHoJo
1) It should auto-detect the bucket anyways, so there are no parameters
2) Too 'specific' if you know what I mean, we don't want SRL turning into

Procram AutoMiner;
Begin
MineRock(Iron);
WalkToVarrock;
Bank;
WalkToMine;
end.

Although, that would be kinda neat? :D


Program AutoMiner;
Begin
LoginUser('username, password');
repeat
begin
MineRock('Iron');
WalkToVarrockWestBank;
Bank;
WalkToMine;
end;
until(loads=10);
end.

pfff

Wikkedninja

2012-03-04 23:19:27

quick question can you use this method changed up a bit to fix banking function in Water Manipulator script?

YoHoJo

2012-03-04 23:52:29

Dude please read the thread date before posting, this was last posted in in 2009!

SwagDaddy

2012-03-05 01:00:20

From: Wikkedninja
quick question can you use this method changed up a bit to fix banking function in Water Manipulator script?


Grave dig much?