Esempio n. 1
0
 protected override void OnTarget(Mobile from, object targeted)
 {
     if (targeted is LegendaryArtifactRename)
     {
         LegendaryArtifactRename knife = targeted as LegendaryArtifactRename;
         if (knife != null)
         {
             int knifeuses = knife.Charges;
             m_LegendaryArtifactRename.Charges += knifeuses;
             knife.Delete();
         }
     }
     else if (targeted is ILevelable)
     {
         m_engtarg = (Item)targeted;
         if (!m_engtarg.IsChildOf(from.Backpack))
         {
             from.SendMessage("This must be in your backpack to change its name.");
         }
         else
         {
             from.SendMessage("What name do you want to brand the legendary artifact?");
             m_LegendaryArtifactRename.Charges -= 1;
             m_LegendaryArtifactRename.InvalidateProperties();
             from.Prompt = new RenameContPrompt(m_engtarg);
         }
     }
     else
     {
         from.SendMessage("You cannot brand that.");
     }
 }
Esempio n. 2
0
 public InternalTarget(LegendaryArtifactRename engrave) : base(1, false, TargetFlags.None)
 {
     m_LegendaryArtifactRename = engrave;
 }