예제 #1
0
        public LargeBulkEntry( LargeBOD owner, GenericReader reader )
        {
            m_Owner = owner;
            m_Amount = reader.ReadInt();

            Type realType = null;

            string type = reader.ReadString();

            if ( type != null )
                realType = ScriptCompiler.FindTypeByFullName( type );

            m_Details = new SmallBulkEntry( realType, reader.ReadInt(), reader.ReadInt() );
        }
예제 #2
0
        public BOBLargeEntry(LargeBOD bod)
        {
            this.m_RequireExceptional = bod.RequireExceptional;

            if (bod is LargeTailorBOD)
                this.m_DeedType = BODType.Tailor;
            else if (bod is LargeSmithBOD)
                this.m_DeedType = BODType.Smith;

            this.m_Material = bod.Material;
            this.m_AmountMax = bod.AmountMax;

            this.m_Entries = new BOBLargeSubEntry[bod.Entries.Length];

            for (int i = 0; i < this.m_Entries.Length; ++i)
                this.m_Entries[i] = new BOBLargeSubEntry(bod.Entries[i]);
        }
예제 #3
0
		public static LargeBulkEntry[] ConvertEntries( LargeBOD owner, SmallBulkEntry[] small )
		{
			LargeBulkEntry[] large = new LargeBulkEntry[small.Length];

			for ( int i = 0; i < small.Length; ++i )
				large[i] = new LargeBulkEntry( owner, small[i] );

			return large;
		}
		public LargeBODAcceptGump( Mobile from, LargeBOD deed ) : base( 50, 50 )
		{
			m_From = from;
			m_Deed = deed;

			m_From.CloseGump( typeof( LargeBODAcceptGump ) );
			m_From.CloseGump( typeof( SmallBODAcceptGump ) );

			LargeBulkEntry[] entries = deed.Entries;

			AddPage( 0 );

			AddBackground( 25, 10, 430, 240 + (entries.Length * 24), 5054 );

			AddImageTiled( 33, 20, 413, 221 + (entries.Length * 24), 2624 );
			AddAlphaRegion( 33, 20, 413, 221 + (entries.Length * 24) );

			AddImage( 20, 5, 10460 );
			AddImage( 430, 5, 10460 );
			AddImage( 20, 225 + (entries.Length * 24), 10460 );
			AddImage( 430, 225 + (entries.Length * 24), 10460 );

			AddHtmlLocalized( 180, 25, 120, 20, 1045134, 0x7FFF, false, false ); // A large bulk order

			AddHtmlLocalized( 40, 48, 350, 20, 1045135, 0x7FFF, false, false ); // Ah!  Thanks for the goods!  Would you help me out?

			AddHtmlLocalized( 40, 72, 210, 20, 1045138, 0x7FFF, false, false ); // Amount to make:
			AddLabel( 250, 72, 1152, deed.AmountMax.ToString() );

			AddHtmlLocalized( 40, 96, 120, 20, 1045137, 0x7FFF, false, false ); // Items requested:

			int y = 120;

			for ( int i = 0; i < entries.Length; ++i, y += 24 )
				AddHtmlLocalized( 40, y, 210, 20, entries[i].Details.Number, 0x7FFF, false, false );

			if ( deed.RequireExceptional || deed.Material != BulkMaterialType.None )
			{
				AddHtmlLocalized( 40, y, 210, 20, 1045140, 0x7FFF, false, false ); // Special requirements to meet:
				y += 24;

				if ( deed.RequireExceptional )
				{
					AddHtmlLocalized( 40, y, 350, 20, 1045141, 0x7FFF, false, false ); // All items must be exceptional.
					y += 24;
				}

				switch ((int)deed.Material)
				{
					case 1: AddHtml( 40, y, 350, 25, "<basefont color=#FFF000>All items must be crafted with dull copper ingots", false, false ); break;
					case 2: AddHtml( 40, y, 350, 25, "<basefont color=#FFF000>All items must be crafted with shadow iron ingots", false, false ); break;
					case 3: AddHtml( 40, y, 350, 25, "<basefont color=#FFF000>All items must be crafted with copper ingots", false, false ); break;
					case 4: AddHtml( 40, y, 350, 25, "<basefont color=#FFF000>All items must be crafted with bronze ingots", false, false ); break;
					case 5: AddHtml( 40, y, 350, 25, "<basefont color=#FFF000>All items must be crafted with gold ingots", false, false ); break;
					case 6: AddHtml( 40, y, 350, 25, "<basefont color=#FFF000>All items must be crafted with agapite ingots", false, false ); break;
					case 7: AddHtml( 40, y, 350, 25, "<basefont color=#FFF000>All items must be crafted with verite ingots", false, false ); break;
					case 8: AddHtml( 40, y, 350, 25, "<basefont color=#FFF000>All items must be crafted with valorite ingots", false, false ); break;
					case 9: AddHtml( 40, y, 350, 25, "<basefont color=#FFF000>All items must be crafted with silver ingots", false, false ); break;
					//case 10: AddHtml( 40, y, 350, 25, "<basefont color=#FFF000>All items must be crafted with platinum ingots", false, false ); break;
					//case 11: AddHtml( 40, y, 350, 25, "<basefont color=#FFF000>All items must be crafted with mythril ingots", false, false ); break;
					//case 12: AddHtml( 40, y, 350, 25, "<basefont color=#FFF000>All items must be crafted with obsidian ingots", false, false ); break;
					case 10: AddHtml( 40, y, 350, 25, "<basefont color=#FFF000>All items must be crafted with jade ingots", false, false ); break;
					case 11: AddHtml( 40, y, 350, 25, "<basefont color=#FFF000>All items must be crafted with moonstone ingots", false, false ); break;
					case 12: AddHtml( 40, y, 350, 25, "<basefont color=#FFF000>All items must be crafted with sunstone ingots", false, false ); break;
					//case 16: AddHtml( 40, y, 350, 25, "<basefont color=#FFF000>All items must be crafted with bloodstone ingots", false, false ); break;
					case 13: AddHtml( 40, y, 350, 25, "<basefont color=#FFF000>All items must be crafted with spined leather", false, false ); break;
					case 14: AddHtml( 40, y, 350, 25, "<basefont color=#FFF000>All items must be crafted with horned leather", false, false ); break;
					case 15: AddHtml( 40, y, 350, 25, "<basefont color=#FFF000>All items must be crafted with barbed leather", false, false ); break;
					case 16: AddHtml( 40, y, 350, 25, "<basefont color=#FFF000>All items must be crafted with dragon leather", false, false ); break;
					case 17: AddHtml( 40, y, 350, 25, "<basefont color=#FFF000>All items must be crafted with daemon leather", false, false ); break;
					case 18: AddHtml( 40, y, 350, 25, "<basefont color=#FF0000>All items must be crafted with pine wood", false, false ); break;
					case 19: AddHtml( 40, y, 350, 25, "<basefont color=#FF0000>All items must be crafted with ash wood", false, false ); break;
					case 20: AddHtml( 40, y, 350, 25, "<basefont color=#FF0000>All items must be crafted with mahogany wood", false, false ); break;
					case 21: AddHtml( 40, y, 350, 25, "<basefont color=#FF0000>All items must be crafted with yew wood", false, false ); break;
					case 22: AddHtml( 40, y, 350, 25, "<basefont color=#FF0000>All items must be crafted with oak wood", false, false ); break;
					
				}
				if ((int)deed.Material >= 1 && (int)deed.Material <= 35)////?///
					y += 24;
			}

			AddHtmlLocalized( 40, 192 + (entries.Length * 24), 350, 20, 1045139, 0x7FFF, false, false ); // Do you want to accept this order?

			AddButton( 100, 216 + (entries.Length * 24), 4005, 4007, 1, GumpButtonType.Reply, 0 );
			AddHtmlLocalized( 135, 216 + (entries.Length * 24), 120, 20, 1006044, 0x7FFF, false, false ); // Ok

			AddButton( 275, 216 + (entries.Length * 24), 4005, 4007, 0, GumpButtonType.Reply, 0 );
			AddHtmlLocalized( 310, 216 + (entries.Length * 24), 120, 20, 1011012, 0x7FFF, false, false ); // CANCEL
		}
