View Single Post
Old 06-02-2004, 04:00 AM   #1 (permalink)
GoldDraco13
Guest
 
Posts: n/a
Default Talking Vendor's

Summary:
This is a Modified BaseVendor.cs that will allow all your vendor's to say random things when a player bumps into them....I set it for 15 second speech delay to reduce spam...Just a little idea to add life to a shard =]

Description:
***Can edit what they say***

Code:
string[] kfcsay = new string[]
		{
		"Come see my stuff!!!",
		"Best prices in the lands!!!",
                                etc...etc...etc...
***Can edit what range they respond at***

Code:
public override void OnMovement( Mobile m, Point3D oldLocation ) 
               {                                                    
         		if( m_Talked == false ) 
        		 { 
          		 	 if ( m.InRange( this, 1 ) )
***Can edit there speech delay***

Code:
private class SpamTimer : Timer 
	{ 
		public SpamTimer() : base( TimeSpan.FromSeconds( 15 ) )
Installation:
Just replace the distro BaseVendor.cs with one attached...Enjoy!!!
Attached Files
File Type: cs BaseVendor.cs (31.9 KB, 300 views)
  Reply With Quote