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 11-05-2005, 11:39 PM   #1 (permalink)
 
Join Date: Aug 2003
Location: Australia
Age: 41
Posts: 198
Default Speech Range

How or where do I edit to adjust the NPC vendors and bankers Hear Speech Range.

What is happening is players are standing outside the Buildings and accessing Bankers. And the NPC Vendors don't respond to speech at all, even if you're standing on top of them.

I'd like to stop this and have it so the player enter the building and must be within 2-3 tiles to have vendors and bankers respond to speech.

Any help appreciated
Grae is offline   Reply With Quote
Old 11-06-2005, 12:29 AM   #2 (permalink)
Forum Expert
 
Packer898's Avatar
 
Join Date: Dec 2004
Location: Tulsa, Oklahoma
Age: 35
Posts: 2,378
Send a message via ICQ to Packer898 Send a message via MSN to Packer898
Default

Hrmm interesting. If you look in BaseVendor.cs there is this
Code:
		public override bool PlayerRangeSensitive{ get{ return true; } }
Maybe look that up and see if it is what your looking for. I was unaware of any other npc's besides bankers that you could use without being InLOS. Maybe just add a InLOS check in banker.cs. *Shrugs*
Packer898 is offline   Reply With Quote
Old 11-06-2005, 06:59 AM   #3 (permalink)
 
Join Date: Aug 2003
Location: Australia
Age: 41
Posts: 198
Default

I fixed the Banker problem sorta. I changed this in Banker.cs
Code:
public override bool HandlesOnSpeech( Mobile from )
		{
			if ( from.InRange( this.Location, 12 ) )
				return true;

			return base.HandlesOnSpeech( from );
		}

		public override void OnSpeech( SpeechEventArgs e )
		{
			if ( !e.Handled && e.Mobile.InRange( this.Location, 12 ) )
To this
Code:
public override bool HandlesOnSpeech( Mobile from )
		{
			if ( from.InRange( this.Location, 3 ) )
				return true;

			return base.HandlesOnSpeech( from );
		}

		public override void OnSpeech( SpeechEventArgs e )
		{
			if ( !e.Handled && e.Mobile.InRange( this.Location, 3 ) )
So now my players have to be 3 tiles or closer to use speech to open bankbox. Which does the job, stops them from standing outside the building and opening their bankboxs.

For some reason my vendors don't respond to speech, at present you have to click on them and use the menu. Can't figure out just yet how to change this, so they are like the banker... be within 3 tiles and say "buy" or "sell" and they respond.
Grae is offline   Reply With Quote
Old 11-06-2005, 07:03 AM   #4 (permalink)
Account Terminated
 
Join Date: Sep 2002
Age: 26
Posts: 3,846
Send a message via ICQ to Phantom Send a message via AIM to Phantom Send a message via MSN to Phantom
Default

If they are standing outside of the banks, they are not within 2-3 tiles, so you already have what you want.

I am confused, so try to fix that, if you would.
Phantom is offline   Reply With Quote
Old 11-06-2005, 08:36 AM   #5 (permalink)
 
Join Date: Aug 2003
Location: Australia
Age: 41
Posts: 198
Default

Sorry for the confusion.

Bank problem is sorted, they can not longer access their bankboxs from outside the banks using speech. Now they have to go inside the building and either click on the banker and use the menu or be within 3 tiles to use speech.

The problem I am still having is my NPC Vendors don't respond to speech at all. The only way to access them at present is by clicking on them and using the menu.
Grae is offline   Reply With Quote
Old 11-06-2005, 01:55 PM   #6 (permalink)
Master of the Internet
 
TMSTKSBK's Avatar
 
Join Date: Feb 2004
Location: NC/NC State Univ
Age: 23
Posts: 16,424
Default

I would suggest investigating BaseVendor.

Have you done anything odd to the BaseVendor file?
__________________
Goodbye, folks.
TMSTKSBK is offline   Reply With Quote
Old 11-06-2005, 03:02 PM   #7 (permalink)
Account Terminated
 
Join Date: Sep 2002
Age: 26
Posts: 3,846
Send a message via ICQ to Phantom Send a message via AIM to Phantom Send a message via MSN to Phantom
Default

Quote:
Originally Posted by Grae
Sorry for the confusion.

Bank problem is sorted, they can not longer access their bankboxs from outside the banks using speech. Now they have to go inside the building and either click on the banker and use the menu or be within 3 tiles to use speech.

The problem I am still having is my NPC Vendors don't respond to speech at all. The only way to access them at present is by clicking on them and using the menu.
What modifications have you made?

Even a minor thing could have effected this feature.
Phantom is offline   Reply With Quote
Old 11-06-2005, 09:54 PM   #8 (permalink)
 
Join Date: Aug 2003
Location: Australia
Age: 41
Posts: 198
Default

Quote:
Originally Posted by TMSTKSBK
I would suggest investigating BaseVendor.

Have you done anything odd to the BaseVendor file?
I have'nt touched BaseVendor.cs at all besides read through it, to see if I could find something related to the problem. No changes what so ever have been made. I even extracted the original and compared it using WinMerge to the one I am using on the server and they are identical.
Grae is offline   Reply With Quote
Old 11-06-2005, 10:22 PM   #9 (permalink)
Master of the Internet
 
Join Date: Aug 2003
Posts: 5,688
Default

this might be helpful
http://runuo.com/forum/showthread.php?t=40464
__________________
The first line of the first rule in the forum rules and guidelines "Be respectful of others. "

For questions, information, and support for XmlSpawner and its addons, visit the
XmlSpawner Support Forum
ArteGordon is offline   Reply With Quote
Old 11-06-2005, 10:30 PM   #10 (permalink)
 
Join Date: Aug 2003
Location: Australia
Age: 41
Posts: 198
Default

Quote:
Originally Posted by ArteGordon
Much Appreciated... Thank You.
Grae 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