SRL Archive - RS3 Outdated / Broken Scripts

FleaWines


the flea

2012-02-15 14:15:36







Special thanks to Kyle Undefined and ashaman88 for helping out.

  • this script will make wine by withdrawing 14 grapes and 14 jugs of water then using them on each other.
  • run this script stood in front of the soul wars chest.
  • ensure the option to withdraw 14 appears when right clicking before starting the script.
  • please report any bugs though this thread

xScott

2012-02-15 14:25:15

Gonna test it as soon as i get my hands on some grapes

the flea

2012-02-15 14:36:26

From: xScott
Gonna test it as soon as i get my hands on some grapes


ok thanks let me know how it goes. I haven't tested it properly (I only had 20 grapes in bank).

xScott

2012-02-15 14:40:52

Tried it out, it withdraws 14 grapes and jugs then dumps them back into the bank and repeats.

the flea

2012-02-15 14:46:21

From: xScott
Tried it out, it withdraws 14 grapes and jugs then dumps them back into the bank and repeats.


ok uploaded a new version, re download and let me know if its any better please

xScott

2012-02-15 14:55:59

From: the flea
ok uploaded a new version, re download and let me know if its any better please


Downloaded the new one and its still it unloads the grapes and jugs into inventory then banks them again. :(

the flea

2012-02-15 15:28:20

oh sorry this is a fail script then. Perhaps a different member will be able to help me out, I dont have time right now too look into it more and my lack of scripting for 2 years has made me not very good at this anymore.

xScott

2012-02-15 15:29:18

From: the flea
oh sorry this is a fail script then. Perhaps a different member will be able to help me out, I dont have time right now too look into it more and my lack of scripting for 2 years has made me not very good at this anymore.


Haha alrighty, cheers anyway!

Kyle Undefined

2012-02-15 16:02:00

Not bad for the first script in 2 years :)

This *should* work, haven't tested but it looks like it should:
program FleaWine;
{$DEFINE SMART}
{$include srl/srl.simba}

var
StartTime, Made, MadeH, Sec, state, Make, Grape, Jug :Integer;

procedure DeclarePlayers;
begin
HowManyPlayers := 1;
NumberOfPlayers(HowManyPlayers);
CurrentPlayer := 0;

with Players[0] do
begin
Name := '';
Pass := '';
Nick := '';
Active := True;
Pin := '';
BoxRewards := ['Xp', 'mote', 'ostume', 'oins', 'aphire', 'ssence'];//Random event prices.
end;
end;

procedure setDTM;
begin
Make := DTMFromString('mqAEAAHicE2FgYGBkZGDQAGItINYEYmYgfgAUvwfFTFCxP0D2TwYI/R+I+YBiEkD8C8h+BsTPgfg1EC8Fis0E4iNAvAKIjwLxYSBeD8SzgXgBEK+C4oVQPkj9NCDeCMRboXg5VH12ehpDuL8Lg7G2AoOXkzmDkZY8g4mOIoOLjSFDqK8TQ3pyEhjXVpQztDU2MHQ0NTG06WsyRAa6MThbGzDYm+uAsbezBVg9P9CN1MSMVMbYAAAs7yvM');
Grape := DTMFromString('mggAAAHicY2NgYHBkYmBwYYLQ7kBsDcSeQPwUKHcXiN8A8UsGBJ+BgYnB14ibIYTHlsGZ05ChUCCIgd2Qg4EfKIMNM+LAEAAAbc8KFg==');
Jug := DTMFromString('mrAAAAHic42BgYJjOxMAwFYhnA3EfEE8G4hlAPAkq9hyo5gMQvwXiF0D8CIhvA/EtIH4KxJmpKQzFeXkMibExDG2NDWBcWVLCEBUWBhbjB6rBhxkJYBgAAPHmFpg=');
end;

procedure freeeDTM;
begin
FreeDTM(Make);
FreeDTM(Grape);
FreeDTM(Jug);
end;

