예제 #1
0
        public override void OnResponse( GameClient sender, RelayInfo info )
        {
            if ( info.ButtonID == 1 )
            {
                Mobile m = sender.Mobile;
                Item item = null;

                item = new WoodenBox();

                Container c = item as Container;
                c.Hue = 106;
                c.Name = "A Heritage Items Set";

                c.DropItem( new BlueDecorativeRugDeed() );
                c.DropItem( new BluePlainRugDeed() );
                c.DropItem( new CherryBlossomTrunkDeed() );
                c.DropItem( new CurtainsDeed() );
                c.DropItem( new AppleTreeDeed() );
                c.DropItem( new PeachTreeDeed() );
                c.DropItem( new GuillotineDeed() );
                c.DropItem( new HangingSwordsDeed() );
                c.DropItem( new IronMaidenDeed() );
                c.DropItem( new PeachTrunkDeed() );
                c.DropItem( new RedPlainRugDeed() );
                c.DropItem( new SmallFishingNetDeed() );
                c.DropItem( new SuitOfGoldArmorDeed() );
                c.DropItem( new TableWithBlueClothDeed() );
                c.DropItem( new TableWithPurpleClothDeed() );
                c.DropItem( new UnmadeBedDeed() );
                c.DropItem( new WallTorchDeed() );
                c.DropItem( new WallTorchDeed() );
                c.DropItem( new BoilingCauldronAddonDeed() );
                c.DropItem( new AppleTrunkDeed() );
                c.DropItem( new BlueFancyRugDeed() );
                c.DropItem( new CherryBlossomTreeDeed() );
                c.DropItem( new CinnamonFancyRugDeed() );
                c.DropItem( new FountainDeed() );
                c.DropItem( new GoldenDecorativeRugDeed() );
                c.DropItem( new HangingAxesDeed() );
                c.DropItem( new HouseLadderDeed() );
                c.DropItem( new LargeFishingNetDeed() );
                c.DropItem( new PinkFancyRugDeed() );
                c.DropItem( new ScarecrowDeed() );
                c.DropItem( new StoneStatueDeed() );
                c.DropItem( new SuitOfSilverArmorDeed() );
                c.DropItem( new TableWithOrangeClothDeed() );
                c.DropItem( new TableWithRedClothDeed() );
                c.DropItem( new VanityDeed() );
                c.DropItem( new WoodenCoffinDeed() );

                if ( item != null && m_Token != null )
                {
                    if ( !m.AddToBackpack( item ) )
                    {
                        if ( m.BankBox.TryDropItem( m, item, false ) )
                            item.MoveToWorld( m.Location, m.Map );
                    }

                    m_Token.Delete();
                }
            }
        }
예제 #2
0
        public override void OnResponse( GameClient sender, RelayInfo info )
        {
            if ( info.ButtonID == 1 )
            {
                Mobile m = sender.Mobile;
                Item item = null;

                item = new WoodenBox();

                Container c = item as Container;
                c.Hue = 1173;
                c.Name = "A Broken Furniture Set";

                c.DropItem( new BrokenBedDeed() );
                c.DropItem( new BrokenChestOfDrawersDeed() );
                c.DropItem( new BrokenFallenChairDeed() );
                c.DropItem( new StandingBrokenChairDeed() );
                c.DropItem( new BrokenArmoireDeed() );
                c.DropItem( new BrokenBookcaseDeed() );
                c.DropItem( new BrokenCoveredChairDeed() );
                c.DropItem( new BrokenVanityDeed() );

                if ( item != null && m_Token != null )
                {
                    if ( !m.AddToBackpack( item ) )
                    {
                        if ( m.BankBox.TryDropItem( m, item, false ) )
                            item.MoveToWorld( m.Location, m.Map );
                    }

                    m_Token.Delete();
                }
            }
        }
