Jump to content

Chat Logger Format


Recommended Posts

Maybe will useful for any L2OFF/L2J developers or admins. Thanks @eressea for info.

 

Line format:

Quote

[TIMESTAMP], [CHAT_TYPE],[SENDER_OBJECT_ID],[RECIEVER_OBJECT_ID],[SENDER_LOC_X],[SENDER_LOC_Y],[SENDER_LOC_Z],[MESSAGE_TEXT],[SENDER_NAME],[RECIEVER_NAME]

 

where,

  1. [TIMESTAMP] - date time in format - 11/18/2018 14:58:19.061. Java format - "MM/dd/yyyy HH:mm:ss.SSS";
  2. [CHAT_TYPE] - integer chat type (starts with one space);
  3. [SENDER_OBJECT_ID] - object ID of sender;
  4. [RECIEVER_OBJECT_ID] - object ID of reciever if it's PM message. Otherwise always 0;
  5. [SENDER_LOC_X] - sender X coordinate;
  6. [SENDER_LOC_Y] - sender Y coordinate;
  7. [SENDER_LOC_Z] - sender Z coordinate;
  8. [MESSAGE_TEXT] - message text with replaced all "," (comma) to " " (space) symbols;
  9. [SENDER_NAME] - the sender real name (case sensetive);
  10. [RECIEVER_NAME] - the reciever real name (case sensetive) and optional. For non PM chats this param "" (NULL). Example: if you wtire the PM message like ["rootware test message.] then will used in log file the real name Rootware.

 

Log example:

Quote

11/18/2018 15:07:17.386, 0,3,0,-100205,241393,-3624,Test message  with symbols. A ab ;',Rootware,
11/18/2018 15:10:04.527, 0,3,0,-100205,241393,-3624,symbols `~!@#$%^&*()-_=+;:'"< .>/?\|,Rootware,
11/18/2018 15:48:33.089, 2,4,20,164261,-112520,-2608,test,Nosferatu,Azure
11/18/2018 15:49:25.761, 2,20,4,-88005,249997,-3592,nosferatu answwer,Azure,Nosferatu
11/18/2018 15:50:08.636, 2,20,4,-88005,249997,-3592,nosferatu test message,Azure,Nosferatu
11/18/2018 15:50:20.636, 2,20,4,-88005,249997,-3592,test message,Azure,Nosferatu

 

Edited by Rootware
  • Like 2
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...