public InternalTarget(Mobile from, ClockworkMechanism item, SutekResourceType type, int remaining, double delay, DateTime endtime) : base(2, true, TargetFlags.None) { this.m_Item = item; this.m_Type = type; this.m_Remaining = remaining; this.m_EndTime = endtime; this.m_Delay = delay; from.SendLocalizedMessage(1112821, String.Concat("#", SutekQuestResource.GetLabelId(this.m_Type).ToString())); // I need to add some ~1_INGREDIENT~. this.BeginTimeout(from, this.m_EndTime - DateTime.UtcNow); }
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 }
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); }
public InternalTimer(ClockworkMechanism item) : base(TimeSpan.FromSeconds(10.0), TimeSpan.FromSeconds(10.0)) { this.Priority = TimerPriority.OneSecond; this.i_item = item; }
public InternalTarget(Mobile from, ClockworkMechanism item) : this(from, item, SutekQuestResource.GetRandomResource(), Utility.RandomMinMax(10, 20), 10.0, DateTime.UtcNow + TimeSpan.FromSeconds(10.0)) { }
public InternalTimer(ClockworkMechanism item) : base(TimeSpan.FromSeconds(10.0), TimeSpan.FromSeconds(10.0)) { this.Priority = TimerPriority.OneSecond; this.i_item = item; }
public InternalTarget(Mobile from, ClockworkMechanism item, SutekResourceType type, int remaining, double delay, DateTime endtime) : base(2, true, TargetFlags.None) { this.m_Item = item; this.m_Type = type; this.m_Remaining = remaining; this.m_EndTime = endtime; this.m_Delay = delay; from.SendLocalizedMessage(1112821, String.Concat("#", SutekQuestResource.GetLabelId(this.m_Type).ToString())); // I need to add some ~1_INGREDIENT~. this.BeginTimeout(from, this.m_EndTime - DateTime.Now); }
public InternalTarget(Mobile from, ClockworkMechanism item) : this(from, item, SutekQuestResource.GetRandomResource(), Utility.RandomMinMax(10, 20), 10.0, DateTime.Now + TimeSpan.FromSeconds(10.0)) { }
public QuestContext( Mobile from, ClockworkMechanism mechanism ) { m_Owner = from; m_Mechanism = mechanism; }
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 }
public static void StartQuest( Mobile from, ClockworkMechanism mechanism ) { if ( QuestStarted( from ) ) return; QuestContext context = m_Table[from] = new QuestContext( from, mechanism ); context.StartTimer(); }