SRL Archive - RS3 Outdated / Broken Scripts

Cook Guild Matters


Whatmatters

2012-01-02 16:45:09

Cook Guild Matters
Version 1.41

Requirements:
P2P
Varrock Diary Hard Tasks Completed
Raw Food (Literally has to have 'raw' in the name. I can work something out if you have something that doesn't.)
Color of Your Raw Food
Desire For Cooking Exp

Features:
SRL 5
Urn Support
Only Cooking Guild Room For Now

To Add
Breaks
Multiple Players (maybe not since I don't know how I would get a second account with the reqs)
Tidying of Script
Better Fail Safes



Note: This script is for only this specific location. The no walking part is kind of appealing for a beginning script writer. I highly doubt my cooking script adventures will leave this room. Apologies for the fairly steep requirements!

I haven't seen many cooking scripts, and this location is quite convenient. I figured I would make it into my first script. I'll convert to SRL 5 after I figure out how to replace certain mouse functions.

Setup is inside the script. Fill out the form and set your character anywhere in the small room with a range with two cooking urns in your inventory. If you have one filling currently, MAKE SURE IT'S ONE OF THOSE 2. Inside your bank, have the raw food as slot 1. Have Urns as slot 2 if you're using em.

Hopefully nobody has trouble with setup now.

Sample Form:
The parts filled in here are all you need to touch

Assume this were with an account played with the info:

Username: [email]thisismyaccount@hotmail.com[/email]
Password: befun
Character Name: Elfriskydog
Pin: 1337

SRL Stats Username: Crazydog
SRL Stats Password: freeroam

His bank looked like this in tab 3:


Players[0].Name := 'thisismyaccount@hotmail.com';
Players[0].Pass := 'befun';
Players[0].Nick := 'fris';
Players[0].Active:=True; //I think you want to use this.
Players[0].Pin := '1337'; // Leave Blank if none

SRLStats_Username = 'Crazydog';
SRLStats_Password = 'freeroam';

Tab = 3;
RawColor= 2244978;
FoodExp = 120;
FoodName = 'Lobster';

**Here are some colors**
(If these don't work, find your own! What if the color of your food isn't listed? Find your own.)
Find colors that disappear using the auto color aid.
http://villavu.com/forum/showthread.php?t=71074

Raw Lobster - 1914721
Raw Shark - 1448994
Raw Rocktail - 1448994

Monitor!

~Lobsters roasting over an open range.

1.41:
Round: 87 Completed!
~~~~~~~~~~~~~~~~Cook Guild Matters~~~~~~~~~~~~
Time Run: 1h, 55m, 20s
Exp Gained: 336480
Exp/Hour: 175047
# Food Cooked: 2349
# Cooked/Hour: 1222
Urns Teled:52

1.0:
Round: 47 Completed!
~~~~~~~~~~~~~~~~Cook Guild Matters~~~~~~~~~~~~
Time Run: 1h, 7m, 7s
Exp Gained: 154380
Exp/Hour: 138010
# Food Cooked: 1269
# Cooked/Hour: 1134
Urns Teled:2

Known Issues:
-Misses in the option selection menu can mess up the loop (crashes safely at least usually)
-1.41 The problems have seemed to move onto banking. I think…. See what happens lol.

-1.42: The common problem seems to be that "Could Not Click on The Menu" termination. That portion of the script is determined by a loop that ends with the condition:

until not FindColorTolerance(x, y, RawColor, 650, 215, 676, 241, RawTol)

So that just means the script is waiting for that raw color that you input to disappear from the fourth slot. If it's not finding those colors disappearing from that coordinate window, then the script will time out after around nine seconds with the menu termination message.

Solution? Make sure the raw color you picked disappears from the fish entirely when you cook it. Adjusting the tolerance may be necessary.

Update Log:

1.43:
-Fixed the menu problem by extending the timeout for menu selection termination

1.42:
-One poor sap downloaded 1.41 that has some tragic banking problems.
-Changed the Banking Method

1.41:
-2 Urns is Now Supported!! True 20% boost
-Urns types are also now automatically detected.
-Form has been chopped down to size
--I made the call that simpler is better. So everyone's using the same slots from now on.
-More Failsafes that hopefully don't have to be used.

1.4:
-TPA object detection for the range now
-Fixed an urn not sending problem
-Updated form description
-Removed the starting CloseBank (forgot why I did that in the first place)

1.3:
Not a bit update, but it's an attempt to safe the fail where it eats a cooked food and then crashes while trying to find the range.
-Above mentioned bug "maybe" fixed.

1.2:
Yes I skipped 1.1 because that was not much different, and the changes from this one are muuuuuuch better.
- Detects not having an urn on setup now.
- Range Detection has improved dramatically.
- Quicker detection of finished loads.
- Quicker Cook All select.

Script 99's:
-cmxz1
-bigmike6675
-momotron

Suggestions/Bugs/Reports greatly appreciated!

Mink

2012-01-02 22:03:21

cool stuff, its a shame that the majority of ppl here wont hav the dairy completed(including me). anyone wanna make a rogue's den cooking script? lol.

Whatmatters

2012-01-02 22:18:46

From: Mink
cool stuff, its a shame that the majority of ppl here wont hav the dairy completed(including me). anyone wanna make a rogue's den cooking script? lol.


Yeah, I released it with that in mind. Whoever is wanting and "can" try is more than welcome to. Hopefully I don't reach 99 before the tweaks and additions are done.

Sunblast

2012-01-03 07:10:46

Seems to be a nice script, but I was hoping for a Rogues Den script too ;D I think you would make more people happy with that script, just sayin' ;D

sofaking

2012-01-03 15:46:14

Just need 5 more kudos for varrock hard task. I'll be looking forward to using this soon. Thanks

phamxboa

2012-01-05 06:29:56

what colors should we put ? like in words? or..

phamxboa

2012-01-05 06:41:10

edit: IT works fine if there's no1 else in the guild, or it messes up with the colors. And also it waits too long after it's finished cooking an inventory to bank again

onilika

2012-01-05 08:25:20

Oh…was thinking making this script..Had already started..lol
Congratz on the release :)

~onilika

FearMe

2012-01-06 13:58:11

Would love it if you'd create a rogue's den cooker, I bet more people will use it too.

Whatmatters

2012-01-06 15:14:18

From: phamxboa
edit: IT works fine if there's no1 else in the guild, or it messes up with the colors. And also it waits too long after it's finished cooking an inventory to bank again


Yeah, the other people being in the guild problem is still the poor range detection. I didn't know about the finished cooking bit, but it might be my check cycles being a bit long.

I'll try and play with it more sometime soon.

Thanks for your usage.

onilika

2012-01-09 12:58:17

Here are some tips:

- I changed the range color for the red one, instead of silver; (works good if there's no player wearing red!)

- The time it takes to select 'cook all' it's a bit high. You might wanna change that!

Other than that, works great !:)

~onilika

Whatmatters

2012-01-09 20:18:46

From: onilika
Here are some tips:

- I changed the range color for the red one, instead of silver; (works good if there's no player wearing red!)

- The time it takes to select 'cook all' it's a bit high. You might wanna change that!

Other than that, works great !:)

~onilika


Oh yeah, I do need to fix this don't I….

Been working on my personal herb cleaner which is doing pretty well on a side note at 7500 cleans/hr.

1. The player issue was why I changed from red. Less people wear the shade of silver that I put into the first release. Red of the range shade was in when I was testing for the script.

2. The long wait time was compensation for walking to the range and any annoying things that would cause it to miss the menu appearing. If it seems a bit long, then I might take a look into how I can change the menu detection.

I have an idea actually, and we'll see how that pans out.

MaxPower

2012-01-15 00:29:16

Very nice script. Works pretty well, though it definitely needs watching because it tends to get stuck fairly often (not sure if it's my colors or not; I need to do more tweaking to make sure I guess). I don't know why more people don't use this, because it's the fastest cooking area in the game and the tasks aren't all that challenging to achieve…

Whatmatters

2012-01-15 03:22:40

From: MaxPower
Very nice script. Works pretty well, though it definitely needs watching because it tends to get stuck fairly often (not sure if it's my colors or not; I need to do more tweaking to make sure I guess). I don't know why more people don't use this, because it's the fastest cooking area in the game and the tasks aren't all that challenging to achieve…


I haven't used it in a while, so I'm not actually sure how it performs now. My fish stocks ran out (well, actually, I sold the last few ten thousand).

If you could give more information on the crash, I might be able to see if I can fix it. What fish were you trying to cook anyways? What action crashes if you were watching?

MaxPower

2012-01-20 02:52:18

It doesn't crash, just sometimes seems to get stuck at the range and doesn't try to bank. Or sometimes it will fail to deposit the cooked fish and will close the bank, and click on the 3rd item in order to use it on the range (however since the third item is cooked fish instead of raw fish, you just eat it and the script gets stuck).

I was cooking tuna. Both the raw and cooked fish are a shade of gray, though I made sure the cooked fish was a darker shade. I'll probably be moving on to swordfish soon anyway, and I'll let you know if the script gets caught up on those.

It's still a great cooking script that gets steady xp. I think that some failsafes would make it flawless. It seems to have the most errors when it comes to banking. I'm going to try adding an
if BankScreen then...
to the GuildBank procedure tomorrow to see if I can get the script flawless.

momotron

2012-01-25 05:03:06

This is absolutely great, urn support + cooking guild <3! Damn cant wait to use this after i finish getting 99 rc >.< TAKES SO LONG! BRB 1 month! Lets hope it still works by then ;P

Neros

2012-01-27 06:12:05

mmmm cooking guild <3

after running it for a few hours, i can see it derps after an hour, that might be my santa so im trying it without, if this works i'll set a stats acc up and expect to see, a HEAP of xp on it ;)

edit: nother few hours in, santa swapped for something not so red. lol now noticing what maxpower mentions, im going to look into writing some failsafes for range/bank

edit edit: the bugs normally occur after the 5th-7th stat commit, it sits trying to use shark on shark

iGunXZ

2012-01-29 19:53:01

Loving the script, but needs more failsafes :)

MaxPower

2012-02-01 16:07:56

Yeah I have 2 changes to this script to suggest, that work well for me:

1. Remove the "CloseBank;" at the end of the Setup procedure. It isn't useful and is very annoying to see each time the script is started up.
2. Add a
Wait(100+random(50));
if BankScreen then
begin
right after the first command in the GuildBank procedure (AKA right after "OpenBankNPC;"). It seems to make my script run much more smoothly, and it hasn't gotten stuck for me so far *crosses fingers*.

cmxz1

2012-02-01 18:38:03

I was hoping to finally found perfect cooker

Only has 1 major problem for me, after first load is done and second load is withdrawn it only right clicks range and just idles from here on.

EDIT// Line 145 rangeFound:= false;
I guessed true is always better than false and guess what, by changing it, everything works:)

Instead of right clicking raw fish then range it now right clicks raw fish and then left clicks range.

MaxPower

2012-02-01 20:29:18

From: cmxz1
I was hoping to finally found perfect cooker

Only has 1 major problem for me, after first load is done and second load is withdrawn it only right clicks range and just idles from here on.

EDIT// Line 145 rangeFound:= false;
I guessed true is always better than false and guess what, by changing it, everything works:)

