Ok lets narrow down what you are looking for a little.
Are you wanting the Items limited by the standard level restriction? (the Standard Level restriction GP value can be found in itemvalue.2da under the MAXSINGLEITEMVALUE column.)
 
Did you want the price of the items in the store to very per the clients appraise skill?
 
Did you want the items shown to the PC to vary by anything other then level? (ex. If you have PC known as nobles do they get a better selection for there level. Or a PC who has a high appraise or persuade skill get a better selection then a pc with a low skill. )
 
Some thought also need to go into what happens when two players (if it is a multiplayer game) try to open the same store at the same time. The two simplest options would be to leave the store in the state it is in when the first player opened it for the second player. Or to stop the second player from being able to shop until the first player is finished shopping.
 
Is the store also going to buy items.? ( if they do what happens if you end up with more items then will fit in the shop.)
 
If you are wanting the store limited in in items in 1 level increments. I doubt you want to create 40 stores for every store you have in the game. That brings another Question:
 
Is this going to be for every store in the game or just a select few.
 
****
 
Basic Idea: create Two stores with Tags built off of the Shopkeepers tag. (ex. Shopkeeper Tag = ShopKeep; The
Show
Room Store tag = ShopKeep_
SR; Then the
Ware
House stores tag= ShopKeep_
WH)
 
When A PC wants to open the store move the Items from the WareHouse store to the ShowRoom that the merchant is willing to show to him. when the store is closed move them back to the WareHouse.
 
You just need to be careful and either track how many PC have the store open or limit it to one having it open at a time.
 
I can really see you getting fancy with this idea and taking it to different levels. Such a secrete fence that Show stolen items to gang members or thieves only. Or a cleric shop that will not show the holy items to the heathen. Just thoughts. Getting a little ahead of the game here one step at a time.
 
 
Edit: Cut and Past is hit a miss here. Sometimes it doubles your blank lines. other times it removes them. LOL.
Modifié par Lightfoot8, 16 août 2010 - 10:30 .