PDA

View Full Version : TomTuff's Al Kharid Cooker



TomTuff
12-21-2010, 09:22 AM
New script... This one actually works*, take my word for it!
*DISCLAIMER: Only tested with lobsters

Features:
-Good Antiban
-Antirandom
-Absolute color! NO Reflection! As of Revision 3, It now uses Reflection antirandoms simply because they work better.
-TPA Walking and object finding
-DTM Item counting/finding
-Detailed and neat progress report
-short and efficient
-plenty of check sums and fail safes

Setup:
Start the player anywhere in Al Kharid Bank. Follow the setup instructions that are in the comments in the script. Smart is optional; comment out line 2 if you do not want to use it. Be sure that the fish you are cooking is visible in the bank. Click run. Enjoy cooking exp.

Sample progress report:

┌------------------------------------------------------------------┐
│ TomTuff's Al Kharid Cooker │
│ Revision 01 │
├------------------------------------------------------------------┤
│ Overall: │
│ Time Ran: 59 Minutes and 32 Seconds │
│ Food Cooked: 1008 │
│ Food Sucessfully Cooked: 1008 │
│ Total XP Gained: 120960 │
│ Levels Gained: 0 │
├------------------------------------------------------------------┤
│ Player 0: │
│ Worked: 59 Minutes and 32 Seconds │
│ Food Type: Lobster │
│ Food Attempted: 1008 │
│ Food Sucessfully Cooked: 1008 │
│ Exp Gained: 120960 │
└------------------------------------------------------------------┘


Revision history is at the bottom of the file, for those interested.

Enjoy :D
Rep appreciated

TomTuff
12-21-2010, 09:23 AM
Progs:


Best by me:

┌------------------------------------------------------------------┐
│ TomTuff's Al Kharid Cooker │
│ Revision 03 │
├------------------------------------------------------------------┤
│ Overall: │
│ Time Ran: 2 Hours, 49 Minutes and 50 Seconds │
│ Food Cooked: 2800 │
│ Food Sucessfully Cooked: 2774 │
│ Total XP Gained: 332880 │
│ Levels Gained: 2 │
├------------------------------------------------------------------┤
│ Player 0: │
│ Worked: 2 Hours, 49 Minutes and 27 Seconds │
│ Food Type: Lobster │
│ Food Attempted: 2800 │
│ Food Sucessfully Cooked: 2774 │
│ Exp Gained: 332880 │
│ Exp/HR: 117859 │
│ Loads/HR: 36 │
└------------------------------------------------------------------┘

┌------------------------------------------------------------------┐
│ TomTuff's Al Kharid Cooker │
│ Revision 05 │
├------------------------------------------------------------------┤
│ Overall: │
│ Time Ran: 2 Hours, 7 Minutes and 2 Seconds │
│ Food Cooked: 2085 │
│ Food Sucessfully Cooked: 2043 │
│ Total XP Gained: 286020 │
│ Levels Gained: 0 │
├------------------------------------------------------------------┤
│ Player 0: │
│ Worked: 2 Hours, 6 Minutes and 39 Seconds │
│ Food Type: Swordfish │
│ Food Attempted: 2085 │
│ Food Sucessfully Cooked: 2043 │
│ Exp Gained: 286020 │
│ Exp/HR: 135493 │
│ Loads/HR: 36 │
│ Food cooked/HR: 988 │
└------------------------------------------------------------------┘


Best by others:


┌------------------------------------------------------------------┐
│ TomTuff's Al Kharid Cooker │
│ Revision 06 │
├------------------------------------------------------------------┤
│ Overall: │
│ Time Ran: 1 Hours, 59 Minutes and 59 Seconds │
│ Food Cooked: 1835 │
│ Food Sucessfully Cooked: 1792 │
│ Total XP Gained: 125440 │
│ Levels Gained: 2 │
├------------------------------------------------------------------┤
│ Player 0: │
│ Worked: 1 Hours, 59 Minutes and 56 Seconds │
│ Food Type: Trout │
│ Food Attempted: 1835 │
│ Food Sucessfully Cooked: 1792 │
│ Levels Gained: 2 │
│ Exp Gained: 125440 │
│ Exp/HR: 62753 │
│ Loads/HR: 33 │
│ Food cooked/HR: 918 │
└------------------------------------------------------------------┘

wondersueak
12-21-2010, 10:40 AM
Amazing script. Fast and effective.

