Thread: Merchants: Hidden items
View Single Post
  #5  
Old 05-26-2010, 08:43 AM
Xenephex Xenephex is offline
Kobold


Join Date: May 2010
Posts: 102
Default

The item list can not be stored on the client side - it has to be on the server, and has to be populated from the server when the merchant is opened. And I'm reasonably sure that there has to be a transaction with the server when an item is bought or sold, as you could have two or more people viewing the merchant at the same time.

If you watch a merchant get populated when you open one, it is clear that those items are getting sorted on the client side, but not necessarily getting transferred in any particular order, other than stock items first.

If the server side simply limited the number of items it transfers to the client to some number less (say 15 or 20) than what is actually stored, then this should be theoretically doable. If the server side list was a LIFO push down list, then you would have the exact behavior of the classic merchants.

I've never worked with an online code repository, but I'll see if I can get hooked up and try to find the relevant code. I'm not trying to be argumentative, I'm just not seeing how this can not be controlled from the server side.