Vendors not restocking properly

Get Help on scripting in POL with configurations, config setups, script trouble shooting, etc.
Post Reply
Yukiko
Distro Developer
Posts: 2826
Joined: Thu Feb 02, 2006 1:41 pm

Vendors not restocking properly

Post 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.
User avatar
OldnGrey
POL Expert
Posts: 657
Joined: Sat Feb 04, 2006 6:26 pm

Post 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.
Yukiko
Distro Developer
Posts: 2826
Joined: Thu Feb 02, 2006 1:41 pm

Post 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.
MuadDib
Former Developer
Posts: 1091
Joined: Sun Feb 12, 2006 9:50 pm

Post 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.
Yukiko
Distro Developer
Posts: 2826
Joined: Thu Feb 02, 2006 1:41 pm

Post by Yukiko »

Yeppers.

That sounds like the way to go.
Post Reply