Exemplo n.º 1
0
        private void CleanUp()
        {
            if (PseudoSeerTimerInstance != null)
            {
                PseudoSeerTimerInstance.Stop();
            }

            // need to close all the PossessionGumps for existing PseudoSeers
            foreach (Mobile pseudoSeerLastCharacter in
                     PseudoSeers.Keys.Select(account => account.GetPseudoSeerLastCharacter())
                     .Where(pseudoSeerLastCharacter => pseudoSeerLastCharacter != null && pseudoSeerLastCharacter.NetState != null))
            {
                pseudoSeerLastCharacter.CloseGump(typeof(PossessGump));
            }

            PseudoSeers.Clear();
            CreaturePossession.BootAllPossessions();
        }
Exemplo n.º 2
0
 public string GetPermissionsFor(IAccount account)
 {
     return(account != null && PseudoSeers.ContainsKey(account) ? PseudoSeers[account] : null);
 }