SRL Archive - RS3 Cooking

The Mayor's Al Kharid Cooker


The Mayor

2014-10-26 04:36:54

The Mayor's Al Kharid Cooker





I will put this thread together later. Wrote this for my ironman but it's stable enough for release.

What this script does:
[INDENT]
  1. This can cook any fish at Al Kharid range
  2. Maintains over 1k food per hour
[/INDENT]




Instructions:
[INDENT]
  1. Setup your players in Rafiki player manager (see the picture on my other threads)
  2. Set bank preset #1 to 28 raw food
  3. Al Kharid lodestone unlocked
[/INDENT]

Incurable

2014-10-26 05:32:18

Congratulations for the release, I'll test it tonight and let you know what happens. :)

The Mayor

2014-10-26 05:54:28

From: Incurable
Congratulations for the release, I'll test it tonight and let you know what happens. :)


Sweet ;)

Incurable

2014-10-26 11:35:21

From: The Mayor
Sweet ;)


I cooked 5k Crayfish on two separate accounts simultaneously, the proggies are almost identical:


/==============================\
|| The Mayor's Al Kharid Cooker ||
|| Time: 04h 37m 57s ||
|| Cooked: 4885 (1054 PH) ||
|| Burned: 127 ||
|| XP: 146550 (31635 PH) ||
\==============================/


/==============================\
|| The Mayor's Al Kharid Cooker ||
|| Time: 04h 37m 57s ||
|| Cooked: 4885 (1054 PH) ||
|| Burned: 127 ||
|| XP: 146550 (31635 PH) ||
\==============================/

The only issue was that one of the accounts had never done any cooking before, and therefore had never had this "burnt food derp" pop-up before:


I let it sit for 2 minutes before manually closing it myself. If you want people to be able to use this on a brand new account then you'll have to add a check for that.

Good script, I look forward to seeing the fisher now. :p

The Mayor

2014-10-26 16:19:38

From: Incurable


I let it sit for 2 minutes before manually closing it myself. If you want people to be able to use this on a brand new account then you'll have to add a check for that.

Good script, I look forward to seeing the fisher now. :p


Thank's for the report ;) I'm not gonna add in a bunch of code to close that popup just because it appears the first time you burn food, which will be on the first load. People should just take 20 seconds longer to setup their script :p


E: Those proggys are exactly the same :unsure:

Incurable

2014-10-26 22:52:42

From: The Mayor
Thank's for the report ;) I'm not gonna add in a bunch of code to close that popup just because it appears the first time you burn food, which will be on the first load. People should just take 20 seconds longer to setup their script :p


E: Those proggys are exactly the same :unsure:


Oops, lmao. I must have pasted the same proggy twice instead of pasting both. Either way, they were almost identical, the only differences from memory were a minute of time and a few extra burnt fish on one of them.

Incurable

2014-11-03 06:27:15

@The Mayor


/==============================\
|| The Mayor's Al Kharid Cooker ||
|| Time: 05h 42m 42s ||
|| Cooked: 6072 (1063 PH) ||
|| Burned: 116 ||
|| XP: 182160 (31893 PH) ||
\==============================/
-- ERROR: **gaussian failed**
gaussBoxPoint invalid (134, -16)

The script didn't fail and continued as normal, but I thought I'd post it in case you want to fix it or something.

The Mayor

2014-11-03 20:31:44

From: Incurable
@The Mayor


/==============================\
|| The Mayor's Al Kharid Cooker ||
|| Time: 05h 42m 42s ||
|| Cooked: 6072 (1063 PH) ||
|| Burned: 116 ||
|| XP: 182160 (31893 PH) ||
\==============================/
-- ERROR: **gaussian failed**
gaussBoxPoint invalid (134, -16)

The script didn't fail and continued as normal, but I thought I'd post it in case you want to fix it or something.


It's just gaussBox throwing an error because of the -y. There is a whole bunch of srl6 functions that call gaussBox so it will be hard to track down.

Trollcrank

2014-12-07 00:49:38

Works good, I used a hotkey to bring up my skills tab so I could check my cooking level and it terminated :p


/==============================\
|| The Mayor's Al Kharid Cooker ||
|| Time: 55m 37s ||
|| Cooked: 816 (880 PH) ||
|| Burned: 192 ||
|| XP: 81600 (88016 PH) ||
\==============================/

Edit: I was wondering if this was any way to add some more range colors to click on the white part instead of just the brown board and pot. I assume not due to that not already being added.
Also, if you wanted to, you could possibly add a choose cooked item list and have it automatically fill out the exp/item. I just thought of it but it might not be practically due to how many items that can be cooked lol.

Here is another proggy, I'll go for a much a longer one next time:

