1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Alittle help

Discussion in 'General Discussion' started by beeger, Sep 15, 2018 at 9:32 PM.

  1. beeger
    Offline

    Gold Donator

    Joined:
    Apr 27, 2016
    Messages:
    28
    Likes Received:
    3
    For the life of me i can not find it, What file do i change for bod timers Runuo 2.0 final
     
  2. Milva
    Offline

    Admin Moderator

    Joined:
    Mar 3, 2013
    Messages:
    3,840
    Likes Received:
    428
    In ServUO you find it here Scripts/Mobiles/NPCs/BaseVendor.cs
    Maybe runuo would be the same
     
  3. beeger
    Offline

    Gold Donator

    Joined:
    Apr 27, 2016
    Messages:
    28
    Likes Received:
    3
    Thank you
    --- Double Post Merged, Sep 16, 2018 at 2:58 AM ---
    Cant figure out how to do it i found it but it just messes up when i fiddle with it
     
  4. Milva
    Offline

    Admin Moderator

    Joined:
    Mar 3, 2013
    Messages:
    3,840
    Likes Received:
    428
    Oh maybe there is another script to adjust also- I"m sure some one can help :)
     
  5. UoSidio
    Offline

    Gold Donator

    Joined:
    Aug 3, 2018
    Messages:
    25
    Likes Received:
    1
    basevendor around line 109

    Code (C#):
    1. public override void OnClick()
    2.             {
    3.                 if ( m_Vendor.SupportsBulkOrders( m_From ) )
    4.                 {
    5.                     TimeSpan ts = m_Vendor.GetNextBulkOrder( m_From );
    6.  
    7.                     int totalSeconds = (int)ts.TotalSeconds;
    8.                     int totalHours = (totalSeconds + 3599) / 3600;
    9.                     int totalMinutes = (totalSeconds + 59) / 60; //Change here
    10.  
    11.                     if ( ((Core.SE ) ? totalMinutes == 0 : totalHours == 0) )
    12.                     {
    13.                         m_From.SendLocalizedMessage( 1049038 ); // You can get an order now.
    14.  
    15.                         if ( Core.AOS )
    16.                         {
    17.                             Item bulkOrder = m_Vendor.CreateBulkOrder( m_From, true );
    18.  
    19.                             if ( bulkOrder is LargeBOD )
    20.                                 m_From.SendGump( new LargeBODAcceptGump( m_From, (LargeBOD)bulkOrder ) );
    21.                             else if ( bulkOrder is SmallBOD )
    22.                                 m_From.SendGump( new SmallBODAcceptGump( m_From, (SmallBOD)bulkOrder ) );
    23.                         }
    24.                     }
    25.                     else
    26.                     {
    27.                         int oldSpeechHue = m_Vendor.SpeechHue;
    28.                         m_Vendor.SpeechHue = 0x3B2;
    29.                        
    30.                         if( Core.SE )
    31.                             m_Vendor.SayTo( m_From, 1072058, totalMinutes.ToString() ); // An offer may be available in about ~1_minutes~ minutes.
    32.                         else
    33.                             m_Vendor.SayTo( m_From, 1049039, totalHours.ToString() ); // An offer may be available in about ~1_hours~ hours.
    34.  
    35.                         m_Vendor.SpeechHue = oldSpeechHue;
    36.                     }
    37.                 }
    38.             }
    39.         }
     
  6. PyrO
    Offline

    PyrO Active Member

    Joined:
    Jan 27, 2015
    Messages:
    938
    Likes Received:
    51
    That snippet doesnt set the delay, you should look into the GetNextBulkOrder method
     
  7. beeger
    Offline

    Gold Donator

    Joined:
    Apr 27, 2016
    Messages:
    28
    Likes Received:
    3
    Hmm not working guess ill just leave it set for 2 hours
     
  8. UoSidio
    Offline

    Gold Donator

    Joined:
    Aug 3, 2018
    Messages:
    25
    Likes Received:
    1
    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..
     

    Attached Files:

  9. beeger
    Offline

    Gold Donator

    Joined:
    Apr 27, 2016
    Messages:
    28
    Likes Received:
    3
Similar Threads: Alittle help
Forum Title Date
Script Support Need Alittle help Sep 6, 2018
Script Support Alittle help with .dll Jul 5, 2015
Archived Bug Reports ALittleSomething Quest missing loyalty rating May 23, 2016
Archived Bug Reports ALittleSomething Quest Mar 6, 2016
Script Support having alittle issue with a drop system Jun 24, 2015
Script Support I need to turn of the Pet Trainer Helper Today at 12:45 AM
ServUO Discussion Help please Yesterday at 9:17 PM