public InternalTimer(AntLion mobile, Mobile c, Point3D locale) : base(TimeSpan.FromSeconds(1.5), TimeSpan.FromSeconds(1.5)) { Priority = TimerPriority.FiftyMS; m_Ant = mobile; m_Comb = c; m_Locale = locale; ticktock = 0; }
protected override void OnTick() { AntLion lion = m_Mobile as AntLion; if (lion != null) { if (a_Mobile != null && a_Mobile.Alive) { a_Mobile.ApplyPoison(lion, Poison.Greater); lion.MovingEffect(a_Mobile, 0x36D4, 7, 0, false, false, 0x238, 1); a_Mobile.FixedParticles(0x374A, 10, 15, 5021, EffectLayer.Waist); a_Mobile.PlaySound(0x474); Stop(); } } }
public DigTimer( AntLion antlion, TimeSpan startdelay ) : base(startdelay,TimeSpan.FromSeconds( 3 )) { Priority = TimerPriority.FiftyMS; m_Ant = antlion; m_iPos = 0; }