예제 #3
0
        public override void OnResponse( GameClient sender, RelayInfo info )
        {
            if ( info.ButtonID == 1 )
            {
                Mobile m = sender.Mobile;
                Item item = null;

                switch ( m_Token.Type )
                {
                    case PromotionalType.PersonalAttendant:
                        //item = new PersonalAttendantDeed();
                        break;
                    case PromotionalType.CrystalItems:
                        {
                            item = new WoodenBox();

                            Container c = item as Container;
                            c.Hue = 1173;
                            c.Name = "A Box of Crystal Items";

                            c.DropItem( new CrystalAltarDeed() );
                            c.DropItem( new CrystalBeggarStatueDeed() );
                            c.DropItem( new CrystalBrazierDeed() );
                            c.DropItem( new CrystalBullStatueDeed() );
                            c.DropItem( new CrystalRunnerStatueDeed() );
                            c.DropItem( new CrystalSuplicantStatueDeed() );
                            c.DropItem( new CrystalTableDeed() );
                            c.DropItem( new CrystalThroneDeed() );

                            break;
                        }
                    case PromotionalType.ShadowItems:
                        {
                            item = new WoodenBox();

                            Container c = item as Container;
                            c.Hue = 1908;
                            c.Name = "A Box of Shadow Items";

                            c.DropItem( new FireDemonStatueDeed() );
                            c.DropItem( new GlobeOfSosariaDeed() );
                            c.DropItem( new ObsidianPillarDeed() );
                            c.DropItem( new ObsidianRockDeed() );
                            c.DropItem( new ShadowAltarDeed() );
                            c.DropItem( new ShadowBannerDeed() );
                            c.DropItem( new ShadowFirePitDeed() );
                            c.DropItem( new ShadowPillarDeed() );
                            c.DropItem( new SpikeColumnDeed() );
                            c.DropItem( new SpikePostDeed() );

                            break;
                        }
                }

                if ( item != null && m_Token != null )
                {
                    if ( !m.AddToBackpack( item ) )
                    {
                        if ( m.BankBox.TryDropItem( m, item, false ) )
                            item.MoveToWorld( m.Location, m.Map );
                    }

                    m_Token.Delete();
                }
            }
        }
예제 #4
0
        public virtual bool Destroy( )
        {
            if (this == null || this.Deleted)
            {
                return(false);
            }

            if (OnBeforeDestroyed( ))
            {
                if (m_Child != null && !m_Child.Deleted && !m_Child.Alive)
                {
                    WoodenBox lootbox = new WoodenBox( );
                    lootbox.Name = this.Name + " Loot Box";

                    OnDestroyed(lootbox);

                    if (lootbox != null && !lootbox.Deleted)
                    {
                        if (DropsLoot)
                        {
                            lootbox.MoveToWorld(new Point3D(this.X, this.Y, this.Z), this.Map);
                            lootbox.AddItem(new Gold(100));
                            lootbox.Destroy();
                        }
                        else
                        {
                            lootbox.Delete( );
                        }
                    }

                    if (m_Child != null)
                    {
                        m_Child.Delete( );
                    }

                    Delete( );

                    return(true);
                }
                else
                {
                    WoodenBox lootbox = new WoodenBox( );
                    lootbox.Name = this.Name + " Loot Box";

                    OnDestroyed(lootbox);

                    if (lootbox != null && !lootbox.Deleted)
                    {
                        if (DropsLoot)
                        {
                            lootbox.MoveToWorld(new Point3D(this.X, this.Y, this.Z), this.Map);
                            lootbox.AddItem(new Gold(100));
                            lootbox.Destroy();
                        }
                        else
                        {
                            lootbox.Delete();
                        }
                    }

                    Delete( );
                    return(true);
                }
            }

            return(false);
        }
예제 #5
0
        public override void OnResponse( GameClient sender, RelayInfo info )
        {
            if ( info.ButtonID == 1 )
            {
                Mobile m = sender.Mobile;
                Item item = null;

                item = new WoodenBox();

                Container c = item as Container;
                c.Hue = 232;
                c.Name = "Evil Home Décor Collection";

                c.DropItem( new BedOfNailsDeed() );
                c.DropItem( new BoneTableDeed() );
                c.DropItem( new CreepyPortraitDeed() );
                c.DropItem( new HauntedMirrorDeed() );
                c.DropItem( new MountedPixieGreenDeed() );
                c.DropItem( new MountedPixieOrangeDeed() );
                c.DropItem( new SacrificialAltarDeed() );
                c.DropItem( new BoneCouchDeed() );
                c.DropItem( new BoneThroneDeed() );
                c.DropItem( new DisturbingPortraitDeed() );
                c.DropItem( new MountedPixieBlueDeed() );
                c.DropItem( new MountedPixieLimeDeed() );
                c.DropItem( new MountedPixieWhiteDeed() );
                c.DropItem( new UnsettlingPortraitDeed() );

                if ( item != null && m_Token != null )
                {
                    if ( !m.AddToBackpack( item ) )
                    {
                        if ( m.BankBox.TryDropItem( m, item, false ) )
                            item.MoveToWorld( m.Location, m.Map );
                    }

                    m_Token.Delete();
                }
            }
        }
