[FIXED] Vendors not restocking

Here we stuff all the bugs we've managed to squash/squish/squelch.
Post Reply
Rotto
UOX3 Newbie
Posts: 8
Joined: Sat Feb 25, 2006 6:42 pm
Has thanked: 0
Been thanked: 0

Vendors not restocking

Post by Rotto »

If a character buys all of a particular item, then the vendor will not restock it.

I logged in with the admin account, bought all except one of a particular item, then used the 'restock command to force a restock. The vendor restocked as they should.

I then bought all of the items so they had 0 left and used the 'restock command and they do not restock the item any more.

I am using the Default UOX3 Worldfiles 0.10 and community made spawn files. I have not modified any of them except for adding a few additional creature spawns around Yew, so I haven't touched the vendor lists and item lists.

Anyone else have this problem or do I need to set something in one of the settings files?
User avatar
Xuri
Site Admin
Posts: 3704
Joined: Mon Jun 02, 2003 9:11 am
Location: Norway
Has thanked: 48 times
Been thanked: 8 times
Contact:

Post by Xuri »

Confirmed bug, I cleaned out a vendor (bought everything), and he restocks absolutely nothing. Moving to bug-forums.
-= Ho Eyo He Hum =-
Grimson
Developer
Posts: 802
Joined: Sat Jun 04, 2005 1:52 am
Location: Germany
Has thanked: 0
Been thanked: 0

Post by Grimson »

Found the bug. CItem::IncAmount() deleted the item when it reached an amount of 0, I'll add an exclusion for vendors to it.
Post Reply