Instead of right clicking raw fish then range it now right clicks raw fish and then left clicks range.


Line 145 is already set to true o.O. And it definitely left clicks fish and right clicks to select the range like it's supposed to. I have no idea what you're talking about. Did you mess around with the script, and are you using v1.2?

Anyway I just wanted to say that my small change 2 posts up has done wonders keeping the script from getting stuck while trying to bank. I've just finished 5k fish and only had to step in a few times. A few more failsafes and this script will be flawless.

cmxz1

2012-02-02 07:23:33

From: MaxPower
Line 145 is already set to true o.O. And it definitely left clicks fish and right clicks to select the range like it's supposed to. I have no idea what you're talking about. Did you mess around with the script, and are you using v1.2?

Anyway I just wanted to say that my small change 2 posts up has done wonders keeping the script from getting stuck while trying to bank. I've just finished 5k fish and only had to step in a few times. A few more failsafes and this script will be flawless.


I'm using v1.2 and and it was false for me at first.
Also added that line to GuildBank, testing it atm.

bigmike6675

2012-02-05 02:29:34

any idea why it doesnt choose to use the sharks with the range, itll select the shark, right click te range, then stand there

Whatmatters

2012-02-05 02:49:22

From: bigmike6675
any idea why it doesnt choose to use the sharks with the range, itll select the shark, right click te range, then stand there