예제 #5
0
파일: Rewards.cs 프로젝트: Godkong/RunUO
		public virtual int ComputeFame( LargeBOD bod )
		{
			int points = ComputePoints( bod ) / 50;

			return points * points;
		}
예제 #6
0
		public LargeBODTarget( LargeBOD deed ) : base( 18, false, TargetFlags.None )
		{
			m_Deed = deed;
		}
예제 #7
0
        public virtual int ComputeFame(LargeBOD bod)
        {
            int points = ComputePoints(bod) / 50;

            return(points * points);
        }
예제 #8
0
		public LargeBODAcceptGump( Mobile from, LargeBOD deed ) : base( 50, 50 )
		{
			m_From = from;
			m_Deed = deed;

			m_From.CloseGump( typeof( LargeBODAcceptGump ) );
			m_From.CloseGump( typeof( SmallBODAcceptGump ) );

			LargeBulkEntry[] entries = deed.Entries;

			AddPage( 0 );

			AddBackground( 25, 10, 430, 240 + (entries.Length * 24), 5054 );

			AddImageTiled( 33, 20, 413, 221 + (entries.Length * 24), 2624 );
			AddAlphaRegion( 33, 20, 413, 221 + (entries.Length * 24) );

			AddImage( 20, 5, 10460 );
			AddImage( 430, 5, 10460 );
			AddImage( 20, 225 + (entries.Length * 24), 10460 );
			AddImage( 430, 225 + (entries.Length * 24), 10460 );

			AddHtmlLocalized( 180, 25, 120, 20, 1045134, 0x7FFF, false, false ); // A large bulk order

			AddHtmlLocalized( 40, 48, 350, 20, 1045135, 0x7FFF, false, false ); // Ah!  Thanks for the goods!  Would you help me out?

			AddHtmlLocalized( 40, 72, 210, 20, 1045138, 0x7FFF, false, false ); // Amount to make:
			AddLabel( 250, 72, 1152, deed.AmountMax.ToString() );

			AddHtmlLocalized( 40, 96, 120, 20, 1045137, 0x7FFF, false, false ); // Items requested:

			int y = 120;

			for ( int i = 0; i < entries.Length; ++i, y += 24 )
				AddHtmlLocalized( 40, y, 210, 20, entries[i].Details.Number, 0x7FFF, false, false );

			if ( deed.RequireExceptional || deed.Material != BulkMaterialType.None )
			{
				AddHtmlLocalized( 40, y, 210, 20, 1045140, 0x7FFF, false, false ); // Special requirements to meet:
				y += 24;

				if ( deed.RequireExceptional )
				{
					AddHtmlLocalized( 40, y, 350, 20, 1045141, 0x7FFF, false, false ); // All items must be exceptional.
					y += 24;
				}

				if ( deed.Material != BulkMaterialType.None )
				{
					AddHtmlLocalized( 40, y, 350, 20, GetMaterialNumberFor( deed.Material ), 0x7FFF, false, false ); // All items must be made with x material.
					y += 24;
				}
			}

			AddHtmlLocalized( 40, 192 + (entries.Length * 24), 350, 20, 1045139, 0x7FFF, false, false ); // Do you want to accept this order?

			AddButton( 100, 216 + (entries.Length * 24), 4005, 4007, 1, GumpButtonType.Reply, 0 );
			AddHtmlLocalized( 135, 216 + (entries.Length * 24), 120, 20, 1006044, 0x7FFF, false, false ); // Ok

			AddButton( 275, 216 + (entries.Length * 24), 4005, 4007, 0, GumpButtonType.Reply, 0 );
			AddHtmlLocalized( 310, 216 + (entries.Length * 24), 120, 20, 1011012, 0x7FFF, false, false ); // CANCEL
		}
예제 #9
0
        public LargeBODGump(Mobile from, LargeBOD deed)
            : base(25, 25)
        {
            m_From = from;
            m_Deed = deed;

            m_From.CloseGump(typeof(LargeBODGump));
            m_From.CloseGump(typeof(SmallBODGump));

            LargeBulkEntry[] entries = deed.Entries;

            AddPage(0);

            int height = 0;

            if (BulkOrderSystem.NewSystemEnabled)
            {
                if (deed.RequireExceptional || deed.Material != BulkMaterialType.None)
                {
                    height += 24;
                }

                if (deed.RequireExceptional)
                {
                    height += 24;
                }

                if (deed.Material != BulkMaterialType.None)
                {
                    height += 24;
                }
            }

            AddBackground(50, 10, 455, 218 + height + (entries.Length * 24), 5054);

            AddImageTiled(58, 20, 438, 200 + height + (entries.Length * 24), 2624);
            AddAlphaRegion(58, 20, 438, 200 + height + (entries.Length * 24));

            AddImage(45, 5, 10460);
            AddImage(480, 5, 10460);
            AddImage(45, 203 + height + (entries.Length * 24), 10460);
            AddImage(480, 203 + height + (entries.Length * 24), 10460);

            AddHtmlLocalized(225, 25, 120, 20, 1045134, 0x7FFF, false, false); // A large bulk order

            AddHtmlLocalized(75, 48, 250, 20, 1045138, 0x7FFF, false, false);  // Amount to make:
            AddLabel(275, 48, 1152, deed.AmountMax.ToString());

            AddHtmlLocalized(75, 72, 120, 20, 1045137, 0x7FFF, false, false);  // Items requested:
            AddHtmlLocalized(275, 76, 200, 20, 1045153, 0x7FFF, false, false); // Amount finished:

            int y = 96;

            for (int i = 0; i < entries.Length; ++i)
            {
                LargeBulkEntry entry   = entries[i];
                SmallBulkEntry details = entry.Details;

                AddHtmlLocalized(75, y, 210, 20, details.Number, 0x7FFF, false, false);
                AddLabel(275, y, 0x480, entry.Amount.ToString());

                y += 24;
            }

            if (deed.RequireExceptional || deed.Material != BulkMaterialType.None)
            {
                AddHtmlLocalized(75, y, 200, 20, 1045140, 0x7FFF, false, false); // Special requirements to meet:
                y += 24;
            }

            if (deed.RequireExceptional)
            {
                AddHtmlLocalized(75, y, 300, 20, 1045141, 0x7FFF, false, false); // All items must be exceptional.
                y += 24;
            }

            if (deed.Material != BulkMaterialType.None)
            {
                AddHtmlLocalized(75, y, 300, 20, SmallBODGump.GetMaterialNumberFor(deed.Material), 0x7FFF, false, false); // All items must be made with x material.
                y += 24;
            }

            if (BulkOrderSystem.NewSystemEnabled)
            {
                BODContext c = BulkOrderSystem.GetContext((PlayerMobile)from);

                int    points = 0;
                double banked = 0.0;

                BulkOrderSystem.ComputePoints(deed, out points, out banked);

                AddHtmlLocalized(75, y, 300, 20, 1157301, String.Format("{0}\t{1}", points, banked.ToString("0.000000")), 0x7FFF, false, false); // Worth ~1_POINTS~ turn in points and ~2_POINTS~ bank points.
                y += 24;

                AddButton(125, y, 4005, 4007, 3, GumpButtonType.Reply, 0);
                AddHtmlLocalized(160, y, 300, 20, c.PointsMode == PointsMode.Enabled ? 1157302 : c.PointsMode == PointsMode.Disabled ? 1157303 : 1157309, 0x7FFF, false, false); // Banking Points Enabled/Disabled/Automatic
                y += 24;

                AddButton(125, y, 4005, 4007, 2, GumpButtonType.Reply, 0);
                AddHtmlLocalized(160, y, 300, 20, 1045154, 0x7FFF, false, false); // Combine this deed with the item requested.
                y += 24;

                AddButton(125, y, 4005, 4007, 4, GumpButtonType.Reply, 0);
                AddHtmlLocalized(160, y, 300, 20, 1157304, 0x7FFF, false, false); // Combine this deed with contained items.
                y += 24;

                AddButton(125, y, 4005, 4007, 1, GumpButtonType.Reply, 0);
                AddHtmlLocalized(160, y, 120, 20, 1011441, 0x7FFF, false, false); // EXIT
            }
            else
            {
                AddButton(125, 168 + (entries.Length * 24), 4005, 4007, 2, GumpButtonType.Reply, 0);
                AddHtmlLocalized(160, 168 + (entries.Length * 24), 300, 20, 1045155, 0x7FFF, false, false); // Combine this deed with another deed.

                AddButton(125, 192 + (entries.Length * 24), 4005, 4007, 1, GumpButtonType.Reply, 0);
                AddHtmlLocalized(160, 192 + (entries.Length * 24), 120, 20, 1011441, 0x7FFF, false, false); // EXIT
            }
        }
