[Release] Mailbox Structures

12/21/2014 20:17 .Ocularis#1
I've seen a few faulty public structures floating around.
To my knowledge, these are not faulty and work just fine.
12/22/2014 12:28 Super Aids#2
Not everybody is using Trinity, besides here is a simplified structure of it.

MailBox Content
OffsetTypeNameDescription
0ushortSizeThe size of the packet.
   4 (Header) + Content-length + 8 (Prefix)
2ushortTypeThe type of the packet.
   0x418
4uintMailIDThe id of the mail.
8stringContentThe content of the mail.
   Make sure the content's length is written to the size.

MailBox List
OffsetTypeNameDescription
0ushortSizeThe size of the packet.
   4 (Header) + 88 * Count (Mails) + 8 (Prefix)
2ushortTypeThe type of the packet.
   0x416
4uintCountThe amount of mails.
8ubyte[8]Unknown????
16+foreach (Mails)  
OffsetuintMail UIDThe uid of the mail.
Offset + 4stringSenderThe sender of the mail.
Offset + 32stringHeaderThe header of the mail.
Offset + 32uintMoneyThe amount of money.
Offset + 4uintCPsThe amount of CPs.
Offset + 4uintTime StampThe time stamp of the mail.
Offset + 4uintItem UIDThe uid of the item.
   0 if no item.
Offset + 4boolAttachmentWhether the mail has attachments or not

MailBox Notification
OffsetTypeNameDescription
0ushortSizeThe size of the packet.
   6 + 8 (Prefix)
2ushortTypeThe type of the packet.
   0x417
4ushortNotificationTypeThe type of notification.
   DeletionFailed = 1
   UnreadMail = 4

MailBox Action
OffsetTypeNameDescription
0ushortSizeThe size of the packet.
   12 + 8 (Prefix)
2ushortTypeThe type of the packet.
   0x415
4uintActionTypeThe type of action.
   None = 0
   Open = 1
   Delete = 2
   RemoveMoney = 3
   RemoveCPs = 4
   RemoveItem = 5
   RemoveAttachment = 6
8uintMail UIDThe uid of he mail.
12uintUnknown????
   0?
12/22/2014 14:31 .Ocularis#3
Very neat, thanks. I like how you laid everything out in grids.
Didn't know you could do that..
12/22/2014 22:08 turk55#4
Quote:
Originally Posted by .Ocularis View Post
Very neat, thanks. I like how you laid everything out in grids.
Didn't know you could do that..
Advanced -> tables
12/22/2014 22:48 Super Aids#5
Quote:
Originally Posted by .Ocularis View Post
Very neat, thanks. I like how you laid everything out in grids.
Didn't know you could do that..
[Only registered and activated users can see links. Click Here To Register...]
12/23/2014 08:07 JasonSx#6
every egyptians uses trinity source -___-
thanks anyway :)
12/25/2014 02:06 abdoumatrix#7
Quote:
Originally Posted by JasonSx View Post
every egyptians uses trinity source -___-
thanks anyway :)
most :D

------------------

item mode = 11 so u can add item (i missed it this time :D)

Quote:
Originally Posted by Super Aids View Post

MailBox List
OffsetTypeNameDescription
Offset + 4boolUnknown????
   false
this bool for conatining attachment or not
12/26/2014 07:58 .Ocularis#8
After messing around with the structures while implementing the inbox in Throne I noticed things aren't right for the List structure.. I'm not sure how they should be, but offsets 8-15 i'm unsure of. It seems the client will calculate the previous and next page numbers given the right information, in the requests.