public bool Dye(Mobile from, DyeTub sender)
 {
     if (Deleted || !is_dyable)
         return false;  //  Fail for !Dyable and Delete
     Hue = sender.DyedHue;
     return true;
 }
Ejemplo n.º 2
0
        public virtual bool Dye(Mobile from, DyeTub sender)
        {
            if (this.Deleted)
                return false;

            BaseHouse house = BaseHouse.FindHouseAt(this);

            if (house != null && house.IsCoOwner(from))
            {
                if (from.InRange(this.GetWorldLocation(), 1))
                {
                    this.Hue = sender.DyedHue;
                    return true;
                }
                else
                {
                    from.SendLocalizedMessage(500295); // You are too far away to do that.
                    return false;
                }
            }
            else 
            {
                return false;
            }
        }
Ejemplo n.º 3
0
        public bool Dye(Mobile from, DyeTub sender)
        {
            if (Deleted) return false;

            Hue = sender.DyedHue;

            return true;
        }
Ejemplo n.º 4
0
		public bool Dye( Mobile from, DyeTub sender )
		{
			if( Deleted || !sender.AllowDyables )
				return false;

			Hue = sender.DyedHue;

			return true;
		}
Ejemplo n.º 5
0
        public virtual bool Dye(Mobile from, DyeTub sender)
        {
            if (this.Deleted)
                return false;

            this.Hue = sender.DyedHue;

            return true;
        }
Ejemplo n.º 6
0
		public virtual bool Dye(Mobile mob, DyeTub sender)
		{
			if (mob == null || sender == null || !mob.CanSee(sender) || !sender.IsAccessibleTo(mob))
			{
				return false;
			}

			Hue = sender.DyedHue;
			return true;
		}
Ejemplo n.º 7
0
		public bool Dye( Mobile from, DyeTub sender )
		{
			if ( Deleted )
				return false;

			if ( Addon != null )
				Addon.Hue = sender.DyedHue;

			return true;
		}
Ejemplo n.º 8
0
	// Implement Dye() member... tent roofs reflect dyed bag colour

	public virtual bool Dye(Mobile from, DyeTub sender)
	{
		if( Deleted )
			return false;
		else if( RootParent is Mobile && from != RootParent )
			return false;

		Hue = sender.DyedHue;
		return true;
	}
Ejemplo n.º 9
0
        public bool Dye(Mobile from, DyeTub sender)
        {
            if (Parent != null)
            {
                Hue = sender.DyedHue;
                return true;
            }

            from.SendMessage("You cannot dye bricks from the ground.");
            return false;
        }
Ejemplo n.º 10
0
        public bool Dye( Mobile from, DyeTub sender )
        {
            if ( Deleted )
                return false;

            if ( ItemID >= 0x13A4 && ItemID <= 0x13AE )
            {
                Hue = sender.DyedHue;
                return true;
            }

            return false;
        }
Ejemplo n.º 11
0
        public bool Dye( Mobile from, DyeTub sender )
        {
            if ( Deleted )
                return false;

            if ( ItemID >= 0x13A4 && ItemID <= 0x13AE )
            {
                Hue = sender.DyedHue;
                return true;
            }

            from.SendAsciiMessage( sender.FailMessage );
            return false;
        }
Ejemplo n.º 12
0
		public override bool Dye(Mobile from, DyeTub sender)
		{
			if (from == null || sender == null || !from.CanSee(sender) || !sender.IsAccessibleTo(from))
			{
				return false;
			}

			if (!(sender is FurnitureDyeTub))
			{
				return false;
			}

			return base.Dye(from, sender);
		}
Ejemplo n.º 13
0
        public bool Dye(Mobile from, DyeTub sender)
        {
            if (this.Deleted)
                return false;

            if (this.ItemID >= 0x13A4 && this.ItemID <= 0x13AE)
            {
                this.Hue = sender.DyedHue;
                return true;
            }

            from.SendLocalizedMessage(sender.FailMessage);
            return false;
        }
Ejemplo n.º 14
0
        public bool Dye(Mobile from, DyeTub sender)
        {
            if (Deleted)
                return false;

            if (Parent != from.Backpack)
            {
                from.SendMessage(38, "It must be in your backpack for you to dye it.");
                return false;
            }

            Hue = sender.DyedHue;
            return true;
        }
Ejemplo n.º 15
0
 public virtual bool Dye( Mobile from, DyeTub sender )
 {
     return true;
 }