예제 #10
0
        public LargeBODGump(Mobile from, LargeBOD deed) : base(25, 25)
        {
            m_From = from;
            m_Deed = deed;

            m_From.CloseGump <LargeBODGump>();
            m_From.CloseGump <SmallBODGump>();

            var entries = deed.Entries;

            AddPage(0);

            AddBackground(50, 10, 455, 236 + entries.Length * 24, 5054);

            AddImageTiled(58, 20, 438, 217 + entries.Length * 24, 2624);
            AddAlphaRegion(58, 20, 438, 217 + entries.Length * 24);

            AddImage(45, 5, 10460);
            AddImage(480, 5, 10460);
            AddImage(45, 221 + entries.Length * 24, 10460);
            AddImage(480, 221 + entries.Length * 24, 10460);

            AddHtmlLocalized(225, 25, 120, 20, 1045134, 0x7FFF); // A large bulk order

            AddHtmlLocalized(75, 48, 250, 20, 1045138, 0x7FFF);  // Amount to make:
            AddLabel(275, 48, 1152, deed.AmountMax.ToString());

            AddHtmlLocalized(75, 72, 120, 20, 1045137, 0x7FFF);  // Items requested:
            AddHtmlLocalized(275, 76, 200, 20, 1045153, 0x7FFF); // Amount finished:

            var y = 96;

            for (var i = 0; i < entries.Length; ++i)
            {
                var entry   = entries[i];
                var details = entry.Details;

                AddHtmlLocalized(75, y, 210, 20, details.Number, 0x7FFF);
                AddLabel(275, y, 0x480, entry.Amount.ToString());

                y += 24;
            }

            if (deed.RequireExceptional || deed.Material != BulkMaterialType.None)
            {
                AddHtmlLocalized(75, y, 200, 20, 1045140, 0x7FFF); // Special requirements to meet:
                y += 24;
            }

            if (deed.RequireExceptional)
            {
                AddHtmlLocalized(75, y, 300, 20, 1045141, 0x7FFF); // All items must be exceptional.
                y += 24;
            }

            if (deed.Material != BulkMaterialType.None)
            {
                AddHtmlLocalized(
                    75,
                    y,
                    300,
                    20,
                    GetMaterialNumberFor(deed.Material), // All items must be made with x material.
                    0x7FFF
                    );
            }

            AddButton(125, 168 + entries.Length * 24, 4005, 4007, 2);

            AddHtmlLocalized(
                160,
                168 + entries.Length * 24,
                300,
                20,
                1045155, // Combine this deed with another deed.
                0x7FFF
                );

            AddButton(125, 192 + entries.Length * 24, 4005, 4007, 1);
            AddHtmlLocalized(160, 192 + entries.Length * 24, 120, 20, 1011441, 0x7FFF); // EXIT
        }
예제 #11
0
        public LargeBODAcceptGump(Mobile from, LargeBOD deed)
            : base(50, 50)
        {
            m_From = from;
            m_Deed = deed;

            m_From.CloseGump <LargeBODAcceptGump>();
            m_From.CloseGump <SmallBODAcceptGump>();

            LargeBulkEntry[] entries = deed.Entries;

            bool enlarge = deed.RequireExceptional || deed.Material != BulkMaterialType.None;

            AddPage(0);

            AddBackground(25, 10, 430, (enlarge ? 240 : 168) + (entries.Length * 24), 5054);

            AddImageTiled(33, 20, 413, (enlarge ? 221 : 149) + (entries.Length * 24), 2624);
            AddAlphaRegion(33, 20, 413, (enlarge ? 221 : 149) + (entries.Length * 24));

            AddImage(20, 5, 10460);
            AddImage(430, 5, 10460);
            AddImage(20, (enlarge ? 225 : 153) + (entries.Length * 24), 10460);
            AddImage(430, (enlarge ? 225 : 153) + (entries.Length * 24), 10460);

            AddHtmlLocalized(40, 48, 350, 20, 1045135, 0xFFFFFF, false, false);               // Ah!  Thanks for the goods!  Would you help me out?
            AddHtmlLocalized(40, 72, 210, 20, 1045138, 0xFFFFFF, false, false);               // Amount to make:
            AddLabel(250, 72, 1152, deed.AmountMax.ToString());

            AddHtmlLocalized(40, (enlarge ? 192 : 120) + (entries.Length * 24), 350, 20, 1045139, 0xFFFFFF, false, false);                   // Do you want to accept this order?

            AddHtmlLocalized(135, (enlarge ? 216 : 144) + (entries.Length * 24), 120, 20, 1006044, 0xFFFFFF, false, false);                  // OK
            AddHtmlLocalized(310, (enlarge ? 216 : 144) + (entries.Length * 24), 120, 20, 1011012, 0xFFFFFF, false, false);                  // CANCEL

            AddButton(100, (enlarge ? 216 : 144) + (entries.Length * 24), 4005, 4007, 1, GumpButtonType.Reply, 0);
            AddButton(275, (enlarge ? 216 : 144) + (entries.Length * 24), 4005, 4007, 0, GumpButtonType.Reply, 0);

            AddHtmlLocalized(180, 25, 120, 20, 1045134, 0xFFFFFF, false, false);              // A large bulk order
            AddHtmlLocalized(40, 96, 120, 20, 1045137, 0xFFFFFF, false, false);               // Items requested:

            int y = 120 + entries.Length * 24;

            if (enlarge)
            {
                int krobjects = 2;

                AddHtmlLocalized(40, y, 210, 20, 1045140, 0xFFFFFF, false, false);                   // Special requirements to meet:
                y += 24;

                if (deed.RequireExceptional)
                {
                    AddHtmlLocalized(40, y, 350, 20, 1045141, 0xFFFFFF, false, false);                       // All items must be exceptional.
                    y += 24;
                    krobjects--;
                }

                if (deed.Material != BulkMaterialType.None)
                {
                    AddHtmlLocalized(40, y, 350, 20, GetMaterialNumberFor(deed.Material), 0xFFFFFF, false, false);                         // All items must be made with x material.
                    y += 24;
                    krobjects--;
                }

                while (krobjects > 0)
                {
                    AddKRHtmlLocalized(0, 0, 0, 0, -1, false, false);
                    krobjects--;
                }
            }
            else
            {
                AddKRHtmlLocalized(0, 0, 0, 0, -1, false, false);
                AddKRHtmlLocalized(0, 0, 0, 0, -1, false, false);
                AddKRHtmlLocalized(0, 0, 0, 0, -1, false, false);
            }

            AddKRHtmlLocalized(0, 0, 0, 0, -1, false, false);

            y = 120;

            for (int i = 0; i < entries.Length; ++i, y += 24)
            {
                AddHtmlLocalized(40, y, 210, 20, entries[i].Details.Number, 0xFFFFFF, false, false);
            }
        }
