private string ReadProperties(Entity obj, out string htmltext) { _sb.Clear(); _sbHTML.Clear(); bool hasStartColor = false; for (int i = 0; i < obj.Properties.Count; i++) { Property property = obj.Properties[i]; if (property.Cliloc <= 0) { continue; } if (i == 0 /*&& !string.IsNullOrEmpty(obj.Name)*/) { if (obj.Serial.IsMobile) { Mobile mobile = (Mobile)obj; //ushort hue = Notoriety.GetHue(mobile.NotorietyFlag); _sbHTML.Append(Notoriety.GetHTMLHue(mobile.NotorietyFlag)); } else { _sbHTML.Append("<basefont color=\"yellow\">"); } hasStartColor = true; } string text = Cliloc.Translate((int)property.Cliloc, property.Args, true); if (string.IsNullOrEmpty(text)) { continue; } _sb.Append(text); _sbHTML.Append(text); if (hasStartColor) { _sbHTML.Append("<basefont color=\"#FFFFFFFF\">"); hasStartColor = false; } if (i < obj.Properties.Count - 1) { _sb.Append("\n"); _sbHTML.Append("\n"); } } htmltext = _sbHTML.ToString(); string result = _sb.ToString(); return(string.IsNullOrEmpty(result) ? null : result); }