Ejemplo n.º 16
0
 public override bool Dye(Mobile from, DyeTub sender)
 {
     from.SendLocalizedMessage(sender.FailMessage);
     return(false);
 }
Ejemplo n.º 17
0
 public override bool Dye(Mobile from, DyeTub sender)
 {
     from.SendLocalizedMessage(1042083); // You can not dye that.
     return false;
 }
Ejemplo n.º 18
0
			public override void OnResponse( NetState sender, RelayInfo info )
			{
				if ( m_Ticket.Deleted )
					return;

				int number = 0;

				Item item = null;
				Item item2 = null;

				switch ( info.ButtonID )
				{
					case 1: item = new Sextant(); number = 1010494; break; // A sextant has been placed in your backpack.
					case 2: item = new HairRestylingDeed(); number = 501933; break; // A coupon for a free hair restyling has been placed in your backpack.
					//case 3: item = new Spellbook( 0xFFFFFFFF ); number = 1010495; break; // A spellbook with all 1st to 4th circle spells has been placed in your backpack.
					case 3: item = new FireworksWand(); number = 501935; break; // A wand of fireworks has been placed in your backpack.
					case 4: item = new Spyglass(); number = 501936; break; // A spyglass has been placed in your backpack.
					case 5: item = new DyeTub(); item2 = new Dyes(); number = 501937; break; // The dyes and dye tub have been placed in your backpack.
				}

				if ( item != null )
				{
					m_Ticket.Delete();

					m_From.SendLocalizedMessage( number );
					m_From.AddToBackpack( item );

					if ( item2 != null )
						m_From.AddToBackpack( item2 );
				}
			}
Ejemplo n.º 19
0
 public override bool Dye(Mobile from, DyeTub sender)
 {
     return(false);
 }
Ejemplo n.º 20
0
	    public bool Dye(Mobile from, DyeTub sender)
        {
            if (this != from)
                return false;

            return true;
        }
Ejemplo n.º 21
0
		public override bool Dye( Mobile from, DyeTub sender )
		{
			if (IsChildOf(from) || IsChildOf(from.BankBox) || (from.InRange(this,4) && from.InLOS(this)))
			{
			    Hue = sender.DyedHue;
                return true;
			}

			return false;
		}
Ejemplo n.º 22
0
		public virtual bool Dye(Mobile from, DyeTub sender)
		{
			if (Deleted)
				return false;
			else if (RootParent is Mobile && from != RootParent)
				return false;

            if (m_Dyable == false) // Added check for new Dyable bool
            {
                from.SendLocalizedMessage(sender.FailMessage);
                return false;
            }
            else
            {
                Hue = sender.DyedHue;

                return true;
            }
        }
Ejemplo n.º 23
0
 public override bool Dye(Mobile from, DyeTub sender)
 {
     from.SendLocalizedMessage(1042083);               // You can not dye that.
     return(false);
 }
