Esempio n. 1
0
        private static void MyBOD_OnCommand(CommandEventArgs e)
        {
            BODModule bod_mod = ( BODModule )CentralMemory.GetModule(e.Mobile.Serial, typeof(BODModule));

            if (bod_mod == null)
            {
                CentralMemory.AppendModule(e.Mobile.Serial, new BODModule(e.Mobile.Serial), true);
                e.Mobile.SendMessage("Please try again");
            }
            else
            {
                //Next BOD times.

                e.Mobile.SendMessage("Time til next carpenter BOD: {0}", bod_mod.m_NextCarpenterBulkOrder);
                e.Mobile.SendMessage("Time til next fletcher BOD:  {0}", bod_mod.m_NextFletcherBulkOrder);
                return;
            }
        }
Esempio n. 2
0
            protected override void OnTarget(Mobile from, object targeted)
            {
                if (targeted is PlayerMobile)
                {
                    PlayerMobile pm  = ( PlayerMobile )targeted;
                    BODModule    BOD = ( BODModule )CentralMemory.GetModule(pm.Serial, typeof(BODModule));

                    if (BOD != null)
                    {
                        from.SendGump(new PropertiesGump(from, BOD));
                    }
                    else
                    {
                        from.SendMessage("This player does not have a module. A new one has been created.");
                        CentralMemory.AppendModule(from.Serial, new BODModule(from.Serial), true);
                    }
                }
                else
                {
                    from.SendMessage("Can Only Target PLAYERS!");
                }
            }
Esempio n. 3
0
			public InternalTarget( BODModule mod ) : base( 1, false, TargetFlags.None )
			{
				bod_mod = mod;
			}
Esempio n. 4
0
 public InternalTarget(BODModule mod) : base(1, false, TargetFlags.None)
 {
     bod_mod = mod;
 }
Esempio n. 5
0
        private static void BODGump_OnCommand(CommandEventArgs e)
        {
            BODModule BOD = ( BODModule )CentralMemory.GetModule(e.Mobile.Serial, typeof(BODModule));

            e.Mobile.Target = new InternalTarget(BOD);
        }