/==============================\
|| The Mayor's Al Kharid Cooker ||
|| Time: 01h 26m 33s ||
|| Cooked: 1504 (1042 PH) ||
|| Burned: 67 ||
|| XP: 150400 (104245 PH) ||
\==============================/


/==============================\
|| The Mayor's Al Kharid Cooker ||
|| Time: 05h 53m 29s ||
|| Cooked: 5985 (1016 PH) ||
|| Burned: 63 ||
|| XP: 598500 (101586 PH) ||
\==============================/
It worked good, but there are some minor improvements that can be made. It could use a sixhourfix, world login selection, and I'd like to see the the drop box with the optional number. The number would be default 0 and the dropbox would hold values for each represented item. Both numbers would be added together to get the exp total and the drop box would be default to None, which would equal zero.

The Mayor

2014-12-07 02:42:16

From: Trollcrank
Works good, I used a hotkey to bring up my skills tab so I could check my cooking level and it terminated :p


/==============================\
|| The Mayor's Al Kharid Cooker ||
|| Time: 55m 37s ||
|| Cooked: 816 (880 PH) ||
|| Burned: 192 ||
|| XP: 81600 (88016 PH) ||
\==============================/

Edit: I was wondering if this was any way to add some more range colors to click on the white part instead of just the brown board and pot. I assume not due to that not already being added.
Also, if you wanted to, you could possibly add a choose cooked item list and have it automatically fill out the exp/item. I just thought of it but it might not be practically due to how many items that can be cooked lol.


This script was meant to be pretty simple as I just threw it together when I was working on my ironman. Both of those things are pretty easy to add. You could just add a comboBox to the initPlayerForm() with all the different food types. I guess an easy way to make the mouse move a little more on the range would be to:

mouse(middleTPA(ATPA[i]), MOUSE_MOVE);

to

mouse(middleTPA(ATPA[i]).rand(10), MOUSE_MOVE);

Trollcrank

2014-12-07 11:23:31

From: The Mayor
You could just add a comboBox to the initPlayerForm() with all the different food types. I guess an easy way to make the mouse move a little more on the range would be to:

mouse(middleTPA(ATPA[i]), MOUSE_MOVE);

to

mouse(middleTPA(ATPA[i]).rand(10), MOUSE_MOVE);


So I did end up changing the tabbackpack count failsafe that terminates under 28 items and decreased the amount. During this Christmas event you have a chance of getting snow and I wanted an invo slot for it so that it would bank them too but, unfortunately, it counted more food burnt in the progress report.

Perhaps you could do the same and use this with an if statement to calculate the invo count, it's not necessary but there has been other events similar and it is a decent feature.


tabBackpack.isItemInSlot(1)

The Mayor

2014-12-07 14:23:31

From: Trollcrank
So I did end up changing the tabbackpack count failsafe that terminates under 28 items and decreased the amount. During this Christmas event you have a chance of getting snow and I wanted an invo slot for it so that it would bank them too but, unfortunately, it counted more food burnt in the progress report.

Perhaps you could do the same and use this with an if statement to calculate the invo count, it's not necessary but there has been other events similar and it is a decent feature.


tabBackpack.isItemInSlot(1)


I'm not going to update that officially. Counting more burnt food is just cosmetic. You sound like you've modified it to suit your needs though ;)

TomTop

2014-12-08 05:57:32

Hey,

I've been using this script for a day and a bit, at first it was great, ran for 2 hours no problem, then the next day it couldn't find the range color, I changed it manually and it seems to be working now.

Thanks for the script, I'll run it for a few hours then I'll be posting a progress report :D

The Mayor

2014-12-08 13:46:23

From: TomTop
Hey,

I've been using this script for a day and a bit, at first it was great, ran for 2 hours no problem, then the next day it couldn't find the range color, I changed it manually and it seems to be working now.

Thanks for the script, I'll run it for a few hours then I'll be posting a progress report :D


I think I picked the colours pretty quickly for this script!

TomTop

2014-12-08 14:38:09

From: The Mayor
I think I picked the colours pretty quickly for this script!


Yeah, haha been running for a little bit now, progress report below, only problem it has it will sometimes click in the Al Kharid guard yard area and get stuck.

Doing trout to 99, currently at 71.


/==============================\
|| The Mayor's Al Kharid Cooker ||
|| Time: 03h 34m 34s ||
|| Cooked: 3780 (1057 PH) ||
|| Burned: 0 ||
|| XP: 264600 (73989 PH) ||
\==============================/

The Mayor

2014-12-09 12:31:40

From: Trollcrank

Here is another proggy, I'll go for a much a longer one next time:

/==============================\
|| The Mayor's Al Kharid Cooker ||
|| Time: 01h 26m 33s ||
|| Cooked: 1504 (1042 PH) ||
|| Burned: 67 ||
|| XP: 150400 (104245 PH) ||
\==============================/


