View Single Post
Old 04-15-2006, 07:02 PM   #2 (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

ooops - missed one thing in there - using it as it is works - except you see ALL items that are hidden - including internal map items and other junk lol

below is the full part fixed - just needed to add in a chack that is was a mobil you were looking at

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 && m is PlayerMobile )
				return true;
//end add
			return base.CanSee( m );
		}
sorry about that guys
Lord_Greywolf is online now   Reply With Quote