Register for your free account! | Forgot your password?

You last visited: Today at 22:14

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[Release] Mailbox Structures

Discussion on [Release] Mailbox Structures within the CO2 PServer Guides & Releases forum part of the CO2 Private Server category.

Reply
 
Old   #1
 
.Ocularis's Avatar
 
elite*gold: 0
Join Date: Mar 2008
Posts: 309
Received Thanks: 208
[Release] Mailbox Structures

I've seen a few faulty public structures floating around.
To my knowledge, these are not faulty and work just fine.
Attached Files
File Type: zip Mailbox.zip (2.7 KB, 113 views)
.Ocularis is offline  
Thanks
3 Users
Old 12/22/2014, 12:28   #2
 
Super Aids's Avatar
 
elite*gold: 0
Join Date: Dec 2012
Posts: 1,761
Received Thanks: 946
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?
Super Aids is offline  
Thanks
5 Users
Old 12/22/2014, 14:31   #3
 
.Ocularis's Avatar
 
elite*gold: 0
Join Date: Mar 2008
Posts: 309
Received Thanks: 208
Very neat, thanks. I like how you laid everything out in grids.
Didn't know you could do that..
.Ocularis is offline  
Old 12/22/2014, 22:08   #4
 
turk55's Avatar
 
elite*gold: 130
Join Date: Oct 2007
Posts: 1,652
Received Thanks: 701
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
turk55 is offline  
Old 12/22/2014, 22:48   #5
 
Super Aids's Avatar
 
elite*gold: 0
Join Date: Dec 2012
Posts: 1,761
Received Thanks: 946
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..
Super Aids is offline  
Old 12/23/2014, 08:07   #6
 
JasonSx's Avatar
 
elite*gold: 0
Join Date: Feb 2013
Posts: 5
Received Thanks: 3
every egyptians uses trinity source -___-
thanks anyway
JasonSx is offline  
Old 12/25/2014, 02:06   #7
 
abdoumatrix's Avatar
 
elite*gold: 0
Join Date: Jul 2008
Posts: 874
Received Thanks: 239
Quote:
Originally Posted by JasonSx View Post
every egyptians uses trinity source -___-
thanks anyway
most

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

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

Quote:
Originally Posted by Super Aids View Post

MailBox List
OffsetTypeNameDescription
Offset + 4boolUnknown????
   false
this bool for conatining attachment or not
abdoumatrix is offline  
Thanks
2 Users
Old 12/26/2014, 07:58   #8
 
.Ocularis's Avatar
 
elite*gold: 0
Join Date: Mar 2008
Posts: 309
Received Thanks: 208
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.
.Ocularis is offline  
Thanks
1 User
Reply


Similar Threads Similar Threads
[Release] Auction Structures
02/01/2015 - CO2 PServer Guides & Releases - 2 Replies
To my knowledge, these are working structures for what the server sends to the client. I cannot help you with your implementation of the Auction interface due to my work load in Throne, however.. there will be an implementation of auctions soon as I figure out how I'll do NPC scripting. Thanks to the developers of CSV3 for releasing the hints which I used to restructure the remaining server->client messages. _____________________ Word to the wise If you're planning to implement...
[Release] Santa Hats to mailbox
12/23/2013 - Dekaron Private Server - 2 Replies
Desc: Send a santa hat to all characters in your database, a hat to there mailbox Requirements: AK, SH, IM, VS, SE, BW class have the hats (see script) PHP enabled server
[Release] Mailbox Delivery Script
01/19/2013 - Dekaron Private Server - 8 Replies
This is my quick and dirty php page to mail an item by index number or to send dil through the mailbox in game to a player. There is no authentication on this, so I would recommend putting it in a dir with htaccess on it. There is a section at the top to put your db authentication and the name of the GM sending the item. Feel free to modify it as you wish.
[Release] Halloween Pets to mailbox
11/07/2012 - Dekaron Private Server - 6 Replies
Its been a while sins i released anything, so here it is Desc: Send a pet to all characters in your database, a pet to there mailbox Requirements: all classes (see script) have the pets (see script)
[RELEASE] 5293 Packet Structures
09/06/2010 - CO2 PServer Guides & Releases - 47 Replies
Hello :awesome:. Do NOT flame me for releasing this, saying noobs can now get the latest patch to work, because 'noobs' as we like to call them, need more than simple packet structures. Please if you use these packet structures, do not use them for ready to use sources, that would really, really mess up the private servers gain. From this moment on I am going to release Packet Structures for the Conquer Client patch 5293. These might be missing, or incorrect, but work for me, or...



All times are GMT +2. The time now is 22:14.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.