I believe that would be the chooseoption function being a bit quirky at the moment. I'm having trouble with it in the altar script I've been making.

bigmike6675

2012-02-05 11:15:05

hmm well it works sparatically but it is by far the best cooking script ive been using

cmxz1

2012-02-05 15:18:57

Thank you, got me 99 cooking.

Tweaked it a little to use 2 urns at once after 94 cooking with rocktails.
Got little over 300k xp per hour with rocktails after 94

Whatmatters

2012-02-12 18:37:14

Grats cmxz1!

I'll add in 2 urn support for this later. What I really want to add in is a paint, but that's on hold.

1.3 is rolled out. It's nothing big, but there's a fail safe for the most common bug of trying to throw a cooked food onto the range and then crashing. I'm still wondering what causes that….

bigmike6675

2012-02-16 01:34:40

thanks for 99 cooking man

helloogoodbye

2012-02-19 18:40:22

Is anyone willing to help me with raw/cooked food color? I'm running simba on a mac with crossover and whenever I click on the color tool my screen just turns white so I cannot get a color ID. Does anyone know the lobster colors? Or shark? Thanks

Whatmatters

2012-02-19 22:46:53

Lobsters:
Raw - 1914721
Cooked - 1461919

I'm sorry to hear about your coloring problem, but it seems that you know what to had your dropper actually worked. Just post back if those don't work.

helloogoodbye

2012-02-20 16:08:40

Thank you, sir!

MaxPower

2012-03-06 01:53:58

Bump for this script… If you have access to the bank in the cooking guild (Varrock tasks), this is the best script to use for leveling cooking. No other location has a bank as close to a range.

Hoyto

2012-03-06 09:29:02

I need help to set this up. Thank You.

Whatmatters

2012-03-06 12:00:33

Thanks for the bump Max. It makes me feel obligated to update this thing somehow.

@Hoyto: Posting that you simply have a problem does nobody good. What specifically do you need help setting up?

Kidlington

2012-03-06 17:29:47

I'll give this a try and post you a proggy soon!

boss11

2012-03-08 13:56:20

monkfish cooked and raw colors?

boss11

2012-03-08 14:44:26

SRL Compiled in 0 msec
SMART Initialized.
Loaded: Server 1, Members: True, Signed: True, Super Detail: False.
Current player:
Withdrew Uncooked Food
Withdrew Uncooked Food
Range Not Found! Trying Again
Range Fail Count + : 1 total
Range Not Found! Trying Again
Range Fail Count + : 2 total
Range Not Found! Trying Again
Range Fail Count + : 3 total
Range Not Found! Trying Again
Range Fail Count + : 4 total
Range Fail > 3 Calls For Termination
Successfully executed.

phamxboa

2012-03-10 14:16:19

Can you tell us the setup? I type everything in and I keep getting errors.

Whatmatters

2012-03-12 01:46:14

@boss11 Yes, T_T, that bug won't die for some reason. I'm still trying to find the best way of making sure that it "does" find the range 100% of the time.

On the colors part, use view -> colors history in simba to find colors yourself.

@phamxboa, I added setup to the front of the thread. If that doesn't help, I dono what to tell you.

Version 1.4 Rolled Out~!

It's nothing big as usual, but more experimenting never hurts. Follow the instructions as always.

Dangermouse

2012-03-30 20:07:51

It seems to have a problem cooking the food, click raw, then clicks range and instantly says something like "Looks like food was not cooked" then stops script.

tisin

2012-04-01 21:30:19

[Hint] C:\Simba\Includes\SRL/SRL/core/mapwalk.simba(1353:3): Variable 'BOX' never used at line 1352
[Error] (142:64): Type mismatch at line 141

Whatmatters

2012-04-02 02:36:49

Danger: A few of the error messages are actually like that. The most common one I've seen is when it decides not to use the food on the range.

Tisin: Did you enter a raw food color as an integer (only numbers ex: 230498309423)?

I'll get back to this thing….. eventually >.<…..

izerk

2012-04-02 09:57:38

decent script

dennisl400c

2012-04-03 03:03:51

Withdrew Uncooked Food
Range Found!
Some Reason It did not start cooking?
Successfully executed.

thats the problem im having it click my raw food moves over to range but wont click on the range it finds it but wont click it

Whatmatters

2012-04-04 23:13:00

I actually have started working on this again. The range fail termination was apparently because of not having an item selected when it is sorting through the TPA's. Not having an item selected makes it so that it doesn't detect the "raw" uptext when hovering the range. A few other changes mostly involve positional color searches being changed to uptext detection. We'll see if I can actually get this thing to run stably lol.

