public static Packet CreateWorldMessage(WorldMessageTypes pType, string pMessage) { var packet = new Packet(SH25Type.WorldMessage); packet.WriteByte((byte)pType); packet.WriteStringLen(pMessage, true); return packet; }
public static Packet CreateWorldMessage(WorldMessageTypes pType, string pMessage) { var packet = new Packet(SH25Type.WorldMessage); packet.WriteByte((byte)pType); packet.WriteStringLen(pMessage, true); return(packet); }
public static void SendWorldMessage(WorldMessageTypes type, string message, string to = "") { using (var packet = new InterPacket(InterHeader.WORLDMSG)) { packet.WriteStringLen(message); packet.WriteByte((byte)type); packet.WriteBool(to != ""); if (to != "") { packet.WriteStringLen(to); } WorldConnector.Instance.SendPacket(packet); } }
public static void SendWorldMessage(WorldMessageTypes type, string message, string to = "") { using (var packet = new InterPacket(InterHeader.Worldmsg)) { packet.WriteStringLen(message); packet.WriteByte((byte)type); packet.WriteBool(to != ""); if (to != "") { packet.WriteStringLen(to); } WorldConnector.Instance.SendPacket(packet); } }