示例#1
0
 public override void OnClick()
 {
     if (m_Item.Validate(m_Mobile))
     {
         new HomeStoneSpell(m_Item, m_Mobile).Cast();
     }
 }
示例#2
0
 private void HomeStoneTeleport()
 {
     if (m_homeStone.Validate(Caster))
     {
         HomeStone.RegisterUse(Caster);
         BaseCreature.TeleportPets(Caster, m_homeStone.home, m_homeStone.homeMap, true);
         Caster.Location      = new Point3D(m_homeStone.home);
         Caster.Map           = m_homeStone.homeMap;
         m_homeStone.LastUsed = DateTime.Now;
         Caster.PlaySound(0x1FC);
         Caster.FixedParticles(0x3709, 10, 30, 1281, 1, 5037, EffectLayer.Waist);
     }
 }