Autosell price

From Kolmafia
Revision as of 19:24, 6 March 2010 by imported>Heeheehee
Jump to navigation Jump to search



Function Syntax

int autosell_price(item it )

  • it is the item to check the price of

Returns the type of equipment that check_me is categorized as. Possible values are hat, (various weapon types), shield, offhand, pants, accessory, familiar equipment, shirt, container, hp restore, mp restore, hp+mp restore, food, booze, drink helper, food helper, and familiar larva.

Simple Example

Returns the autosell value if the mall price is at the minimum, else returns the mall price.

float v;
item i = $item[white chocolate chip brownies];
float minPrice = max(100, autosell_price(i) * 2);
if (!use_autosell && !is_tradeable(i)) return 0;
if (historical_age(i) > 3) v = mall_price(i);
else v = historical_price(i);
if (use_autosell && (v == minPrice)) v = autosell_price(i);
print("Value of " + i + ": " + v);


See Also

autosell()