Ejemplo n.º 24
0
        private static void FillBankbox( Mobile m )
        {
            if ( Core.AOS )
            {
                FillBankAOS( m );
                return;
            }

            BankBox bank = m.BankBox;

            bank.DropItem( new BankCheck( 1000000 ) );

            // Full spellbook
            Spellbook book = new Spellbook();

            book.Content = ulong.MaxValue;

            bank.DropItem( book );

            Bag bag = new Bag();

            for ( int i = 0; i < 5; ++i )
                bag.DropItem( new Moonstone( MoonstoneType.Felucca ) );

            // Felucca moonstones
            bank.DropItem( bag );

            bag = new Bag();

            for ( int i = 0; i < 5; ++i )
                bag.DropItem( new Moonstone( MoonstoneType.Trammel ) );

            // Trammel moonstones
            bank.DropItem( bag );

            // Treasure maps
            bank.DropItem( new TreasureMap( 1, Map.Trammel ) );
            bank.DropItem( new TreasureMap( 2, Map.Trammel ) );
            bank.DropItem( new TreasureMap( 3, Map.Trammel ) );
            bank.DropItem( new TreasureMap( 4, Map.Trammel ) );
            bank.DropItem( new TreasureMap( 5, Map.Trammel ) );

            // Bag containing 50 of each reagent
            bank.DropItem( new BagOfReagents( 50 ) );

            // Craft tools
            bank.DropItem( MakeNewbie( new Scissors() ) );
            bank.DropItem( MakeNewbie( new SewingKit( 1000 ) ) );
            bank.DropItem( MakeNewbie( new SmithHammer( 1000 ) ) );
            bank.DropItem( MakeNewbie( new FletcherTools( 1000 ) ) );
            bank.DropItem( MakeNewbie( new DovetailSaw( 1000 ) ) );
            bank.DropItem( MakeNewbie( new MortarPestle( 1000 ) ) );
            bank.DropItem( MakeNewbie( new ScribesPen( 1000 ) ) );
            bank.DropItem( MakeNewbie( new TinkerTools( 1000 ) ) );

            // A few dye tubs
            bank.DropItem( new Dyes() );
            bank.DropItem( new DyeTub() );
            bank.DropItem( new DyeTub() );
            bank.DropItem( new BlackDyeTub() );

            DyeTub darkRedTub = new DyeTub();

            darkRedTub.DyedHue = 0x485;
            darkRedTub.Redyable = false;

            bank.DropItem( darkRedTub );

            // Some food
            bank.DropItem( MakeNewbie( new Apple( 1000 ) ) );

            // Resources
            bank.DropItem( MakeNewbie( new Feather( 1000 ) ) );
            bank.DropItem( MakeNewbie( new BoltOfCloth( 1000 ) ) );
            bank.DropItem( MakeNewbie( new BlankScroll( 1000 ) ) );
            bank.DropItem( MakeNewbie( new Hides( 1000 ) ) );
            bank.DropItem( MakeNewbie( new Bandage( 1000 ) ) );
            bank.DropItem( MakeNewbie( new Bottle( 1000 ) ) );
            bank.DropItem( MakeNewbie( new Log( 1000 ) ) );

            bank.DropItem( MakeNewbie( new IronIngot( 5000 ) ) );
            bank.DropItem( MakeNewbie( new DullCopperIngot( 5000 ) ) );
            bank.DropItem( MakeNewbie( new ShadowIronIngot( 5000 ) ) );
            bank.DropItem( MakeNewbie( new CopperIngot( 5000 ) ) );
            bank.DropItem( MakeNewbie( new BronzeIngot( 5000 ) ) );
            bank.DropItem( MakeNewbie( new GoldIngot( 5000 ) ) );
            bank.DropItem( MakeNewbie( new AgapiteIngot( 5000 ) ) );
            bank.DropItem( MakeNewbie( new VeriteIngot( 5000 ) ) );
            bank.DropItem( MakeNewbie( new ValoriteIngot( 5000 ) ) );

            // Reagents
            bank.DropItem( MakeNewbie( new BlackPearl( 1000 ) ) );
            bank.DropItem( MakeNewbie( new Bloodmoss( 1000 ) ) );
            bank.DropItem( MakeNewbie( new Garlic( 1000 ) ) );
            bank.DropItem( MakeNewbie( new Ginseng( 1000 ) ) );
            bank.DropItem( MakeNewbie( new MandrakeRoot( 1000 ) ) );
            bank.DropItem( MakeNewbie( new Nightshade( 1000 ) ) );
            bank.DropItem( MakeNewbie( new SulfurousAsh( 1000 ) ) );
            bank.DropItem( MakeNewbie( new SpidersSilk( 1000 ) ) );

            // Some extra starting gold
            bank.DropItem( MakeNewbie( new Gold( 9000 ) ) );

            // 5 blank recall runes
            for ( int i = 0; i < 5; ++i )
                bank.DropItem( MakeNewbie( new RecallRune() ) );

            AddPowerScrolls( bank );
        }
Ejemplo n.º 25
0
			public InternalTarget( DyeTub tub ) : base( 1, false, TargetFlags.None )
			{
				m_Tub = tub;
			}
Ejemplo n.º 26
0
 public InternalPicker(DyeTub tub)
     : base(tub.ItemID)
 {
     m_Tub = tub;
 }
Ejemplo n.º 27
0
 public InternalPicker(DyeTub tub)
     : base(tub.ItemID)
 {
     this.m_Tub = tub;
 }
Ejemplo n.º 28
0
 public InternalTarget(DyeTub tub) : base(1, false, TargetFlags.None)
 {
     m_Tub = tub;
 }
 }// enhanced bandage
 public override bool Dye(Mobile from, DyeTub sender)
 {
     return false;
 }
