Alittle help

beeger

Well-Known Member
Apr 27, 2016
46
4
35
For the life of me i can not find it, What file do i change for bod timers Runuo 2.0 final
 

beeger

Well-Known Member
Apr 27, 2016
46
4
35
Thank you
[doublepost=1537081124][/doublepost]Cant figure out how to do it i found it but it just messes up when i fiddle with it
 

Milva

Admin
Moderator
Mar 3, 2013
4,231
482
Donate
Donate money to this user
Oh maybe there is another script to adjust also- I"m sure some one can help :)
 

UoSidio

Active Member
Aug 3, 2018
43
4
33
UK
Shard Name
Indevelopment
basevendor around line 109

Code:
public override void OnClick()
            {
                if ( m_Vendor.SupportsBulkOrders( m_From ) )
                {
                    TimeSpan ts = m_Vendor.GetNextBulkOrder( m_From );

                    int totalSeconds = (int)ts.TotalSeconds;
                    int totalHours = (totalSeconds + 3599) / 3600;
                    int totalMinutes = (totalSeconds + 59) / 60; //Change here

                    if ( ((Core.SE ) ? totalMinutes == 0 : totalHours == 0) )
                    {
                        m_From.SendLocalizedMessage( 1049038 ); // You can get an order now.

                        if ( Core.AOS )
                        {
                            Item bulkOrder = m_Vendor.CreateBulkOrder( m_From, true );

                            if ( bulkOrder is LargeBOD )
                                m_From.SendGump( new LargeBODAcceptGump( m_From, (LargeBOD)bulkOrder ) );
                            else if ( bulkOrder is SmallBOD )
                                m_From.SendGump( new SmallBODAcceptGump( m_From, (SmallBOD)bulkOrder ) );
                        }
                    }
                    else
                    {
                        int oldSpeechHue = m_Vendor.SpeechHue;
                        m_Vendor.SpeechHue = 0x3B2;
                       
                        if( Core.SE )
                            m_Vendor.SayTo( m_From, 1072058, totalMinutes.ToString() ); // An offer may be available in about ~1_minutes~ minutes.
                        else
                            m_Vendor.SayTo( m_From, 1049039, totalHours.ToString() ); // An offer may be available in about ~1_hours~ hours.

                        m_Vendor.SpeechHue = oldSpeechHue;
                    }
                }
            }
        }
 

PyrO

Well-Known Member
Jan 27, 2015
1,118
83
That snippet doesnt set the delay, you should look into the GetNextBulkOrder method
 

UoSidio

Active Member
Aug 3, 2018
43
4
33
UK
Shard Name
Indevelopment
Ive seen on some shards that people add spawners for bods to allow players to collect them that way. Or you could add bods bags on a vendor for a price or something.

Bodsbags attached is for the older system that was just smith and tailor bods but can be easily updated..
 

Attachments