Here is a MafiaWiki article on ASH data types:
Data Types
Basically, the buy( int, item ) function expects the second argument to be an item object. You were passing a string object. The to_item( string ) function returns the item object whose name matches your string.
Another way to make...