public override void DisplayLabelName(Mobile from) { if (from == null) { return; } string displayName = ""; if (IsMagical && !Identified && from.AccessLevel == AccessLevel.Player) { LabelTo(from, "unidentified " + Name); } else { switch (Quality) { case Server.Quality.Low: displayName = "low quality "; break; case Server.Quality.Regular: displayName = ""; break; case Server.Quality.Exceptional: displayName += "exceptional "; break; } if (DurabilityLevel != InstrumentDurabilityLevel.Regular) { displayName += DurabilityLevel.ToString().ToLower() + " "; } switch (ArtistryLevel) { case InstrumentArtistryLevel.Melodist: displayName += "melodist "; break; case InstrumentArtistryLevel.Jongleur: displayName += "jongleur "; break; case InstrumentArtistryLevel.Minstrel: displayName += "minstrel "; break; case InstrumentArtistryLevel.Troubadour: displayName += "troubadour "; break; case InstrumentArtistryLevel.Balladeer: displayName += "balladeer "; break; } displayName += Name; if (SlayerGroup != SlayerGroupType.None) { displayName += " of " + SlayerGroup.ToString().ToLower() + " enticement"; } LabelTo(from, displayName); } LabelTo(from, UsesRemaining.ToString() + " uses remaining"); }
public virtual string BuildMagicSingleClick() { System.Text.StringBuilder sb = new System.Text.StringBuilder(); if (AppendLootType(sb)) { sb.Append(", "); } if (m_Quality == CraftQuality.Exceptional) { sb.Append("exceptional, "); } if (m_Durability != DurabilityLevel.Regular) { sb.AppendFormat("{0}, ", m_Durability.ToString().ToLower()); } if (sb.Length > 2) { sb.Remove(sb.Length - 2, 1); // remove the last comma } AppendClickName(sb); InsertNamePrefix(sb); if (m_Protection != ArmorProtectionLevel.Regular) { sb.AppendFormat(" of {0}", m_Protection.ToString().ToLower()); } if (m_Crafter != null) { sb.AppendFormat(" (crafted by {0})", m_Crafter.Name); } return(sb.ToString()); }