Add sell amount as parameter to oldtrade,sell

Hi
I noticed that my trade pet sometimes dies, if I get a thief spawn while selling my trade goods at a specialty trader shop.
It would be awesome if you could add a parameter to the oldtrade,sell, so I could define what and how much of it to sell, similar to parameter in the oldtrade,buy option.
This way I could interrupt the selling process to attack the thiefs before I continue selling my goods.

Example:
oldtrade,sell,522
AttackArea (xAutoDungeon plugin)
oldtrade,sell,521

Cheers