I've never personally tried it, but is it possible to start a trade with them while they're in combat? From all the bots I've seen, their scripting short-circuits til the trade is ended by a real player. If they can get forced into a trade while something attacks them, you'd just need to wait there til they died. Again though, never personally tried to trade in-combat, so if this won't work, ignore all this.