It doesn't stash rares (will SELL it instead), and it still doesn't solve vendor problem, at least for me.
I modified an original OP's script a bit. Maybe someone could find it useful until proper vendor script appear.
I've just cut out vendor and idenifying functions: vendor doesn't work anyway and also breaks script's work for me; identifying sometimes tries to identify some wrong (not rare) items (shields, wrists). With item of the same picture equpped before it makes script wear on and off this loot for eternity -_-" And it isn't really hard to identify items on my own.
I dropped looting blue items function too to not stack whole inventory with blues (which happens quite fast without vendoring) so bot will have space for rares. It still collects stones, rares, legendaries etc. You can add looting books through "custom" items.
I also added using the mystic ally skill before calling town portal. It helps great to survive when Sarkoth runs out of reach, outlives attack and kills "first" mystic ally; otherwise he just can break your town portal calling and kill defenseless bot; it is also good at distracting these shooting spikes creatures which spawning sometimes near closed cellar.
There's a relatively infrequent looting problem with monks when some stone or item drops behind the table and character can't reach it. It makes script enter into an infinite cycle of trying to pick up this item. I've tried to solve it by switching off "always showing" item names and making script to press ALT before looting (I hoped it makes bot ignoring this items after some time; not found out if it helps at real). Still, it is not a good solution, it isn't included into my script.
Like this, bot makes runs all night or workday and collects rares. Without vendoring there's less benefit of course, but with chance of gaining some good rares and selling it on auction with much more profit then from stacked with blues inventory at morning
[AutoIt] Autoit - Monk - Sarkoth - off vendoring and identifying, mystic ally on town portal call - Pastebin.com
PS: people there asked how much DPS needed for farming inferno. I think 15k will do good. It worth to spend some money on blue weapons with high dps and some gear with high dex (vitality and resists are not highly required to farm this cellar). I'm running ok with 17k now.