예제 #1
0
        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);
        }
예제 #2
0
        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~.
        }
예제 #3
0
 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~.
 }
예제 #4
0
        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~
            }
        }
예제 #5
0
 public string CrafterSkill()
 {
     return(CliLoc.LocToString(RepairSkillInfo.GetInfo(m_Skill).Name));
 }