Пример #1
0
 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);
     }
 }