I am not able to figure out how to get a script to trade in cashews from the traveling Thanksgiving salesman. Anyone got a code snippet that does this?
I am not able to figure out how to get a script to trade in cashews from the traveling Thanksgiving salesman. Anyone got a code snippet that does this?
https://wiki.kolmafia.us/index.php?title=Buy
If you have the preference autoSatisfyWithCoinmasters set to true, you can also just use retrieve_item (or, in a CLI script, "acquire 1 can opener").Code:buy($coinmaster[A traveling Thanksgiving salesman], 1, $item[can opener]);
Thanks, that works, For some reason it didn't when I first tryed it. thought it was because the salesman isn't in the list of coinmasters (https://wiki.kolmafia.us/index.php?t...pes#coinmaster).
If you type (note the 's' at the end):
ash $coinmasters[]
in the cli, it should give you an up-to-date list.
and (no 's')
ash $coinmaster[ANY_NAME_FROM_THAT_LIST]
will give more relevant information for that particular coinmaster. (The 'nickname' field is what you use for the "coinmaster" CLI command.)