예제 #1
0
        public static void QuestButton(NetState state, IEntity e, EncodedReader reader)
        {
            if (state.Mobile is PlayerMobile)
            {
                PlayerMobile from = (PlayerMobile)state.Mobile;

                from.CloseGump(typeof(MondainQuestGump));
                from.SendGump(new MondainQuestGump(from));
            }
        }
예제 #2
0
        public virtual void OnTalk(PlayerMobile player)
        {
            if (QuestHelper.DeliveryArrived(player, this))
            {
                return;
            }

            if (QuestHelper.InProgress(player, this))
            {
                return;
            }

            if (QuestHelper.QuestLimitReached(player))
            {
                return;
            }

            // check if this quester can offer any quest chain (already started)
            foreach (KeyValuePair <QuestChain, BaseChain> pair in player.Chains)
            {
                BaseChain chain = pair.Value;

                if (chain != null && chain.Quester != null && chain.Quester == GetType())
                {
                    BaseQuest quest = QuestHelper.RandomQuest(player, new Type[] { chain.CurrentQuest }, this);

                    if (quest != null)
                    {
                        player.CloseGump(typeof(MondainQuestGump));
                        player.SendGump(new MondainQuestGump(quest));
                        return;
                    }
                }
            }

            BaseQuest questt = QuestHelper.RandomQuest(player, Quests, this);

            if (questt != null)
            {
                player.CloseGump(typeof(MondainQuestGump));
                player.SendGump(new MondainQuestGump(questt));
            }
        }
예제 #3
0
        public CandidatesGump(PlayerMobile pm, CityLoyaltySystem city)
            : base(50, 50)
        {
            User = pm;
            City = city;

            pm.CloseGump(typeof(CandidatesGump));

            AddGumpLayout();
        }
