Page 79 of 79 FirstFirst ... 29 69 77 78 79
Results 781 to 783 of 783

Thread: Harvest A highly customisable farming script

  1. #781
    Developer fronobulax's Avatar
    Join Date
    Feb 2009
    Location
    Central Virginia, USA
    Posts
    3,944

    Default

    fronobulax- sorry did not mean to disparage eat drink. yours is another script that has been awesome over the years. I was poking around in the files trying to find where in the scripts where that file then tells eat drink to reach 15 spleen. if that can get turned off i suspect the spleen nerf will be a minor bump
    Originally Posted by Tom Sawyer View Post
    No apology needed. When the spleen nerf happened there were a whole lot of people who thought the problem was with eatDrink and not with the call to eatDrink. I thought the issue had been dealt with but maybe it wasn't Harvest.

    Lines 1095-1099 in Harvest

    Code:
    		if(my_fullness() < fullness_limit()-cookie_room || my_inebriety() < inebriety_limit() || my_spleen_use() < spleen_limit()) {
    			print(CONSUME_SCRIPT +" failed to fill your organs completely", "red");
    			print("Desired fullness: " + (fullness_limit()-cookie_room) + " food " + inebriety_limit() + " drunk " + spleen_limit() + " spleen", "red");
    			print("Attained fullness: " + my_fullness() + " food " + my_inebriety() + " drunk " + my_spleen_use() + " spleen", "red");
    		}
    If you delete the last clause "|| my_spleen_use() < spleen_limit()" that should stop Harvest from aborting because the spleen was not filled.

    Line 354 also uses spleen_limit() but I'm not sure the test has any practical effect.
    You just vehemently agreed with me
    Originally Posted by Veracity View Post
    I agree with frono.
    Originally Posted by Veracity View Post

  2. #782
    Senior Member Tom Sawyer's Avatar
    Join Date
    Jun 2007
    Posts
    120

    Default

    Fronbulax. That did not work but I believe the line 354 (not sure how to make word show line numbers) tinkering did. Took out the spleen use vs spleen limit - This section:

    Code:
    boolean finished_farming() {
    	/* Returns true if you have finished farming for the day, or false if you are still 
    	able to farm */
    	announce(2, "finished_farming");
    	
    	boolean result;
    	if(my_inebriety() > inebriety_limit())
    		result = true;
    	else if (my_fullness() < fullness_limit()-cookie_room || my_inebriety() < inebriety_limit() || my_spleen_use() < spleen_limit())
    			result = false;
    	else if (my_adventures() > 0)
    		result = false;
    	else
    		result = true;	
    	
    	announce(3, result);
    	
    	return result;
    	}
    When I run it tonight after rollover if it does a normal complete run without failing it will have passed the acid test. Thanks again!
    Last edited by lostcalpolydude; 04-17-2018 at 12:18 PM.

  3. #783
    Developer fronobulax's Avatar
    Join Date
    Feb 2009
    Location
    Central Virginia, USA
    Posts
    3,944

    Default

    Thanks. I only looked at the code, not tested it, so I am glad I pointed you in the right direction.

Similar Threads

  1. JTN's All-In-One Farming Script
    By jtn2002 in forum Scripting Discussion
    Replies: 16
    Last Post: 05-09-2012, 06:00 PM
  2. The Neo-Cow Farming Script
    By Banana Lord in forum Turn-Burning Scripts
    Replies: 191
    Last Post: 07-07-2011, 10:08 AM
  3. First try at a farming script
    By AgnesM in forum Turn-Burning Scripts
    Replies: 7
    Last Post: 07-14-2008, 04:54 AM
  4. Daily Farming Script (Formerly Known As "Script Noob")
    By T-Unit in forum Turn-Burning Scripts
    Replies: 14
    Last Post: 07-26-2007, 11:50 PM
  5. Farming Script
    By mmo.stuff in forum Scripting Discussion
    Replies: 1
    Last Post: 11-29-2006, 09:09 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •