Example #1
0
            public PlaceSFInternalTarget(LegendaryHammer hammer, TranscriptionBook book)
                : base(-1, true, TargetFlags.None)
            {
                Hammer = hammer;

                Book = book;

                CheckLOS = false;
            }
Example #2
0
            protected override void OnTarget(Mobile from, object targeted)
            {
                var targ = targeted as LegendaryHammer;

                if (_Hammer.Deleted || _Hammer.Quantity >= Completed || targ == null)
                {
                    return;
                }

                if (_Hammer.IsChildOf(from.Backpack) && targ.IsChildOf(from.Backpack) && targ != _Hammer)
                {
                    LegendaryHammer targShard = targ;

                    if (targShard.Quantity < Completed)
                    {
                        if (targShard.Quantity + _Hammer.Quantity <= Completed)
                        {
                            targShard.Quantity += _Hammer.Quantity;
                            _Hammer.Delete();
                        }
                        else
                        {
                            int delta = Completed - targShard.Quantity;
                            targShard.Quantity += delta;
                            _Hammer.Quantity   -= delta;
                        }

                        from.Send(
                            new AsciiMessage(
                                targShard.Serial,
                                targShard.ItemID,
                                MessageType.Regular,
                                0x59,
                                3,
                                _Hammer.Name,
                                "the partially reconstructed hammer and the ancient smithing hammer piece meld together."));

                        return;
                    }
                }

                // Nothing Happens.
                from.Send(
                    new MessageLocalized(_Hammer.Serial, _Hammer.ItemID, MessageType.Regular, 0x2C, 3, 500309,
                                         _Hammer.Name, ""));
            }
Example #3
0
 public InternalTarget(LegendaryHammer hShard)
     : base(-1, false, TargetFlags.None)
 {
     _Hammer = hShard;
 }
Example #4
0
 public DisassembleEntry(LegendaryHammer legendaryHammer)
     : base(6142)
 {
     _Hammer = legendaryHammer;
 }
            public PlaceSFInternalTarget(LegendaryHammer hammer, TranscriptionBook book)
                : base(-1, true, TargetFlags.None)
            {
                Hammer = hammer;

                Book = book;

                CheckLOS = false;
            }
 public InternalTarget(LegendaryHammer hShard)
     : base(-1, false, TargetFlags.None)
 {
     _Hammer = hShard;
 }
 public DisassembleEntry(LegendaryHammer legendaryHammer)
     : base(6142)
 {
     _Hammer = legendaryHammer;
 }