Offline Messages Inquiry

01/04/2013 08:28 Spirited#1
Hey everyone,

It's been a long time since I properly asked the forum for help. My packet logger stopped working on a recent patch, and until I figure out what's causing the issue, I cannot packet log. I'm currently working on offline messages; however, I need to know how they work.

I have everything coded except for the date that appears at the end of the message. I tried messing around with the string and message packet structures, but I was unsuccessful in guessing the winning offset / idea. I'm very confident that it's in the message packet since it's text already in the window's chat area; however, I could be barking up the wrong tree. Any tips would be appreciated. Thanks for your time.

Regards,
Spirited Fang.
01/04/2013 10:01 { Angelius }#2
To be stored in your database -> string MessageDate = DateTime.Now.ToString("yyyyMMddHHmmss");

And when you send the packet 1004 to the targeted player you write the MessageDate as string right before the message string

Offset = 28 + From.Name.Length + To.Name.Length
01/04/2013 10:40 Spirited#3
Quote:
Originally Posted by { Angelius } View Post
To be stored in your database -> string MessageDate = DateTime.Now.ToString("yyyyMMddHHmmss");

And when you send the packet 1004 to the targeted player you write the MessageDate as string right before the message string

Offset = 28 + From.Name.Length + To.Name.Length
You crazy genus! I feel so stupid. I thought for sure that I tried something like that. Thanks Angelius. :)
01/04/2013 12:26 M.Dego#4
"48 00 EC 03 00 00 00 00 3E 08 00 00 3F 01 00 00 00 00 00 00 1B 3D 0A 00 04 07 28 7A 61 78 65 31 29 07 3E 43 72 6F 77 6E 3C 0E 32 30 31 33 30 31 30 34 30 33 31 36 33 35 08 79 61 20 72 61 67 65 6C 00 00 00 00 00 00 00" :*
01/04/2013 13:08 Super Aids#5
Quote:
Originally Posted by M.Dego View Post
"48 00 EC 03 00 00 00 00 3E 08 00 00 3F 01 00 00 00 00 00 00 1B 3D 0A 00 04 07 28 7A 61 78 65 31 29 07 3E 43 72 6F 77 6E 3C 0E 32 30 31 33 30 31 30 34 30 33 31 36 33 35 08 79 61 20 72 61 67 65 6C 00 00 00 00 00 00 00" :*
Why the hell are you posting a packet dump?
01/04/2013 13:27 M.Dego#6
try to help, no more -_-
01/04/2013 14:04 Super Aids#7
Because that is so much help LOL.
01/04/2013 20:42 Spirited#8
Quote:
Originally Posted by Super Aids View Post
Because that is so much help LOL.
If I didn't receive the help I got from Angelius, it would of been a huge help (assuming that it's a packet dump of an offline message). Anyways, the solution to my problem has been posted, it's time to archive this topic. :)
01/05/2013 02:41 bodayo69#9
Lol , i couldn't think at this possibility !! Cool !
01/06/2013 02:21 JohnHeatz#10
#Closed as requested