Register for your free account! | Forgot your password?

Go Back   elitepvpers > Popular Games > Silkroad Online > SRO Coding Corner
You last visited: Today at 19:48

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

Advertisement



[Help] Save Chat In SQL!

Discussion on [Help] Save Chat In SQL! within the SRO Coding Corner forum part of the Silkroad Online category.

Reply
 
Old   #1
 
HatersDAD's Avatar
 
elite*gold: 0
Join Date: Jan 2018
Posts: 11
Received Thanks: 1
Exclamation [Help] Save Chat In SQL!

hello awesome community,
first: thanks for kingdollar and all ppls for solve my last topic help.
second: i want to make log from filter (AllChat,PrivateChat,GlobalChat,GuildChat) .
what is packet? and how i can save this chats into my sql db.
thanks a lot.
HatersDAD is offline  
Old 01/03/2018, 18:55   #2
 
elite*gold: 0
Join Date: Oct 2012
Posts: 145
Received Thanks: 31
I think u can use a Game Server which has chat log function. As I remembered, there is a Game Server has this function.
chipno0p is offline  
Old 01/03/2018, 20:40   #3
 
HatersDAD's Avatar
 
elite*gold: 0
Join Date: Jan 2018
Posts: 11
Received Thanks: 1
Quote:
Originally Posted by chipno0p View Post
I think u can use a Game Server which has chat log function. As I remembered, there is a Game Server has this function.
yes iknow,
but i want to make this function in my filter. thanks for reply.
HatersDAD is offline  
Old 01/04/2018, 18:34   #4

 
KingDollar's Avatar
 
elite*gold: 1117
Join Date: Dec 2013
Posts: 858
Received Thanks: 806
you can handle client chat packet

this enum would help you for chatType
Code:
public enum ChatType : byte
{
    All = 1,
    PM = 2,
    AllGM = 3,
    Party = 4,
    Guild = 5,
    Global = 6,
    Notice = 7,
    Stall = 9,
    Union = 11,
    NPC = 13,
    Accademy = 16,
}
and here is packet structure

Code:
byte msgTypeId = pck.ReadUInt8();
byte msgCount = pck.ReadUInt8();
ChatType msgType = (ChatType)(msgTypeId);
string msg = string.Empty;
switch (msgType)
{
    case ChatType.All:
	case ChatType.AllGM:
	case ChatType.Party:
	case ChatType.Guild:
	case ChatType.Accademy:
	case ChatType.Union:
	case ChatType.Stall:
            msg = pck.ReadAscii();
        break;

    case ChatType.PM:
        {
            string name = pck.ReadAscii();
            msg = pck.ReadAscii();
        }
        break;
}
KingDollar is offline  
Old 01/05/2018, 05:06   #5
 
#HB's Avatar
 
elite*gold: 100
Join Date: Sep 2017
Posts: 1,110
Received Thanks: 907
KingDollar is the second Goofie baby
#HB is offline  
Old 01/05/2018, 09:10   #6
 
HatersDAD's Avatar
 
elite*gold: 0
Join Date: Jan 2018
Posts: 11
Received Thanks: 1
Quote:
Originally Posted by KingDollar View Post
you can handle client chat packet

this enum would help you for chatType
Code:
public enum ChatType : byte
{
    All = 1,
    PM = 2,
    AllGM = 3,
    Party = 4,
    Guild = 5,
    Global = 6,
    Notice = 7,
    Stall = 9,
    Union = 11,
    NPC = 13,
    Accademy = 16,
}
and here is packet structure

Code:
byte msgTypeId = pck.ReadUInt8();
byte msgCount = pck.ReadUInt8();
ChatType msgType = (ChatType)(msgTypeId);
string msg = string.Empty;
switch (msgType)
{
    case ChatType.All:
	case ChatType.AllGM:
	case ChatType.Party:
	case ChatType.Guild:
	case ChatType.Accademy:
	case ChatType.Union:
	case ChatType.Stall:
            msg = pck.ReadAscii();
        break;

    case ChatType.PM:
        {
            string name = pck.ReadAscii();
            msg = pck.ReadAscii();
        }
        break;
}
thanks again .

Quote:
Originally Posted by #HB View Post
KingDollar is the second Goofie baby
hhahahaha, right [King] <3
HatersDAD is offline  
Reply


Similar Threads Similar Threads
PS3 Save Resign/Save Mod
04/06/2013 - Consoles - 2 Replies
Alright guys, So I have gotten the PS3 Game Genie. It's working pretty great! This is my little way of giving back to the Elite Pvpers Community for all the help over the years I've been here. (As XxFearReaperXx of the EO/CO Sections) Please Follow All Steps! Step 1: Check Game Genie Game List 3D Dot Game Heroes (BLUS30490) 50 Cent: Blood On The Sand (BLUS30256)
[Trusted|Billig|Save] KillService By .Replay' & PerfectTyga [100%Save]
03/26/2013 - WarRock Trading - 13 Replies
Hallo Epvp PerfectTyga & Ich biete euch einen Killservice an. http://s7.directupload.net/images/130308/hb4lolcm .jpg Ablauf : Wir Stellen uns mit einem "NoSpawnWait-Hack" afk & ihr killt uns, dies rate ich euch mit einem Auto (Humwee) zu tuhen , denn pro kill bekommt ihr 7 Punkte statt den gewohnten 5 Punkten pro Kill :) Ablauf˛ : Ihr gebt uns ID+PW , und wir machen euch die kills :)



All times are GMT +1. The time now is 19:49.


Powered by vBulletin®
Copyright ©2000 - 2026, 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 ©2026 elitepvpers All Rights Reserved.