/==============================\
|| The Mayor's Al Kharid Cooker ||
|| Time: 05h 53m 29s ||
|| Cooked: 5985 (1016 PH) ||
|| Burned: 63 ||
|| XP: 598500 (101586 PH) ||
\==============================/
It worked good, but there are some minor improvements that can be made. It could use a sixhourfix, world login selection, and I'd like to see the the drop box with the optional number. The number would be default 0 and the dropbox would hold values for each represented item. Both numbers would be added together to get the exp total and the drop box would be default to None, which would equal zero.


I'm not really supporting this script. It was just a 30 minute job for my ironman. As I said above, you're welcome to add a combo box to the form. Doesn't it pass the 6h fix?

From: TomTop
Yeah, haha been running for a little bit now, progress report below, only problem it has it will sometimes click in the Al Kharid guard yard area and get stuck.

Doing trout to 99, currently at 71.


/==============================\
|| The Mayor's Al Kharid Cooker ||
|| Time: 03h 34m 34s ||
|| Cooked: 3780 (1057 PH) ||
|| Burned: 0 ||
|| XP: 264600 (73989 PH) ||
\==============================/


I'd just be cautious about running these basic scripts for long periods. With no breaks and stuff it can look a bit botty ;)

seniorjulio

2014-12-09 13:01:47

It won't click on cook. It will do everything else up until it hits the range, then the mouse pointer will shift between two locations at the top of the screen. I'm pretty sure my graphics settings are right because all of ashaman's scripts work for me. I'm doing lobbies btw and my drop down is on fish. lobbies is illuminated and cook is blue, ready just for that click

The Mayor

2014-12-09 13:21:59

From: seniorjulio
It won't click on cook. It will do everything else up until it hits the range, then the mouse pointer will shift between two locations at the top of the screen. I'm pretty sure my graphics settings are right because all of ashaman's scripts work for me. I'm doing lobbies btw and my drop down is on fish. lobbies is illuminated and cook is blue, ready just for that click


Reset your interfaces to old school and tell me if it works

Trollcrank

2014-12-09 16:18:58

From: The Mayor
I'm not really supporting this script. It was just a 30 minute job for my ironman. As I said above, you're welcome to add a combo box to the form. Doesn't it pass the 6h fix?

I'd just be cautious about running these basic scripts for long periods. With no breaks and stuff it can look a bit botty ;)

No it failed to pass the 6 hour limit, it tried to log in and then it showed the warning to reload the client. Afterwards, it took a few seconds, it ended the client. And then it didn't restart so I just manually reloaded it.

Yeah I was worried about it looking sketchy too, I added some better antiban to counter that :p

The Mayor

2014-12-09 21:12:43

From: Trollcrank
No it failed to pass the 6 hour limit, it tried to log in and then it showed the warning to reload the client. Afterwards, it took a few seconds, it ended the client. And then it didn't restart so I just manually reloaded it.

Yeah I was worried about it looking sketchy too, I added some better antiban to counter that :p


Then it did pass the 6h fix. It takes 5 minutes to spawn.

Trollcrank

2014-12-09 22:25:28

From: The Mayor
Then it did pass the 6h fix. It takes 5 minutes to spawn.


…Well darn. So I'll get a longer one then haha, after I improve that antiban a bit. I agree, I wouldn't want to run it for more than 6 hours atm. Can simba restart the real rs3 client, the browser, after 6 hours?

Also I feel like a noob, in my defense I've never seen it restart; even though I've gone beyond the 6hr limit before.

Edit:

/==============================\
|| The Mayor's Al Kharid Cooker ||
|| Time: 06h 38m 44s ||
|| Cooked: 6684 (1006 PH) ||
|| Burned: 64 ||
|| XP: 668400 (100577 PH) ||
\==============================/

boscolamhk

2014-12-29 03:44:46

/==============================\
|| The Mayor's Al Kharid Cooker ||
|| Time: 14m 14s ||
|| Cooked: 8102 (34146 PH) ||
|| Burned: 1558 ||
|| XP: 810200 (3414551 PH) ||
\==============================/
Terminated: Failed to use the Range
Successfully executed.


Why does it fail to use the Range?

The Mayor

2014-12-30 19:13:51

From: boscolamhk
/==============================\
|| The Mayor's Al Kharid Cooker ||
|| Time: 14m 14s ||
|| Cooked: 8102 (34146 PH) ||
|| Burned: 1558 ||
|| XP: 810200 (3414551 PH) ||
\==============================/
Terminated: Failed to use the Range
Successfully executed.


Why does it fail to use the Range?


The range colour probably needs updating @ line 145

boscolamhk