예제 #12
0
		public virtual int ComputeFame( LargeBOD bod )
		{
			return ComputePoints( bod );
		}
        public LargeBODAcceptGump(Mobile from, LargeBOD deed) : base(50, 50)
        {
            m_From = from;
            m_Deed = deed;

            m_From.CloseGump(typeof(LargeBODAcceptGump));
            m_From.CloseGump(typeof(SmallBODAcceptGump));

            LargeBulkEntry[] entries = deed.Entries;

            AddPage(0);

            AddBackground(25, 10, 430, 240 + (entries.Length * 24), 5054);

            AddImageTiled(33, 20, 413, 221 + (entries.Length * 24), 2624);
            AddAlphaRegion(33, 20, 413, 221 + (entries.Length * 24));

            AddImage(20, 5, 10460);
            AddImage(430, 5, 10460);
            AddImage(20, 225 + (entries.Length * 24), 10460);
            AddImage(430, 225 + (entries.Length * 24), 10460);

            AddHtmlLocalized(180, 25, 120, 20, 1045134, 0x7FFF, false, false);              // A large bulk order

            AddHtmlLocalized(40, 48, 350, 20, 1045135, 0x7FFF, false, false);               // Ah!  Thanks for the goods!  Would you help me out?

            AddHtmlLocalized(40, 72, 210, 20, 1045138, 0x7FFF, false, false);               // Amount to make:
            AddLabel(250, 72, 1152, deed.AmountMax.ToString());

            AddHtmlLocalized(40, 96, 120, 20, 1045137, 0x7FFF, false, false);               // Items requested:

            int y = 120;

            for (int i = 0; i < entries.Length; ++i, y += 24)
            {
                m_Item = (Item)Activator.CreateInstance(entries[i].Details.Type);

                if (m_Item.Name == null)
                {
                    AddHtmlLocalized(40, y, 210, 20, entries[i].Details.Number, 0x7FFF, false, false);
                }
                else
                {
                    AddHtml(40, y, 210, 20, "<basefont color=WHITE>" + m_Item.Name, false, false);
                }

                m_Item.Delete();
            }

            if (deed.RequireExceptional || deed.Material != BulkMaterialType.None)
            {
                AddHtmlLocalized(40, y, 210, 20, 1045140, 0x7FFF, false, false);                   // Special requirements to meet:
                y += 24;

                if (deed.RequireExceptional)
                {
                    AddHtmlLocalized(40, y, 350, 20, 1045141, 0x7FFF, false, false);                       // All items must be exceptional.
                    y += 24;
                }

                if (deed.Material != BulkMaterialType.None && deed.Material >= BulkMaterialType.Spined)
                {
                    AddHtmlLocalized(40, y, 350, 20, GetMaterialNumberFor(deed.Material), 0x7FFF, false, false);                         // All items must be made with x material.
                    y += 24;
                }
                else
                {
                    switch ((int)deed.Material)
                    {
                    case 1: AddHtml(40, y, 350, 25, "<basefont color=WHITE>All items must be crafted with dull copper ingots", false, false); break;

                    case 2: AddHtml(40, y, 350, 25, "<basefont color=WHITE>All items must be crafted with shadow iron ingots", false, false); break;

                    case 3: AddHtml(40, y, 350, 25, "<basefont color=WHITE>All items must be crafted with copper ingots", false, false); break;

                    case 4: AddHtml(40, y, 350, 25, "<basefont color=WHITE>All items must be crafted with bronze ingots", false, false); break;

                    case 5: AddHtml(40, y, 350, 25, "<basefont color=WHITE>All items must be crafted with gold ingots", false, false); break;

                    case 6: AddHtml(40, y, 350, 25, "<basefont color=WHITE>All items must be crafted with agapite ingots", false, false); break;

                    case 7: AddHtml(40, y, 350, 25, "<basefont color=WHITE>All items must be crafted with verite ingots", false, false); break;

                    case 8: AddHtml(40, y, 350, 25, "<basefont color=WHITE>All items must be crafted with valorite ingots", false, false); break;

                    case 9: AddHtml(40, y, 350, 25, "<basefont color=WHITE>All items must be crafted with pine", false, false); break;

                    case 10: AddHtml(40, y, 350, 25, "<basefont color=WHITE>All items must be crafted with redwood", false, false); break;

                    case 11: AddHtml(40, y, 350, 25, "<basefont color=WHITE>All items must be crafted with white pine", false, false); break;

                    case 12: AddHtml(40, y, 350, 25, "<basefont color=WHITE>All items must be crafted with ashwood", false, false); break;

                    case 13: AddHtml(40, y, 350, 25, "<basefont color=WHITE>All items must be crafted with silver birch", false, false); break;

                    case 14: AddHtml(40, y, 350, 25, "<basefont color=WHITE>All items must be crafted with yew", false, false); break;

                    case 15: AddHtml(40, y, 350, 25, "<basefont color=WHITE>All items must be crafted with black oak", false, false); break;
                    }
                }
            }

            AddHtmlLocalized(40, 192 + (entries.Length * 24), 350, 20, 1045139, 0x7FFF, false, false);               // Do you want to accept this order?

            AddHtml(320, 25, 210, 20, "<basefont color=YELLOW> 5000 gold", false, false);
            AddButton(100, 216 + (entries.Length * 24), 4005, 4007, 1, GumpButtonType.Reply, 0);
            AddHtmlLocalized(135, 216 + (entries.Length * 24), 120, 20, 1006044, 0x7FFF, false, false);               // Ok

            AddButton(275, 216 + (entries.Length * 24), 4005, 4007, 0, GumpButtonType.Reply, 0);
            AddHtmlLocalized(310, 216 + (entries.Length * 24), 120, 20, 1011012, 0x7FFF, false, false);               // CANCEL
        }
예제 #14
0
 public virtual int ComputeGold(LargeBOD bod) =>
 ComputeGold(bod.AmountMax, bod.RequireExceptional, bod.Material, bod.Entries.Length,
             bod.Entries[0].Details.Type);
