Exemplo n.º 1
0
        public static void StartQuest(Mobile from, ClockworkMechanism mechanism)
        {
            if (QuestStarted(from))
            {
                return;
            }

            QuestContext context = m_Table[from] = new QuestContext(from, mechanism);

            context.StartTimer();
        }
Exemplo n.º 2
0
        public ClockworkStartGump(ClockworkMechanism item)
            : base(200, 200)
        {
            this.m_Item = item;

            this.Resizable = false;

            this.AddPage(0);
            this.AddBackground(0, 0, 297, 115, 9200);

            this.AddImageTiled(5, 10, 285, 25, 2624);
            this.AddHtmlLocalized(10, 15, 275, 25, 1112855, 0x7FFF, false, false);

            this.AddImageTiled(5, 40, 285, 40, 2624);
            this.AddHtmlLocalized(10, 40, 275, 40, 1112856, 0x7FFF, false, false);

            this.AddButton(5, 85, 4017, 4018, 0, GumpButtonType.Reply, 0);
            this.AddHtmlLocalized(40, 87, 80, 25, 1011012, 0x7FFF, false, false);

            this.AddButton(215, 85, 4023, 4024, 1, GumpButtonType.Reply, 0);
            this.AddHtmlLocalized(250, 87, 80, 25, 1006044, 0x7FFF, false, false);
        }
Exemplo n.º 3
0
            public BeginQuestGump(ClockworkMechanism mechanism)
                : base(340, 340)
            {
                m_Mechanism = mechanism;

                AddPage(0);

                AddBackground(0, 0, 291, 99, 0x13BE);
                AddImageTiled(5, 6, 280, 20, 0xA40);

                AddHtmlLocalized(9, 8, 280, 20, 1112855, 0x7FFF, false, false);                   // Begin Mad Scientist Quest

                AddImageTiled(5, 31, 280, 40, 0xA40);

                AddHtmlLocalized(9, 35, 272, 40, 1112856, 0x7FFF, false, false);                   // You have a limited amount of time to complete the recipe. Start now?

                AddButton(215, 73, 0xFB7, 0xFB8, 1, GumpButtonType.Reply, 0);
                AddHtmlLocalized(250, 75, 65, 20, 1006044, 0x7FFF, false, false);                   // OK

                AddButton(5, 73, 0xFB1, 0xFB2, 0, GumpButtonType.Reply, 0);
                AddHtmlLocalized(40, 75, 100, 20, 1060051, 0x7FFF, false, false);                   // CANCEL
            }
Exemplo n.º 4
0
 public QuestContext(Mobile from, ClockworkMechanism mechanism)
 {
     m_Owner     = from;
     m_Mechanism = mechanism;
 }