dennisl400c

2012-04-05 01:17:22

that would be awsome if u could get it working thanks:)

jonnypot

2012-04-05 04:06:41

Hopefully you can get it up and running. I'll be sure to use it and post and proggies if you do :)

dennisl400c

2012-04-12 19:38:48

any idea when u would be able to fix this love it and want a 99:)

Whatmatters

2012-04-15 23:44:52

Things have been pretty busy for me lately, so I can't really give an eta actually. It was pretty much fixed when I last looked at it. I'll get back to it when I can.

~Sorry!

rsbotrsbotrsbot

2012-04-28 05:35:58

wow cool I will report after I tried it :P

momotron

2012-05-01 18:59:51

Took a few simple edits to get it to work, if I'd put some effort into it I could have easily made it flawless, but I really couldn't be bothered as I was baby sitting it anyway. Just got 99 Cooking with it. Here's the edit.
program CookGuildMatters;
{$i SRL/SRL/Misc/Smart.simba}
{$i SRL/srl.simba}


{========================= Cook Guild Matters ==============================}

// Hehe, here we go. This script was created because I couldn't,
// and still have trouble working with the msi scripts.
// The MSI cooker doesn't support cooking guild either, so I was out of luck.
// Now I'm just trying something out and hoping for the best.
// So here we go!
// I can't say how much I'll be updating, but it's working decently well.
// For my needs, it fits.

//*************Gotta Start with an Urn in the Inventory for now...************

{-----------------------------Setup!-----------------------}
//1. Fill out the Form Below
//2. It's lengthy because I am a fan of choice.
//3. Position Yourself Pretty Much Anywhere In the Cooking Room of the Guild
//4. I think you should be good?
//5. AntiRandom is included in the Antiban
//6. Oh yeah! Set Your Graphics Settings!

{+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Known Issues:
-Fashionable people rarely will don the colors of the range and cause a derp
-Crowds Stacked on the Range can be dangerous as well}

Procedure DeclarePlayers;
begin
HowManyPlayers :=1;
NumberofPlayers(1);
CurrentPlayer :=0;

Players[0].Name := ''; //Insert Username in ''
Players[0].Pass := ''; // insert password in ''
Players[0].Nick := ''; // Nickname = 3-4 lowercase letters of character name
Players[0].Active:= True; //I think you want to use this.
Players[0].Pin := ''; // Leave Blank if none
end;
Const

//******************* Fill in Stuff Under Here*******************************
SRLStats_Username = ''; //Would Much Appreciate
SRLStats_Password = ''; //To See Exp Gains

Tab = 2; //What Bank Tab is Your Stuff in? Keep it all in one. Looking for a #
RawCol = 4; //Replace With the Raw Food's Column ****** Note counts from 0 up so
RawRow = 0; //Replace With Raw Food Row ****** ex: row 1 would be 0
UseUrns = True ; //Want to Use Urns? True/False
UrnCol = 6; //Same Deal Here As With Raw Food
UrnRow = 0; //Keep Going
UrnType = 'Decorated'; //Valid Inputs are (cracked, fragile, cooking, strong, decorated)
RawColor= 8355717; //Insert a good raw food color
CookedColor = 3162454; //Insert A *Good* Cooked Food Color
FoodExp = 210;// How much exp does cooking 1 of your food give?
FoodName = 'Shark';//Just for stat purposes (Lobster, Tuna, Swordfish, etc.) Fish only for the moment!

//****************************STOP********************************************
//*****************************************************************************
var
x, y, Rounds, ExpGained, Cooked, UrnsTeled, UrnTypeExp: integer;
CUrn: boolean;
str, coo, Urn: TStringArray;

Procedure AntiBanning;
var
r: integer;
begin
FindNormalRandoms;

r:= Random(120);
if (r <= 6) then
Debugln('Antiban Time!');
case r of
1, 2, 3: HoverSkill('cooking', false);
4: ExamineInv;
5: PickUpMouse;
6: Wait(2000 + Random(2000));
end;
if (r < 6) then
Debugln('Antiban Done!');
end;

Procedure CheckUrn;
begin
if FindColorTolerance(x, y, 5006162, 576, 203, 584, 239, 4) then
begin
Mouse(x, y, 5, 5, true); //Clicks the urn found
Wait(2000+random(150));
FindColorTolerance(x, y, 1907518, 204, 386, 320, 460, 4); //Finds Full Urn
Mouse(x, y, 5, 5, true);
Writeln('Urn Sent! Yay XP');
CUrn:= False;
Inc(UrnsTeled)
Wait(1000+random(100));
end else
Curn:= True; //This is why an urn is needed on startup >.<
end;

Procedure GuildBank;
begin
OpenBankNPC;
Wait(100+random(50));
if BankScreen then
begin
Deposit(2, 28, true);
if UseUrns then
begin
if CUrn = True then
begin
Withdraw(RawCol, RawRow, 27);
CloseBank;
Writeln('Withdrew Uncooked Food');
end else
begin
WithdrawEx(UrnCol, UrnRow, 1, Urn);
CUrn:= True;
Wait (50+random(50));
WithDrawEx(RawCol, RawRow, 27, ['aw', 'ster']);
CloseBank;
Writeln('Withdrew Urn and Uncooked Food');
end;
end else
begin
Withdraw(RawCol, RawRow, 28);
CloseBank;
Writeln('Withdrew Uncooked Food');
end;
end;
end;
Procedure RangeCook;
var
rangeFound: boolean;
rangeFail, t, s: integer;