예제 #15
0
        public LargeBODGump(Mobile from, LargeBOD deed) : base(25, 25)
        {
            m_From = from;
            m_Deed = deed;

            m_From.CloseGump(typeof(LargeBODGump));
            m_From.CloseGump(typeof(SmallBODGump));

            LargeBulkEntry[] entries = deed.Entries;

            AddPage(0);

            AddBackground(50, 10, 455, 236 + (entries.Length * 24), 5054);

            AddImageTiled(58, 20, 438, 217 + (entries.Length * 24), 2624);
            AddAlphaRegion(58, 20, 438, 217 + (entries.Length * 24));

            AddImage(45, 5, 10460);
            AddImage(480, 5, 10460);
            AddImage(45, 221 + (entries.Length * 24), 10460);
            AddImage(480, 221 + (entries.Length * 24), 10460);

            AddHtmlLocalized(225, 25, 120, 20, 1045134, 0x7FFF, false, false);              // A large bulk order

            AddHtmlLocalized(75, 48, 250, 20, 1045138, 0x7FFF, false, false);               // Amount to make:
            AddLabel(275, 48, 1152, deed.AmountMax.ToString());

            AddHtmlLocalized(75, 72, 120, 20, 1045137, 0x7FFF, false, false);               // Items requested:
            AddHtmlLocalized(275, 76, 200, 20, 1045153, 0x7FFF, false, false);              // Amount finished:

            int y = 96;

            for (int i = 0; i < entries.Length; ++i)
            {
                LargeBulkEntry entry   = entries[i];
                SmallBulkEntry details = entry.Details;

                AddHtmlLocalized(75, y, 210, 20, details.Number, 0x7FFF, false, false);
                AddLabel(275, y, 0x480, entry.Amount.ToString());

                y += 24;
            }

            if (deed.RequireExceptional || deed.Material != BulkMaterialType.None)
            {
                AddHtmlLocalized(75, y, 200, 20, 1045140, 0x7FFF, false, false);                   // Special requirements to meet:
                y += 24;
            }

            if (deed.RequireExceptional)
            {
                AddHtmlLocalized(75, y, 300, 20, 1045141, 0x7FFF, false, false);                   // All items must be exceptional.
                y += 24;
            }

            switch ((int)deed.Material)
            {
            case 1: AddHtml(75, y, 400, 25, "<basefont color=#FFF000>All items must be crafted with dull copper ingots", false, false); break;

            case 2: AddHtml(75, y, 400, 25, "<basefont color=#FFF000>All items must be crafted with shadow iron ingots", false, false); break;

            case 3: AddHtml(75, y, 400, 25, "<basefont color=#FFF000>All items must be crafted with copper ingots", false, false); break;

            case 4: AddHtml(75, y, 400, 25, "<basefont color=#FFF000>All items must be crafted with bronze ingots", false, false); break;

            case 5: AddHtml(75, y, 400, 25, "<basefont color=#FFF000>All items must be crafted with gold ingots", false, false); break;

            case 6: AddHtml(75, y, 400, 25, "<basefont color=#FFF000>All items must be crafted with agapite ingots", false, false); break;

            case 7: AddHtml(75, y, 400, 25, "<basefont color=#FFF000>All items must be crafted with verite ingots", false, false); break;

            case 8: AddHtml(75, y, 400, 25, "<basefont color=#FFF000>All items must be crafted with valorite ingots", false, false); break;

            case 9: AddHtml(75, y, 400, 25, "<basefont color=#FFF000>All items must be crafted with silver ingots", false, false); break;

            //case 10: AddHtml( 75, y, 400, 25, "<basefont color=#FFF000>All items must be crafted with platinum ingots", false, false ); break;
            //case 11: AddHtml( 75, y, 400, 25, "<basefont color=#FFF000>All items must be crafted with mythril ingots", false, false ); break;
            //case 12: AddHtml( 75, y, 400, 25, "<basefont color=#FFF000>All items must be crafted with obsidian ingots", false, false ); break;
            case 10: AddHtml(75, y, 400, 25, "<basefont color=#FFF000>All items must be crafted with jade ingots", false, false); break;

            case 11: AddHtml(75, y, 400, 25, "<basefont color=#FFF000>All items must be crafted with moonstone ingots", false, false); break;

            case 12: AddHtml(75, y, 400, 25, "<basefont color=#FFF000>All items must be crafted with sunstone ingots", false, false); break;

            //case 16: AddHtml( 75, y, 400, 25, "<basefont color=#FFF000>All items must be crafted with bloodstone ingots", false, false ); break;
            case 13: AddHtml(75, y, 400, 25, "<basefont color=#FFF000>All items must be crafted with spined leather", false, false); break;

            case 14: AddHtml(75, y, 400, 25, "<basefont color=#FFF000>All items must be crafted with horned leather", false, false); break;

            case 15: AddHtml(75, y, 400, 25, "<basefont color=#FFF000>All items must be crafted with barbed leather", false, false); break;

            case 16: AddHtml(75, y, 400, 25, "<basefont color=#FFF000>All items must be crafted with dragon leather", false, false); break;

            case 17: AddHtml(75, y, 400, 25, "<basefont color=#FFF000>All items must be crafted with daemon leather", false, false); break;

            case 18: AddHtml(75, y, 400, 25, "<basefont color=#FF0000>All items must be crafted with pine wood", false, false); break;

            case 19: AddHtml(75, y, 400, 25, "<basefont color=#FF0000>All items must be crafted with ash wood", false, false); break;

            case 20: AddHtml(75, y, 400, 25, "<basefont color=#FF0000>All items must be crafted with mohogany wood", false, false); break;

            case 21: AddHtml(75, y, 400, 25, "<basefont color=#FF0000>All items must be crafted with yew wood", false, false); break;

            case 22: AddHtml(75, y, 400, 25, "<basefont color=#FF0000>All items must be crafted with oak wood", false, false); break;
            }
            if ((int)deed.Material >= 1 && (int)deed.Material <= 35)
            {
                y += 24;
            }

            if (!deed.Complete)
            {
                AddButton(90, 168 + (entries.Length * 24), 4005, 4007, 2, GumpButtonType.Reply, 0);
                AddHtmlLocalized(125, 168 + (entries.Length * 24), 300, 20, 1045155, 0x7FFF, false, false);                   // Combine this deed with another deed.
            }
            else
            {
                if (deed is LargeSmithBOD)
                {
                    AddButton(90, 168 + (entries.Length * 24), 4005, 4007, 3, GumpButtonType.Reply, 0);
                }
                else if (deed is LargeTailorBOD)
                {
                    AddButton(90, 168 + (entries.Length * 24), 4005, 4007, 4, GumpButtonType.Reply, 0);
                }
                AddLabel(125, 168 + (entries.Length * 24), 0x480, "Claim your reward (must be near the apropriate vendor)");                   //claim the bod reward near a vendor
            }

            AddButton(90, 192 + (entries.Length * 24), 4005, 4007, 1, GumpButtonType.Reply, 0);
            AddHtmlLocalized(125, 192 + (entries.Length * 24), 120, 20, 1011441, 0x7FFF, false, false);               // EXIT
        }
예제 #16
0
		public LargeBulkEntry( LargeBOD owner, SmallBulkEntry details )
		{
			m_Owner = owner;
			m_Details = details;
		}
예제 #17
0
 public LargeBulkEntry(LargeBOD owner, SmallBulkEntry details)
 {
     this.m_Owner   = owner;
     this.m_Details = details;
 }
예제 #18
0
 public virtual int ComputeFame(LargeBOD bod)
 {
     return(ComputePoints(bod));
 }
예제 #19
0
 public LargeBODTarget(LargeBOD deed) : base(18, false, TargetFlags.None)
 {
     m_Deed = deed;
 }
예제 #20
0
        public LargeBODAcceptGump(Mobile from, LargeBOD deed) : base(50, 50)
        {
            m_From = from;
            m_Deed = deed;

            m_From.CloseGump <LargeBODAcceptGump>();
            m_From.CloseGump <SmallBODAcceptGump>();

            var entries = deed.Entries;

            AddPage(0);

            AddBackground(25, 10, 430, 240 + entries.Length * 24, 5054);

            AddImageTiled(33, 20, 413, 221 + entries.Length * 24, 2624);
            AddAlphaRegion(33, 20, 413, 221 + entries.Length * 24);

            AddImage(20, 5, 10460);
            AddImage(430, 5, 10460);
            AddImage(20, 225 + entries.Length * 24, 10460);
            AddImage(430, 225 + entries.Length * 24, 10460);

            AddHtmlLocalized(180, 25, 120, 20, 1045134, 0x7FFF); // A large bulk order

            AddHtmlLocalized(40, 48, 350, 20, 1045135, 0x7FFF);  // Ah!  Thanks for the goods!  Would you help me out?

            AddHtmlLocalized(40, 72, 210, 20, 1045138, 0x7FFF);  // Amount to make:
            AddLabel(250, 72, 1152, deed.AmountMax.ToString());

            AddHtmlLocalized(40, 96, 120, 20, 1045137, 0x7FFF); // Items requested:

            var y = 120;

            for (var i = 0; i < entries.Length; ++i, y += 24)
            {
                AddHtmlLocalized(40, y, 210, 20, entries[i].Details.Number, 0x7FFF);
            }

            if (deed.RequireExceptional || deed.Material != BulkMaterialType.None)
            {
                AddHtmlLocalized(40, y, 210, 20, 1045140, 0x7FFF); // Special requirements to meet:
                y += 24;

                if (deed.RequireExceptional)
                {
                    AddHtmlLocalized(40, y, 350, 20, 1045141, 0x7FFF); // All items must be exceptional.
                    y += 24;
                }

                if (deed.Material != BulkMaterialType.None)
                {
                    AddHtmlLocalized(
                        40,
                        y,
                        350,
                        20,
                        GetMaterialNumberFor(deed.Material), // All items must be made with x material.
                        0x7FFF
                        );
                }
            }

            // Do you want to accept this order?
            AddHtmlLocalized(40, 192 + entries.Length * 24, 350, 20, 1045139, 0x7FFF);

            // Ok
            AddButton(100, 216 + entries.Length * 24, 4005, 4007, 1);
            AddHtmlLocalized(135, 216 + entries.Length * 24, 120, 20, 1006044, 0x7FFF);

            // CANCEL
            AddButton(275, 216 + entries.Length * 24, 4005, 4007, 0);
            AddHtmlLocalized(310, 216 + entries.Length * 24, 120, 20, 1011012, 0x7FFF);
        }
