private void TeleportTo(Mobile target) { Point3D from = m_Owner.Location; Point3D to = target.Location; m_Owner.Location = to; Effects.SendLocationParticles(EffectItem.Create(from, m_Owner.Map, EffectItem.DefaultDuration), 0x3728, 10, 10, 2023); Effects.SendLocationParticles(EffectItem.Create(to, m_Owner.Map, EffectItem.DefaultDuration), 0x3728, 10, 10, 5023); m_Owner.PlaySound(0x1FE); }
protected override void OnTick() { if (m_Owner.Deleted) { Stop(); return; } if ((m_Stage++ % 4) == 0 || !m_Owner.Move(m_Owner.Direction)) { m_Owner.Direction = (Direction)Utility.Random(8); } if (m_Stage > 16) { Effects.SendLocationParticles(EffectItem.Create(m_Owner.Location, m_Owner.Map, EffectItem.DefaultDuration), 0x3728, 10, 10, 2023); m_Owner.PlaySound(0x1FE); m_Owner.Delete(); } }