SRL Archive - RS3 Outdated / Broken Scripts

[R] BS Al-Kharid Cooker


Bixby Sayz

2011-04-26 22:00:35

Anyone using a previous version please update to the latest!
The previous version does not report experience properly to SRL Stats.

BS Al-Kharid Cooker v2011.05.12

Forums: http://villavu.com/forum/showthread.php?t=64092
Stats : http://stats.villavu.com/script/70

I know, just what we don't need…yet another Al-Kharid cooker.

Couldn't find a cooker script that pulled together all the features I want, so wrote my own as an excuse to dive in and learn Reflection and a few other things. Now that it's finished it seems kinda silly to keep it to myself and not the share with the class. Even if there isn't a big demand for it.

Highlights
- Reflection with color filling in the missing functionality.
- Supports all free-to-play foods. For multiple step foods (bread, pies, stews, pizza, cake) only supports the last stage: cooking.
- Supports all three al-kharid ranges (west, north, south). Also supports choosing a random range each trip. (Caution level 3 skillers: Death by scorpion is a possibility with south range)
- Supports multiple paths to each range. Selects a random path each trip.
- For each player may specify a single food, multiple foods, use best food, or all foods.
- BEST automatically selects best food based on cooking level and what is in your bank. When it runs out will cook the next best food, and so on.
- All automatically selects all foods supported by your cooking level and found in your bank. Will cook the lowest level food, then move on to the next highest.
- ALL and BEST update on the fly each trip as you level up.
- Will break player based on time played, number of loads, or target cooking level.
- If a target cooking level is set will stop training player when target level reached.
- Supports specifying a total time to run script. Will stop script when target time reached.
- Multiplayer with breaking between players.
- SRL Stats support.
- Picks up random event reward off ground and deals with it (still not 100% working. (new)
- And anything else I forgot to mention.

Changes in v2011.05.12:
- Fixed not posting experience gained to stats.
- Added lag check.
- Fixed running to bank when at range with raw food.
- Modified format of running time in declareplayers.
- Improved? random detection/handling. Still not 100%.
- Changed way time to run is defined in constants and declareplayers.
- General rework of logic to make it more efficient.
- Removed reporting of random stats.

Known Issues:
- Chooses book of knowledge as a one of the reward options by default. The book is not handled properly by SRL's random handling. Guess I should change this.

Home

2011-04-27 04:48:03

Looks great!
Great to see all those comments. So even new people can understand what the script is doing.

Well done!


~Home

Bixby Sayz

2011-04-27 09:09:50

And now that MSI has released cooking this is obsolete after less than a day. Ah well.

Yago

2011-04-27 20:58:48

Its OK. Competition only makes things work better… i actually like some features on this like different paths… You should continue with the script IMO

Overtime

2011-04-27 22:14:25

now this is better than MSI. Automatically starts cooking food based on your level!? Genius!

random path??!?! Genius.

Sorry msi, but im going to be using this one for a while :blush:

Edit: aww as soon as i got to the bottom i was dissapointed.

You should release again :))

Smartzkid

2011-04-27 22:29:45

From: Overtime
now this is better than MSI. Automatically starts cooking food based on your level!? Genius!

random path??!?! Genius.


That's how it ought to be :)

Specialized script = better than an AIO

doublex8

2011-04-27 23:06:40

And this supports WAY more food than the MSI one. Will definitely be using this so don't get down!

Bixby Sayz

2011-04-28 20:08:53

From: Overtime
You should release again


In a bit. The last few tweaks I made broke? a few things, such as:
- If starting in range with food, runs back to bank then realizes you have food and runs back.
- Every now and then (maybe 1 out of 10 trips) reports burnt food when there isn't. Cannot for the life of me find this one.
- Random stats not correctly posting to stats site. (I know, I'm the only one who cares)

Busy doing up my wife's business' books/taxes for a while.

any_one

2011-05-06 03:57:03

This doesn't properly log onto members worlds - every time it has logged in, it has chosen a free world despite me setting your Member variable. The cooking, banking, walking + range finding all work well, however this doesn't try to solve randoms before setting the player inactive and logging out. Some things to look into :) Other than these it is very solid.

Bixby Sayz

2011-05-06 07:52:29

Yeah I don't have a members account to test it on, so that is best guess on the members logon. The random handling in reflection really sucks. Have been tweaking that a bit to try to work around it in a new update, but not ready to release that yet.

Echo_

2011-05-06 09:41:40

From: Bixby Sayz
The random handling in reflection really sucks.


Have you tried posting the issues you've had here?

This script looks pretty good overall, I'd use it if I didn't already have 99 cooking :p Nice work

Bixby Sayz

2011-05-11 18:41:41

New version 2011.05.11 released. Please update to it to fix an issue with stats not being properly reported.

Edit: Now version 2011.05.12 - the pickup random reward was a tiny bit flawed in 2011.05.11.

Changes in v2011.05.12:
- Fixed not posting experience gained to stats.
- Added lag check. (new)
- Fixed running to bank when at range with raw food.
- Modified format of running time in declareplayers.
- Improved? random detection/handling. Still not 100%. (new)
- Changed way time to run is defined in constants and declareplayers.
- General rework of logic to make it more efficient.
- Removed reporting of random stats.