예제 #21
0
        public LargeBODAcceptGump(Mobile from, LargeBOD deed)
            : base(50, 50)
        {
            this.m_From = from;
            this.m_Deed = deed;

            this.m_From.CloseGump(typeof(LargeBODAcceptGump));
            this.m_From.CloseGump(typeof(SmallBODAcceptGump));

            LargeBulkEntry[] entries = deed.Entries;

            this.AddPage(0);

            this.AddBackground(25, 10, 430, 240 + (entries.Length * 24), 5054);

            this.AddImageTiled(33, 20, 413, 221 + (entries.Length * 24), 2624);
            this.AddAlphaRegion(33, 20, 413, 221 + (entries.Length * 24));

            this.AddImage(20, 5, 10460);
            this.AddImage(430, 5, 10460);
            this.AddImage(20, 225 + (entries.Length * 24), 10460);
            this.AddImage(430, 225 + (entries.Length * 24), 10460);

            this.AddHtmlLocalized(180, 25, 120, 20, 1045134, 0x7FFF, false, false); // A large bulk order

            this.AddHtmlLocalized(40, 48, 350, 20, 1045135, 0x7FFF, false, false);  // Ah!  Thanks for the goods!  Would you help me out?

            this.AddHtmlLocalized(40, 72, 210, 20, 1045138, 0x7FFF, false, false);  // Amount to make:
            this.AddLabel(250, 72, 1152, deed.AmountMax.ToString());

            this.AddHtmlLocalized(40, 96, 120, 20, 1045137, 0x7FFF, false, false); // Items requested:

            int y = 120;

            for (int i = 0; i < entries.Length; ++i, y += 24)
            {
                this.AddHtmlLocalized(40, y, 210, 20, entries[i].Details.Number, 0x7FFF, false, false);
            }

            if (deed.RequireExceptional || deed.Material != BulkMaterialType.None)
            {
                this.AddHtmlLocalized(40, y, 210, 20, 1045140, 0x7FFF, false, false); // Special requirements to meet:
                y += 24;

                if (deed.RequireExceptional)
                {
                    this.AddHtmlLocalized(40, y, 350, 20, 1045141, 0x7FFF, false, false); // All items must be exceptional.
                    y += 24;
                }

                if (deed.Material != BulkMaterialType.None)
                {
                    this.AddHtmlLocalized(40, y, 350, 20, SmallBODGump.GetMaterialNumberFor(deed.Material), 0x7FFF, false, false); // All items must be made with x material.
                    y += 24;
                }
            }

            this.AddHtmlLocalized(40, 192 + (entries.Length * 24), 350, 20, 1045139, 0x7FFF, false, false); // Do you want to accept this order?

            this.AddButton(100, 216 + (entries.Length * 24), 4005, 4007, 1, GumpButtonType.Reply, 0);
            this.AddHtmlLocalized(135, 216 + (entries.Length * 24), 120, 20, 1006044, 0x7FFF, false, false); // Ok

            this.AddButton(275, 216 + (entries.Length * 24), 4005, 4007, 0, GumpButtonType.Reply, 0);
            this.AddHtmlLocalized(310, 216 + (entries.Length * 24), 120, 20, 1011012, 0x7FFF, false, false); // CANCEL
        }
예제 #22
0
		public LargeBODGump( Mobile from, LargeBOD deed ) : base( 25, 25 )
		{
			m_From = from;
			m_Deed = deed;

			m_From.CloseGump( typeof( LargeBODGump ) );
			m_From.CloseGump( typeof( SmallBODGump ) );

			LargeBulkEntry[] entries = deed.Entries;

			AddPage( 0 );

			AddBackground( 50, 10, 455, 236 + (entries.Length * 24), 5054 );

			AddImageTiled( 58, 20, 438, 217 + (entries.Length * 24), 2624 );
			AddAlphaRegion( 58, 20, 438, 217 + (entries.Length * 24) );

			AddImage( 45, 5, 10460 );
			AddImage( 480, 5, 10460 );
			AddImage( 45, 221 + (entries.Length * 24), 10460 );
			AddImage( 480, 221 + (entries.Length * 24), 10460 );

			AddHtmlLocalized( 225, 25, 120, 20, 1045134, 0x7FFF, false, false ); // A large bulk order

			AddHtmlLocalized( 75, 48, 250, 20, 1045138, 0x7FFF, false, false ); // Amount to make:
			AddLabel( 275, 48, 1152, deed.AmountMax.ToString() );

			AddHtmlLocalized( 75, 72, 120, 20, 1045137, 0x7FFF, false, false ); // Items requested:
			AddHtmlLocalized( 275, 76, 200, 20, 1045153, 0x7FFF, false, false ); // Amount finished:

			int y = 96;

			for ( int i = 0; i < entries.Length; ++i )
			{
				LargeBulkEntry entry = entries[i];
				SmallBulkEntry details = entry.Details;

				AddHtmlLocalized( 75, y, 210, 20, details.Number, 0x7FFF, false, false );
				AddLabel( 275, y, 0x480, entry.Amount.ToString() );

				y += 24;
			}

			if ( deed.RequireExceptional || deed.Material != BulkMaterialType.None )
			{
				AddHtmlLocalized( 75, y, 200, 20, 1045140, 0x7FFF, false, false ); // Special requirements to meet:
				y += 24;
			}

			if ( deed.RequireExceptional )
			{
				AddHtmlLocalized( 75, y, 300, 20, 1045141, 0x7FFF, false, false ); // All items must be exceptional.
				y += 24;
			}

			switch ((int)deed.Material)
			{
								case 1: AddHtml( 75, y, 400, 25, "<basefont color=#FFF000>All items must be crafted with dull copper ingots", false, false ); break;
				case 2: AddHtml( 75, y, 400, 25, "<basefont color=#FFF000>All items must be crafted with shadow iron ingots", false, false ); break;
				case 3: AddHtml( 75, y, 400, 25, "<basefont color=#FFF000>All items must be crafted with copper ingots", false, false ); break;
				case 4: AddHtml( 75, y, 400, 25, "<basefont color=#FFF000>All items must be crafted with bronze ingots", false, false ); break;
				case 5: AddHtml( 75, y, 400, 25, "<basefont color=#FFF000>All items must be crafted with gold ingots", false, false ); break;
				case 6: AddHtml( 75, y, 400, 25, "<basefont color=#FFF000>All items must be crafted with agapite ingots", false, false ); break;
				case 7: AddHtml( 75, y, 400, 25, "<basefont color=#FFF000>All items must be crafted with verite ingots", false, false ); break;
				case 8: AddHtml( 75, y, 400, 25, "<basefont color=#FFF000>All items must be crafted with valorite ingots", false, false ); break;
				case 9: AddHtml( 75, y, 400, 25, "<basefont color=#FFF000>All items must be crafted with silver ingots", false, false ); break;
				//case 10: AddHtml( 75, y, 400, 25, "<basefont color=#FFF000>All items must be crafted with platinum ingots", false, false ); break;
				//case 11: AddHtml( 75, y, 400, 25, "<basefont color=#FFF000>All items must be crafted with mythril ingots", false, false ); break;
				//case 12: AddHtml( 75, y, 400, 25, "<basefont color=#FFF000>All items must be crafted with obsidian ingots", false, false ); break;
				case 10: AddHtml( 75, y, 400, 25, "<basefont color=#FFF000>All items must be crafted with jade ingots", false, false ); break;
				case 11: AddHtml( 75, y, 400, 25, "<basefont color=#FFF000>All items must be crafted with moonstone ingots", false, false ); break;
				case 12: AddHtml( 75, y, 400, 25, "<basefont color=#FFF000>All items must be crafted with sunstone ingots", false, false ); break;
				//case 16: AddHtml( 75, y, 400, 25, "<basefont color=#FFF000>All items must be crafted with bloodstone ingots", false, false ); break;
				case 13: AddHtml( 75, y, 400, 25, "<basefont color=#FFF000>All items must be crafted with spined leather", false, false ); break;
				case 14: AddHtml( 75, y, 400, 25, "<basefont color=#FFF000>All items must be crafted with horned leather", false, false ); break;
				case 15: AddHtml( 75, y, 400, 25, "<basefont color=#FFF000>All items must be crafted with barbed leather", false, false ); break;
				case 16: AddHtml( 75, y, 400, 25, "<basefont color=#FFF000>All items must be crafted with dragon leather", false, false ); break;
				case 17: AddHtml( 75, y, 400, 25, "<basefont color=#FFF000>All items must be crafted with daemon leather", false, false ); break;
				case 18: AddHtml( 75, y, 400, 25, "<basefont color=#FF0000>All items must be crafted with pine wood", false, false ); break;
				case 19: AddHtml( 75, y, 400, 25, "<basefont color=#FF0000>All items must be crafted with ash wood", false, false ); break;
				case 20: AddHtml( 75, y, 400, 25, "<basefont color=#FF0000>All items must be crafted with mohogany wood", false, false ); break;
				case 21: AddHtml( 75, y, 400, 25, "<basefont color=#FF0000>All items must be crafted with yew wood", false, false ); break;
				case 22: AddHtml( 75, y, 400, 25, "<basefont color=#FF0000>All items must be crafted with oak wood", false, false ); break;
				
			}
			if ((int)deed.Material >= 1 && (int)deed.Material <= 35)
				y += 24;

			if ( !deed.Complete )
			{
				AddButton( 90, 168 + (entries.Length * 24), 4005, 4007, 2, GumpButtonType.Reply, 0 );
				AddHtmlLocalized( 125, 168 + (entries.Length * 24), 300, 20, 1045155, 0x7FFF, false, false ); // Combine this deed with another deed.
			}
			else 
			{
				if ( deed is LargeSmithBOD )
					AddButton( 90, 168 + (entries.Length * 24), 4005, 4007, 3, GumpButtonType.Reply, 0 );
				else if ( deed is LargeTailorBOD )
					AddButton( 90, 168 + (entries.Length * 24), 4005, 4007, 4, GumpButtonType.Reply, 0 );
				AddLabel( 125, 168 + (entries.Length * 24), 0x480, "Claim your reward (must be near the apropriate vendor)" ); //claim the bod reward near a vendor
			}

			AddButton( 90, 192 + (entries.Length * 24), 4005, 4007, 1, GumpButtonType.Reply, 0 );
			AddHtmlLocalized( 125, 192 + (entries.Length * 24), 120, 20, 1011441, 0x7FFF, false, false ); // EXIT
		}
