SRL Archive - Outdated / Broken

[SRL] Al Kharid Cooker [RS2]


Junior

2007-04-11 19:26:28

I have made this after getting around 10k shrimp and anchovies with my netter. Script has been updated from its original version, but hasnt gone through much. Just added more fail safes and other functions that make the script work better, I think. This will probably be the last script ill write for a while, hopefully not, but its the last quarter in school and I need to start studying my ass off to avoid summer school lol… I just want to make one of those scripts that run for a very long time, but I dont think something like this can do that, looks a little too complex, or maybe im just making it that way :fiery: It probably will suck, just like all my other scripts.

Directions:
  • Have screen on V-bright, low detail, 32-bit color
  • Place all players in bank, any bank booth
  • See picture below of rest of information ///.


Features:
  • Knows when all food is cooked
  • Finds first and last raw peice of food in inventory
  • Walks nicley
  • Smooth banking
  • Multi-player

The reason for picking x and y cords of the food in first inventory spot. I tried to make this script so you can cook anything you want. The x and y cords are there for detecting multiple things. It detects what is the first raw peice, and the last raw peice, and when it has cooked all the food in the inventory leaving no food raw. Just pick a color of the food in the first inventor spot, any color other then black, and paste those x and y coords in the constants.

Bugs:
  • Door opening procedure doesnt really work, but door should always stay open unless someone messes around with it.
  • FIXED - Sometimes it doesnt walks to bank before cooking all the food.
Notes:

Script Stats: http://www.stats.srl-forums.com/index.php?action=view_script&id=120

- JUNIOR

Secet

2007-04-12 05:04:49

To find out where problem is I suggest you to use alot of WriteLn procedures and it will help fixing alot. :)

mikev

2007-04-14 16:45:29

MAN! You are spitting out so many awesome scripts! I get you a proggy soon, got about 1k fish to cook. nice work!

Junior

2007-04-14 18:26:25

Expect an update tonight, fixed some minor things.

EDIT: Updated.

mikev

2007-04-14 20:31:42

can it cook trout and salmon? How come you need the x and y coords for the first inv spot? isnt it always the same? Anyways, beautiful script!

Junior

2007-04-14 20:56:43

Read my first post, I forgot to explain why that was needed.

mikev

2007-04-14 21:44:38

I got it. It worked great for my 500 + trout. now I'll try cooking some salmon.

heres longest proggy so far for me.

 Al Kharid Cooker, VERSION 1.0.1
Time working: 31 Minutes and 21 Seconds
Current total trips: 14
Current total food cooked: 392

some times it doesn't detect that all the salmon are cooked. only sometimes though.

Junior

2007-04-14 22:35:55

Cool, that looks pretty good. Why did it stop the other times, as you said:
heres longest proggy so far for me.

Yea, I just tried that function and it walked to the bank before it even cooked all the food, I need to look into that function later.

mikev

2007-04-14 22:40:24

may I suggest making a failsafe–this would be my idea–

1) mark the time when you begin to cook.

2) It takes a little over a minute to cook an inventory of food.

3) If that time is exceeded, then go deposit stuff.

just an idea.

Junior

2007-04-14 22:47:23

I did… Starting on line 293 look at where it says:
      MarkTime(MaxCook);
Status('Waiting until all food is cooked.');
while (FindColor(x, y, FirstColor, Last.x - 15, Last.y - 15, Last.x + 15, Last.y + 15)) do
begin
if (FindRandoms(True)) or not(LoggedIn) or (TimeFromMark(MaxCook) > 260000) then Exit;
You see the 260000? If it over exceeds that time, it exits out the loop. I made it that high because my army has low cooking levels, and the Click here to continues were slowing them down. I think that time is a little too high, but lower it urself if you want too. Ill change that in the next version along with fixing that function. Trust me, every one of my scripts contain many failsafes. And you didnt answer my above question, why did it stop the other times? lol

mikev

2007-04-14 23:00:31

Sorry about that, I shoulda looked at the script befor opening my mouth. Anyways, I manually stopped it because that wait time was so long, My character stood there for 30 seconds or more so I thouht the script was stuck.

Trust me, every one of my scripts contain many failsafes


I never would doubt your scripts, they are incredible, keep up the great work, I learn a lot from your scripts ;)

Junior

2007-04-15 14:51:42

Just updated. Fixed some procedures, functions, and failsafes.