Exemplo n.º 1
0
 public void Cortar(Mobile from)
 {
     if (!Movable)
     {
         Movable = true;
         PlagueBeastLord PBL = RootParent as PlagueBeastLord;
         ((Container)Parent).RemoveItem(this);
         (from.Backpack).DropItem(this);
         from.PlaySound(0x248);
         from.SendMessage(Plague_Texts.Line[32]);
         PBL.Kill();
     }
 }
Exemplo n.º 2
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();
            }
        }
Exemplo n.º 3
0
            protected override void OnTick()             //Each second
            {
                if ((myblood == null) || (!myblood.Visible) || (myblood.m_taponado) ||
                    (PBL == null) || (!PBL.Alive))
                {
                    Stop();
                    return;
                }
                switch (timepassed++)
                {
                case 1: myblood.ItemID = 4654;
                    myblood.Location   = new Point3D(myblood.X + 5, myblood.Y, 0);
                    break;

                case 2: myblood.ItemID = 4653; break;

                case 3: myblood.ItemID = 4650; break;

                case 4: PBL.Kill(); break;
                }
            }
Exemplo n.º 4
0
 private void KillParent(PlagueBeastLord parent)
 {
     parent.Unfreeze();
     parent.Kill();
 }