02-13-2012, 11:25 PM
Easiest way to do it would be like the RunUO status page is done, writing HTML to a file then embedding. A lot nicer would be to use a database (possibly containing an item table and a mobile table) and then displaying it what ever way you want. Mix of simplicity and flexibility might be to save/write to a JSON file (much like status page), fetch (cache) the data with PHP on in-uo.net and passing it onward rendered to the client.
Saving the mobile parent will also give you the ability to display some information about the vendor if that would be required (I can currently only think of cords) and using parentItem in the item "structure"/table would give the ability to nest. I.e. displaying items in bags (set of armor).
The code for the serialization is fairly simple, work might spin of if you want to make a nice interface, but a "search for vendors that have item x" would not be so hard. That being said, obviously everything takes time:p
Not sure if I helped or if I just stated the obvious, but there it is anyways.
Saving the mobile parent will also give you the ability to display some information about the vendor if that would be required (I can currently only think of cords) and using parentItem in the item "structure"/table would give the ability to nest. I.e. displaying items in bags (set of armor).
The code for the serialization is fairly simple, work might spin of if you want to make a nice interface, but a "search for vendors that have item x" would not be so hard. That being said, obviously everything takes time:p
Not sure if I helped or if I just stated the obvious, but there it is anyways.