示例#1
0
        public override void OnPlayerKilled(Mobile killer, Mobile killed)
        {
            if (killed == null)
            {
                return;
            }

            if (AutoRes)
            {
                // prepare the autores callback
                Timer.DelayCall(RespawnTime, new TimerStateCallback(XmlPoints.AutoRes_Callback),
                                new object[] { killed, true });
            }


            // drop the ball if they were carrying it
            if (m_DeathBall != null && m_DeathBall.RootParent is Corpse)
            {
                Mobile owner = ((Corpse)(m_DeathBall.RootParent)).Owner;
                if (owner == killed)
                {
                    GameBroadcast(100412, killed.Name);  // "{0} has dropped the ball!"
                    m_DeathBall.MoveToWorld(owner.Location, owner.Map);
                }
            }
        }
示例#2
0
        public override void StartGame()
        {
            base.StartGame();

            // drop the ball on the gauntlet
            m_DeathBall = new DeathBall();
            m_DeathBall.MoveToWorld(Location, Map);
        }
示例#3
0
        public override void StartGame()
        {
            base.StartGame();

            // drop the ball on the gauntlet
            m_DeathBall = new DeathBall();
            m_DeathBall.MoveToWorld(Location, Map);

            SetNameHue();
        }