procedure bank;
var
x,y,x2,y2:Integer;
begin
if (state = 1) then
begin
Writeln('banking');
OpenBankChest(SRL_Bank_SW);
if PinScreen then
InPin(Players[CurrentPlayer].Pin);
if BankScreen then
begin
wait(900+random(200));
DepositAll;
if FindDTM(Grape,x,y,MBX1,MBy1,MBX2,MBY2) then
begin
Mouse(x,y,1,1,false);
ChooseOption('14');
wait(200+random(50));
end;
if FindDTM(Jug,x2,y2,MBX1,MBY1,MBX2,MBY2) then
begin
Mouse(x2,y2,1,1,false);
ChooseOption('14');
wait(200+random(50));
end;
CloseBank;
state := 2;
wait(500+random(100));
end;
end;
end;

Procedure MakeWine;
var
x,y,x2,y2:integer;
begin
if (state = 2) then
begin
if not GetCurrentTab = 25 then
FTab(25);
if FindDTM(Grape,x,y,MIX1,MIY1,MIX2,MIY2) then
begin
Mouse(x,y,1,1,true);
wait(150+random(150));
end;
if FindDTM(Jug,x2,y2,MIX1,MIY1,MIX2,MIY2) then
begin
Mouse(x2,y2,1,1,true);
wait(150+random(150));
end;
if FindDTM(Make,x,y,msx1,msy1,msx2,msy2) then
begin
Mouse(x,y,1,1,true);
case random(300) of
0..10: HoverSkill(SKILL_COOKING,False);
20..30: BoredHuman;
60..65: RandomMovement;
end;
wait(850+random(150));
Made := Made + 14;
end;
state := 1;
end;
end;


procedure SetupLogin;
begin
ClearDebug;
Smart_Server := 87;
Smart_Members := True;
Smart_Signed := True;
Smart_SuperDetail := False;
SetupSRL;
DeclarePlayers;
LoginPlayer;
end;

procedure Proggy;
begin
Sec := (1+((Getsystemtime-StartTime)/1000));
MadeH := (3600 / SeC * (Made));

writeLn('=======FleaWine======');
writeLn('Time Running: ' + TimeRunning);
writeLn('Items Made: ' + IntToStr(Made));
writeLn('Items/h: ' + IntToStr(MadeH));
writeLn('=======================');
end;


begin
ClearDebug;
SetupLogin;
SetupSRL;
DeclarePlayers;
LoginPlayer;
SetDTM;
StartTime:=GetSystemTime;
state :=1;
if LoggedIn then
ClickNorth(SRL_ANGLE_HIGH);
repeat
Bank;
wait(200+random(50));
MakeWine;
wait(100+random(200));
until(false);
FreeeDTM;
end.

xScott

2012-02-15 16:30:05

@Kyle Undefined

Its now clicking on the grape and on the jug, but its not clicking the box in the chatbox which actually makes the jugs of wine, missed the step?

thanks for the reply!

the flea

2012-02-15 16:43:09

From: Kyle Undefined
Not bad for the first script in 2 years :)


thank you :)

From: xScott
@Kyle Undefined

Its now clicking on the grape and on the jug, but its not clicking the box in the chatbox which actually makes the jugs of wine, missed the step?

thanks for the reply!


That will be my fault, I used a DTM to click the button in the box. Does anyone know any other way? Is there a built in function in SRL? I looked but was unsuccessful.

Ashaman88

2012-02-15 16:44:36

From: Kyle Undefined
Not bad for the first script in 2 years :)

This *should* work, haven't tested but it looks like it should:
program FleaWine;
{$DEFINE SMART}
{$include srl/srl.simba}

var
StartTime, Made, MadeH, Sec, state, Make, Grape, Jug :Integer;

procedure DeclarePlayers;
begin
HowManyPlayers := 1;
NumberOfPlayers(HowManyPlayers);
CurrentPlayer := 0;

with Players[0] do
begin
Name := '';
Pass := '';
Nick := '';
Active := True;
Pin := '';
BoxRewards := ['Xp', 'mote', 'ostume', 'oins', 'aphire', 'ssence'];//Random event prices.
end;
end;

