I've also been looking into writing a script like this. I hadn't seen this thread til now. If I come up with anything, I'll be sure to post it here.Ok, I need help from somebody. I am going to be constantly buying certain items, and I need this script tweaked so that if somebody proposes a trade with X amount of an item, I will respond to the trade with N meat * X. Basically the script needs to be flipped around so I can make this work. I can give whoever helps out a chunk of DG for there troubles, although I imagine this won't be much work to do.
first of all you guys will need to modify the record and the parser to be able to recognize items in a proposed trade. This probably won't be an easy task.
I would try to use the extract_items(url) command on the trade to see if that works, it is designed for use in kmails but may work for purposed trades. If this doesn't work you guys will need to build a matcher or use zlib's excise() command. I can help you guys but I am not going to do the leg work. All X and N varabiles need to be clearly defined as well.
post what you have done so far as well as the html source code of a trade if you havn't parced it correctly yet.