begin
s:= Random(2);
if FindColorTolerance(x, y, RawColor, 607, 213, 645, 241, 7) then
InvMouse(3 + s, 1)
else
begin
GuildBank;
InvMouse(3 + s, 1);
end;
wait(500+random(100));
repeat
if FindObjTPAMulti(x, y, [2175214, 1318291, 1581998], 10, -1, 5, 5, 12, ['aw', 'ang']) then
begin
Writeln('Range Found!');
rangeFound:= true;
MMouse(x, y, 3, 3);
ClickMouse2(false);
WaitOptionMulti(['ange', 'aw Shark'], 2000);
MarkTime(t);
repeat
Wait(200+random(100));
if FindColorTolerance(x, y, RawColor, 224, 401, 294, 455, 4) then
Mouse(x, y, 5, 5, true);
if TimeFromMark(t) > 5000 then
begin
Writeln('Some Reason It did not start cooking?');
TerminateScript;
end;
until FindColorTolerance(x, y, RawColor, 224, 401, 294, 455, 4)
rangeFail:= 0;
end else
begin
Writeln('Range Not Found! Trying Again');
AntiBanning;
Inc(rangeFail);
Writeln('Range Fail Count + : ' + ToStr(RangeFail) + ' total');
if rangeFail > 3 then //3 Strikes
begin
Writeln('Range Fail > 3 Calls For Termination');
TerminateScript;
end;
end;
until(rangeFound);

end;
Procedure CookProcess;

var
lastCooked: boolean;
cookCycle: integer;

begin

repeat //Searches last inv spot for cooked item color
LevelUp;

if FindColorTolerance(x, y, CookedColor, 700, 439, 716, 459, 4) then
begin
Writeln('Finishing Cooking!');
cookCycle:= 0;
lastCooked:= true;
end else
begin
AntiBanning;
Wait(3000 + Random(250));
Inc(cookCycle);
Debugln('Cycle' + ToStr(cookcycle));
if cookCycle >= 30 then
begin
Writeln('Not good! We are not cooking for some reason.');
FindNormalRandoms;
Exit;
end;
end;
until(lastCooked);

inc(Rounds);
Writeln('Round: ' + ToStr(Rounds) + ' Completed!' );
end;

Procedure Report;

Var
timeRun, h, m, s, u: integer;

begin
Case UrnType of
'cracked': u:= 400;
'fragile': u:= 550;
'cooking': u:= 950;
'strong': u:= 1050;
'decorated': u:= 1547;
else
u:= 0;
end;

UrnTypeExp:= u; //Add Form for Other Types later
Cooked:= Rounds * 27;
ExpGained:= (Cooked * FoodExp) + (UrnsTeled * UrnTypeExp);
timeRun:= GetTimeRunning;
ConvertTime(timeRun, h, m, s);

Writeln('~~~~~~~~~~~~~~~~Cook Guild Matters~~~~~~~~~~~~');
Writeln('Time Run: ' + ToStr(h) + 'h, ' + ToStr(m) + 'm, ' + ToStr(s) + 's');
Writeln('Exp Gained: ' + IntToStr(ExpGained));
Writeln('Exp/Hour: ' + IntToStr((ExpGained * 3600) / (timeRun / 1000)));
Writeln('# Food Cooked: ' + IntToStr(Cooked));
Writeln('# Cooked/Hour: ' + IntToStr((Cooked * 3600) / (timeRun / 1000)));
if UseUrns then
Writeln('Urns Teled:' + IntToStr(UrnsTeled));

Stats_Commit;
stats_IncVariable('Cooking EXP (Gained)', (FoodExp * 27));
stats_IncVariable((FoodName + ' Cooked'), 27);

end;
Procedure Setup;
begin
Smart_Server := 1;
Smart_Members :=True;
Smart_Signed :=True;
Smart_SuperDetail :=False;

ClearDebug;
SetupSRL;
SetupSRLStats(438, SRLStats_Username, SRLStats_Password);
ActivateClient;
DeclarePlayers;
LoginPlayer;

MakeCompass('w');
SetAngle(0);
OpenBankNPC;
Wait(300+random(50));
BankTab(Tab);
if not ExistsItem(1) then
CUrn := False;
end;

begin
Setup;
repeat
if UseUrns then
CheckUrn;
GuildBank;
RangeCook;
CookProcess;
Report;
until(AllPlayersInactive);
end.

Zyzolol

2012-05-02 18:11:03

1.4 seems to be working quite good, doing about 300k+/h with Rocktails.

We'll see what happens when more people starts showing up here in the guild.

Zyzolol

2012-05-03 11:40:09

Stil messes up from time to find range.

You have to babysit it sometimes.

pulse0

2012-05-03 11:49:40

^^rather then doubleposting please next time use the edit button and edit your first post…

Script works great, with a few slight modifications it works next to flawless. only thing i couldnt get working was urns. whatever i did messed it up real bad lol but not to worry i hate running back and forth to the ge to buy more =) thanks. using this script to 99 will post a screen shot once i hit it.

Turpinator

2012-05-05 03:05:47

for those of you who might possibly be burning things semi-often and getting a burnt fish in the last spot, try changing line 198 to
if not(FindColorTolerance(x, y, RawColor, 700, 439, 716, 459, 4)) then
CookedColor -> RawColor and Not() the whole function.

nearst

2012-05-05 07:59:56

mouse cant find option Cook All

if FindColorTolerance(x, y, RawColor, 224, 401, 294, 455, 4) then
Mouse(x, y, 5, 5, true);
if TimeFromMark(t) > 5000 then
begin
Writeln('Some Reason It did not start cooking?');
TerminateScript;
end;
until FindColorTolerance(x, y, RawColor, 224, 401, 294, 455, 4)
rangeFail:= 0;

Bulls

2012-05-08 13:20:36

for those who has a problem with finding the range, change line 150 to:


