- Code: Select all
SendMessage(string message, eChatType.CT_ScreenCenter_And_CT_System, eChatLoc.CL_ChatWindow);
i see in this code that there is checks for certain types of messages, do we need to add another one, or does the existing one mess it up?
it adds "@@" at the beginning of the message.
- Code: Select all
public virtual void SendMessage(string msg, eChatType type, eChatLoc loc)
{
if (m_gameClient.ClientState == GameClient.eClientState.CharScreen)
return;
// types not supported by 1.68+ clients
switch (type)
{
case eChatType.CT_ScreenCenterSmaller:
case eChatType.CT_ScreenCenter:
return;
}
using (var pak = new GSTCPPacketOut(GetPacketCode(eServerPackets.Message)))
{
pak.WriteShort((ushort) m_gameClient.SessionID);
pak.WriteShort(0x00);
pak.WriteByte((byte) type);
pak.Fill(0x0, 3);
String str;
if (loc == eChatLoc.CL_ChatWindow)
str = "@@";
else if (loc == eChatLoc.CL_PopupWindow)
str = "##";
else
str = "";
str = String.Concat(str, msg);
pak.WriteString(str);
SendTCP(pak);
}
}
notice this here.
- Code: Select all
String str;
if (loc == eChatLoc.CL_ChatWindow)
str = "@@";
else if (loc == eChatLoc.CL_PopupWindow)
str = "##";
else
str = "";
now i see that it does a String.Concat, i'm not sure what that does, i will google it tomorrow. lol, any feedback would be nice as to a solution for this