Page 1 of 1

Vendors not restocking properly

Posted: Sun Jan 28, 2007 6:44 pm
by Yukiko
This is an old problem that I have been unable to resolve in helping a friend. We, he and I, are both running converted (to POL 0.96/0.97) vendor scripts from the POL 0.95 Distro. It seems that when changes are made to items in the itemdesc files, the vendors inventory does not reflect these changes even after a server restart and a restock command has been issued.

How can we get the vendor inventory to wipe and restock with new fresh item info from the mrcspawn and itemdesc files?

This has been a persistent problem with merchants since POL 0.94 as I remember.

Posted: Sun Jan 28, 2007 7:35 pm
by OldnGrey
I don't know the distro merchant spawner, but on my scripts the merchant restock can be triggered by buying something from them and waiting the restock timer or restarting.

Posted: Sun Jan 28, 2007 7:47 pm
by Yukiko
Yes, that was one way to effect it but it seems that isn't working anymore. Atleast for my friend. I haven't had time to play with it much or even to see if I have the same issue. I just remember it being an old problem.

Posted: Mon Jan 29, 2007 7:14 am
by MuadDib
Easiest way is to implement a gm or other command, that not only causes the restock, but before the restock remove all items from all 3 stock containers, then restock.

This is due to the fact the items are saved, and reloaded from the data directory, NOT the itemdesc.cfg directory. Hence, why it sticks to the old information. Because it was saved that way.

Posted: Mon Jan 29, 2007 2:37 pm
by Yukiko
Yeppers.

That sounds like the way to go.