예제 #6
0
        public bool Destroy( )
        {
            if( this == null || this.Deleted )
                return false;

            if( OnBeforeDestroyed( ) )
            {
                if( m_Child != null && !m_Child.Deleted && !m_Child.Alive )
                {
                    Rubble rubble = new Rubble( m_DestroyedID, this.Name );

                    if( rubble != null && !rubble.Deleted && this.Map != null && this.Map != Map.Internal )
                    {
                        rubble.MoveToWorld( this.Location, this.Map );
                    }

                    WoodenBox lootbox = new WoodenBox( );
                    lootbox.Name = this.Name + " Loot Box";

                    OnDestroyed( lootbox );

                    if( lootbox != null && !lootbox.Deleted )
                    {
                        if( DropsLoot )
                            lootbox.MoveToWorld( new Point3D( this.X, this.Y, this.Z ), this.Map );
                        else
                            lootbox.Delete( );
                    }

                    if( m_Child != null )
                        m_Child.Delete( );

                    Delete( );

                    return true;
                }
                else
                {
                    Static rubble = new Static( m_DestroyedID );

                    if( rubble != null && !rubble.Deleted && this.Map != null && this.Map != Map.Internal )
                        rubble.MoveToWorld( this.Location, this.Map );

                    WoodenBox lootbox = new WoodenBox( );
                    lootbox.Name = this.Name + " Loot Box";

                    OnDestroyed( lootbox );

                    if( lootbox != null && !lootbox.Deleted )
                    {
                        if( DropsLoot )
                            lootbox.MoveToWorld( new Point3D( this.X, this.Y, this.Z ), this.Map );
                        else
                            lootbox.Delete( );
                    }

                    Delete( );
                    return true;
                }
            }

            return false;
        }
예제 #7
0
		public virtual bool Destroy( )
		{
			if( this == null || this.Deleted )
				return false;

			if( OnBeforeDestroyed( ) )
			{
				if( m_Child != null && !m_Child.Deleted && !m_Child.Alive )
				{
					WoodenBox lootbox = new WoodenBox( );
					lootbox.Name = this.Name + " Loot Box";

					OnDestroyed( lootbox );

					if( lootbox != null && !lootbox.Deleted )
					{
						if( DropsLoot ) 
                        {
							lootbox.MoveToWorld( new Point3D( this.X, this.Y, this.Z ), this.Map );
                            lootbox.AddItem(new Gold(100));
                            lootbox.Destroy();
						}
                        else
							lootbox.Delete( );
					}

					if( m_Child != null )
						m_Child.Delete( );

					Delete( );

					return true;
				}
				else
				{
					WoodenBox lootbox = new WoodenBox( );
					lootbox.Name = this.Name + " Loot Box";

					OnDestroyed( lootbox );

					if( lootbox != null && !lootbox.Deleted )
					{
                        if (DropsLoot)
                        {
                            lootbox.MoveToWorld(new Point3D(this.X, this.Y, this.Z), this.Map);
                            lootbox.AddItem(new Gold(100));
                            lootbox.Destroy();
                        }
                        else
                            lootbox.Delete();
					}

					Delete( );
					return true;
				}
			}

			return false;
		}