예제 #4
0
        public QuestLogGump(PlayerMobile pm, bool closeGumps)
            : base(1046026)               // Quest Log
        {
            m_Owner      = pm;
            m_CloseGumps = closeGumps;

            if (closeGumps)
            {
                pm.CloseGump(typeof(QuestLogGump));
                pm.CloseGump(typeof(QuestLogDetailedGump));
            }

            RegisterButton(ButtonPosition.Right, ButtonGraphic.Okay, 3);

            SetPageCount(1);

            BuildPage();

            int numberColor, stringColor;

            MLQuestContext context = MLQuestSystem.GetContext(pm);

            if (context != null)
            {
                List <MLQuestInstance> instances = context.QuestInstances;

                for (int i = 0; i < instances.Count; ++i)
                {
                    if (instances[i].Failed)
                    {
                        numberColor = 0x3C00;
                        stringColor = 0x7B0000;
                    }
                    else
                    {
                        numberColor = stringColor = 0xFFFFFF;
                    }

                    TextDefinition.AddHtmlText(this, 98, 140 + 21 * i, 270, 21, instances[i].Quest.Title, false, false, numberColor, stringColor);
                    AddButton(368, 140 + 21 * i, 0x26B0, 0x26B1, 6 + i, GumpButtonType.Reply, 1);
                }
            }
        }
        public BOBFilterGump(PlayerMobile from, BulkOrderBook book) : base(12, 24)
        {
            from.CloseGump(typeof(BOBGump));
            from.CloseGump(typeof(BOBFilterGump));

            m_From = from;
            m_Book = book;

            BOBFilter f = (from.UseOwnFilter ? from.BOBFilter : book.Filter);

            AddPage(0);
            //daat99 OWLTR start - bigger gump
            AddBackground(10, 10, 630, 439, 5054);

            AddImageTiled(18, 20, 613, 420, 2624);
            AddAlphaRegion(18, 20, 613, 420);

            AddImage(5, 5, 10460);
            AddImage(615, 5, 10460);
            AddImage(5, 424, 10460);
            AddImage(615, 424, 10460);

            AddHtmlLocalized(270, 20, 200, 32, 1062223, LabelColor, false, false);              // Filter Preference

            AddHtmlLocalized(26, 35, 120, 32, 1062228, LabelColor, false, false);               // Bulk Order Type
            AddFilterList(25, 61, m_XOffsets_Type, 40, m_TypeFilters, m_XWidths_Small, f.Type, 0);

            AddHtmlLocalized(320, 35, 50, 32, 1062215, LabelColor, false, false);               // Quality
            AddFilterList(320, 61, m_XOffsets_Quality, 40, m_QualityFilters, m_XWidths_Small, f.Quality, 1);
            AddHtmlLocalized(26, 100, 120, 32, 1062232, LabelColor, false, false);              // Material Type
            AddFilterList(25, 132, m_XOffsets_Material, 40, m_MaterialFilters, m_XWidths_Large, f.Material, 2);
            AddHtmlLocalized(26, 350, 120, 32, 1062217, LabelColor, false, false);              // Amount
            AddFilterList(25, 372, m_XOffsets_Amount, 40, m_AmountFilters, m_XWidths_Small, f.Quantity, 3);
            //daat99 OWLTR end - bigger gump
            AddHtmlLocalized(75, 416, 120, 32, 1062477, (from.UseOwnFilter ? LabelColor : 16927), false, false);  // Set Book Filter
            AddButton(40, 416, 4005, 4007, 1, GumpButtonType.Reply, 0);
            AddHtmlLocalized(235, 416, 120, 32, 1062478, (from.UseOwnFilter ? 16927 : LabelColor), false, false); // Set Your Filter
            AddButton(200, 416, 4005, 4007, 2, GumpButtonType.Reply, 0);
            AddHtmlLocalized(405, 416, 120, 32, 1062231, LabelColor, false, false);                               // Clear Filter
            AddButton(370, 416, 4005, 4007, 3, GumpButtonType.Reply, 0);
            AddHtmlLocalized(540, 416, 50, 32, 1011046, LabelColor, false, false);                                // APPLY
            AddButton(505, 416, 4017, 4018, 0, GumpButtonType.Reply, 0);
        }
        public TamingBOBFilterGump(PlayerMobile from, TamingBulkOrderBook book) : base(12, 24)
        {
            from.CloseGump(typeof(TamingBOBGump));
            from.CloseGump(typeof(TamingBOBFilterGump));

            m_From = from;
            m_Book = book;

            AnimalBODModule module = from.GetModule(typeof(AnimalBODModule)) as AnimalBODModule ?? new AnimalBODModule(from);
            TamingBOBFilter f      = (from.UseOwnFilter ? module.TamingBOBFilter : m_Book.Filter);

            AddPage(0);

            AddBackground(10, 10, 600, 439, 5054);

            AddImageTiled(18, 20, 583, 420, 2624);
            AddAlphaRegion(18, 20, 583, 420);

            AddImage(5, 5, 10460);
            AddImage(585, 5, 10460);
            AddImage(5, 424, 10460);
            AddImage(585, 424, 10460);

            AddHtmlLocalized(270, 32, 200, 32, 1062223, LabelColor, false, false);               // Filter Preference

            AddHtmlLocalized(26, 258, 120, 32, 1062228, LabelColor, false, false);               // Bulk Order Type
            AddFilterList(25, 288, m_XOffsets_Type, 40, m_TypeFilters, m_XWidths_Small, f.Type, 0);

            AddHtmlLocalized(26, 320, 120, 32, 1062217, LabelColor, false, false);               // Amount
            AddFilterList(25, 352, m_XOffsets_Amount, 40, m_AmountFilters, m_XWidths_Small, f.Quantity, 1);

            AddHtmlLocalized(75, 416, 120, 32, 1062477, (from.UseOwnFilter ? LabelColor : 16927), false, false);                 // Set Book Filter
            AddButton(40, 416, 4005, 4007, 1, GumpButtonType.Reply, 0);

            AddHtmlLocalized(235, 416, 120, 32, 1062478, (from.UseOwnFilter ? 16927 : LabelColor), false, false);                 // Set Your Filter
            AddButton(200, 416, 4005, 4007, 2, GumpButtonType.Reply, 0);

            AddHtmlLocalized(405, 416, 120, 32, 1062231, LabelColor, false, false);               // Clear Filter
            AddButton(370, 416, 4005, 4007, 3, GumpButtonType.Reply, 0);

            AddHtmlLocalized(540, 416, 50, 32, 1011046, LabelColor, false, false);               // APPLY
            AddButton(505, 416, 4017, 4018, 0, GumpButtonType.Reply, 0);
        }