┌------------------------------------------------------------------┐
│ TomTuff's Al Kharid Cooker │
│ Revision 02 │
├------------------------------------------------------------------┤
│ Overall: │
│ Time Ran: 10 Minutes and 27 Seconds │
│ Food Cooked: 168 │
│ Food Sucessfully Cooked: 135 │
│ Total XP Gained: 12150 │
│ Levels Gained: 2 │
├------------------------------------------------------------------┤
│ Player 0: │
│ Worked: 10 Minutes and 26 Seconds │
│ Food Type: Salmon │
│ Food Attempted: 168 │
│ Food Sucessfully Cooked: 135 │
│ Exp Gained: 12150 │
│ Exp/HR: 69852 │
└------------------------------------------------------------------┘

TomTuff
12-22-2010, 10:16 PM
Bring Up My Post

doublex8
12-22-2010, 10:55 PM
nice compliment to the shilo village script someone made(sorry I forget who at the moment), thanks for adding salmon and trout. Anyway you could include tuna? I got 5k of salmon and trout to cook so I will try to get a good prog.

TomTuff
12-22-2010, 11:49 PM
nice compliment to the shilo village script someone made(sorry I forget who at the moment), thanks for adding salmon and trout. Anyway you could include tuna? I got 5k of salmon and trout to cook so I will try to get a good prog.

Shuttleu.

And sure, I'll add the DTMs for Tuna when my player is done ^_^

doublex8
12-23-2010, 01:02 AM
Shuttleu.

And sure, I'll add the DTMs for Tuna when my player is done ^_^

Much appreciated ^_^ I've been waiting a long time for a cooking script.

KingKong
12-23-2010, 01:04 AM
Its pretty easy to make a cooking script(I have a reflection/color one that is about 160 lines), all you need is the tile co ords of the range.

TomTuff
12-23-2010, 01:21 AM
Its pretty easy to make a cooking script(I have a reflection/color one that is about 160 lines), all you need is the tile co ords of the range.

If it was so easy, let's see it.

KingKong
12-23-2010, 01:23 AM
Ill post the script when i get home(im at work rite now :P) which is about 6 hrs from now.

Bad Boy JH
12-23-2010, 01:35 AM
Click Range takes...hmmm 10 lines
Banking would require 4, if my withdrawer was included.
Walking to range is 1,
Walking to bank is included in the banking section.
well thats < 20, add failsafes for another 30 lines, thats 50.

Declare Players, maybe an extra 20 lines, makes 70

yes, < 160 lines is certainly possible.

TomTuff
12-23-2010, 01:36 AM
Click Range takes...hmmm 10 lines
Banking would require 4, if my withdrawer was included.
Walking to range is 1,
Walking to bank is included in the banking section.
well thats < 20, add failsafes for another 30 lines, thats 50.

Declare Players, maybe an extra 20 lines, makes 70

yes, < 160 lines is certainly possible.

that wouldn't last very long... lol

doublex8
12-23-2010, 01:38 AM
seems to have trouble finding the range sometimes. I Keep having to start the script every hour or so.

TomTuff
12-23-2010, 01:39 AM
seems to have trouble finding the range sometimes. I Keep having to start the script every hour or so.

If it's giving an out of range error, try restarting simba.

KingKong
12-23-2010, 01:42 AM
that wouldn't last very long... lol


Using reflection, it does(i cooked about 3k tunas).

TomTuff
12-23-2010, 01:45 AM
let's not start a color versus reflection fight lol

