public virtual bool CanSee(Mobile m)
{
if (m_Deleted || m.m_Deleted || m_Map == Map.Internal || m.m_Map == Map.Internal)
{
return false;
}
return this == m ||
(m.m_Map == m_Map && (!m.Hidden || (IsStaff() && m_AccessLevel >= m.AccessLevel)) &&
((m.Alive || (Core.SE && Skills.SpiritSpeak.Value >= 100.0)) || !Alive || IsStaff() || m.Warmode));
}
public virtual bool CanSee(Mobile m)
{
if (m_Deleted || m.m_Deleted || m_Map == Map.Internal || m.m_Map == Map.Internal)
{
return false;
}
return this == m ||
(m.m_Map == m_Map && (!m.Hidden /*|| (IsStaff() && m_AccessLevel >= m.AccessLevel)*/) &&
((m.Alive || (Core.SE && Skills.SpiritSpeak.Value >= 100.0)) || !Alive || IsStaff() || m.Warmode));
}
public virtual bool CanSee(Mobile m)
{
if (m_Deleted || m.m_Deleted || m_Map == Map.Internal || m.m_Map == Map.Internal)
{
return false;
}
return this == m ||
(m.m_Map == m_Map && (!m.Hidden || (IsStaff() && (m_AccessLevel <= AccessLevel.GameMaster ||
(m_AccessLevel >= AccessLevel.Seer && m_AccessLevel >= m.AccessLevel))) &&
((m.Alive || (Core.SE && Skills.SpiritSpeak.Value >= 100.0)) || !Alive || IsStaff() || m.Warmode));
}
The original code already does this. You can only see those with equal access level to your own or lower. So Counselors can see other Counselors but not GMs or higher. GMs can see other GMs and Counselors but not Seers or higher, etc. He was wanting to make it where all staff can see each other regardless of their access level. The first code snippet I posted is the original, second is for all staff to see each other, with the third letting GMs and Counselors see each other but anything Seer or above would follow the normal hidden rules.I forgot this was even a thing, I have been playing by myself for so long I forgot you can't see other staff either haha.. Might I make another suggestion, having each access level see those below their access level, so Owner can see Admin (and lower) who can see GameMaster (and lower) etc. so ultimately no one can see the Owner/CoOwner but each higher access level can monitor those beneath them.
We use essential cookies to make this site work, and optional cookies to enhance your experience.