Beispiel #1
0
            public override void OnResponse(Mobile typer, string text)
            {
                int amount = Utility.ToInt32(text);

                if (amount < 10000)
                {
                    m_Box.ExtractResource(typer, m_type, amount);
                }
                else
                {
                    typer.SendMessage("You may only take a max of 10,000 items at once.");
                }

                typer.SendGump(new GraneryGump(typer, m_Box, m_Page));
            }