if FindObj(x, y, 'ange', 5856605, 5) then

in addition, if banking twice for each trip the problem is that the script can't find the colour of the raw food in the inv. then add before line 141 this line to make a delay before searching:


wait(500+random(100));

please +rep if this info helped you :)

Smithsservice

2012-05-12 10:26:28

How do i find the colour of the food i wish to cook?

In this case i am trying to cook roctails.

LIM

2012-05-14 09:15:11

From: Smithsservice
How do i find the colour of the food i wish to cook?

In this case i am trying to cook roctails.




click on this icon and then on the food you want to cook

Smithsservice

2012-05-14 16:31:52

Recently starting using this bot, worked great for an hour or so, then for some reason it would withdraw the food, click the rocktail but wouldnt click on the range, when the range was right next to me heres what i got told.

Range Fail Count + : 1 total
Range Not Found! Trying Again
Range Fail Count + : 2 total
Range Not Found! Trying Again
Range Fail Count + : 3 total
Range Not Found! Trying Again
Range Fail Count + : 4 total
Range Fail > 3 Calls For Termination

planvlad

2012-05-14 18:53:22

It withdraws raw food from bank, banks them again, then it goes to the range(For every time it banks). And after a little while it gives this error:


Range Not Found! Trying Again
Range Fail Count + : 1 total
Range Not Found! Trying Again
Range Fail Count + : 2 total
Range Not Found! Trying Again
Range Fail Count + : 3 total
Range Not Found! Trying Again
Range Fail Count + : 4 total
Range Fail > 3 Calls For Termination
Successfully executed.

ABC!

2012-05-15 03:42:44

From: Bulls
for those who has a problem with finding the range, change line 150 to:


if FindObj(x, y, 'ange', 5856605, 5) then

in addition, if banking twice for each trip the problem is that the script can't find the colour of the raw food in the inv. then add before line 141 this line to make a delay before searching:


wait(500+random(100));

please +rep if this info helped you :)


+ REP on the finding of the Range, but it still seems to bank twice even after I added the line above where you said.

Whatmatters

2012-05-15 23:22:17

It's not supposed to continue if the raw food color still isn't found after the second bank. This thing's supposed to crash and burn at the first sign of trouble.

My goals try to take steps up the slope of achievement. Right now it's a low "work for a while and just time out if something doesn't go right". So long as I'm not stuck in an infinite loop, everything's fine. I'm getting exp without doing anything. I'm not getting banned. That's a win in my book.

Anywho, Version 1.41 is about to be uploaded. It actually adds something lol.

eduardo230

2012-05-16 00:33:53

too bad i got 99 cook :/

karlwithak

2012-05-19 04:50:25

Works perfectly, as far as I can tell, thanks to Bulls' double banking fix.

LIM

2012-05-19 13:03:32

i got some trouble with the latest version. it just keeps going to the bank, taking all urns, and then rebanking all of them. then taking them all again etc…
i tried to figure out the problem, but since im pretty bad at scripting i didnt find anything suspicious :/

nvm, i just figured, i was too stupid and forgot to change my bank to the new script, so the urns are in slot 2 and the raw rocktails in slot 1 :P good script :)

0pwnstar0

2012-05-21 21:49:22

can someone tell me the color id for a raw shark? it wont let me use the color picker tool on my mac

karlwithak

2012-05-22 20:43:57

The new version worked successfully for a few thousand fish, but now I keep getting this error after it withdraws and cooks one trip of fish without using urns:

Cooking Urn Not Found: Using No-Urn Mode
Withdrew Uncooked Food
Found Raw Food in Inv
Range Found!
Terminating due to the following reason:Could Not Click The Menu
Successfully executed.

Whatmatters

2012-05-22 21:04:45

Well that error means that the little menu in the chat box isn't being found.

Does it select the option for using the fish on the range at least?
Does the menu with the picture of your fish show up in the chat box?
Are you running SMART with the correct settings?

karlwithak

2012-05-22 23:45:23

It fully completes the first load perfectly, cooking all of the fish. The error seems to come up after only cooking the first few and then finishes the rest after the script has already stopped.

0pwnstar0

2012-05-22 23:51:47

can someone tell me the code for uncooked and cooked shark?

karlwithak

2012-05-23 00:02:32

From: 0pwnstar0
can someone tell me the code for uncooked and cooked shark?


Try
raw: 5329237
cooked: 5465468

Whatmatters

2012-05-23 05:15:06

From: karlwithak
It fully completes the first load perfectly, cooking all of the fish. The error seems to come up after only cooking the first few and then finishes the rest after the script has already stopped.


Ah…., if it's starting the cooking then that probably means you chose a color that is still there after it starts cooking. The script detects that you started by the disappearance of the raw color from a certain box of coordinates.

Here's some possible solutions on the matter. I suppose it kind of depends on what you're cooking.

1. Lower the tolerance in the options line ~55. It might just be that the tolerance is too high, and the cooked shade is still recognized as raw.

2. Pick a different color. This solution might work better. The color "HAS" to disappear after it's cooked.

3. Change the script. Doubt you'll be taking this avenue. If you do, good for you.

karlwithak

2012-05-23 14:03:37

From: Whatmatters
Ah…., if it's starting the cooking then that probably means you chose a color that is still there after it starts cooking. The script detects that you started by the disappearance of the raw color from a certain box of coordinates.

Here's some possible solutions on the matter. I suppose it kind of depends on what you're cooking.

1. Lower the tolerance in the options line ~55. It might just be that the tolerance is too high, and the cooked shade is still recognized as raw.

2. Pick a different color. This solution might work better. The color "HAS" to disappear after it's cooked.

3. Change the script. Doubt you'll be taking this avenue. If you do, good for you.


