public DelayTimer(MephitisCocoon mCocoon, PlayerMobile target) : base(TimeSpan.FromSeconds(1.0), TimeSpan.FromSeconds(1.0)) { m_Target = target; m_Cocoon = mCocoon; m_Ticks = 0; }
public DelayTimer(MephitisCocoon mCocoon, PlayerMobile target, int bodyvalue) : base(TimeSpan.FromSeconds(1.0), TimeSpan.FromSeconds(1.0)) { m_Target = target; m_Cocoon = mCocoon; m_OldBodyValue = bodyvalue; m_Ticks = 0; }
public override void OnGotMeleeAttack(Mobile attacker) { base.OnGotMeleeAttack(attacker); Mobile person = attacker; if (attacker is BaseCreature) { if (((BaseCreature)attacker).Summoned) { person = ((BaseCreature)attacker).SummonMaster; } else { person = attacker; } } else { person = attacker; } if (person == null) { return; } if (ChanceToThrowWeb >= Utility.RandomDouble() && (person is PlayerMobile) && !UnderWebEffect(person)) { Direction = this.GetDirectionTo(person); MovingEffect(person, 0xF7E, 10, 1, true, false, 0x496, 0); MephitisCocoon mCocoon = new MephitisCocoon((PlayerMobile)person); m_Table[person] = true; mCocoon.MoveToWorld(person.Location, person.Map); mCocoon.Movable = false; } }
public DelayTimer( MephitisCocoon mCocoon, PlayerMobile target ) : base(TimeSpan.FromSeconds( 1.0 ), TimeSpan.FromSeconds( 1.0 )) { m_Target = target; m_Cocoon = mCocoon; m_Ticks = 0; }
public override void OnGotMeleeAttack( Mobile attacker ) { base.OnGotMeleeAttack( attacker ); Mobile person = attacker; if ( attacker is BaseCreature ) { if ( ( (BaseCreature) attacker ).Summoned ) { person = ( (BaseCreature) attacker ).SummonMaster; } else { person = attacker; } } else { person = attacker; } if ( person == null ) { return; } if ( ChanceToThrowWeb >= Utility.RandomDouble() && ( person is PlayerMobile ) && !UnderWebEffect( person ) ) { Direction = this.GetDirectionTo( person ); MovingEffect( person, 0xF7E, 10, 1, true, false, 0x496, 0 ); MephitisCocoon mCocoon = new MephitisCocoon( (PlayerMobile) person ); m_Table[person] = true; mCocoon.MoveToWorld( person.Location, person.Map ); mCocoon.Movable = false; } }