public override void OnSingleClick(Mobile from) { string message = String.Empty; if (m_Crafter != null) { message = String.Format("{0}, {1}\t{2}", m_Crafter.RawName, GetSkillTitle(m_SkillLevel).ToString(), RepairSkillInfo.GetInfo(m_Skill).Name); } else { message = String.Format("{0}\t{1}", GetSkillTitle(m_SkillLevel).ToString(), RepairSkillInfo.GetInfo(m_Skill).Name); } LabelTo(from, 1061133, message); }
public override void AddNameProperty(ObjectPropertyList list) { string message = String.Empty; if (m_Crafter != null) { message = String.Format("{0}, {1}\t{2}", m_Crafter.RawName, GetSkillTitle(m_SkillLevel).ToString(), RepairSkillInfo.GetInfo(m_Skill).Name); } else { message = String.Format("{0}\t{1}", GetSkillTitle(m_SkillLevel).ToString(), RepairSkillInfo.GetInfo(m_Skill).Name); } list.Add(1061133, message); // A repair service contract from ~1_SKILL_TITLE~ ~2_SKILL_NAME~. }
public override void AddNameProperty(ObjectPropertyList list) { list.Add(1061133, String.Format("{0}\t{1}", GetSkillTitle(m_SkillLevel).ToString(), RepairSkillInfo.GetInfo(m_Skill).Name)); // A repair service contract from ~1_SKILL_TITLE~ ~2_SKILL_NAME~. }
public override void OnSingleClick(Mobile from) { if (Deleted || !from.CanSee(this)) { return; } this.LabelTo(from, 1061133, String.Format("{0}\t{1}", GetSkillTitle(m_SkillLevel).ToString(), RepairSkillInfo.GetInfo(m_Skill).Name)); // A repair service contract from ~1_SKILL_TITLE~ ~2_SKILL_NAME~. if (m_Crafter != null) { this.LabelTo(from, 1050043, m_Crafter.Name); // crafted by ~1_NAME~ } }
public string CrafterSkill() { return(CliLoc.LocToString(RepairSkillInfo.GetInfo(m_Skill).Name)); }