I have increased the wait time and that has seemed to greatly decrease the chances of the error occurring. However, if I let it run for a while, the error seems to still come up later (about an hour or two, which I can live with).

planvlad

2012-05-29 18:41:35

Terminating due to the following reason:Could Not Click The Menu

That's what I get after like 30 seconds of starting

jock032

2012-06-02 18:31:58

From: planvlad
Terminating due to the following reason:Could Not Click The Menu

That's what I get after like 30 seconds of starting


I just commented lines 196-199 out and it worked fine for me

Benny

2012-06-03 06:43:14

This is sweet! Will be using this for 20m xp :D

Benny

2012-06-03 07:47:41

From: MoDz
OMG cheers for the help!

Do you think Simba would be updated for ths new Beta Combat System?
Ive signed up and will look for bugs to abuse :p
Full News on Combat System Beta stages:
www.services.runescape.com/m=forums/forum.ws?14732/8215693


DO NOT CLICK ON LINK!!!!!! Its a SCAM

newy1

2012-06-03 09:33:56

SMART Initialized.
Loaded: Server 1, Members: True, Signed: True, Super Detail: False.
Current player: Stoned Pixie
Cooking Urn Not Found: Using No-Urn Mode
Withdrew Uncooked Food
Found Raw Food in Inv
Range Found!
Terminating due to the following reason:Could Not Click The Menu
Successfully executed.

I get this error. I'm cooking monkfish. If I delete line 196-199, the error stops but it will just stand there after an inventory of fish is finished. Also it banks twice, which I don't mind that much as long as it works :/

Jas_932

2012-06-03 14:48:39

If anyone has the settings for the raw rocktails and settings that work, could you please copy and paste here xD?

Gems

2012-06-03 15:21:04

From: -Benny
DO NOT CLICK ON LINK!!!!!! Its a SCAM


no it isnt

Jas_932

2012-06-03 17:46:23

From: Gems
no it isnt


+1 it isnt..

Last Legend

2012-06-04 02:43:48

Looks like its time to get that farming up, cuz this would make thigns so much easier ^^

Robot91292

2012-06-04 20:45:57

There are a couple bugs needing worked out in V1.42

-The script does not enter bank PIN (Temp fix enter PIN before starting)
-Clicks tab 1 even if your stuff is in tab 3 (Temp fix put everything in tab 1)
- I get this "Failed to TPA find the bank" for no reason then terminates.

This script is only good for about 1 hour before something goes wrong with it.

Good thing I have teamviewer on my iPhone =)

Even if you never update this I am still using this script to 99 because I get 1200 lobsters an hour plus urns. Other scripts i get 750 tops and no urns =P so thanks!

YesMan

2012-06-05 06:41:33

Is this for P2P only?

Mufasa

2012-06-05 07:28:13

From: YesMan
Is this for P2P only?


I haven't even used the script or tried to but come on man xD

Requirements:
P2P


I guess it must be.


Whatmatters

2012-06-05 12:16:24

From: YesMan
Is this for P2P only?


The only range worth banking and cooking with in the cooking guild is yes, unfortunately, P2P membership content.

Benny

2012-06-05 18:11:40

Yeah this needs a titch of a update but i'm not sure how to do that, I've tried messing around but to no avail

Whatmatters

2012-06-05 18:53:03

@Robot I don't have a pin, so I'm kind of hesitant to put one in. I forgot that when I was scripting it. OpenBankNPC, the include function should account for bank pins at the start of the script. The current issue hindering that is that the initial bank opening to set things up uses OpenBankNPC, and I'm expecting that the function doesn't take these event bankers into account.

@Benny What's the problem in your case?

I'll test it out later and see if I can make a video about setup or something since people seem to be having trouble with getting it to detect when cooking starts.

Robot91292

2012-06-09 17:14:11

From: Whatmatters
@Robot I don't have a pin, so I'm kind of hesitant to put one in. I forgot that when I was scripting it. OpenBankNPC, the include function should account for bank pins at the start of the script. The current issue hindering that is that the initial bank opening to set things up uses OpenBankNPC, and I'm expecting that the function doesn't take these event bankers into account.

@Benny What's the problem in your case?

I'll test it out later and see if I can make a video about setup or something since people seem to be having trouble with getting it to detect when cooking starts.


I have fixed it by creating a script to restart this script when it fails. Works pretty well! I was able to run it all night instead of 1 hour.

newy1

2012-06-09 23:34:53

From: Robot91292
I have fixed it by creating a script to restart this script when it fails. Works pretty well! I was able to run it all night instead of 1 hour.


Could you share :P

Blg_Carl

2012-06-10 15:55:19

Terminating due to the following reason:Could Not Click The Menu
Keep getting that error after it does one batch

Ashihtaka

2012-06-14 23:56:54

Tried several cooking scripts, this seems to be the only one currently working well.
The only thing is it doesn't solve any randoms - might want to add in solving

snowver

2012-06-17 15:41:39

@momotron: thanks man flawless cooking script

chuckyb0y

2012-06-20 09:40:45

