Item Management

From Kolmafia
Revision as of 20:59, 8 May 2007 by 209.66.200.45 (talk)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Part 2 - Item management

Now we’ll expand our focus to include some of your special “me-places” in the Kingdom and how to play with them.

int my_meat()
int my_closetmeat()

Returns your current meat in your inventory and Colossal Closet

int pulls_remaining()
If you are in ronin, the number of additional items that you can remove from Ancestral Storage today

boolean have_chef()
boolean have_bartender()

Tells you if you have a robotic servant installed in your campground

boolean have_mushroom_plot()
Tells you if you bought the mushroom plot in Degrassi Knoll.

int stills_available()
Returns the number of transformations you can make at Nash Crosby’s Still today (or 0 if you have no access).

int item_amount( item it )
int closet_amount( item it )
int museum_amount( item it )
int shop_amount( item it )
int storage_amount( item it )
int stash_amount( item it )

Returns the amount of the given item in (respectively) your main inventory, your Colossal Closet, your Display Case, your Mall store, Hagnk’s Ancestral Storage, and your clan’s stash (to the degree that you have access to these locations).
Sample:Collect_bounty

boolean take_closet( int quantity, item it )
boolean take_storage( int quantity, item it )
boolean take_stash( int quantity, item it )
boolean put_closet( int quantity, item it )
boolean put_stash( int quantity, item it )

Attempts to move the desired number of the desired item into or out of the Colossal Closet, Ancestral Storage, or your clan’s stash. The return value indicates the success of your endeavor. If you have fewer than the desired number of the item, then the function will not place any.
Sample:Collect_bounty

boolean take_closet( int amount )
boolean put_closet( int amount )

Transfers meat in or out of your Colossal Closet.

boolean put_shop( int price, int limit, item it )
Places all of the associated item into your mall store at the desired price and with the associated limit on purchases per day, if possible. If the price is set to 0, then the current price will remain unchanged if you already have that item in your store. If you do not already have that item in your store and If the price is set to 0, then the price set will be 999,999,999 meat.

boolean buy( int quantity, item it )
Tries to buy items. First preference is given to NPC stores that you have access to and then, if possible, will buy the cheapest available items from the mall. When passing 0 or a negative number to the buy function, KoLmafia does nothing and automatically returns true.

boolean sell_item( int quantity, item it )
Autosells the given items.

boolean retrieve_item( int quantity, item it )
Uses KoLmafia internal logic to gather the items in the least destructive manner. See the “acquire” documentation in the CLI manual for more details.

boolean bounty_hunter_wants( item it )
Tells you if the bounty hunter is accepting the specified item today
Sample:Collect_bounty

boolean trade_bounty_hunter( item it )
Trades all of the specified item with the bounty hunter if he is accepting them today.
Sample:Collect_bounty

boolean trade_trapper( item it )
boolean trade_trapper( int quantity, item it )

Trades yeti furs to the L33t Tr4pz0r’s in exchange for the indicated fur. If you pass an integer then it will exchange that number, otherwise it exchanges your entire inventory.
Sample:Collect_bounty

boolean trade_hermit( int quantity, item it )
Buys the appropriate number of the given item from the Hermit. It assumes that you have enough worthless items but will manage buying the Hermit Permits if needed.

boolean use( int quantity, item it )
boolean eat( int quantity, item it )
boolean drink( int quantity, item it )

Consumes the given items. These commands are synonymous, you can “use” food or “eat” booze if you wish.
This will not be true depending on your preferences — food must be consumed with eat(), booze with drink(), and non-foods with use() if not set to allow global use.

boolean create( int quantity, item it )
Attempts to create the desired items. Depending on your in-game settings and conditions, this may involve buying ingredients for the items or servants to create the items for you.

int creatable_amount( item it )
Returns the number of copies of the item that you are capable of creating with your current inventory. Servant availability and remaining adventures are not factored into this calculation.

void refresh_stash()
Takes a new look at the contents of your clan stash. Crucial if your clanmates have been manipulating the contents during your session.

131168436504470188501416