예제 #23
0
 public virtual int ComputePoints(LargeBOD bod)
 {
     return(ComputePoints(bod.AmountMax, bod.RequireExceptional, bod.Material, bod.Entries.Length, bod.Entries[0].Details.Type));
 }
예제 #24
0
        public LargeBODGump(Mobile from, LargeBOD deed)
            : base(25, 25)
        {
            this.m_From = from;
            this.m_Deed = deed;

            this.m_From.CloseGump(typeof(LargeBODGump));
            this.m_From.CloseGump(typeof(SmallBODGump));

            LargeBulkEntry[] entries = deed.Entries;

            this.AddPage(0);

            this.AddBackground(50, 10, 455, 236 + (entries.Length * 24), 5054);

            this.AddImageTiled(58, 20, 438, 217 + (entries.Length * 24), 2624);
            this.AddAlphaRegion(58, 20, 438, 217 + (entries.Length * 24));

            this.AddImage(45, 5, 10460);
            this.AddImage(480, 5, 10460);
            this.AddImage(45, 221 + (entries.Length * 24), 10460);
            this.AddImage(480, 221 + (entries.Length * 24), 10460);

            this.AddHtmlLocalized(225, 25, 120, 20, 1045134, 0x7FFF, false, false); // A large bulk order

            this.AddHtmlLocalized(75, 48, 250, 20, 1045138, 0x7FFF, false, false);  // Amount to make:
            this.AddLabel(275, 48, 1152, deed.AmountMax.ToString());

            this.AddHtmlLocalized(75, 72, 120, 20, 1045137, 0x7FFF, false, false);  // Items requested:
            this.AddHtmlLocalized(275, 76, 200, 20, 1045153, 0x7FFF, false, false); // Amount finished:

            int y = 96;

            for (int i = 0; i < entries.Length; ++i)
            {
                LargeBulkEntry entry   = entries[i];
                SmallBulkEntry details = entry.Details;

                this.AddHtmlLocalized(75, y, 210, 20, details.Number, 0x7FFF, false, false);
                this.AddLabel(275, y, 0x480, entry.Amount.ToString());

                y += 24;
            }

            if (deed.RequireExceptional || deed.Material != BulkMaterialType.None)
            {
                this.AddHtmlLocalized(75, y, 200, 20, 1045140, 0x7FFF, false, false); // Special requirements to meet:
                y += 24;
            }

            if (deed.RequireExceptional)
            {
                this.AddHtmlLocalized(75, y, 300, 20, 1045141, 0x7FFF, false, false); // All items must be exceptional.
                y += 24;
            }

            if (deed.Material != BulkMaterialType.None)
            {
                this.AddHtmlLocalized(75, y, 300, 20, GetMaterialNumberFor(deed.Material), 0x7FFF, false, false); // All items must be made with x material.
            }
            this.AddButton(125, 168 + (entries.Length * 24), 4005, 4007, 2, GumpButtonType.Reply, 0);
            this.AddHtmlLocalized(160, 168 + (entries.Length * 24), 300, 20, 1045155, 0x7FFF, false, false); // Combine this deed with another deed.

            this.AddButton(125, 192 + (entries.Length * 24), 4005, 4007, 1, GumpButtonType.Reply, 0);
            this.AddHtmlLocalized(160, 192 + (entries.Length * 24), 120, 20, 1011441, 0x7FFF, false, false); // EXIT
        }
예제 #25
0
        public LargeBODGump(Mobile from, LargeBOD deed)
            : base(25, 25)
        {
            this.m_From = from;
            this.m_Deed = deed;

            this.m_From.CloseGump(typeof(LargeBODGump));
            this.m_From.CloseGump(typeof(SmallBODGump));

            LargeBulkEntry[] entries = deed.Entries;

            this.AddPage(0);

            this.AddBackground(50, 10, 455, 236 + (entries.Length * 24), 5054);

            this.AddImageTiled(58, 20, 438, 217 + (entries.Length * 24), 2624);
            this.AddAlphaRegion(58, 20, 438, 217 + (entries.Length * 24));

            this.AddImage(45, 5, 10460);
            this.AddImage(480, 5, 10460);
            this.AddImage(45, 221 + (entries.Length * 24), 10460);
            this.AddImage(480, 221 + (entries.Length * 24), 10460);

            this.AddHtmlLocalized(225, 25, 120, 20, 1045134, 0x7FFF, false, false); // A large bulk order

            this.AddHtmlLocalized(75, 48, 250, 20, 1045138, 0x7FFF, false, false); // Amount to make:
            this.AddLabel(275, 48, 1152, deed.AmountMax.ToString());

            this.AddHtmlLocalized(75, 72, 120, 20, 1045137, 0x7FFF, false, false); // Items requested:
            this.AddHtmlLocalized(275, 76, 200, 20, 1045153, 0x7FFF, false, false); // Amount finished:

            int y = 96;

            for (int i = 0; i < entries.Length; ++i)
            {
                LargeBulkEntry entry = entries[i];
                SmallBulkEntry details = entry.Details;

                this.AddHtmlLocalized(75, y, 210, 20, details.Number, 0x7FFF, false, false);
                this.AddLabel(275, y, 0x480, entry.Amount.ToString());

                y += 24;
            }

            if (deed.RequireExceptional || deed.Material != BulkMaterialType.None)
            {
                this.AddHtmlLocalized(75, y, 200, 20, 1045140, 0x7FFF, false, false); // Special requirements to meet:
                y += 24;
            }

            if (deed.RequireExceptional)
            {
                this.AddHtmlLocalized(75, y, 300, 20, 1045141, 0x7FFF, false, false); // All items must be exceptional.
                y += 24;
            }

            if (deed.Material != BulkMaterialType.None)
                this.AddHtmlLocalized(75, y, 300, 20, GetMaterialNumberFor(deed.Material), 0x7FFF, false, false); // All items must be made with x material.

            this.AddButton(125, 168 + (entries.Length * 24), 4005, 4007, 2, GumpButtonType.Reply, 0);
            this.AddHtmlLocalized(160, 168 + (entries.Length * 24), 300, 20, 1045155, 0x7FFF, false, false); // Combine this deed with another deed.

            this.AddButton(125, 192 + (entries.Length * 24), 4005, 4007, 1, GumpButtonType.Reply, 0);
            this.AddHtmlLocalized(160, 192 + (entries.Length * 24), 120, 20, 1011441, 0x7FFF, false, false); // EXIT
        }
