Accessing chat server side

Everything about the SmartFoxBits UI Components for SmartFoxServer 2X. Post your questions, suggestions and bug reports.

Moderators: Lapo, Bax

User avatar
Eldido
Posts: 8
Joined: 04 Jan 2012, 12:55
Location: Paris, France
Contact:

Accessing chat server side

Postby Eldido » 05 Mar 2012, 11:04

Hi,

Maybe i'm missing out something obvious but I'm wondering : is there a simple way to have access to chat server side. I'm asking because I would like to log chat sessions along with some data about games for statistic and moderation purposes.

thanks
User avatar
rjgtav
Posts: 2813
Joined: 19 Apr 2009, 11:31
Location: Lisbon, Portugal

Re: Accessing chat server side

Postby rjgtav » 05 Mar 2012, 23:16

Hi.
Well, you can listen to the PUBLIC_MESSAGE and PRIVATE_MESSAGE events that are fired at the Zone-Level.
In those events, one of the parameters is the SFSEventParam.MESSAGE, which contains the message that was sent. You can use it for logging purposes.

For more information, please check the SFSEventType documentation.
Skills: SFS Pro, SFS2X, AS2.0/AS3.0, Java, HTML5/CSS3/JS, C#
Portfolio: https://rjgtav.wordpress.com/
SFS Tutorials: http://sfs-tutor.blogspot.com/ - Discontinued. Some examples may be bugged.
User avatar
Eldido
Posts: 8
Joined: 04 Jan 2012, 12:55
Location: Paris, France
Contact:

Re: Accessing chat server side

Postby Eldido » 06 Mar 2012, 09:27

great !

thank you very much Rjgtav !

Return to “SmartFoxBits for SFS 2X”

Who is online

Users browsing this forum: No registered users and 15 guests