KingKong
12-23-2010, 01:53 AM
I always wanted to do that(but I don't really have a clue as to how reflection works, so i can only come up with ideas as to how color sucks)

doublex8
12-23-2010, 02:05 AM
If it's giving an out of range error, try restarting simba.

I get the out of range error sometimes too but sometimes it just says it can't find the range(the stove) with no out of range error.

KingKong
12-23-2010, 02:16 AM
Ahhhh........the problems associated with color :P

Edit: Getting color to work smoothly at akb is a pain in the back

TomTuff
12-23-2010, 02:24 AM
I get the out of range error sometimes too but sometimes it just says it can't find the range(the stove) with no out of range error.

It might be uptext. Uptext always gives me problems in al-kharid for some reason. When it messes up, what does it do? If it mouses over the range but still messes up, then it's uptext.


Also, kongking, why do you say that?

doublex8
12-23-2010, 02:26 AM
It might be uptext. Uptext always gives me problems in al-kharid for some reason. When it messes up, what does it do? If it mouses over the range but still messes up, then it's uptext.


Also, kongking, why do you say that?

I usually log back in and I'm not even in the kebab store.

KingKong
12-23-2010, 02:38 AM
Also, kongking, why do you say that?

Well its mighty hard to find the range at akb using color since most of its colors are easily confused for the furnace nearby, or the floor. I would make the whole script nearly full reflection since you are using reflection anyway, and it has less chances to stuff up.(1% reflection or 100% reflection is the same if the reflection part is vital for the functioning of the script, because the whole script breaks when hooks get outdated)

TomTuff
12-23-2010, 09:34 PM
Revision 6 added. Someone tell me if "HandleBox" works :D see change log for other small things.

**BANNED The Man
12-23-2010, 10:13 PM
Why not just have a Reflection Failsafe/Backup?
So if colour can't find the stove then Reflection will.
I know, lots of people will just say use reflection on its own, but Colour requires more effort/skill in this area.

:)
-Boom

TomTuff
12-23-2010, 10:22 PM
Why not just have a Reflection Failsafe/Backup?
So if colour can't find the stove then Reflection will.
I know, lots of people will just say use reflection on its own, but Colour requires more effort/skill in this area.

:)
-Boom

I don't see this is as necessary. The only reason the script stops for me is because of randoms, and hopefully i made it handle randoms properly in revision 6.

usuck123
12-25-2010, 12:28 AM
good script um for me it runs well for like 4 or 5 loads then it clicks outside(to the left) of the building with the range and then doesn't do anything and logs me out. is this happening to anyone else? or does someone know if i have a setting wrong?

TomTuff
12-25-2010, 01:03 AM
good script um for me it runs well for like 4 or 5 loads then it clicks outside(to the left) of the building with the range and then doesn't do anything and logs me out. is this happening to anyone else? or does someone know if i have a setting wrong?

Next time it does this, watch a few things for me:
Does the little red flag stay on the minimap even after you're done walking? If it does, then it will wait about 10 seconds after your character stops moving (SRL function, not mine).
What does it say in the debug box? before the next progress report it writes, it should say something like "player logged out because .."
Is the range still in veiw? If it is, it should just continue like normal...

It does this every once in a while for me, too. Walking into the room is very difficult, even with reflection, because on the majority of the room when you click on the mm, it counts the tile as an "invalid tile" so it moves the flag (aka goal spot) to the nearest walkable tile.

doublex8
12-25-2010, 01:23 AM
This script stops pretty frequently for me. I've tried babysitting is but I always miss it when it logs out. It usually says that it had trouble walking to the range and I will log in with a full inventory of raw fish and be standing in the bank or on the way to the range.

Also thank you for adding tuna ^_^

TomTuff
12-25-2010, 01:32 AM
This script stops pretty frequently for me. I've tried babysitting is but I always miss it when it logs out. It usually says that it had trouble walking to the range and I will log in with a full inventory of raw fish and be standing in the bank or on the way to the range.

Also thank you for adding tuna ^_^

How often is pretty frequently? i usually get 2.5 hour progress reports, and they stop from randoms (flagged account much).

PS i should have a rogue's den cooker up later, since there's no walking it will probably be a lot more stable, I'm also going to add reflection back ups. The exp/hr will also be higher.

KingKong
12-25-2010, 02:09 AM
Try using this for walking(its from my cooker :p):

case random(3) of
0: WalkPath([Tile(3274, 3181)]);
1: Walkpath([Tile(3273, 3182)]);
2: Walkpath([Tile(3273, 3181)]);
end;


I never had problems with it walking in to the shop.

Edit: Put the char near the top 3-4 bankbooths at akb

TomTuff
12-25-2010, 02:49 AM
Try using this for walking(its from my cooker :p):

case random(3) of
0: WalkPath([Tile(3274, 3181)]);
1: Walkpath([Tile(3273, 3182)]);
2: Walkpath([Tile(3273, 3181)]);
end;


I never had problems with it walking in to the shop.

Edit: Put the char near the top 3-4 bankbooths at akb

Shouldnt that be

case Random(2)of
..
end;

?

KingKong
12-25-2010, 02:56 AM
No, random(x) gives you values starting from 0 and ending one short of x, so random(3) gives 0,1,2.

doublex8
12-25-2010, 03:00 AM
How often is pretty frequently? i usually get 2.5 hour progress reports, and they stop from randoms (flagged account much).