예제 #7
0
        public static void Refresh(Mobile m)
        {
            PlayerMobile pm = m as PlayerMobile;

            if (pm != null && pm.HasGump(typeof(HistoryAutoRefreshGump)))
            {
                pm.CloseGump(typeof(HistoryAutoRefreshGump));
                pm.SendGump(new HistoryAutoRefreshGump(pm, pm.SpeechLog ?? new SpeechLog()));
            }
        }
예제 #8
0
        //master constructor, with page number specified
        public ListEntryGump(Mobile owner, ListEntry listentry, int page) : base(50, 350)
        {
            if (!(owner is PlayerMobile))
            {
                return;
            }

            _Owner     = (PlayerMobile)owner;
            _ListEntry = listentry;

            //clear old gumps that are up
            _Owner.CloseGump(typeof(ListEntryGump));

            //set up the page
            AddPage(0);

            _Page = page;

            ApplyFilters();

            //determine page layout, sizes, and what gets displayed where
            DeterminePageLayout();

            //add the background
            AddBackground(0, 0, _Width, _Height, 9270);
            AddImageTiled(11, 10, _Width - 23, _Height - 20, 3604 /*2624*/);
            //AddAlphaRegion(11,10,_Width - 22,_Height - 20);

            AddTitle();

            if (!AddListEntryListing())
            {
                //clear old gumps that are up
                _Owner.CloseGump(typeof(ListEntryGump));
                return;
            }
            if (_MaxPages > 1)
            {
                AddPageButtons();
            }

            AddControlButtons();
        }
예제 #9
0
        public PetTrainingStyleConfirmGump(PlayerMobile pm, TextDefinition title, TextDefinition body, Action confirmCallback, Action cancelCallback = null)
            : base(pm, 250, 50)
        {
            pm.CloseGump(GetType());

            _Title          = title;
            _Body           = body;
            ConfirmCallback = confirmCallback;
            CancelCallback  = cancelCallback;
        }
예제 #10
0
        public override void OnResponse(NetState sender, RelayInfo info)
        {
            if (m_Player == null)
            {
                return;
            }

            bool closeGump = true;

            switch (info.ButtonID)
            {
            //Guide
            case 1:
                closeGump = false;
                break;

            //View Potential Penalties
            case 2:
                m_Player.SendSound(openGumpSound);

                m_Player.CloseGump(typeof(ConsiderSinsGump));
                m_Player.SendGump(new ConsiderSinsGump(m_Player));

                m_Player.CloseGump(typeof(MurderPenaltyGump));
                m_Player.SendGump(new MurderPenaltyGump(m_Player, true, 0, false));

                return;

                break;
            }

            if (closeGump)
            {
                m_Player.SendSound(closeGumpSound);
            }

            else
            {
                m_Player.CloseGump(typeof(ConsiderSinsGump));
                m_Player.SendGump(new ConsiderSinsGump(m_Player));
            }
        }
