I started working on the CoFuture 4267 source - on the basis that I miss the days of yore, and that seemed like the best source from the collection.
I'm already fairly proficient with C#, and so it wasn't too hard to get into the source, I started by figuring out ArtisanRow/his UI; removing the broken items, and adding an in-game DMap write command, to allow me to map spaces in the dmap files that are not already mapped (mostly bridges), and added in the packet for dropping money, which was strangely missing - all of this is beside the point - and I add it to show that I am figuring most of this out on my own + with the packet wiki, I'm not intending to release a public server either - I'm learning a lot about networking; and a game I used to love.
But anyways.
I got to working on market stalls; and I realized that the provided Vending class was very very nearly complete - it didn't take me too long to figure out the missing packet to open the store for real, allowing me to add items to be vended - from debugging it, the item now can be added and the price is correctly stored - great!
But the items don't show when another player attempts to view them - then I figured out that what I'm sending to the client is the item UID, the price, and the showshopitem flag - but I'm not sending any information about the item itself to the client; which is probably why it isn't showing. I've tried various flags for the mode in the ItemInformation packet; none of those are the correct ones, and now I'm pretty much at a loss as to what to try next.
I don't want to be given the answer, but a point in the right direction would be really appreciated. Thanks!
I'm already fairly proficient with C#, and so it wasn't too hard to get into the source, I started by figuring out ArtisanRow/his UI; removing the broken items, and adding an in-game DMap write command, to allow me to map spaces in the dmap files that are not already mapped (mostly bridges), and added in the packet for dropping money, which was strangely missing - all of this is beside the point - and I add it to show that I am figuring most of this out on my own + with the packet wiki, I'm not intending to release a public server either - I'm learning a lot about networking; and a game I used to love.
But anyways.
I got to working on market stalls; and I realized that the provided Vending class was very very nearly complete - it didn't take me too long to figure out the missing packet to open the store for real, allowing me to add items to be vended - from debugging it, the item now can be added and the price is correctly stored - great!
But the items don't show when another player attempts to view them - then I figured out that what I'm sending to the client is the item UID, the price, and the showshopitem flag - but I'm not sending any information about the item itself to the client; which is probably why it isn't showing. I've tried various flags for the mode in the ItemInformation packet; none of those are the correct ones, and now I'm pretty much at a loss as to what to try next.
I don't want to be given the answer, but a point in the right direction would be really appreciated. Thanks!