Nice work yet again!
I was thinking a bit about bazaar and the whole idea of players being AFK to use up precious bandwidth. While I think it would be awesome to have it working, I think bandwidth should be taken into consideration.
I was thinking of doing some sniffing and see if I could figure out the structure of the AFK opcode, which is 0x6a5f. It comes in after not moving the mouse for exactly 15 minutes, and comes in again as soon as the mouse is moved again. So, it seems to be an auto-AFK toggle and I imagine that there is an on/off or something in the structure.
The idea to help bandwidth would be if there was a way that this auto AFK feature and have it set the server to stop sending updates to it, or at least reduce the amount of traffic sent to the client by a large amount. Basically, it would be almost like the player ghosts on windows servers which can show a player in game that has long since logged off. But, in this case, the player would still be connected. I am not sure exactly how it could be done, but if it was possible, I think it would make the bazaar much more desire-able.
Oh, and while you are looking at the bazaar, you might want to check some of the code for BecomeNPC, because it seems like it is doing almost exactly what /trader mode is supposed to be doing. It puts "Trader" in front of the player's name, and it turns them into a merchant (orange name if you use MQ). I have a feeling that if there were tables made for items that are for sale and trader merchant tables, that the code for bazaar might be closer than you think.
Sorry for the derail lol.
|