예제 #26
0
 public LargeBulkEntry(LargeBOD owner, SmallBulkEntry details)
 {
     Owner   = owner;
     Details = details;
 }
예제 #27
0
파일: Rewards.cs 프로젝트: Godkong/RunUO
		public virtual int ComputeGold( LargeBOD bod )
		{
			return ComputeGold( bod.AmountMax, bod.RequireExceptional, bod.Material, bod.Entries.Length, bod.Entries[0].Details.Type );
		}
예제 #28
0
        public LargeBODAcceptGump(Mobile from, LargeBOD deed) : base(50, 50)
        {
            m_From = from;
            m_Deed = deed;

            m_From.CloseGump(typeof(LargeBODAcceptGump));
            m_From.CloseGump(typeof(SmallBODAcceptGump));

            LargeBulkEntry[] entries = deed.Entries;

            AddPage(0);

            AddBackground(25, 10, 430, 240 + (entries.Length * 24), 5054);

            AddImageTiled(33, 20, 413, 221 + (entries.Length * 24), 2624);
            AddAlphaRegion(33, 20, 413, 221 + (entries.Length * 24));

            AddImage(20, 5, 10460);
            AddImage(430, 5, 10460);
            AddImage(20, 225 + (entries.Length * 24), 10460);
            AddImage(430, 225 + (entries.Length * 24), 10460);

            AddHtmlLocalized(180, 25, 120, 20, 1045134, 0x7FFF, false, false);              // A large bulk order

            AddHtmlLocalized(40, 48, 350, 20, 1045135, 0x7FFF, false, false);               // Ah!  Thanks for the goods!  Would you help me out?

            AddHtmlLocalized(40, 72, 210, 20, 1045138, 0x7FFF, false, false);               // Amount to make:
            AddLabel(250, 72, 1152, deed.AmountMax.ToString());

            AddHtmlLocalized(40, 96, 120, 20, 1045137, 0x7FFF, false, false);               // Items requested:

            int y = 120;

            for (int i = 0; i < entries.Length; ++i, y += 24)
            {
                AddHtmlLocalized(40, y, 210, 20, entries[i].Details.Number, 0x7FFF, false, false);
            }

            if (deed.RequireExceptional || deed.Material != BulkMaterialType.None)
            {
                AddHtmlLocalized(40, y, 210, 20, 1045140, 0x7FFF, false, false);                   // Special requirements to meet:
                y += 24;

                if (deed.RequireExceptional)
                {
                    AddHtmlLocalized(40, y, 350, 20, 1045141, 0x7FFF, false, false);                       // All items must be exceptional.
                    y += 24;
                }

                switch ((int)deed.Material)
                {
                case 1: AddHtml(40, y, 350, 25, "<basefont color=#FFF000>All items must be crafted with dull copper ingots", false, false); break;

                case 2: AddHtml(40, y, 350, 25, "<basefont color=#FFF000>All items must be crafted with shadow iron ingots", false, false); break;

                case 3: AddHtml(40, y, 350, 25, "<basefont color=#FFF000>All items must be crafted with copper ingots", false, false); break;

                case 4: AddHtml(40, y, 350, 25, "<basefont color=#FFF000>All items must be crafted with bronze ingots", false, false); break;

                case 5: AddHtml(40, y, 350, 25, "<basefont color=#FFF000>All items must be crafted with gold ingots", false, false); break;

                case 6: AddHtml(40, y, 350, 25, "<basefont color=#FFF000>All items must be crafted with agapite ingots", false, false); break;

                case 7: AddHtml(40, y, 350, 25, "<basefont color=#FFF000>All items must be crafted with verite ingots", false, false); break;

                case 8: AddHtml(40, y, 350, 25, "<basefont color=#FFF000>All items must be crafted with valorite ingots", false, false); break;

                case 9: AddHtml(40, y, 350, 25, "<basefont color=#FFF000>All items must be crafted with silver ingots", false, false); break;

                //case 10: AddHtml( 40, y, 350, 25, "<basefont color=#FFF000>All items must be crafted with platinum ingots", false, false ); break;
                //case 11: AddHtml( 40, y, 350, 25, "<basefont color=#FFF000>All items must be crafted with mythril ingots", false, false ); break;
                //case 12: AddHtml( 40, y, 350, 25, "<basefont color=#FFF000>All items must be crafted with obsidian ingots", false, false ); break;
                case 10: AddHtml(40, y, 350, 25, "<basefont color=#FFF000>All items must be crafted with jade ingots", false, false); break;

                case 11: AddHtml(40, y, 350, 25, "<basefont color=#FFF000>All items must be crafted with moonstone ingots", false, false); break;

                case 12: AddHtml(40, y, 350, 25, "<basefont color=#FFF000>All items must be crafted with sunstone ingots", false, false); break;

                //case 16: AddHtml( 40, y, 350, 25, "<basefont color=#FFF000>All items must be crafted with bloodstone ingots", false, false ); break;
                case 13: AddHtml(40, y, 350, 25, "<basefont color=#FFF000>All items must be crafted with spined leather", false, false); break;

                case 14: AddHtml(40, y, 350, 25, "<basefont color=#FFF000>All items must be crafted with horned leather", false, false); break;

                case 15: AddHtml(40, y, 350, 25, "<basefont color=#FFF000>All items must be crafted with barbed leather", false, false); break;

                case 16: AddHtml(40, y, 350, 25, "<basefont color=#FFF000>All items must be crafted with dragon leather", false, false); break;

                case 17: AddHtml(40, y, 350, 25, "<basefont color=#FFF000>All items must be crafted with daemon leather", false, false); break;

                case 18: AddHtml(40, y, 350, 25, "<basefont color=#FF0000>All items must be crafted with pine wood", false, false); break;

                case 19: AddHtml(40, y, 350, 25, "<basefont color=#FF0000>All items must be crafted with ash wood", false, false); break;

                case 20: AddHtml(40, y, 350, 25, "<basefont color=#FF0000>All items must be crafted with mahogany wood", false, false); break;

                case 21: AddHtml(40, y, 350, 25, "<basefont color=#FF0000>All items must be crafted with yew wood", false, false); break;

                case 22: AddHtml(40, y, 350, 25, "<basefont color=#FF0000>All items must be crafted with oak wood", false, false); break;
                }
                if ((int)deed.Material >= 1 && (int)deed.Material <= 35)                ////?///
                {
                    y += 24;
                }
            }

            AddHtmlLocalized(40, 192 + (entries.Length * 24), 350, 20, 1045139, 0x7FFF, false, false);               // Do you want to accept this order?

            AddButton(100, 216 + (entries.Length * 24), 4005, 4007, 1, GumpButtonType.Reply, 0);
            AddHtmlLocalized(135, 216 + (entries.Length * 24), 120, 20, 1006044, 0x7FFF, false, false);               // Ok

            AddButton(275, 216 + (entries.Length * 24), 4005, 4007, 0, GumpButtonType.Reply, 0);
            AddHtmlLocalized(310, 216 + (entries.Length * 24), 120, 20, 1011012, 0x7FFF, false, false);               // CANCEL
        }