예제 #11
0
        public virtual void Activate(PlayerMobile player)
        {
            PlayerCustomizationEntry entry = PlayerEnhancementPersistance.GetCustomizationEntry(player, m_Customization);

            if (entry == null)
            {
                return;
            }

            PlayerCustomizationDetail details = PlayerCustomization.GetCustomizationDetail(m_Customization);

            if (details == null)
            {
                return;
            }

            if (entry.m_Unlocked)
            {
                player.SendMessage("You have already unlocked the player customization: " + details.m_Name + ".");
                return;
            }

            else
            {
                entry.m_Unlocked = true;
                entry.m_Active   = true;

                player.SendMessage("You unlock the player customization for: " + details.m_Name + ".");

                PlayerCustomization.OnUnlockCustomization(player, m_Customization);

                player.PlaySound(0x0F7);
                player.FixedParticles(0x373A, 10, 15, 5012, 2587, 0, EffectLayer.Waist);

                player.CloseGump(typeof(PlayerCustomizationGump));
                player.CloseGump(typeof(PlayerCustomizationConfirmationGump));

                Delete();

                return;
            }
        }
예제 #12
0
        protected override void OnTick()
        {
            if (Recieved.HasGump(typeof(FieldSetup_AddParticipant)))
            {
                Sent.SendMessage(String.Format("{0} seems to be unresponsive.", Recieved.Name));
                Recieved.CloseGump(typeof(FieldSetup_AddParticipant));
                Sent.SendGump(new FieldSetup_ParticipantSetup(Handeling, TeamID));
            }

            this.Stop();
        }
예제 #13
0
        public override void OnResponse(Server.Network.NetState sender, RelayInfo info)
        {
            Mobile from = sender.Mobile;

            PlayerMobile From = from as PlayerMobile;

            From.CloseGump(typeof(BinfoGump));

            if (info.ButtonID == 1)
            {
                From.CloseGump(typeof(BinfoGump));
                return;
            }
            if (info.ButtonID == 2)
            {
                From.Target = new BCaptureTarget();
                From.SendMessage("Please target the same creature to take its picture!");
                return;
            }
        }
예제 #14
0
        public static void OnShowTool(CommandEventArgs args)
        {
            Mobile mobile = args.Mobile;

            if (mobile is PlayerMobile)
            {
                PlayerMobile pm = mobile as PlayerMobile;
                pm.CloseGump(typeof(ShowTool));
                pm.SendGump(new ShowTool(pm));
            }
        }
예제 #15
0
파일: Gumps.cs 프로젝트: pallop/Servuo
        public PlayerTitleGump(PlayerMobile pm, PlayerMobile citizen, CityLoyaltySystem sys)
            : base(50, 50)
        {
            User    = pm;
            Citizen = citizen;
            City    = sys;

            pm.CloseGump(typeof(PlayerTitleGump));

            AddGumpLayout();
        }
예제 #16
0
            protected override void OnTarget(Mobile from, object targeted)
            {
                if (targeted is PlayerMobile)
                {
                    PlayerMobile pm = (PlayerMobile)targeted;
                    pm.CloseGump(typeof(GiftGump));
                    pm.SendGump(new GiftGump());

                    CommandLogging.WriteLine(from, "{0} sent a gift package gump to {0}", from.Name, pm.Name);
                }
            }
예제 #17
0
        public override void HandleButtonResponse(NetState sender, int adjustedButton, ImageTileButtonInfo buttonInfo)
        {
            PlayerMobile pm = sender.Mobile as PlayerMobile;

            Item item = ((ItemTileButtonInfo)buttonInfo).Item;

            if (!(pm != null && item.IsChildOf(pm.Backpack) && pm.InRange(m_Collector.Location, 7)))
            {
                return;
            }

            item.Delete();

            PointsSystem.TreasuresOfTokuno.TurnIn(pm);
            int turnIns = PointsSystem.TreasuresOfTokuno.GetTurnIns(pm);

            if (turnIns >= TreasuresOfTokuno.ItemsPerReward)
            {
                m_Collector.SayTo(pm, 1070980);      // Congratulations! You have turned in enough minor treasures to earn a greater reward.

                pm.CloseGump(typeof(ToTTurnInGump)); //Sanity

                if (!pm.HasGump(typeof(ToTRedeemGump)))
                {
                    pm.SendGump(new ToTRedeemGump(m_Collector, false));
                }
            }
            else
            {
                m_Collector.SayTo(pm, 1070981, String.Format("{0}\t{1}", turnIns, TreasuresOfTokuno.ItemsPerReward)); // You have turned in ~1_COUNT~ minor artifacts. Turn in ~2_NUM~ to receive a reward.

                ArrayList buttons = FindRedeemableItems(pm);

                pm.CloseGump(typeof(ToTTurnInGump)); //Sanity

                if (buttons.Count > 0)
                {
                    pm.SendGump(new ToTTurnInGump(m_Collector, buttons));
                }
            }
        }