procedure setDTM;
begin
Make := DTMFromString('mqAEAAHicE2FgYGBkZGDQAGItINYEYmYgfgAUvwfFTFCxP0D2TwYI/R+I+YBiEkD8C8h+BsTPgfg1EC8Fis0E4iNAvAKIjwLxYSBeD8SzgXgBEK+C4oVQPkj9NCDeCMRboXg5VH12ehpDuL8Lg7G2AoOXkzmDkZY8g4mOIoOLjSFDqK8TQ3pyEhjXVpQztDU2MHQ0NTG06WsyRAa6MThbGzDYm+uAsbezBVg9P9CN1MSMVMbYAAAs7yvM');
Grape := DTMFromString('mggAAAHicY2NgYHBkYmBwYYLQ7kBsDcSeQPwUKHcXiN8A8UsGBJ+BgYnB14ibIYTHlsGZ05ChUCCIgd2Qg4EfKIMNM+LAEAAAbc8KFg==');
Jug := DTMFromString('mrAAAAHic42BgYJjOxMAwFYhnA3EfEE8G4hlAPAkq9hyo5gMQvwXiF0D8CIhvA/EtIH4KxJmpKQzFeXkMibExDG2NDWBcWVLCEBUWBhbjB6rBhxkJYBgAAPHmFpg=');
end;

procedure freeeDTM;
begin
FreeDTM(Make);
FreeDTM(Grape);
FreeDTM(Jug);
end;

procedure bank;
var
x,y,x2,y2:Integer;
begin
if (state = 1) then
begin
Writeln('banking');
OpenBankChest(SRL_Bank_SW);
if PinScreen then
InPin(Players[CurrentPlayer].Pin);
if BankScreen then
begin
wait(900+random(200));
DepositAll;
if FindDTM(Grape,x,y,MBX1,MBy1,MBX2,MBY2) then
begin
Mouse(x,y,1,1,false);
ChooseOption('14');
wait(200+random(50));
end;
if FindDTM(Jug,x2,y2,MBX1,MBY1,MBX2,MBY2) then
begin
Mouse(x2,y2,1,1,false);
ChooseOption('14');
wait(200+random(50));
end;
CloseBank;
state := 2;
wait(500+random(100));
end;
end;
end;

Procedure MakeWine;
var
x,y,x2,y2:integer;
begin
if (state = 2) then
begin
if not GetCurrentTab = 25 then
FTab(25);
if FindDTM(Grape,x,y,MIX1,MIY1,MIX2,MIY2) then
begin
Mouse(x,y,1,1,true);
wait(150+random(150));
end;
if FindDTM(Jug,x2,y2,MIX1,MIY1,MIX2,MIY2) then
begin
Mouse(x2,y2,1,1,true);
wait(150+random(150));
end;
if FindDTM(Make,x,y,mcx1,mcy1,mcx2,mcy2) then
begin
Mouse(x,y,1,1,true);
case random(300) of
0..10: HoverSkill(SKILL_COOKING,False);
20..30: BoredHuman;
60..65: RandomMovement;
end;
wait(850+random(150));
Made := Made + 14;
end;
state := 1;
end;
end;


procedure SetupLogin;
begin
ClearDebug;
Smart_Server := 87;
Smart_Members := True;
Smart_Signed := True;
Smart_SuperDetail := False;
SetupSRL;
DeclarePlayers;
LoginPlayer;
end;

procedure Proggy;
begin
Sec := (1+((Getsystemtime-StartTime)/1000));
MadeH := (3600 / SeC * (Made));

writeLn('=======FleaWine======');
writeLn('Time Running: ' + TimeRunning);
writeLn('Items Made: ' + IntToStr(Made));
writeLn('Items/h: ' + IntToStr(MadeH));
writeLn('=======================');
end;


begin
ClearDebug;
SetupLogin;
SetupSRL;
DeclarePlayers;
LoginPlayer;
SetDTM;
StartTime:=GetSystemTime;
state :=1;
if LoggedIn then
ClickNorth(SRL_ANGLE_HIGH);
repeat
Bank;
wait(200+random(50));
MakeWine;
wait(100+random(200));
until(false);
FreeeDTM;
end.



Edited the make thing, was looking in wrong place

xScott

2012-02-15 16:51:55

Did you update it again? its withdrawing 14 grapes and 14 Jugs of wine now instead of jugs of water. ><

the flea

2012-02-15 16:58:31

From: xScott
Did you update it again? its withdrawing 14 grapes and 14 Jugs of wine now instead of jugs of water. ><


put the jugs of water and grapes in a separate tab on their own. Its probably withdrawing the Jugs of wine because they look very similar to the jugs of water, perhaps I have set the tolerances too high on my DTM… I had never used one before.

xScott

2012-02-15 17:06:30

I placed the jugs of wine in a seperate tab, and ran it again; its still not clicking the Make Jug of Wine in the chatbox area. ><

Kyle Undefined

2012-02-15 17:13:02

Ahh I was searching MS not MC, I see. Try this for the jug of water:

DTMFromString('m6wAAAHic42ZgYLBjZmAwBmJrIPYAYgsgdgVibyC2B2InIDaFYhYmBgZBIJYEYhEg/sfIwMAIpLmgbHGoODMQR8ceZCAWsJKAGUnASAAA3n4HGg==');

I used a tolerance of 5 for the main point color (Which is the blue of the water), you might need to update it. Here's the DTM file: http://www.mediafire.com/?cz8qghq8kund4sr

EDIT: If you can get me a full RS window screenshot with the Make option showing, I can get that working.

Ashaman88

2012-02-15 17:16:01

From: Kyle Undefined
Ahh I was searching MS not MC, I see. Try this for the jug of water:

DTMFromString('m6wAAAHic42ZgYLBjZmAwBmJrIPYAYgsgdgVibyC2B2InIDaFYhYmBgZBIJYEYhEg/sfIwMAIpLmgbHGoODMQR8ceZCAWsJKAGUnASAAA3n4HGg==');

I used a tolerance of 5 for the main point color (Which is the blue of the water), you might need to update it. Here's the DTM file: http://www.mediafire.com/?cz8qghq8kund4sr

EDIT: If you can get me a full RS window screenshot with the Make option showing, I can get that working.


Yeah I always forget to change that!

xScott

2012-02-15 17:20:35

From: Kyle Undefined
Ahh I was searching MS not MC, I see. Try this for the jug of water:

DTMFromString('m6wAAAHic42ZgYLBjZmAwBmJrIPYAYgsgdgVibyC2B2InIDaFYhYmBgZBIJYEYhEg/sfIwMAIpLmgbHGoODMQR8ceZCAWsJKAGUnASAAA3n4HGg==');

I used a tolerance of 5 for the main point color (Which is the blue of the water), you might need to update it. Here's the DTM file: http://www.mediafire.com/?cz8qghq8kund4sr

EDIT: If you can get me a full RS window screenshot with the Make option showing, I can get that working.


ill give it a go as soon as i finish these sharks :D


EDIT: uploading image now

the flea

2012-02-16 08:41:45

just been doing a bit of testing and editing and the latest version in the main post should work now. Please re download.

ensure you have your jugs of wine in a seperate tab to your jugs of water and grapes so that the script doesn't get mixed up between the two.

xScott

2012-02-17 10:51:12

From: the flea
just been doing a bit of testing and editing and the latest version in the main post should work now. Please re download.

ensure you have your jugs of wine in a seperate tab to your jugs of water and grapes so that the script doesn't get mixed up between the two.


ill give it a try in a few hours, thanks for updating!

illuminatiswag

2012-02-17 21:53:51

What does this do from making wines give cooking xp right ?

xScott

2012-02-17 22:06:11

From: illuminatiswag
What does this do from making wines give cooking xp right ?


fast cooking exp

Tur moil

2012-02-18 10:24:20

For some reason, it only withdraws 5 jugs of water, and 5 grapes. I think I read everything in the post, can someone please helP?

Ashaman88

2012-02-18 10:41:09

Looking over the code really quick it looks like it is set to withdrawal only 5.

Just change lines 56, and 62 from '5' to '14' and see if that works

the flea

2012-02-19 12:26:51

From: Tur moil
For some reason, it only withdraws 5 jugs of water, and 5 grapes. I think I read everything in the post, can someone please helP?


