Esempio n. 1
0
        public void GiveKeys(Mobile from)
        {
            if (m_Peerless != PeerlessList.None)
            {
                for (int i = 0; i < m_key.Length; i++)
                {
                    if (m_Peerless == PeerlessList.DreadHorn)
                    {
                        m_key[i] = new DreadHornActivation();
                    }
                    else if (m_Peerless == PeerlessList.ParoxysmusFelucca)
                    {
                        m_key[i] = new SlimyOintmentFelucca();
                    }
                    else if (m_Peerless == PeerlessList.ParoxysmusTrammel)
                    {
                        m_key[i] = new SlimyOintmentTrammel();
                    }
                    else if (m_Peerless == PeerlessList.MelisandeTrammel)
                    {
                        m_key[i] = new MelisandeActivationTrammel();
                    }
                    else if (m_Peerless == PeerlessList.MelisandeFelucca)
                    {
                        m_key[i] = new MelisandeActivationFelucca();
                    }
                    else if (m_Peerless == PeerlessList.Travesty)
                    {
                        m_key[i] = new BlackOrderKey();
                    }
                    else if (m_Peerless == PeerlessList.InterredGrizzle)
                    {
                        m_key[i] = new MasterKey();
                    }
                    else if (m_Peerless == PeerlessList.ShimmeringEffusionTrammel)
                    {
                        m_key[i] = new ShimmeringEffusionActivationTrammel();
                    }
                    else if (m_Peerless == PeerlessList.ShimmeringEffusionFelucca)
                    {
                        m_key[i] = new ShimmeringEffusionActivationFelucca();
                    }


                    from.AddToBackpack(m_key[i]);
                    from.SendLocalizedMessage(1072680);                       // You have been given the key to the boss.
                }
            }
        }
Esempio n. 2
0
        public void GiveKeys( Mobile from )
        {
            if ( m_Peerless != PeerlessList.None )
            {
                for ( int i = 0; i < m_key.Length; i++ )
                {
                    if ( m_Peerless == PeerlessList.DreadHorn )
                        m_key[i] = new DreadHornActivation();
                    else if ( m_Peerless == PeerlessList.ParoxysmusFelucca )
                        m_key[i] = new SlimyOintmentFelucca();
                    else if ( m_Peerless == PeerlessList.ParoxysmusTrammel )
                        m_key[i] = new SlimyOintmentTrammel();
                    else if ( m_Peerless == PeerlessList.MelisandeTrammel )
                        m_key[i] = new MelisandeActivationTrammel();
                    else if ( m_Peerless == PeerlessList.MelisandeFelucca )
                        m_key[i] = new MelisandeActivationFelucca();
                    else if ( m_Peerless == PeerlessList.Travesty )
                        m_key[i] = new BlackOrderKey();
                    else if ( m_Peerless == PeerlessList.InterredGrizzle )
                        m_key[i] = new MasterKey();
                    else if ( m_Peerless == PeerlessList.ShimmeringEffusionTrammel )
                        m_key[i] = new ShimmeringEffusionActivationTrammel();
                    else if ( m_Peerless == PeerlessList.ShimmeringEffusionFelucca )
                        m_key[i] = new ShimmeringEffusionActivationFelucca();

                    from.AddToBackpack( m_key[i] );
                    from.SendLocalizedMessage( 1072680 ); // You have been given the key to the boss.
                }
            }
        }