2014-12-30 20:39:12

From: The Mayor
The range colour probably needs updating @ line 145


I notice it happens when it clicks on Karim (the guy near the range) instead of the range. It starts a conversation and stucks there.

The Mayor

2014-12-30 22:12:34

From: boscolamhk
I notice it happens when it clicks on Karim (the guy near the range) instead of the range. It starts a conversation and stucks there.


Hmm, it should still look for the range if the conversation box is open. Does it always (and only) fail to find the range after talking to that guy?

boscolamhk

2014-12-30 23:09:19

From: The Mayor
Hmm, it should still look for the range if the conversation box is open. Does it always (and only) fail to find the range after talking to that guy?


Yes. Only fail when it clicks on that guy

The Mayor

2014-12-30 23:26:00

From: boscolamhk
Yes. Only fail when it clicks on that guy


Looks like I'll have to give it a run

boscolamhk

2015-01-01 06:41:40

From: The Mayor
Looks like I'll have to give it a run


I guess I find the problem. The script fails when the screen angle is not high enough. I usually start the script (so as to start SMART), stop it and set the bank preset and run the script again. The script fails to find the range (misclicks that guy) when the screen is set to clickCompass angle. It's my fault, sorry for that. I will probably get banned for my account coz I keep running to and fro between the range and the bank without cooking anything (It cannot detect the range when the mainscreen is set to low angle………….):duh:

tokoolman

2015-03-05 10:51:43

gonna try this when i get done with fishing :D how do you guys screenshot the proggy?

x3DNipS

2015-03-08 00:21:45

Yeah Mine clicks on the range but fails to click cook, it just stays on the QTY 28 by the slider. I tried resetting it to old school and all that changed was that it doesn't make it into the cooking room first try XD lol. I know you said you're not maintaining it, so i'm not worried and I've been trying to figure it out myself, but i'm no coder :P

hobows

2015-04-02 14:01:57

/==============================\
|| The Mayor's Al Kharid Cooker ||
|| Time: 09h 32m 17s ||
|| Cooked: 9958 (1044 PH) ||
|| Burned: 66 ||
|| XP: 995800 (104401 PH) ||
\==============================/



Great script for non-member accounts. Just got done cooking about 12,000 tuna, ran flawlessly. Thanks for creating and posting this script, mayor!


From: tokoolman
gonna try this when i get done with fishing :D how do you guys screenshot the proggy?


It automatically creates a prog, just copy/paste.

p90k

2015-04-08 06:48:40

/==============================\
|| The Mayor's Al Kharid Cooker ||
|| Time: 12h 43m 42s ||
|| Cooked: 13020 (1023 PH) ||
|| Burned: 0 ||
|| XP: 1302000 (102289 PH) ||
\==============================/

Stopped manually. Great script. Thank you.

Haidargubbe

2015-04-27 09:58:34

It comes to login window and executes.

Clu

2015-05-02 02:35:08

Terminated: Less than 28 items after withdrawl from bank

But I have 28 items. :(

Mack

2015-06-04 20:39:52

Error: Unknown declaration "smartImage" at line 157 ? I've put the image in the exact folder it needs to be in.
Nevermind, i fixed it. Same problem as Clu. though

Mack

2015-06-04 21:46:56

From: The Mayor
Reset your interfaces to old school and tell me if it works


Having the same problem, interfaces are on old runescape and all settings are correct, it will not cook.

EDIT: Did not mean to double post. I'm sorry. Do not know how to delete them :L

The Mayor

2015-06-07 06:33:44

From: AustinChurch
Having the same problem, interfaces are on old runescape and all settings are correct, it will not cook.

EDIT: Did not mean to double post. I'm sorry. Do not know how to delete them :L


Colours need updating!

Krzysztof

2015-06-10 15:21:26

I used it about a month ago. No ban, ran flawlessly, got me 66 cooking in a couple of hours.

Awesome, thanks, and keep up the good work :)

The Mayor

2015-08-13 15:41:01

From: Semtex
@The Mayor; Hiyo mate, i've noticed this a few times.

Every once in a while, it runs to the middle of the castle in Al Kharid. When this happens, it's running from the bank, trying to reach the stove/range :)

The debug says the following:
-- Al_Kharid.getPlayerPos(): result = {X = 70, Y = 110}, took 16 ms
---- Waiting while the player is moving...

When it's going to the correct spot it says the following:
-- Al_Kharid.getPlayerPos(): result = {X = 158, Y = 186}, took 31 ms
---- Waiting while the player is moving...

I've looked over the code, but i can't find anything near those coordinates leading to the castle, so i'm kinda lost why it's running there.

Regards Semtex


Script hasn't been touched in 10 months :p I uploaded a new version which has a new SPS map (it will download it first run).