예제 #8
0
        public TentSouthAddon( Mobile from )
        {
            this.Owner = from;
            AddonComponent ac;
            ac = new AddonComponent( 734 );
            AddComponent( ac, 3, 3, 0 );
            ac = new AddonComponent( 735 );
            AddComponent( ac, 2, 3, 0 );
            ac = new AddonComponent( 736 );
            AddComponent( ac, 3, 2, 0 );
            ac = new AddonComponent( 736 );
            AddComponent( ac, 3, 1, 0 );
            ac = new AddonComponent( 736 );
            AddComponent( ac, 3, 0, 0 );
            ac = new AddonComponent( 739 );
            AddComponent( ac, 3, -2, 0 );
            ac = new AddonComponent( 740 );
            AddComponent( ac, 2, -2, 0 );
            ac = new AddonComponent( 743 );
            AddComponent( ac, 1, -2, 0 );
            ac = new AddonComponent( 743 );
            AddComponent( ac, -1, -2, 0 );
            ac = new AddonComponent( 737 );
            AddComponent( ac, -2, -2, 0 );
            ac = new AddonComponent( 742 );
            AddComponent( ac, -2, -1, 0 );
            ac = new AddonComponent( 742 );
            AddComponent( ac, -2, 0, 0 );
            ac = new AddonComponent( 742 );
            AddComponent( ac, -2, 1, 0 );
            ac = new AddonComponent( 1635 );
            ac.Hue = 1341;
            AddComponent( ac, 3, 3, 25 );
            ac = new AddonComponent( 1633 );
            ac.Hue = 1341;
            AddComponent( ac, 3, 1, 25 );
            ac = new AddonComponent( 1632 );
            ac.Hue = 1341;
            AddComponent( ac, 1, 3, 25 );
            ac = new AddonComponent( 1630 );
            ac.Hue = 1341;
            AddComponent( ac, 0, 1, 25 );
            ac = new AddonComponent( 1631 );
            ac.Hue = 1341;
            AddComponent( ac, 1, 0, 25 );
            ac = new AddonComponent( 1636 );
            ac.Hue = 1341;
            AddComponent( ac, 3, 0, 25 );
            ac = new AddonComponent( 1637 );
            ac.Hue = 1341;
            AddComponent( ac, 0, 0, 25 );
            ac = new AddonComponent( 1638 );
            ac.Hue = 1341;
            AddComponent( ac, 0, 3, 25 );
            ac = new AddonComponent( 743 );
            AddComponent( ac, 0, -2, 0 );
            ac = new AddonComponent( 742 );
            AddComponent( ac, -2, 2, 0 );
            ac = new AddonComponent( 736 );
            AddComponent( ac, 3, -1, 0 );
            ac = new AddonComponent( 735 );
            AddComponent( ac, -1, 3, 0 );
            ac = new AddonComponent( 738 );
            AddComponent( ac, -2, 3, 0 );
            ac = new AddonComponent( 1633 );
            ac.Hue = 1341;
            AddComponent( ac, 3, 2, 25 );
            ac = new AddonComponent( 1632 );
            ac.Hue = 1341;
            AddComponent( ac, 2, 3, 25 );
            ac = new AddonComponent( 1630 );
            ac.Hue = 1341;
            AddComponent( ac, 0, 2, 25 );
            ac = new AddonComponent( 1631 );
            ac.Hue = 1341;
            AddComponent( ac, 2, 0, 25 );
            ac = new AddonComponent( 1635 );
            ac.Hue = 1341;
            AddComponent( ac, 2, 2, 28 );
            ac = new AddonComponent( 1636 );
            ac.Hue = 1341;
            AddComponent( ac, 2, 1, 28 );
            ac = new AddonComponent( 1637 );
            ac.Hue = 1341;
            AddComponent( ac, 1, 1, 28 );
            ac = new AddonComponent( 1638 );
            ac.Hue = 1341;
            AddComponent( ac, 1, 2, 28 );
            ac = new AddonComponent( 4012 );
            ac.Light = LightType.Circle150;
            AddComponent( ac, 1, 5, 0 );

            uint keyvalue = Convert.ToUInt32( 2 * Utility.RandomMinMax( 1, 4999 ) );
            WoodenBox pack = new WoodenBox();
            pack.MoveToWorld( this.Owner.Location );
            pack.Map = this.Owner.Map;
            pack.Y -= 1;
            pack.X -= 1;
            pack.Movable = false;
            pack.KeyValue = keyvalue;
            pack.LockLevel = 95;
            pack.RequiredSkill = 95;
            pack.ItemID = 0x9AA;

            Key key = new Key();
            key.KeyValue = keyvalue;
            pack.DropItem( key );
            this.Box = pack;

            Bedroll bedroll = new Bedroll();
            bedroll.MoveToWorld( this.Owner.Location );
            bedroll.Map = this.Owner.Map;
            bedroll.Y += 1;
            bedroll.Z -= 1;
            bedroll.ItemID = 0xA56;
            bedroll.Movable = false;
            this.Bedroll = bedroll;
        }
예제 #9
0
        public bool Destroy( )
        {
            if (this == null || this.Deleted)
            {
                return(false);
            }

            if (OnBeforeDestroyed( ))
            {
                if (m_Child != null && !m_Child.Deleted && !m_Child.Alive)
                {
                    Rubble rubble = new Rubble(m_DestroyedID, this.Name);

                    if (rubble != null && !rubble.Deleted && this.Map != null && this.Map != Map.Internal)
                    {
                        rubble.MoveToWorld(this.Location, this.Map);
                    }

                    WoodenBox lootbox = new WoodenBox( );
                    lootbox.Name = this.Name + " Loot Box";

                    OnDestroyed(lootbox);

                    if (lootbox != null && !lootbox.Deleted)
                    {
                        if (DropsLoot)
                        {
                            lootbox.MoveToWorld(new Point3D(this.X, this.Y, this.Z), this.Map);
                        }
                        else
                        {
                            lootbox.Delete( );
                        }
                    }

                    if (m_Child != null)
                    {
                        m_Child.Delete( );
                    }

                    Delete( );

                    return(true);
                }
                else
                {
                    Static rubble = new Static(m_DestroyedID);

                    if (rubble != null && !rubble.Deleted && this.Map != null && this.Map != Map.Internal)
                    {
                        rubble.MoveToWorld(this.Location, this.Map);
                    }

                    WoodenBox lootbox = new WoodenBox( );
                    lootbox.Name = this.Name + " Loot Box";

                    OnDestroyed(lootbox);

                    if (lootbox != null && !lootbox.Deleted)
                    {
                        if (DropsLoot)
                        {
                            lootbox.MoveToWorld(new Point3D(this.X, this.Y, this.Z), this.Map);
                        }
                        else
                        {
                            lootbox.Delete( );
                        }
                    }

                    Delete( );
                    return(true);
                }
            }

            return(false);
        }