Ejemplo n.º 30
0
            public override void OnResponse( NetState sender, RelayInfo info )
            {
                if ( m_Ticket.Deleted )
                    return;

                string number = "";

                Item item = null;
                Item item2 = null;

                switch ( info.ButtonID )
                {
                    case 1: item = new Sextant(); number = "A sextant has been placed in your backpack."; break;
                    case 2: item = new HairRestylingDeed(); number = "A coupon for a free hair restyling has been placed in your backpack."; break;
                    case 3: item = new Spellbook( 0xFFFFFFFF ); number = "A spellbook with all 1st to 4th circle spells has been placed in your backpack."; break;
                    case 4: item = new FireworksWand(); number = "A wand of fireworks has been placed in your backpack."; break;
                    case 5:
                    {
                        switch ( Utility.Random( 5 ) )
                        {
                            case 1:
                            {
                                item = new RangerGloves();
                                number = "A piece of ranger armor has been placed in your backpack.";
                                break;
                            }
                            case 2:
                            {
                                item = new RangerArms();
                                number = "A piece of ranger armor has been placed in your backpack.";
                                break;
                            }
                            case 3:
                            {
                                item = new RangerLegs();
                                number = "A piece of ranger armor has been placed in your backpack.";
                                break;
                            }
                            case 4:
                            {
                                item = new RangerChest();
                                number = "A piece of ranger armor has been placed in your backpack.";
                                break;
                            }
                            case 5:
                            {
                                item = new RangerGorget();
                                number = "A piece of ranger armor has been placed in your backpack.";
                                break;
                            }
                        }
                        break;
                    }
                    case 6: item = new DyeTub(); item2 = new Dyes(); number = "The dyes and dye tub have been placed in your backpack."; break;
                }

                if ( item != null )
                {
                    m_Ticket.Delete();

                    m_From.SendAsciiMessage( number );
                    m_From.AddToBackpack( item );

                    if ( item2 != null )
                        m_From.AddToBackpack( item2 );
                }
            }
Ejemplo n.º 31
0
		public override bool Dye( Mobile from, DyeTub sender )
		{
            if (Deleted)
                return false;

            Hue = sender.DyedHue;
			//from.SendLocalizedMessage( sender.FailMessage );
			return true;
		}
Ejemplo n.º 32
0
        public bool Dye(Mobile from, DyeTub sender)
        {
            if (Deleted)
            {
                return false;
            }
            else if (RootParent is Mobile && from != RootParent)
            {
                return false;
            }
            else if (Movable == true || (from == m_Owner && Movable == false))
            {
                Hue = sender.DyedHue;
                return true;
            }

            return false;
        }
			public override void OnResponse( NetState sender, RelayInfo info )
			{
				if ( m_Ticket == null || m_Ticket.Deleted || !m_Ticket.IsChildOf( sender.Mobile.Backpack ) )
					return;

				//int number = 0;

				Item item = null;
				Item item2 = null;

				switch ( info.ButtonID )
				{
					case 1: item = new EtherealHorse(); /*number = 1049368;*/ break; // You have been rewarded for your dedication to Justice!.
					case 2: item = new EtherealLlama(); /*number = 1049368;*/ break; // You have been rewarded for your dedication to Justice!.
					case 3: item = new EtherealOstard(); /*number = 1049368;*/ break; // You have been rewarded for your dedication to Justice!.
					case 4: item = new BlackHairDye(); /*number = 1049368;*/ break; // You have been rewarded for your dedication to Justice!.
					case 5: item = new HoodedShroudOfShadows(); /*number = 1049368;*/ break; // You have been rewarded for your dedication to Justice!.
					case 6: item = new DyeTub(); item2 = new Dyes(); /*number = 1049368;*/ break; // You have been rewarded for your dedication to Justice!.
				}

				if ( item != null )
				{
					m_Ticket.Delete();

					//m_From.SendLocalizedMessage( number );
					m_From.AddToBackpack( item );

					if ( item2 != null)
						m_From.AddToBackpack( item2 );
				}
			}
Ejemplo n.º 34
0
        public bool Dye(Mobile from, DyeTub sender)
        {
            if (Deleted)
                return false;

            if (RootParent is Mobile && from != RootParent)
                return false;

            if (Movable || (from == Owner && !Movable))
            {
                Hue = sender.DyedHue;
                return true;
            }

            return false;
        }
Ejemplo n.º 35
0
 public override bool Dye(Mobile from, DyeTub sender)
 {
     from.SendLocalizedMessage(sender.FailMessage);
     return false;
 }
Ejemplo n.º 36
0
 public DyeTubePicker(DyeTub tub)
     : base(tub.ItemID)
 {
     m_Tub = tub;
 }