Exemplo n.º 1
0
        public void CambiaGland(Mobile from, Item glandula)
        {
            if (Glandula.RootParent.Equals(RootParent))
            {
                from.LocalOverheadMessage(MessageType.Emote, 0x66B, false, Plague_Texts.Line[18]);
            }
            if (Gland_Colocada)
            {
                from.LocalOverheadMessage(MessageType.Emote, 0x66B, false, Plague_Texts.Line[19]);
            }

            if ((!Gland_Colocada) && (!Glandula.RootParent.Equals(RootParent)))                     //Si la glandula mala se sacó del bicho...
            {
                Suborgano.Hue    = Hue;
                Patas1.Hue       = Hue;
                Patas2.Hue       = Hue;
                Patas3.Hue       = Hue;
                Gland_Colocada   = true;
                glandula.Movable = false;
                Agujero.Visible  = true;
                base.Abrir(from);
                from.LocalOverheadMessage(MessageType.Emote, 0x66B, false, Plague_Texts.Line[20]);
                //Si no hay cerebro, la herida empieza a sangrar directamente
                if (HoldBrain == BrainTypes.Brain_None)
                {
                    PlagueBrain pb = Mybrain as PlagueBrain;
                    pb.Sangrar(from);
                }
            }
        }
Exemplo n.º 2
0
        public override void Abrir(Mobile from)
        {
            PlagueBeastLord m = RootParent as PlagueBeastLord;

            if (m == null)
            {
                return;
            }

            from.Direction = from.GetDirectionTo(m);
            if (Abierto)
            {
                from.LocalOverheadMessage(MessageType.Emote, 0x66B, false, Plague_Texts.Line[21]);
            }
            else
            {
                from.LocalOverheadMessage(MessageType.Emote, 0x66B, false, Plague_Texts.Line[22]);
                from.PlaySound(0x248);
                from.PlaySound(0x2AC);
                Agujero.Visible = true;

                base.Abrir(from);
                //Si no hay cerebro, la herida empieza a sangrar directamente
                if (HoldBrain == BrainTypes.Brain_None)
                {
                    PlagueBrain pb = Mybrain as PlagueBrain;
                    pb.Sangrar(from);
                }
            }
        }
Exemplo n.º 3
0
        public void VenaCortada(Mobile from, int color)
        {
            from.PlaySound(0x248);
            if (color != Hue)
            {
                m_venascortadas++;
                if (m_venascortadas == 3)
                {
                    PlagueBeastLord m = RootParent as PlagueBeastLord;
                    if (m == null)
                    {
                        return;
                    }

                    from.Direction = from.GetDirectionTo(m);
                    if (Abierto)
                    {
                        from.LocalOverheadMessage(MessageType.Emote, 0x66B, false, Plague_Texts.Line[21]);
                    }
                    else
                    {
                        from.LocalOverheadMessage(MessageType.Emote, 0x66B, false, Plague_Texts.Line[22]);
                        from.PlaySound(0x2AC);

                        Agujero.Visible = true;
                        Abierto         = true;
                        if (HoldBrain != BrainTypes.Brain_None)
                        {
                            Mybrain.Visible = true;
                        }
                        //Si no hay cerebro o no se cortaron las venas,
                        //la herida empieza a sangrar directamente
                        if (HoldBrain == BrainTypes.Brain_None)
                        {
                            PlagueBrain pb = Mybrain as PlagueBrain;
                            pb.Sangrar(from);
                        }
                    }
                }
            }
            else
            {
                m_venascortadas = 0;
                PlagueBeastLord PBL = RootParent as PlagueBeastLord;
                PBL.Kill();
            }
        }