The Neo-Cow Farming Script

Banana Lord

Member
This script was originally created by flypapermonk and posted here. I have taken over development of this script in the absence of its original writer.

[SIZE=+1]The Neo-Cow Farming Script 2.0[/SIZE]
This is an extremely flexible and easily customizable script that will farm anywhere, for anything, however you want it to. It can be configured to use advanced techniques for improved optimality.


Development of this script has moved. If you would like to use the latest version of the script please look here.


Features
  • Highly customizable: Can be configured to farm in any location, for meat or items.
  • Will bounty hunt for you, using items such as spooky putty to speed up the process.
  • Will eat fortune cookies and get semi-rares for you.
  • Gets buffs and uses skills for you.
  • Uses dj_d's eatdrink script to ensure that your diet is always optimal.
  • Uses any excess mana generated while farming to summon libram items

Requirements
* Not necessary, but highly recommended

A short installation guide is included with the script package (NCF Documentation).


Acknowledgements
Both the_great_cow_guru and flypapermonk are almost entirely responsible for the production and development of this script. As they have ceased to develop it, I have taken over ownership of the script in order to update it for new items, patch the few holes that remain, and keep the script up-to-date with fixes and improvements (if you have such an update feel free to save me some work and post it in this thread :)). Mad props to Slyz for spending so much time helping me add new features and fix bugs.

IMPORTANT: The files attached below are outdated. Version '2.0' can be found here under the name "Harvest.ash".
 

Attachments

  • NeoCowFarm.zip
    35.4 KB · Views: 228
Last edited:

flypapermonk

New member
The Neo-Cow Farming Script 1.3.4

This is the farming script you have been waiting for! Based on the_great_cow_guru's work (so it is extremely flexible and easily customizable) this thing will farm anywhere, for anything, however you want it to. And on top of that, it is able to use some of the more advanced tricks around to speed things up and make things as optimal as possible.

Quick rundown of features:
  • Can be fully customized to farm anywhere, meat or items, wearing anything you want, with whatever familiar you want
  • Uses dj_d's eatdrink script so you always have the most optimal diet, customized just for you
  • If you want, it will also do your daily bounty, and attempt to get it done in as few turns as possible
  • Takes advantage of spooky putty to either speed up bounty hunting, or if you have a valuable monster, will farm that
  • If you have a tome of sugar shummoning and you want it to, it will use sugar shields (this requires, for the moment, a daily mafia build)
  • Will eat fortune cookies to keep track of semirares for you
  • Will summon the Hoom Hah demon if you know its name
  • Will farm semirares if you want it to
  • Will summon whichever libram items you want it to as mp allows
  • Completely and easily customizable

This script requires that you also have dj_d's eatdrink script as well as Zarqon's zlib scripts.

If you wish to see the original script, go here: script of eXtreme farming

As both the_great_cow_guru and I have put a lot of time and work into this, the script will ask you at the end of you farming if you would like to donate a small percentage of your daily profit. This is not required in any way, shape, or form, but is greatly appreciated.

