Page 1 of 1

Twitch Bohemian Party Massacre Chroner Farming Strategy

Posted: Sun Jul 27, 2014 5:03 am
by wyli romesco
Here's a barebones script that automates chroner farming using the tommy gun in the The Bohemian Party zone.

You need to have the gun equipped, ammo in your inventory and plenty of spare turns (well, twice as many as you have loads of ammo). Once you start the script it will adventure in the party zone, collecting chroners automatically from the shoe repair shop, until you are out of ammo. It skips the choice adventure.

There are no bells and whistles. One possible issue I can imagine is if you have never adventured at the party before - there is an initial introductory adventure that is not made allowance for here. You'll have to play that turn manually, sorry. Apart from that, well... I've farmed the best part of a thousand chroners with this script, without any problems.

Code: Select all

string letemhaveit(int round,string opp,string text)
{
return "skill unload tommy gun";
}


void ratatatat()
{
	cli_execute("inv refresh"); 
	cli_execute("set choiceAdventure974=2");
	while(item_amount($item[drum of tommy ammo])>0)
	{
		adventure(1,$location[The Bohemian Party],"letemhaveit");
		visit_url("place.php?whichplace=twitch&action=twitch_shoerepair");
		visit_url("choice.php?pwd&whichchoice=973&option=2");               
	}
}

void main()
{
	ratatatat();
}

Re: Twitch Bohemian Party Massacre Chroner Farming Strategy

Posted: Sun Jul 27, 2014 12:41 pm
by lostcalpolydude
You can drop

Code: Select all

      if (page_text.contains_text("choice.php"))
      {
         visit_url("choice.php?pwd&whichchoice=974&option=2");   
      } 
by entering "set choiceAdventure974 = 2" in the CLI. You don't need to wait for mafia to support a choice adventure. That also means you don't need to store the adventure result in a string.

You can also drop

Code: Select all

cli_execute("inv refresh");
since mafia updates the count for combat items every fight, so it doesn't even have to know that the item is consumed (I don't know if that's properly supported for this item and skill, but it doesn't matter).

Re: Twitch Bohemian Party Massacre Chroner Farming Strategy

Posted: Mon Jul 28, 2014 6:30 am
by wyli romesco
Thanks for the feedback :) Code updated.