From: ashaman88
Looking over the code really quick it looks like it is set to withdrawal only 5.

Just change lines 56, and 62 from '5' to '14' and see if that works


woops I changed this to 5 for testing purposes so that it would run for a longer period of time with the small amount of resources I had. (wanted to test if banking was working properly). New version has this fixed

xScott

2012-02-21 15:40:31

Seems to be working now, although it does mess up occasionaly.
ill use it for all 5k of these grapes and tell you how it goes :D

Edit: bug: it misclicked, clicked on the levels menu and kept banking because it couldn't find the grapes/jugs

the flea

2012-02-21 17:19:48

oh weird, just add:

if not (GetCurrentTab = 25) then
Ftab(25);

into it, this will reopen the inventory if its closed

one1988

2012-03-10 13:34:00

ive got 20k grapes sitting there awaiting bonus xp :) hoping to get at least 10k grapes out in 4 hours :)

phamxboa

2012-03-10 14:33:39

what's the xp/hour on this bad boy ?

the flea

2012-03-10 17:25:51

From: phamxboa
what's the xp/hour on this bad boy ?


not sure on a 100% accurate one, according to google wine making varies between 200 - 400k xp/h

phamxboa

2012-03-10 20:47:01

Is this method a profitable method? or do you lose ?

the flea

2012-03-11 07:38:31

From: phamxboa
Is this method a profitable method? or do you lose ?


there is no profit gained at all.

one1988

2012-03-11 08:29:31

1k wines cost about 1400k to make you can sell for 65k for that 1k :) I have 30k wines to make so I shall be doing this with everyone of them :)

Dead Zone

2012-03-16 19:58:42

seems to be working very well thank you.

Dead Zone

2012-03-16 21:33:06

I found one glitch. After hit the stats tab it would keep withdrawing grapes and jugs of water because it cant get back to the inventory tab from the stats tab.

kris

2012-03-16 22:27:31

yeah dead is rite u havnt got it going back to inventory after checking stat

the flea

2012-03-17 09:02:21

ok replace line 95 with this (its messy but I don't have time to upload a new version just for that)
      0..10: begin
HoverSkill(SKILL_COOKING,False);
if not GetCurrentTab = 25 then
FTab(25);
end;

one1988

2012-03-17 09:30:57

I am going for 99 cooking, just waiting for my last 16k grapes to buy

the flea

2012-03-17 09:39:45

From: one1988
I am going for 99 cooking, just waiting for my last 16k grapes to buy


sweet post a picture when you achieve it for me and I will pop it onto the front page :)

one1988

2012-03-17 09:43:02

:) i will, do so its working fine?
i will be ready to use it in about 2 days time =)

the flea

2012-03-17 09:48:35

From: one1988
:) i will, do so its working fine?
i will be ready to use it in about 2 days time =)


pretty sure it is, not running it myself though. apply the quick fix that I posted a few posts above too.

one1988

2012-03-17 09:51:56

yeah i will do, in a few days :) once these grapes by is when i will use this :D

Dead Zone

2012-03-17 14:52:24

Alright made the fix gonna see how it works out.

***EDIT***

Still have the same issue, It goes to the cooking tab like its checking the xp and never goes back to inventory tab. After that all it does is keep depositing the inventory and withdrawing 14 grapes and wines continuously.

the flea

2012-03-17 15:40:46

Ok I will post up a real fix tomorrow when I'm at my computer. Sorry for the wait

Dead Zone

2012-03-20 18:22:27

ETA on update?

the flea

2012-03-21 08:59:51

From: Dead Zone
ETA on update?


nope, I'm really busy at the moment with end of year exams and coursework deadlines so I haven't even loaded up runescape recently.

hoopla

2012-03-23 00:05:16

I made a request for this back in 2006, lawl, was wondering if you could adapt this to the cooking guild since it has jug, water and grapers free.

the flea

2012-03-23 09:38:50

From: hoopla
I made a request for this back in 2006, lawl, was wondering if you could adapt this to the cooking guild since it has jug, water and grapers free.


I might do, after 7 days I have 2 weeks off so I may have time to get it done then. Thanks for the suggestion