Updates:
1.2.0:
-Fixed some bugs in the eating/drinking/spleening code
-Will now attempt to get ode from a buffbot if you don't have the skill
-Will now make sure to get the most profitable semirares if your counters are set (if they aren't, just allow the script to eat cookies)
1.2.1:
-Fixed a small bug with version tracking
1.3.0:
- includes fixed semirare farming script
- includes libram summon script
- updates puttyfarm to zlib
1.3.1:
- fixed some minor consumption logic problems
1.3.2
- sorry, got cocky and released an untested version, fixed a typo
- minor fix to the logic for puttying monsters
1.3.3
- added a workaround for a bug in mafia related to puttying bounty monsters
- changed how meat gains from farming was tracked to be more accurate
- stopped the script from removing ode at the beginning of the day
- made support scripts able to be chosen in the settings
1.3.4
- will now keep track of which buffs we got from which buffbots (saves time waiting for it to timeout when asking for a buff you can't get)
- fixed a bug with one of the bounties (replace puttybountyhunting.ccs and bountyhunting.ccs)
- updated the buff_prices.txt file
 

Attachments

  • NeoCowFarm.zip
    47.4 KB · Views: 94
Last edited by a moderator:

Banana Lord

Member
Changelog

2.0
- Script completely rewritten
- Script name changed to Harvest.ash

1.5.4

- NCF Bountyhunting.ash now properly loops putty monsters.

1.5.3
- Updated the way NeoCowFarm and NCF Bountyhunting import scripts.
- NCF Combat - Bountyhunt will no longer use putty if you have opted not to in the script settings.
- It will also not use putty in a combat if you only have one bounty item remaining to find.
- NCF Combat - Meatfarm now pickpockets while you're using familiars other than the hobo monkey.
- Solved NCF Combat - Meatfarm.ash issue as per Icon's post.
- Bug fixes.


1.5.2
- Corrected spelling mistake in NCF Bountyhunting.txt, sorry about that.

1.5.1
- Corrected spelling mistake in neobountyhunt_monsterlist.txt (everyone knows there's no such thing as a MegiMechTech MechaMech!)
- Fixed installation instructions
- Added check make sure that bounty.txt is in the right place

1.5.0
- Stable release
- Tidied neobountyhunting.ash coding style, and in the process removed several hundred empty lines. There's more to do, but I can't be bothered messing with that many nested if/else statements.
- Implemented Bale's improvement to puttybountyhunting.ash to make sure that the monster you're fighting drops your bounty item before using putty (JustAttack.ccs has been removed).
- Updated MeatFarmCCS.ash to actually work
- Fixed minor error in meatfarm.ccs.
- Updated puttybountyfarm.ash to handle all combats, beginning to end, while bountyhunting. bountyhunting.ccs has been appropriately changed. puttybountyhunting.ccs is no longer necessary and has been removed.
- Script names updated to be more user (and editor) friendly. We now have:
  • NeoCowFarm.ash
  • NCF Bountyhunting.ash
  • NCF Puttyfarm.ash
  • NCF Initialize.ash
  • NCF Libram.ash
  • NCF Utilities.ash
  • NCF Combat - Bountyhunt.ash
  • NCF Combat - Meatfarm.ash
  • ncfmeatfarm.ccs
  • ncfbountyhunt.ccs
  • nfcputtyfarm.ccs
- Updated NCF Initialize.ash for name changes.
- Shifted libram settings from NCF Librarm.ash to NCF Initialize.ash

1.4.1
- PuttyBountyFarm.ash should now only stasis if you have a hobo monkey, and only try to summon a hobo underling if you have Hodgman's outfit on.
- NeoBountyHunt.ash will set your CCS to JustAttack (now included in script package) while clearing your spooky putty (if necessary) before bounty hunting.

1.4.0
- Changed ownership of the script
- Updated neolibram.ash for BRICKOs
- Fixed issue which caused puttybountyhunt.ccs to abort once all putties are used up for a day
- All selling of items and post-farming cleanup is done with Bale's excellent OCD Inventory Control
- Replaced the old counter checker script with support for Bale's CounterChecker.ash
- The script will now acquire a rock and roll legend and/or a mace of the tortoise to make self-buffing more optimal if you have any of the relevant skills
- Added ability to closet most of your meat as a safety precaution before running the script. Controlled with "neocowfarm_doclosetmeat"
- Added ability to use rollover.ash to optimally prepare for rollover (controlled via "neocowfarm_autorollover")
- Updated documentation
- Updated neocow_initialize.ash for additions to script

1.3.4
- will now keep track of which buffs we got from which buffbots (saves time waiting for it to timeout when asking for a buff you can't get)
- fixed a bug with one of the bounties (replace puttybountyhunting.ccs and bountyhunting.ccs)
- updated the buff_prices.txt file
1.3.3
- added a workaround for a bug in mafia related to puttying bounty monsters
- changed how meat gains from farming was tracked to be more accurate
- stopped the script from removing ode at the beginning of the day
- made support scripts able to be chosen in the settings
1.3.2
- sorry, got cocky and released an untested version, fixed a typo
- minor fix to the logic for puttying monsters
1.3.1
- fixed some minor consumption logic problems
1.3.0
- includes fixed semirare farming script
- includes libram summon script
- updates puttyfarm to zlib
1.2.1
-Fixed a small bug with version tracking
1.2.0
-Fixed some bugs in the eating/drinking/spleening code
-Will now attempt to get ode from a buffbot if you don't have the skill
-Will now make sure to get the most profitable semirares if your counters are set (if they aren't, just allow the script to eat cookies)
 
Last edited:
I ran it today and it worked without too much tweaking, couple things I found though:

I noticed that you converted farming script and the bountyhunting script to use zlib, is there a reason you didn't convert the puttyfarming one as well?

I also saw that you hardcoded the value of adventure being sent to eatdrink as 750, this will cause it to ignore whatever the user put in their vars file.

And did you remove the part where it gets ode to booze from the buffbots? eatdrink.ash only gets it if you have the skill, so i would leave that part in.

Wasn't able to get an accurate number for comparison to my original version today. it crashed the first time i ran it after drinking, so the profits were a bit skewed. i'll try it again tomorrow
 

flypapermonk

New member
Glad it worked out well for you cow_guru! Thanks a lot for pointing out those bugs to me, I did not realize that eatdrink didn't use buffbots for ode (I have the skill so it worked fine for me). Poking through the code for eating and drinking also made me realize what a quick hack it was and I fixed it up a bit and caught a problem before it happened. As for the new ode from buffbot code... I haven't had a chance to test it but it should work. Let me know if it doesn't and I'll fix it asap.

Oh, and as for the puttyfarming script, well... I haven't really used it myself yet so I haven't felt a need to revamp it. Next version I put out I will at least put zlib support into it. Yeah, I can be lazy...
 
Last edited:

flypapermonk

New member
Updated to 1.3.3!

Changes:
- added a workaround for a bug in mafia related to puttying bounty monsters
- changed how meat gains from farming was tracked to be more accurate
- stopped the script from removing ode at the beginning of the day
- made support scripts able to be chosen in the settings
 

jwylot

Member
Hmm.......I get this when it gets to the stage of disposing of stuff at the end....

CCS set to castlefarming
Array index out of bounds (utils.ash, line 361)

Ah it was my mistake when adding something to the cleanup file.
 
Last edited:

Banana Lord

Member
I use a combat macro while farming, what is the best way for me to get the script to use it?

Code:
scrollwhendone
icon hobomonkey

if !match giant
    abort "Not fighting a meaty beast!"
    repeat
endif

pickpocket

while !match "climbs up and sits" && !pastround 24
   use spectre scepter
endwhile

if hasskill summon hobo underling
   skill summon hobo underling
endif

if hasskill ask the hobo for a drink
   skill ask the hobo for a drink
endif

if hasskill ask the hobo to tell you a joke
   skill ask the hobo to tell you a joke
endif

while !pastround 26
    attack
endwhile
skill stuffed mortar shell
repeat
 

Winterbay

Active member
Set that script as your autoattack and it should be used I think, but that would be KoL/Mafia an dnot the script :)
 

Banana Lord

Member
Yes but unfortunately then it interferes with my bounty hunting xD I can't save it as a CCS either, Mafia doesn't seem to like "repeat" (swaps it for attack with weapon). There's no way of calling a macro from within a CCS is there?

One other thing, the script seems a bit over-zealous about getting buffs, especially considering I have cantata permed.
Code:
2 of 3 AT buffs active.
Got Milk (7)
Winklered (20)
Brother Corsican's Blessing (20)
Billiards Belligerence (30)
Stenchtastic (44)
Heavy Petting (80)
Spooky Demeanor (150)
Leash of Linguini (1,091)
Empathy (1,681)
♫ Fat Leon's Phat Loot Lyric (1,725)
♫ Polka of Plenty (15,361)
Countdown: 30 seconds...
Countdown: 15 seconds...
Countdown: 10 seconds...
Countdown: 5 seconds...
Countdown: 4 seconds...
Countdown: 3 seconds...
Countdown: 2 seconds...
Countdown: 1 second...
Waiting completed.

2 of 3 AT buffs active.
Got Milk (7)
Winklered (20)
Brother Corsican's Blessing (20)
Billiards Belligerence (30)
Stenchtastic (44)
Heavy Petting (80)
Spooky Demeanor (150)
Leash of Linguini (1,091)
Empathy (1,681)
♫ Fat Leon's Phat Loot Lyric (1,725)
♫ Polka of Plenty (15,361)
Countdown: 30 seconds...
Countdown: 15 seconds...
Countdown: 10 seconds...
Countdown: 5 seconds...
Countdown: 4 seconds...
Countdown: 3 seconds...
Countdown: 2 seconds...
Countdown: 1 second...
Waiting completed.

2 of 3 AT buffs active.
Got Milk (7)
Winklered (20)
Brother Corsican's Blessing (20)
Billiards Belligerence (30)
Stenchtastic (44)
Heavy Petting (80)
Spooky Demeanor (150)
Leash of Linguini (1,091)
Empathy (1,681)
♫ Fat Leon's Phat Loot Lyric (1,725)
♫ Polka of Plenty (15,361)
Countdown: 30 seconds...
Countdown: 15 seconds...
Countdown: 10 seconds...
Countdown: 5 seconds...
Countdown: 4 seconds...
Countdown: 3 seconds...
Countdown: 2 seconds...
Countdown: 1 second...
Waiting completed.

2 of 3 AT buffs active.
Got Milk (7)
Winklered (20)
Brother Corsican's Blessing (20)
Billiards Belligerence (30)
Stenchtastic (44)
Heavy Petting (80)
Spooky Demeanor (150)
Leash of Linguini (1,091)
Empathy (1,681)
♫ Fat Leon's Phat Loot Lyric (1,725)
♫ Polka of Plenty (15,361)
Failed to get Carlweather's Cantata of Confrontation from 322696.
Converted to non-philanthropic request: 1500 turns of Carlweather's Cantata of Confrontation for 1004 Meat.
Sending kmail to Noblesse Oblige...
Message sent to 594822
Countdown: 30 seconds...
Countdown: 15 seconds...
Countdown: 10 seconds...
Countdown: 5 seconds...
Countdown: 4 seconds...
Countdown: 3 seconds...
Countdown: 2 seconds...
Countdown: 1 second...
Waiting completed.

2 of 3 AT buffs active.
Got Milk (7)
Winklered (20)
Brother Corsican's Blessing (20)
Billiards Belligerence (30)
Stenchtastic (44)
Heavy Petting (80)
Spooky Demeanor (150)
Leash of Linguini (1,091)
Empathy (1,681)
♫ Fat Leon's Phat Loot Lyric (1,725)
♫ Polka of Plenty (15,361)
Countdown: 30 seconds...
Countdown: 15 seconds...
Noblesse Oblige has played a song (Carlweather's Cantata of Confrontation) for you.
Countdown: 10 seconds...
Countdown: 5 seconds...
Countdown: 4 seconds...
Countdown: 3 seconds...
Countdown: 2 seconds...
Countdown: 1 second...
Waiting completed.

3 of 3 AT buffs active.
Got Milk (7)
Winklered (20)
Brother Corsican's Blessing (20)
Billiards Belligerence (30)
Stenchtastic (44)
Heavy Petting (80)
Spooky Demeanor (150)
Leash of Linguini (1,091)
♫ Carlweather's Cantata of Confrontation (1,500)
Empathy (1,681)
♫ Fat Leon's Phat Loot Lyric (1,725)
♫ Polka of Plenty (15,361)

EDIT: For now I'm using an old hobo monkey consult script called from farm.ccs. It's less than ideal because it can't be submitted as a macro, but it'll do the trick for now.
 
Last edited:

Banana Lord

Member
Hmm, the script ran into difficulty after using up all my putties for the day (macro/ccs aborted).

I'm also getting an error from the included between battle script:
Code:
You called this script but there are no librams to use. Either you misconfigured me or you don't have any.
Libram summon #24 will cost 277 MP. Will summon when MP > 572.
That's while my MP>2600 (and I have a libram).
 
Last edited:

jwylot

Member
There's no way of calling a macro from within a CCS is there?
No but you can use macro commands in a CCS - see the wiki for examples.
One other thing, the script seems a bit over-zealous about getting buffs, especially considering I have cantata permed
The rather scary "documentation" which comes with the script explains about how to list buffs you want to cast yourself in farm_buffs.txt.
I'm also getting an error from the included between battle script:
I've seen this occasionally but it seemed to go away of it's own accord.
 

Banana Lord

Member
Just one thing about the way the script handles buffing... If I have 15 000 turns of polka do I really need to bother a buffbot for more? :D

Also, how do I stop the script from auto-selling and sending wads to wadbot? I handle all that sort of stuff with Bale's fantastic OCD Inventory Control script.

And finally, the script failed to report my earnings for today, even though I have that setting enabled in my vars file.
Code:
[16905] Giant's Castle
Encounter: Procrastination Giant
Strategy: /Users/andrewcurtisblack/Library/Application Support/KoLmafia/ccs/farm.ccs [default]
Round 0: banana lord wins initiative!
Round 1: banana lord executes a macro!
Round 1: banana lord uses the spectre scepter!
You gain 5 hit points
Round 2: Mr. Joe climbs up and sits on your shoulder, and hands you some Meat. Huh, where did he find that?
You gain 61 Meat.
Round 2: banana lord attacks!
Round 3: procrastination giant takes 621 damage.
You acquire an effect: Cunctatitis (duration: 5 Adventures)
Round 3: banana lord wins the fight!
After Battle: Mr. Joe sits on your fallen opponent's body, blows a smoke ring, and winks at you.
You gain 884 Meat
You gain 10 Strengthliness
You gain 16 Mysteriousness
You gain 7 Sarcasm

Visiting Relaxing Hot Tub in clan VIP lounge
You lose an effect: Cunctatitis
You gain 1 hit point
CCS set to puttyfarm
Using 31 Warm Subject gift certificate...
You gain 14,134 Meat
Finished using 31 Warm Subject gift certificate.
Autoselling items to NPCs...
You gain 40,548 Meat
Items sold.
Sending kmail to 1666580...
Message sent to 1666580
Unrecognized wadbot command: wads
CCS set to puttyfarm
Refreshing stash contents...
Stash list retrieved.
Internal checkpoint created.
Skipping favorites.
Starting EatDrink.ash (version 3.0).
EatDrink runs...
Code:
Eating, drinking, and spleening complete. Commence merrymaking (at your own discretion).

Now restoring previous mood ...
Shrugging off your buff...
Ode to Booze removed.
Mood swing complete.
Putting on outfit: Rollover
You only put on part of that outfit.
... and we're back to where my script takes over again.
 

Winterbay

Active member
After a very quick look at teh script code I guess emptying out "farm_cleanup.txt" would be the way to go to stop it from doing anything with the items found.
 
Top