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

RunUO Post Archive The Archvie

Reply
 
Thread Tools Display Modes
Old 11-26-2004, 10:13 AM   #1 (permalink)
Forum Expert
 
Join Date: Dec 2002
Posts: 730
Default Restricting All Names Macro

To prevent all names, add this to PlayerMobile.cs:
Code:
		public override void OnSingleClick( Mobile from )
		{
			if ( !from.InRange( this, 9 ) )
				return;

			base.OnSingleClick( from );
		}
This will only work for PlayerMobiles, if you want BaseCreatures to work as well, just add a similar one to BaseCreatures.cs (thanks Alambik for remembering me to put this here)

This may require you to modify it to work on AoS servers that disable single clicks.

PS:The 9 is the range required to see all names (0 to disable, but this will make people not being able to see names without opening paperdoll on no-AoS servers)
PS2:Not tested with macros from programs, like razor, but it should work.
Atomic 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 - 2009, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 RC5