View Single Post
Old 04-09-2006, 12:33 PM   #1 (permalink)
Lord_Greywolf
Forum Master
 
Lord_Greywolf's Avatar
 
Join Date: Dec 2005
Posts: 6,757
Send a message via Yahoo to Lord_Greywolf
Default How to make admins see hidden admins

i thought i would share this for all of you shard owners out there

(i have this posted is script support - so you may see it there too)

As the owner of a shard - i feel i should be able to see all hidden players, even fellow admins, but they should not be able to see me

so i came up with a fix

it requires a slight edit to the playermobile.cs file
but it does not cause a player wipe or anything

just change:

Code:
		public override bool CanSee( Mobile m )
		{
			if ( m is PlayerMobile && ((PlayerMobile)m).m_VisList.Contains( this ) )
				return true;
			return base.CanSee( m );
		}
to this:

Code:
		public override bool CanSee( Mobile m )
		{
			if ( m is PlayerMobile && ((PlayerMobile)m).m_VisList.Contains( this ) )
				return true;
//added by greywolf
			string AccountName = "XXXXX";
			string AccountPlayer = "aaa";
			if ( this is PlayerMobile) AccountPlayer = Convert.ToString( this.Account);
			if ( this is PlayerMobile && AccountPlayer == AccountName )
				return true;
//end add
			return base.CanSee( m );
		}
the XXXXX is the name of your account

this way - you can "spy" on anybody and they can not spy on you

(the aaa is in there only to stop it from having a null pointer --- so just leave it as is)
Lord_Greywolf is online now   Reply With Quote