Lord_Greywolf
Lord
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:
to this:
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)
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)