Exemple #1
0
        public static void TryPackOpen(BaseCreature squire, Mobile from)
        {
            if (squire.IsDeadPet)
            {
                return;
            }

            Item QuiverCheck = squire.FindItemOnLayer(Layer.Cloak);

            if (QuiverCheck is BaseQuiver)
            {
                Container item = (Container)QuiverCheck;

                if (CheckAccess(squire, from))
                {
                    if (item != null)
                    {
                        from.Use(item);
                        if (((Squire)squire).m_SquireBeQuiet == false)
                        {
                            SquireDialog.DoSquireDialog(from, ((Squire)squire), SquireDialogTree.OpenQuiver, null, null);
                        }
                    }
                }
            }
            else
            {
                if (((Squire)squire).m_SquireBeQuiet == false)
                {
                    SquireDialog.DoSquireDialog(from, ((Squire)squire), SquireDialogTree.NotAQuiver, null, null);
                }
            }
        }
Exemple #2
0
 protected override void OnTick()
 {
     m_Squire.CanHearGhosts          = false;
     m_Squire.m_SpiritWorldConnected = false;
     m_Squire.FixedParticles(0x375A, 1, 15, 9501, 2100, 4, EffectLayer.Waist);
     if (m_Squire.m_SquireBeQuiet == false)
     {
         SquireDialog.DoSquireDialog(m_Squire.ControlMaster, m_Squire, SquireDialogTree.SpiritChannelFades, null, null);
     }
 }