예제 #18
0
        //master constructor, with page number specified
        public ItemStoreGump(Mobile owner, ItemStore store, int page) : base(50, 50)
        {
            if (!(owner is PlayerMobile))
            {
                return;
            }

            _Owner = (PlayerMobile)owner;
            _Store = store;

            //clear old gumps that are up
            _Owner.CloseGump(typeof(ItemStoreGump));

            //set up the page
            AddPage(0);

            _Page = page;

            //determine page layout, sizes, and what gets displayed where
            DeterminePageLayout();

            AddBackground(0, 0, _Width, _Height, 9270);
            AddImageTiled(11, 10, _Width - 23, _Height - 20, 3604 /*2624*/); //old width -16
                                                                             //AddAlphaRegion(8, 10, _Width - 20, _Height - 20);
                                                                             //AddAlphaRegion(11,10,_Width - 22,_Height - 20);

            AddTitle();

            if (!AddStoreListing())
            {
                //clear old gumps that are up
                _Owner.CloseGump(typeof(ItemStoreGump));
                return;
            }
            if (_MaxPages > 1)
            {
                AddPageButtons();
            }

            AddControlButtons();
        }
예제 #19
0
        public static void OnShowTool(CommandEventArgs args)
        {
            Mobile mobile = args.Mobile;

            if (mobile.AccessLevel >= AccessLevel.Player)

            {
                PlayerMobile from = mobile as PlayerMobile;
                from.CloseGump(typeof(ShowToolMain));
                from.SendGump(new ShowToolMain(from));
            }
        }
예제 #20
0
        public void LaunchGump(PlayerMobile player)
        {
            if (player == null)
            {
                return;
            }

            ShipGumpObject shipGumpObject = new ShipGumpObject(player, null, this);

            player.CloseGump(typeof(ShipGump));
            player.SendGump(new ShipGump(player, shipGumpObject));
        }
예제 #21
0
        public AchievementGump(PlayerMobile pm, PlayerMobile subject)
            : base(pm, 50, 50)
        {
            pm.CloseGump(typeof(AchievementGump));

            Subject    = subject;
            SearchName = "Search";

            Profile = subject != null?AchievementSystem.GetProfile(subject) : AchievementSystem.GetProfile(pm);

            Index = Profile.GetTypeIndex(Profile.FilterType);
        }
예제 #22
0
        private static void Command_Handler(CommandEventArgs e)
        {
            PlayerMobile pm = e.Mobile as PlayerMobile;

            if (pm == null)
            {
                return;
            }

            if (pm.HasGump(typeof(MatchmakingGump)))
            {
                pm.CloseGump(typeof(MatchmakingGump));
            }

            if (pm.HasGump(typeof(MatchmakingCreateGump)))
            {
                pm.CloseGump(typeof(MatchmakingCreateGump));
            }

            pm.SendGump(new MatchmakingGump(pm, 0));
        }
예제 #23
0
        public EditEventGump(PlayerMobile pm, SeasonalEventEntry entry)
            : base(pm, 100, 100)
        {
            pm.CloseGump(typeof(EditEventGump));

            Entry = entry;

            _Month    = entry.MonthStart;
            _Day      = entry.DayStart;
            _Duration = entry.Duration;
            _Status   = entry.Status;
        }
