Ejemplo n.º 1
0
 public override void OnEquip(Mobile from)
 {
     try
     {
         LokaiSkillMod lsm = new LokaiSkillMod(Skill, Relative, ObeyCap, Value, from);
         lsm.Name = string.Format("{0}{1}{2}", Skill.ToString(), from.Name, Serial.Value);
         XmlAttach.AttachTo(from, lsm);
         LokaiSkills skills = LokaiSkillUtilities.XMLGetSkills(from);
         skills.OnLokaiSkillChange(skills[Skill]);
     }
     catch { base.OnEquip(from); }
 }
Ejemplo n.º 2
0
 public override void OnRemoved(object parent)
 {
     try
     {
         if (parent is Mobile)
         {
             Mobile from = parent as Mobile;
             XmlAttach.FindAttachmentOnMobile(from, typeof(LokaiSkillMod), string.Format("{0}{1}{2}", Skill.ToString(), from.Name, Serial.Value)).Delete();
             LokaiSkills skills = LokaiSkillUtilities.XMLGetSkills(from);
             skills.OnLokaiSkillChange(skills[Skill]);
         }
     }
     catch { base.OnRemoved(parent); }
 }
Ejemplo n.º 3
0
 public void Update()
 {
     m_Owner.OnLokaiSkillChange(this);
 }