PS i should have a rogue's den cooker up later, since there's no walking it will probably be a lot more stable, I'm also going to add reflection back ups. The exp/hr will also be higher.

By frequently I mean I don't think I've ever gotten beyond an hour. It seems to be running quite nicely right now at 23 min. If I have problems I will try kingkongs path.

EDIT: Finally got beyond an hour. I think I ran out of trout. YAY!Player anti Stopped because: failed to wait to finish cooking
┌------------------------------------------------------------------┐
│ TomTuff's Al Kharid Cooker │
│ Revision 06 │
├------------------------------------------------------------------┤
│ Overall: │
│ Time Ran: 1 Hours, 59 Minutes and 59 Seconds │
│ Food Cooked: 1835 │
│ Food Sucessfully Cooked: 1792 │
│ Total XP Gained: 125440 │
│ Levels Gained: 2 │
├------------------------------------------------------------------┤
│ Player 0: │
│ Worked: 1 Hours, 59 Minutes and 56 Seconds │
│ Food Type: Trout │
│ Food Attempted: 1835 │
│ Food Sucessfully Cooked: 1792 │
│ Levels Gained: 2 │
│ Exp Gained: 125440 │
│ Exp/HR: 62753 │
│ Loads/HR: 33 │
│ Food cooked/HR: 918 │
└------------------------------------------------------------------┘

EDIT 2: actually it wasn't done. I logged in at the range with half my inventory cooked.

TomTuff
12-26-2010, 04:08 AM
By frequently I mean I don't think I've ever gotten beyond an hour. It seems to be running quite nicely right now at 23 min. If I have problems I will try kingkongs path.

EDIT: Finally got beyond an hour. I think I ran out of trout. YAY!Player anti Stopped because: failed to wait to finish cooking
┌------------------------------------------------------------------┐
│ TomTuff's Al Kharid Cooker │
│ Revision 06 │
├------------------------------------------------------------------┤
│ Overall: │
│ Time Ran: 1 Hours, 59 Minutes and 59 Seconds │
│ Food Cooked: 1835 │
│ Food Sucessfully Cooked: 1792 │
│ Total XP Gained: 125440 │
│ Levels Gained: 2 │
├------------------------------------------------------------------┤
│ Player 0: │
│ Worked: 1 Hours, 59 Minutes and 56 Seconds │
│ Food Type: Trout │
│ Food Attempted: 1835 │
│ Food Sucessfully Cooked: 1792 │
│ Levels Gained: 2 │
│ Exp Gained: 125440 │
│ Exp/HR: 62753 │
│ Loads/HR: 33 │
│ Food cooked/HR: 918 │
└------------------------------------------------------------------┘

EDIT 2: actually it wasn't done. I logged in at the range with half my inventory cooked.

That was probably due to a random. I've just realized that a much simpler way to do the WaitToCook loop is to just do a marktime, and then while the marktime is less than whatever 4 * 600 * (number fish) ms is (4 game ticks/fish), rather than finding DTMs. And people would probably rather have the script keep running rather than drop fish, pick up the rewards box, handle rewards box, and pick the fish back up.

SO...
New in Revision 7: Reflection walking. Upgraded cooking loop. POST PROGS :D

Also, progress report added to 2nd post, thanks doublex8 :)

Huthaifah
12-27-2010, 10:56 PM
Thanks man, just compiled, beautifully succesfully done. After I bot I'll give you reflections for you so you can admire.

TomTuff
12-27-2010, 11:08 PM
Thanks man, just compiled, beautifully succesfully done. After I bot I'll give you reflections for you so you can admire.

Alright, be sure to post the report.

Huthaifah
12-28-2010, 03:53 AM
├------------------------------------------------------------------┤
│ Player 0: │
│ Worked: 3 Minutes and 34 Seconds │
│ Food Type: Trout │
│ Food Attempted: 56 │
│ Food Sucessfully Cooked: 45 │
│ Levels Gained: 2 │
│ Exp Gained: 3150 │
│ Exp/HR: 52953 │
│ Loads/HR: 34 │
│ Food cooked/HR: 942 │
└------------------------------------------------------------------┘
I don't know why, but it finishes fast for me, don't know the problem, but I'm going to checkout your Rogue Den's cooker, cause your a pro scripter :D.

