auto buy from hobopolis marketplace

linguinelad

Member
Is it possible to add the ability for kolmafia to allow you to choose what you want to buy from hobopolis marketplace (like dinged up triangles) automatically?
 

slyz

Developer
From what I can gather from the KoL Wiki, each choice adventure in the Marketplace has two versions. For example, The Hobo Marketplace is choiceAdventure231 when you understand the glyphs, and choiceAdventure232 if not.

linguinelad: what you can do to automate getting a triangle is to set the right choice for each choice adventure. Mafia should abort if you can't read the signs, since it is a different choice adventure which doesn't have a default setting.

The preferences that control what choice Mafia chooses at a choice adventure is choiceAdventureXXX, where XXX is the number of the adventure.

To get a triangle, you need to navigate like this:
Code:
The Hobo Marketplace (231) -> choice 2
Math Is Hard (245) -> choice 2
Housewares (253) -> choice 3
Entertainment (256) -> choice 1
Triangle, Man (275) -> choice 1

To make sure you Mafia follows those choices, set Mafia to "enter marketplace", then type those one by one in the gCLI:
Code:
set choiceAdventure231 = 2
set choiceAdventure245 = 2
set choiceAdventure253 = 3
set choiceAdventure256 = 1
set choiceAdventure275 = 1

I'm out of turns for today, so this is all theory, someone should try it and report here =)
 
Last edited:

slyz

Developer
It seems to work:

with the hobo code binder equipped:
Code:
Request 1 of 10 (Hobopolis: Hobopolis Town Square) in progress...

[14560] Hobopolis Town Square
Encounter: Marketplace Entrance
Encounter: The Hobo Marketplace
Encounter: Math Is Hard
Encounter: Housewares
Encounter: Entertainment
Encounter: Triangle, Man
You acquire an item: dinged-up triangle

Without the code binder equipped:
Code:
Request 1 of 10 (Hobopolis: Hobopolis Town Square) in progress...

[14561] Hobopolis Town Square
Encounter: Marketplace Entrance
Encounter: The Hobo Marketplace
[COLOR="#ff0000"]Unsupported choice adventure #232
[U]Click here to continue in the relay browser.[/U][/COLOR]
 

jwylot

Member
Spot on Slyz. I actually use this in an .ash script for one of mine - he has a full binder and after setting mafia to enter the hobo market, I can leave him to collect triangles.

PHP:
//sets choice adventures for triangles
set_property("choiceAdventure231", 2);//Shopping
set_property("choiceAdventure245", 2);//Housewares
set_property("choiceAdventure253", 3);//Entertainment
set_property("choiceAdventure256", 1);//Music
set_property("choiceAdventure275", 1);//buy triangle
 
Top