Go Back   RunUO - Ultima Online Emulation > RunUO > Server Support on Windows

Server Support on Windows Get (and give) support on general questions related to the RunUO server itself.

Reply
 
Thread Tools Display Modes
Old 05-27-2007, 11:18 AM   #1 (permalink)
Forum Novice
 
Join Date: Apr 2007
Age: 30
Posts: 113
Default Vendor Restock Time

I want restock time 1 minutes.How can ı change this?I searched basevendor.cs and i cant change it.
UoTurkey is offline   Reply With Quote
Old 05-27-2007, 11:52 AM   #2 (permalink)
Master of the Internet
 
Join Date: Oct 2005
Age: 45
Posts: 6,283
Default

from the 2.0 RC1 BaseVendor.cs:

Code:
		public virtual TimeSpan RestockDelay
		{
			get
			{
				return TimeSpan.FromHours( 1 );
			}
		}
note: being a virtual member, it may be overridden in each individual vendor type.
__________________
Why is it that I'm never as smart as I thought I was yesterday?
My vast knowledge is only surpassed by my infinite ignorance.
<TheOutkastDev> i might have to hire an assassin to killl mal so that i can jump in front of the bullet and piss on him
Malaperth is offline   Reply With Quote
Old 05-27-2007, 12:33 PM   #3 (permalink)
Forum Novice
 
Join Date: Apr 2007
Age: 30
Posts: 113
Default thankx

Hmm sorry ı didn't tell that ı am working on runuo 1.0 can you help me with 1.0 version ?
UoTurkey is offline   Reply With Quote
Old 05-27-2007, 12:59 PM   #4 (permalink)
Forum Expert
 
Lokai's Avatar
 
Join Date: Aug 2003
Location: Bergen, NY (Rochester)
Age: 41
Posts: 1,424
Send a message via ICQ to Lokai Send a message via MSN to Lokai Send a message via Yahoo to Lokai
Default

It is exactly the same in v1.0.

If you want to make the change Global, change BaseVendor like this:

Code:
 
 
  public virtual TimeSpan RestockDelay
  {
   get
   {
    return TimeSpan.FromMinutes( 1 );
   }
  }
If you don't want to change the BaseVendor, you can change individual vendors by Overriding the RestockDelay value like this:

Code:
 
 
  public override TimeSpan RestockDelay
  {
   get
   {
    return TimeSpan.FromMinutes( 1 );
   }
  }
Lokai is offline   Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 RC5