Go Back   RunUO - Ultima Online Emulation > RunUO > RunUO Post Archive

RunUO Post Archive The Archvie

Reply
 
Thread Tools Display Modes
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
Old 06-03-2004, 09:00 AM   #2 (permalink)
draco
Guest
 
Posts: n/a
Default

This is good for RP shards. Thank you GD.
  Reply With Quote
Old 06-03-2004, 12:25 PM   #3 (permalink)
 
Join Date: Apr 2004
Age: 37
Posts: 36
Thumbs up Nice Script !

very nice addition... ive tried it and its very nice Thanks GD !
Aramis1971 is offline   Reply With Quote
Old 06-03-2004, 02:02 PM   #4 (permalink)
GoldDraco13
Guest
 
Posts: n/a
Default

Thank you .... I'm always finding small things to improve the RPG feel
  Reply With Quote
Old 06-03-2004, 04:45 PM   #5 (permalink)
 
hudel's Avatar
 
Join Date: Oct 2003
Location: Germany
Age: 38
Posts: 508
Send a message via ICQ to hudel
Thumbs up

fine idea, I'll love it.
hudel is offline   Reply With Quote
Old 06-03-2004, 09:29 PM   #6 (permalink)
 
Join Date: Oct 2003
Location: Wyoming
Age: 27
Posts: 62
Thumbs up

Thanks GD you rock

Now I just need to combine this with Arya's Conversational NPC and I can make my vendors and other NPCs that much better.

Thanks Again,

-Davil the Dark
thedavil 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