예제 #24
0
        public void SendControllerSetup()
        {
            if (IsRematch)
            {
                EndSelf();
                return;
            }
            PauseRVS();

            IEnumerator key = Teams.Keys.GetEnumerator();            // creates the key variable so we can iterate through the Teams dictionary

            for (int i = 0; i < Teams.Count; ++i)                    // Iterates through the Teams dictionary using a for loop
            {
                key.MoveNext();                                      // Moves the enumerator to its next item
                RVS_Team d_team = (RVS_Team)Teams[(int)key.Current]; // creates a variable referencing the currently iterated team

                for (int i2 = 0; i2 < d_team.Players.Count; ++i2)
                {
                    object o = (object)d_team.Players[i2];

                    if (o is PlayerMobile)
                    {
                        PlayerMobile pm = (PlayerMobile)d_team.Players[i2];

                        if (pm == Caller)
                        {
                            pm.CloseGump(typeof(RVSSetup_Pending));
                            pm.SendGump(new RVSSetup_Main(this));
                        }
                        else
                        {
                            pm.CloseGump(typeof(RVSSetup_Pending));
                            pm.CloseGump(typeof(RVSSetup_Rules_View));
                        }
                    }
                }
            }

            EchoMessage("A player has left the RVS duel, start has been delayed.");
        }
예제 #25
0
        public CreateGuildGump(PlayerMobile pm, string guildName = "Guild Name", string guildAbbrev = "") : base(10, 10)
        {
            pm.CloseGump <CreateGuildGump>();
            pm.CloseGump <BaseGuildGump>();

            AddPage(0);

            AddBackground(0, 0, 500, 300, 0x2422);
            AddHtmlLocalized(25, 20, 450, 25, 1062939, 0x0, true); // <center>GUILD MENU</center>
            AddHtmlLocalized(
                25,
                60,
                450,
                60,
                1062940,
                0x0
                );                                            // As you are not a member of any guild, you can create your own by providing a unique guild name and paying the standard guild registration fee.
            AddHtmlLocalized(25, 135, 120, 25, 1062941, 0x0); // Registration Fee:
            AddLabel(155, 135, 0x481, Guild.RegistrationFee.ToString());
            AddHtmlLocalized(25, 165, 120, 25, 1011140, 0x0); // Enter Guild Name:
            AddBackground(155, 160, 320, 26, 0xBB8);
            AddTextEntry(160, 163, 315, 21, 0x481, 5, guildName);
            AddHtmlLocalized(25, 191, 120, 26, 1063035, 0x0); // Abbreviation:
            AddBackground(155, 186, 320, 26, 0xBB8);
            AddTextEntry(160, 189, 315, 21, 0x481, 6, guildAbbrev);
            AddButton(415, 217, 0xF7, 0xF8, 1);
            AddButton(345, 217, 0xF2, 0xF1, 0);

            if (pm.AcceptGuildInvites)
            {
                AddButton(20, 260, 0xD2, 0xD3, 2);
            }
            else
            {
                AddButton(20, 260, 0xD3, 0xD2, 2);
            }

            AddHtmlLocalized(45, 260, 200, 30, 1062943, 0x0); // <i>Ignore Guild Invites</i>
        }
        public static void OpenSkillWindow(PlayerMobile player)
        {
            //This is where you add a call to the gump you want to open when the player clicks the skill button
            //new CustomSkillGump( player );
            //player.SendMessage("I am a custom skill window!");

            if (player.HasGump(typeof(PointDistributionGump)))
            {
                player.CloseGump(typeof(PointDistributionGump));
            }

            player.SendGump(new PointDistributionGump(player, player, 0));
        }
예제 #27
0
파일: Triggers.cs 프로젝트: nogu3ira/xrunuo
        public override bool OnMoveOver(Mobile m)
        {
            if (m is PlayerMobile)
            {
                PlayerMobile pm = (PlayerMobile)m;

                if (pm.KRStartingQuestStep == (m_QuestStep - 1))
                {
                    if (m_AdvanceLevel)
                    {
                        pm.CloseGump(typeof(KRStartingQuestGump));
                        pm.CloseGump(typeof(KRStartingQuestCancelGump));

                        pm.KRStartingQuestStep++;
                    }

                    pm.MoveToWorld(m_Dest, Map.Trammel);
                }
            }

            return(false);
        }