TomTuff
12-28-2010, 07:44 PM
├------------------------------------------------------------------┤
│ Player 0: │
│ Worked: 3 Minutes and 34 Seconds │
│ Food Type: Trout │
│ Food Attempted: 56 │
│ Food Sucessfully Cooked: 45 │
│ Levels Gained: 2 │
│ Exp Gained: 3150 │
│ Exp/HR: 52953 │
│ Loads/HR: 34 │
│ Food cooked/HR: 942 │
└------------------------------------------------------------------┘
I don't know why, but it finishes fast for me, don't know the problem, but I'm going to checkout your Rogue Den's cooker, cause your a pro scripter :D.

use the [REPORT] tags when you post reports.

What does it do?

Once i hit 99 cook (doing the last 900 sharks by hand), I'm going to hop on RSBot and update this script to use reflection backups, and i'm going to redo how the script flows, so it should run longer for everyone.

Sgt Soul
12-29-2010, 07:55 AM
ok when you have updated this script chuck me a PM and I will test it for you :) I am buying raw lobsters nowwwwwww :) <3

TomTuff
12-29-2010, 08:08 AM
Alright, revision 7 out. Again, I dont have any accounts available to test this. but it should work... in theory :p

There was a fatal flaw in revision 6 that made it *MULTIPLY* the calculated time to wait in the cooking loop rather than add it to the minimum time. D'oh.

Also, reflection backups, walking tiles slightly changed.

edit: revision 8, not rev 7.

KingKong
12-29-2010, 08:23 AM
Jeez, you release too many revisions :p, why not bug test rigorously a few times, then release? That way its easier for other people to use the latest version, because i doubt anyone is going to check so quickly for an updated version.

TomTuff
12-29-2010, 08:31 AM
Jeez, you release too many revisions :p, why not bug test rigorously a few times, then release? That way its easier for other people to use the latest version, because i doubt anyone is going to check so quickly for an updated version.

I dont have any accounts to test with (well i do but they're occupied lol)

Sgt Soul
12-29-2010, 11:43 AM
testing for you now tomtuff :) <3

EDIT: the script can't tell when the lobsters are all cooked and just sits there waiting as if there were still more lobsters too cook :/

TomTuff
12-29-2010, 12:38 PM
replace the function WaitToCook with

function WaitToCook: Boolean;
var
T, i: Integer;
begin
if not(LoggedIn) then
Exit;;
T := GetSystemTime + ((2400 * CountRaw) + Random(2000));
repeat
R_FindRandoms;
Antiban(RandomRange(1, 3));
if LevelUp then
Inc(Players[CurrentPlayer].Integers[13]);
Wait(600 + Random(100));
until (GetSystemTime > T);
Result := (CountCooked > 0);
end;

Sgt Soul
12-29-2010, 12:46 PM
didn't do anything different, are you sure its in walk to cook, not walk to bank?

PM me the changes you want me to make so we don't clog up the thread! :)

KingKong
12-29-2010, 12:50 PM
offtopic: tom, do u use ref banking? if so do u have any problems with it?

TomTuff
12-29-2010, 01:23 PM
offtopic: tom, do u use ref banking? if so do u have any problems with it?

Theres a backup function to open the bank, but I do the withdrawing solely by color.

As for why it just stands there... i really don't know :|

vashanddou
02-08-2011, 11:58 PM
Just wanted to say you make amazing cookers, and scripts in general. I used your rogue's den for 99 cook on main and now im gonna use this for 99 cook on alt =D

vashanddou
02-09-2011, 12:22 AM
small problem i've noticed,
your bot stops when you level up. or atleast for me it does, and it
doesn't click the "click here to continue"

TomTuff
02-09-2011, 02:14 AM
Just wanted to say you make amazing cookers, and scripts in general. I used your rogue's den for 99 cook on main and now im gonna use this for 99 cook on alt =D

Thanks :)


small problem i've noticed,
your bot stops when you level up. or atleast for me it does, and it
doesn't click the "click here to continue"

Well, that would be handled in WaitToCook:

function WaitToCook: Boolean;
var
T, Raws, RanWait, i: Integer;
begin
if not(LoggedIn) then
Exit;
Raws := CountRaw;
for i := 1 to High(Raws) do
IncEx(RanWait, Random(20));
T := GetSystemTime + (2400 * CountRaw + RanWait);
repeat
R_FindRandoms;
Antiban(RandomRange(1, 3));
if LevelUp then //this line
Inc(Players[CurrentPlayer].Integers[13]);
Wait(600 + Random(100));
until (GetSystemTime > T);
Result := (CountCooked > 0);
end;


