|
You last visited: Today at 19:48
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.
01/03/2018, 18:16
|
#1
|
elite*gold: 0
Join Date: Jan 2018
Posts: 11
Received Thanks: 1
|
[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.
|
|
|
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.
|
|
|
01/03/2018, 20:40
|
#3
|
elite*gold: 0
Join Date: Jan 2018
Posts: 11
Received Thanks: 1
|
Quote:
Originally Posted by chipno0p
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.
|
|
|
01/04/2018, 18:34
|
#4
|
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;
}
|
|
|
01/05/2018, 05:06
|
#5
|
elite*gold: 100
Join Date: Sep 2017
Posts: 1,110
Received Thanks: 907
|
KingDollar is the second Goofie baby
|
|
|
01/05/2018, 09:10
|
#6
|
elite*gold: 0
Join Date: Jan 2018
Posts: 11
Received Thanks: 1
|
Quote:
Originally Posted by KingDollar
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
KingDollar is the second Goofie baby 
|
hhahahaha, right [King] <3
|
|
|
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.
|
|