unfortionaly it stops after 1 hour :( with TPA error :(

Benny

2012-06-20 11:17:03

From: chuckyb0y
unfortionaly it stops after 1 hour :( with TPA error :(


yeah i've been getting the same, unfortunately it's not as flawless as it should be, with errors finding bank etc

krushsawa

2012-06-20 17:17:43

Its a nice script however I need to babysit =/
Will you be releasing any updates in the future ?=]

Whatmatters

2012-06-20 17:31:52

The TPA error is probably color changes or something. I'll look into that….. later……..
For those of you that want to try fixing it yourselves, I'd probably point to line ~128
if FindObjTPA(x, y, 5865632, 12, -1, 10, 10, 60, ['ank', 'oth']) then
Play with the parameters and see what happens meh.

@krush This script was made mostly as a companion cooker. It saves like an hour or two at a time. The way it was scripted doesn't really lend itself to prolonged usage because most of the fail safes are just terminations. There's not much set into place for returning to the loop once it has been broken.

Basically, I'm unsure that it will ever get an update to accommodate 6 hour runs.

Edit: I just used it again to cook a few sharks from Burgh De Rott Rambling (terrible minigame!). The script works fine still….. The fault is a good part mine for forgetting to explain how to get a "good" color though. That actually takes a short time to find something that disappears, so I'll just post a few colors on the front for now.

A good color "disappears" when the raw fish is cooked. You can use the ACA with that video tutorial to find out how to find a "good" color.

Edit Edit: Problem found. I wasn't taking into account that a lot of people don't use urns. The could not click menu is just happening because the timeout window isn't long enough to wait for 3 fish to cook before finding the colors disappear. Apologies to those who did encounter this problem. 1.43 will be released for a hot fix. Who knows about real updates though….

Did NOT encounter the TPA problem though.

bust

2012-06-27 17:49:38

I love you and this script, this is the only cooking guild script, so please update!! :):):)):) <3<3 I can't use any others, this is the only script for cooking guild :/

Hazzah

2012-06-29 16:24:42

Seems to be running extremely well!

Hazzah

2012-06-29 20:41:00

No changes to the script, ran for an hour then a random killed it, no big deal.
~~~~~~~~~~~~~~~~Cook Guild Matters~~~~~~~~~~~~
Time Run: 3h, 13m, 32s
Exp Gained: 908544
Exp/Hour: -88202
# Food Cooked: 3796
# Cooked/Hour: 1176
Urns Teled:72
Urn Sent! Yay XP
Withdrew Urn and Uncooked Food
Found Raw Food in Inv
Range Found!
Cooking Has Begun!

Working great!

E: Did not realize that I had the last post! Sorry for double post :redface:

Whatmatters

2012-06-30 01:35:24

I never thought I'd see the day to have a progress report aside from my test runs on this thread. The exp seems strange, but nevertheless, it's at least time running. Glad you're able to use it.

Benny

2012-06-30 02:14:28

From: Whatmatters
I never thought I'd see the day to have a progress report aside from my test runs on this thread. The exp seems strange, but nevertheless, it's at least time running. Glad you're able to use it.


oh i forgot to post my progs, it's been working pretty well since you posted your last fix, well done

Koliantrix

2012-07-01 01:27:50

For everyone wishing to use monkfish, use the color 3292507 ^^. I'm using CookTol 10 and Rawtol 13.
you're welcome

TehNeonFishy

2012-07-03 17:58:44

Scrapped my version of cooking guild for this, it works quite well. :D

Apart from today I switched to sharks, and it cooks 4 sharks then stops for some reason. Is it the tolerance?

onilika

2012-07-04 15:07:11

From: TehNeonFishy
Scrapped my version of cooking guild for this, it works quite well. :D

Apart from today I switched to sharks, and it cooks 4 sharks then stops for some reason. Is it the tolerance?


Script checks for last slot. If last slot doesn't have the same colour you wrote, it banks the inventory and withdraws more raw fish.
So, I think there's no problem with tolerance.

Solar

2012-08-02 14:38:32

Whenever the script teleports an urn (using decorated) it says Cannot send an urn.
~~~~~~~~~~~~~~~~Cook Guild Matters~~~~~~~~~~~~
Time Run: 0h, 4m, 27s
Exp Gained: 9360
Exp/Hour: 126202
# Food Cooked: 78
# Cooked/Hour: 1051
Urns Teled:0
Terminating due to the following reason:Cannot Send an Urn
Successfully executed.
Anyone else have this problem?

Edit1: I commented out some lines because I think Jagex changed the way you send urns if you only have one filled completely in your inventory.
It seems to be working now I've changed to this;
Procedure CheckUrn;
var
uT: Integer;

begin
if FindColorTolerance(x, y, 5006162, 576, 203, 584, 239, 4) or FindColorTolerance(x, y, 5006162, 613, 203, 623, 239, 4) then
begin
MarkTime(uT);
repeat
if TimeFromMark(uT) > 6500 then
Termination('Cannot Send an Urn');
Mouse(x, y, 5, 5, true); //Clicks the urn found
//MouseBox(204, 386, 320, 460, 2)
//if WaitUpText('port', 1500) then
//begin
//ClickMouse2(true);
Writeln('Urn Sent! Yay XP');
//end;
until WaitUpText('port', 1500);
CUrn:= False;
Inc(UrnsTeled)
Wait(1000+random(100));
end else
Curn:= True; //This is why an urn is needed on startup >.<
end;

Edit2: New proggy, think other players in the area mess the script up sometimes.
~~~~~~~~~~~~~~~~Cook Guild Matters~~~~~~~~~~~~
Time Run: 1h, 3m, 54s
Exp Gained: 306124
Exp/Hour: 287440
# Food Cooked: 1222
# Cooked/Hour: 1147
Urns Teled:32
Urn Sent! Yay XP
Terminating due to the following reason:Failed to TPA find the bank
Successfully executed.

Edit3: Every now and again this appears in the debug box
SRL_Stats: Wrong info for variable
Is there something that can be done to prevent this?

Scuttler

2012-11-04 01:46:35

If you are cooking something with colors that also appear in the cooked item, like tuna, edit this line:
if not FindColorTolerance(x, y, RawColor, 700, 439, 716, 459, CookTol) then

Enslaved

2012-11-04 05:03:54

From: Scuttler
If you are cooking something with colors that also appear in the cooked item, like tuna, edit this line:
if not FindColorTolerance(x, y, RawColor, 700, 439, 716, 459, CookTol) then


not really
you just repick colours