Well, I've never implemented it, but I was getting "Unknown packet: 1111" from players trying to use it, so I decided to go for it. Through trial and error, I found what I believe to be the right packet for displaying the list of messages, however even if there are multiple messages, the last one overwrites any that were before it. I'm sure there's something I'm supposed to change, but I haven't figured it out yet. Here's my packet.
The bool "true" passed to the string function simply means that it should send a byte containing the length first, thus why the packet length is 13 + (string lengths)
Anywho, a shove in the right direction would be awesome. :)
Edit: Also, everything else works, including viewing messages in full. The number of items displayed is my only problem.
Code:
public static byte[] MessageBoard(MessageBoardPost Post, int Page)
{
string Msg = Post.Message;
if (Msg.Length > 50)
Msg = Msg.Substring(0, 50);
Packet Packet = new Packet(13 + (Post.Poster.Length + Msg.Length + Post.TimeStamp.Length), 1111);
Packet.Short(Page); // Assuming this is the page, since it does nothing atm.
Packet.Short((int)Post.Board); // The board type, aka TradeBoard, FriendBoard, ...
Packet.Byte(3); // Flag - Should always be 3? 3=Send List
Packet.Byte(3); // String Count
Packet.String(Post.Poster, true); // Poster's name
Packet.String(Msg, true); // The [truncated] message
Packet.String(Post.TimeStamp, true); // And the timestamp, YYYY-MM-DD-HH-MM
return Packet.Buffer;
}
Anywho, a shove in the right direction would be awesome. :)
Edit: Also, everything else works, including viewing messages in full. The number of items displayed is my only problem.