using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Blizzard { public class AnalyzeMessages { internal string[] SepareOnVL64Vars(string Message) { try { StringBuilder Strings = new StringBuilder(); int m = 1; int u = 0; // Analyze all strings for (int n = 0; n < Message.Length; n++) { if (HabboEncode.decodeVL64(Message.Substring(n - u, m)) == 0 && Message.Substring(n - u, m) != "H") { m++; u++; } else { // Any filters for strings Strings.Append(Message.Substring(n - u, m).ToString() + ";"); m = 1; u = 0; } } return Strings.ToString().Split(';'); } catch (Exception e) { Console.WriteLine(e.ToString()); return null; } } internal string PrintAllForASplit(string[] Split) { StringBuilder Strings = new StringBuilder(); for (int i = 0; Split[i].Length > 0; i++) { Strings.AppendLine(HabboEncode.decodeVL64(Split[i]).ToString()); } return Strings.ToString(); } internal int CountAllForASplit(string[] Split) { int z = 0; for (int i = 0; Split[i].Length > 0; i++) { z++; } return z; } } }