The line I added a comment to handles level up detection. This is an SRL function, so it should work. The SRL function handles clicking, and when cooking after you click the button you (are supposed to) continue cooking.

I've written a function the works like SRL's LevelUp, except it uses the reflection variety of the same functions. See Revision 09 and tell me if the problem is solved.

mr-sjb
02-12-2011, 11:10 AM
how can i add an extra fish to cook in the script? because i have like 7k anchovies left in the bank which i like to cook.


begin
Players[CurrentPlayer].Arrays[0] := ['mggAAAHicY2NgYHjEzMBwGYjvA/FzIH4NxNe'
+ 'A+BsjA8MfIP4PxD+A+DMQfwXiyT09QF1MG'
+ 'JiXATtgxIEhAAAKrwz0', 'w tu'];
Players[Currentplayer].Arrays[1] := ['mrAAAAHic42BgYNjBzMCwEoi3APFuID4Ixe'
+ 'uAeDUQ/2BkYPgDxP+B+BcQfwPiT0D8Gcr'
+ 'OjI0CmsKEE/My4AeMBDAMAACwEA7V'];
Players[CurrentPlayer].Strings[0] := 'Tuna';
Players[CurrentPlayer].Integers[70] := 359;
Players[CurrentPlayer].Integers[71] := 361;
end;


i changed the strings, but i dont know how i can get the right integers and arrays (im not that good at programming)

masterBB
02-14-2011, 12:27 PM
Player utm Stopped because: could not withdraw raws
┌------------------------------------------------------------------┐
│ TomTuff's Al Kharid Cooker │
│ Revision 09 │
├------------------------------------------------------------------┤
│ Overall: │
│ Time Ran: 43 Minutes and 5 Seconds │
│ Food Cooked: 644 │
│ Food Sucessfully Cooked: 537 │
│ Total XP Gained: 64440 │
│ Levels Gained: 3 │
├------------------------------------------------------------------┤
│ Player 0: │
│ Worked: 41 Minutes and 3 Seconds │
│ Food Type: Lobster │
│ Food Attempted: 644 │
│ Food Sucessfully Cooked: 537 │
│ Levels Gained: 3 │
│ Exp Gained: 64440 │
│ Exp/HR: 94167 │
│ Loads/HR: 34 │
│ Food cooked/HR: 942 │
└------------------------------------------------------------------┘

Ogre
02-17-2011, 02:18 AM
I think I figured it out, but you should definitely state how to add different types of food, if you are only going to include a few by default.

TomTuff
02-17-2011, 02:35 AM
I think I figured it out, but you should definitely state how to add different types of food, if you are only going to include a few by default.

Players[CurrentPlayer].Arrays[0] = Raw fish DTM.
Players[CurrentPlayer].Arrays[1] = Cooked fish DTM
Players[CurrentPlayer].Strings[0] = Name of fish
....Integers[70] = Raw reflection ID
....Integers[71] = Cooked reflection ID.

I may be giving this script a ReVamp soon.

Ogre
02-17-2011, 02:48 AM
Players[CurrentPlayer].Arrays[0] = Raw fish DTM.
Players[CurrentPlayer].Arrays[1] = Cooked fish DTM
Players[CurrentPlayer].Strings[0] = Name of fish
....Integers[70] = Raw reflection ID
....Integers[71] = Cooked reflection ID.

I may be giving this script a ReVamp soon.

I know :p, you should include that in your original post or your updated script, though, so others are sure to see it.

vashanddou
02-17-2011, 02:53 AM
Waiting for Updat =D cus of reflection.

