How is the merchant spending cap determined

the-elder-scrolls-v-skyrim

Man, it sucks that Tonilia (the Fence) only has 1000 gold at a time. It's very tedious to only sell 1000 septims worth of stuff at a time. I don't want to put perks in Speech just to sell stuff faster. Can't I just cheat to give her more septims with which to buy my <1000-value crap and just pretend that I had grinded?
(prid 000b882a (Tonilia)) "additem 000000f [gold amount]". Hey, she only gives up to 19454 septims. Beyond that, I can sell my stuff, but we don't trade gold for it despite the counter showing that she still has gold left. Hey, this time she only gave 16960. When I give her 99999 gold, she doesn't even give anything. What's the deal? What determines how much a merchant will spend? Why does it seem random?

Best Answer

Merchants will become buggy if they have over 30000 gold. Make sure not to give her so much gold that the total amount exceeds 30k.