Any script requests?

weatherwarrior

New member
I was wondering, ifit was simple enough, to get a quick link on the BHH page that will send you directly to the zone of the selected bounty. Should be easy right?
 

Heffed

Member
I was wondering, ifit was simple enough, to get a quick link on the BHH page that will send you directly to the zone of the selected bounty. Should be easy right?

You do your bounties manually? Isn't it easier to use the method that already exists? You select the bounty, KoLmafia automatically selects the area for automated adventuring. Click the checkbox that you want adventuring to stop after your bounty goal is reached, click Go. Wait until the goal is reached and KoLmafia turns your bounty in for you. :)
 

weatherwarrior

New member
You do your bounties manually? Isn't it easier to use the method that already exists? You select the bounty, KoLmafia automatically selects the area for automated adventuring. Click the checkbox that you want adventuring to stop after your bounty goal is reached, click Go. Wait until the goal is reached and KoLmafia turns your bounty in for you. :)

Yes I still get my bounties manually, when in my main run. If I am in aftercore I use that method, but if I am running my pre-king turns I always use the relay browser. Maybe this isn't a script question but an adding request?
 

zarqon

Well-known member
It's a feature request, but it's also something that could be done with a relay override script. It would even be pretty easy to write given that many have the bounty.txt data file available.
 

giraffe man

New member
I've just realised how to do the script I asked for. Have you done any work on it yet the_great_cow_guru? If you haven't done anything yet don't bother starting.
 

mottsy

Member
how about a script that camps hodgeman (our clan has free for all fridays)

sends a request every second to fight hodge
 

lostcalpolydude

Developer
Staff member
how about a script that camps hodgeman (our clan has free for all fridays)

sends a request every second to fight hodge

If a script could be created to do this, I would ask that mafia be made to block the technique that allows it. What a waste of server loads.
 

Grotfang

Developer
Why not set your CCS for fighting hodg, set the relevant choice adventure, then simply set a chatbot script. When someone sends a command (eg. kill him!) then your character will take the big man down. Reduces server hits and is generally a more refined technique.
 

mottsy

Member
Why not set your CCS for fighting hodg, set the relevant choice adventure, then simply set a chatbot script. When someone sends a command (eg. kill him!) then your character will take the big man down. Reduces server hits and is generally a more refined technique.

how would i do this chatbot script, and would it work with the announcements

also:

what announcements if any are made so i can trigger them
 

Grotfang

Developer
Save this as hodgman.ash:

Code:
string run_choice( string page_text )
{
	matcher m_choice = create_matcher( "whichchoice value=(\\d+)" , page_text );

	while( contains_text( page_text , "choice.php" ) )
	{
		m_choice.reset( page_text );
		m_choice.find();
		string choice_adv_num = m_choice.group( 1 );
		
		string choice_adv_prop = "choiceAdventure" + choice_adv_num;
		string choice_num = get_property( choice_adv_prop );
		
		if( choice_num == "" ) abort( "Unsupported Choice Adventure!" );
		if( choice_num == "0" ) abort ( "Manual Control Required, or future command..." );
		
		string url = "choice.php?pwd&whichchoice=" + choice_adv_num + "&option=" + choice_num;

		page_text = visit_url( url );
	}
	
	if( contains_text( page_text , "Combat" )) run_combat();
	return page_text;
}
void main( string sender , string message )
{
if( contains_text( message.to_lower_case() , "kill" ) )
{
       set_property( "choiceAdventure200" , "1" );
       string page_text = visit_url( "adventure.php?snarfblat=167" );
       if( contains_text( page_text , "Combat" ) )
				{
					run_combat();
				}
				else if( contains_text( page_text , "choice.php" )  )
				{
					page_text = run_choice( page_text );
					if( contains_text( page_text , "Combat" ) )
					{
						run_combat();
					}
				}
}
}

Then type into the CLI:

Code:
set chatbotScript = hodgman.ash

This code is entirely untested. Make sure you have set your Battle Action to custom combat script and have a script to kill hodg set. You use it at your own risk. If a PM is sent with the word kill in it, this will act. Set the word to something more secure (and less likely to feature in a day to day conversation). Remember to type:

Code:
set chatbotScript =

When you are done so that your chatbotScript is reset to 0.

Enjoy...
 

Grotfang

Developer
I think the chatbot idea is reasonable. If there is someone willing to PM him when Hodg comes up, at least it gives him a fair shot. Checking every second goes against the spirit of the event, though, in my opinion.
 

dj_d

Member
Sure looks like what he wants to do is "camp" and get the drop as soon as it comes up, so he can take it from his clanmates. Lucky clanmates.
 
Top