RunUO Community

This is a sample guest message. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

hello~ bod time change script?

Lokai

Knight
What you want is in each individual vendor. For example, in Blacksmith.cs, you have something like this:

Code:
        public override Item CreateBulkOrder( Mobile from, bool fromContextMenu )
        {
            PlayerMobile pm = from as PlayerMobile;

            if ( pm != null && pm.NextSmithBulkOrder == TimeSpan.Zero && (fromContextMenu || 0.2 > Utility.RandomDouble()) )
            {
                double theirSkill = pm.Skills[SkillName.Blacksmith].Base;

                if ( theirSkill >= 70.1 )
                    pm.NextSmithBulkOrder = TimeSpan.FromHours( 6.0 );
                else if ( theirSkill >= 50.1 )
                    pm.NextSmithBulkOrder = TimeSpan.FromHours( 2.0 );
                else
                    pm.NextSmithBulkOrder = TimeSpan.FromHours( 1.0 );

                if ( theirSkill >= 70.1 && ((theirSkill - 40.0) / 300.0) > Utility.RandomDouble() )
                    return new LargeSmithBOD();

                return SmallSmithBOD.CreateRandomFor( from );
            }

            return null;
        }
 
Top