Code:
How many do you want to drop (ENTER = 15)? 1
Waldenbrook, the dwarven shopkeeper, mumbles: "I'd offer 176 gold pieces for yer uncursed aquamarine."
Do you want to accept the offer? [Y/n]
"Then take yer stuff with ye!"
How many do you want to drop (ENTER = 15)? 2
Waldenbrook, the dwarven shopkeeper, mumbles: "I'd offer 704 gold pieces for yer heap of 2 uncursed aquamarines."
Do you want to accept the offer? [Y/n]
"Then take yer stuff with ye!"
How many do you want to drop (ENTER = 15)? 5
Waldenbrook, the dwarven shopkeeper, mumbles: "I'd offer 4410 gold pieces for yer heap of 5 uncursed aquamarines."
Do you want to accept the offer? [Y/n]
"Then take yer stuff with ye!"
How many do you want to drop (ENTER = 15)? 15
Waldenbrook, the dwarven shopkeeper, mumbles: "I'd offer 17505 gold pieces for yer heap of 15 uncursed aquamarines."
Do you want to accept the offer? [Y/n]
You drop the heap of 15 uncursed aquamarines.
You pick up the heap of 15 uncursed aquamarines (unpaid, 3780gp). Waldenbrook,
the dwarven shopkeeper, mumbles: "Nice, eh?"
Indeed, very nice! Sell for 17505, buyback for 3780, repeat until shopkeeper runs out of money, wait and do it again.
Also, price per gem is 176gp when selling one, 352 when selling two, 882 when three, and 1167 when selling fifteen of them.
Bug does not appears when selling singular items:
Code:
Waldenbrook, the dwarven shopkeeper, mumbles: "I'd offer 353 gold pieces for
yer blessed emerald." Do you want to accept the offer? [Y/n]
You drop the blessed emerald. Waldenbrook, the dwarven shopkeeper, stares at
your position with great intensity.
You pick up the blessed emerald (unpaid, 505gp). Waldenbrook, the dwarven
shopkeeper, mumbles: "Take time to examine that."
Character is lvl 24 female dwarven merchant. She have Ap:22, Haggling at 100.
VLG:
http://pastebin.com/Pu5FhsAy
Save file:
https://yadi.sk/d/qHSUe9ZzcMReF