Esempio n. 1
0
 public static void SetMindRotScalar(Mobile caster, Mobile target, double scalar, TimeSpan duration)
 {
     if (!m_Table.ContainsKey(target))
     {
         m_Table.Add(target, new MRBucket(scalar, new MRExpireTimer(caster, target, duration)));
         BuffInfo.AddBuff(target, new BuffInfo(BuffIcon.Mindrot, 1075665, duration, target));
         MRBucket      tmpB = (MRBucket)m_Table[target];
         MRExpireTimer tmpT = (MRExpireTimer)tmpB.m_MRExpireTimer;
         tmpT.Start();
         target.SendLocalizedMessage(1074384);
     }
 }
Esempio n. 2
0
        public static void ClearMindRotScalar(Mobile m)
        {
            if (!m_Table.ContainsKey(m))
            {
                return;
            }

            BuffInfo.RemoveBuff(m, BuffIcon.Mindrot);
            MRBucket      tmpB = (MRBucket)m_Table[m];
            MRExpireTimer tmpT = (MRExpireTimer)tmpB.m_MRExpireTimer;

            tmpT.Stop();
            m_Table.Remove(m);
            m.SendLocalizedMessage(1060872); // Your mind feels normal again.
        }
Esempio n. 3
0
 public MRBucket(double theScalar, MRExpireTimer theTimer)
 {
     m_Scalar        = theScalar;
     m_MRExpireTimer = theTimer;
 }