예제 #28
0
파일: Triggers.cs 프로젝트: nogu3ira/xrunuo
        public override void OnDoubleClick(Mobile from)
        {
            base.OnDoubleClick(from);

            if (!from.InRange(this.GetWorldLocation(), 2))
            {
                from.LocalOverheadMessage(MessageType.Regular, 0x3B2, 1019045);                   // I can't reach that.
            }
            else if (from is PlayerMobile)
            {
                PlayerMobile pm = (PlayerMobile)from;

                if (pm.KRStartingQuestStep == (m_QuestStep - 1))
                {
                    pm.MoveToWorld(m_Dest, Map.Trammel);

                    pm.CloseGump(typeof(KRStartingQuestGump));
                    pm.CloseGump(typeof(KRStartingQuestCancelGump));

                    pm.KRStartingQuestStep++;
                }
            }
        }
예제 #29
0
        public BreweryBoxGump(PlayerMobile from, BreweryBox box) : base(25, 25)
        {
            m_From = from;
            m_Box  = box;

            m_From.CloseGump(typeof(BreweryBoxGump));

            AddPage(0);

            AddBackground(12, 19, 486, 195, 9250);
            AddLabel(200, 30, 32, @"Hops Box");

            AddLabel(60, 50, 32, @"Add Item");
            AddButton(25, 50, 4005, 4007, 1, GumpButtonType.Reply, 0);

            AddLabel(60, 75, 32, @"Close");
            AddButton(25, 75, 4005, 4007, 0, GumpButtonType.Reply, 0);

            AddLabel(60, 115, 0, @"Bitter Hops");
            AddLabel(150, 115, 0x480, box.BitterHops.ToString());
            AddButton(25, 115, 4005, 4007, 3, GumpButtonType.Reply, 0);

            AddLabel(60, 135, 0, @"Snow Hops");
            AddLabel(150, 135, 0x480, box.SnowHops.ToString());
            AddButton(25, 135, 4005, 4007, 4, GumpButtonType.Reply, 0);

            AddLabel(60, 155, 0, @"Elven Hops");
            AddLabel(150, 155, 0x480, box.ElvenHops.ToString());
            AddButton(25, 155, 4005, 4007, 5, GumpButtonType.Reply, 0);

            AddLabel(60, 175, 0, @"Sweet Hops");
            AddLabel(150, 175, 0x480, box.SweetHops.ToString());
            AddButton(25, 175, 4005, 4007, 6, GumpButtonType.Reply, 0);
            /*********** New Column *******************/
            AddLabel(320, 115, 0, @"Malt");
            AddLabel(410, 115, 0x480, box.Malt.ToString());
            AddButton(285, 115, 4005, 4007, 7, GumpButtonType.Reply, 0);

            AddLabel(320, 135, 0, @"Barley");
            AddLabel(410, 135, 0x480, box.Barley.ToString());
            AddButton(285, 135, 4005, 4007, 8, GumpButtonType.Reply, 0);

            AddLabel(320, 155, 0, @"B.Label Maker");
            AddLabel(410, 155, 0x480, box.BreweryLabelMaker.ToString());
            AddButton(285, 155, 4005, 4007, 9, GumpButtonType.Reply, 0);

            AddLabel(320, 175, 0, @"Brewers Tools");
            AddLabel(410, 175, 0x480, box.BrewersTools.ToString());
            AddButton(285, 175, 4005, 4007, 10, GumpButtonType.Reply, 0);
        }
        public override void OnDoubleClick(Mobile from)
        {
            base.OnDoubleClick(from);

            PlayerMobile player = from as PlayerMobile;

            if (player != null)
            {
                player.SendSound(0x055);

                player.CloseGump(typeof(SocietiesJobBoardGump));
                player.SendGump(new SocietiesJobBoardGump(player, SocietiesGroupType.ArtificersEnclave, SocietiesGroupPageDisplayType.Jobs, 0));
            }
        }