Example #1
0
            public void Release()
            {
                m_Grabber.EndAction(typeof(BasePotion));
                m_Grabber.EndAction(typeof(BaseWeapon));
                m_Grabbed.EndAction(typeof(BasePotion));
                m_Grabbed.EndAction(typeof(BaseWeapon));
                m_Grabbed.EndAction(typeof(BaseMount));

                m_Grabbed.CantWalk = false;
                m_Grabbed.Frozen   = false;

                Grabbers.Remove(m_Grabber);
                Stop();
            }
Example #2
0
            protected override void OnTick()
            {
                if (m_Pentagram != null)
                {
                    m_Pentagram.Delete();
                }

                if (m_EffectTimer != null)
                {
                    m_EffectTimer.Stop();
                }

                if (m_Summoner.Alive)
                {
                    m_Summoner.SendMessage("The creature you have summoned has arrived.");
                    m_Summoner.PlaySound(0xFB);

                    if (m_Creature != null)
                    {
                        m_Creature.MoveToWorld(m_Summoner.Location, m_Summoner.Map);
                        m_Creature.ControlTarget = m_Summoner;
                        m_Creature.ControlOrder  = OrderType.Follow;
                        m_Creature.BoltEffect(0);
                    }
                }
                else
                {
                    m_Summoner.SendMessage("You have died and your summoning has failed. ");

                    if (m_Creature != null)
                    {
                        m_Creature.Delete();
                    }
                }
                m_Summoner.EndAction(typeof(NecroSummonGump));
            }