vashanddou
02-21-2011, 10:40 PM
Still waiting for update =(

" Result := R_CountItemID(Players[CurrentPlayer].Integers[71]); "
R_CountItemID error cus new reflection.

TomTuff
02-21-2011, 10:42 PM
Still waiting for update =(

" Result := R_CountItemID(Players[CurrentPlayer].Integers[71]); "
R_CountItemID error cus new reflection.

Updated.

Jakkle
02-25-2011, 09:57 AM
Hi i was wondering if you could add shrimp and anchovies to the script please ?
I would be very thankful as i got thousands of them :P

vashanddou
02-25-2011, 01:49 PM
There's a problem with the script now, just tested the new one.

Scrip Starts
Banks the invo/takes out lobsters
Goes to Cooking Range
Cooks all Lobsters
!Fails to return to bank after cooking!

Just thought i'd inform you ^^

BKNYKavkaz
02-26-2011, 06:37 PM
There's a problem with the script now, just tested the new one.

Scrip Starts
Banks the invo/takes out lobsters
Goes to Cooking Range
Cooks all Lobsters
!Fails to return to bank after cooking!

Just thought i'd inform you ^^

Just a temporary fix, until OP updates script.

replace the current, waittocook function with...
function WaitToCook: Boolean;
var
T, Raws, RanWait, i: Integer;
begin
if not(LoggedIn) then
Exit;
Raws := CountRaw;
repeat
R_FindRandoms;
LevelUp
Antiban(RandomRange(1, 3));
if (R_LevelUp or LevelUp) then
Inc(Players[CurrentPlayer].Integers[13]);
Wait(600 + Random(100));
until (countraw < 1);
Result := (CountCooked > 0);
end;

And from the antiban function, completely remove
case Lowercase(Chance) of
'low', 1: ChanceInt := 90;
'high', 2, 3: ChanceInt := 45;
end;

I would edit it with more functionality, but im in a rush right now, and i dont want to seem like im editting OP's script. No credits to me.

vashanddou
02-27-2011, 03:57 AM
Just a temporary fix, until OP updates script.

replace the current, waittocook function with...
function WaitToCook: Boolean;
var
T, Raws, RanWait, i: Integer;
begin
if not(LoggedIn) then
Exit;
Raws := CountRaw;
repeat
R_FindRandoms;
LevelUp
Antiban(RandomRange(1, 3));
if (R_LevelUp or LevelUp) then
Inc(Players[CurrentPlayer].Integers[13]);
Wait(600 + Random(100));
until (countraw < 1);
Result := (CountCooked > 0);
end;

And from the antiban function, completely remove
case Lowercase(Chance) of
'low', 1: ChanceInt := 90;
'high', 2, 3: ChanceInt := 45;
end;

I would edit it with more functionality, but im in a rush right now, and i dont want to seem like im editting OP's script. No credits to me.

Even though no credit to you thx for the help,
Tomtuff is an awesome scripter so i know he is busy ^^.

vashanddou
03-01-2011, 06:30 PM
Still waiting for update =D the quick fix only runs for like an hour =(

vashanddou
03-05-2011, 06:31 AM
please update soon =( the quick fix only works for like 1hr max lol.

edfromhumanresources
04-01-2011, 11:51 AM
I just tested this script and needed to change lines 384/421 (depending on reflection) from:


Result := r_WaitOption('ange', 1500);

to:


Result := r_WaitOption('se', 1500);

This was to prevent the script from clicking examine range instead of use on range.

edit: that was in addition to the changes to the WaitToCook and AntiRandom function proposed above in post #61 by BKNYKavkaz

keff
04-14-2011, 12:59 PM
Tried to solve the errors with the posted fixes but surely ended up with the error:



Error: Out Of Range at line 416


which is:

MiddleTPAEx(ATPA[i], x, y);

Using R10, logs in, withdraws fish, runs to the range and stops.

Any fix would be greatly appreciated since I have about 35k fish to cook :)

Carlito
07-30-2011, 04:29 PM
says rev 10 but i downloaded 11

[================================================== ==================]
[ TomTuff's Rogue's Den Cooker ]
[ Revision 10 ]
[================================================== ==================]
[ Overall Report ]
[ Time Ran: 1 Hours, 30 Minutes and 39 Seconds ]
[ Fish attempted to cook: 1572 ]
[ Fish sucessfuly cooked: 1502 ]
[ Fish burnt: 70 ]
[ Total EXP gained: 315420 ]
[================================================== ==================]
[ Player 0 (Carl): ]
[ Fish type: Shark ]
[ Worked: 1 Hours, 29 Minutes and 6 Seconds ]
[ Levels gained: 0 ]
[ EXP gained: 315420 ]
[ Exp/HR: 212371 ]
[ Food attempted: 1572 ]
[ Food cooked/HR: 1059 ]
[ Successful: 1502 ]
[ Burnt: 70 ]
[ Loads: 57 ]
[ Loads/HR: 39 ]
[================================================== ==================]

ry0240
08-13-2011, 11:34 PM
Hey, any chance you're going to upgrade this to ref2? Or are you not updating this anymore?