Пример #1
0
        public override void OnDoubleClick(Mobile from)
        {
            VampGloves   gloves   = from.FindItemOnLayer(Layer.Gloves) as VampGloves;
            VampHelm     helm     = from.FindItemOnLayer(Layer.Helm) as VampHelm;
            VampLegs     legs     = from.FindItemOnLayer(Layer.Pants) as VampLegs;
            VampArms     arms     = from.FindItemOnLayer(Layer.Arms) as VampArms;
            VampGorget   gorget   = from.FindItemOnLayer(Layer.Neck) as VampGorget;
            VampEarrings earrings = from.FindItemOnLayer(Layer.Earrings) as VampEarrings;
            VampRing     ring     = from.FindItemOnLayer(Layer.Ring) as VampRing;
            VampBracelet bracelet = from.FindItemOnLayer(Layer.Bracelet) as VampBracelet;

            if (Parent != from)
            {
                from.SendMessage("Draculas ring must be equiped to recieve the keys to the inner chamber");
            }

            else if (gloves == null || helm == null || legs == null || arms == null || gorget == null || earrings == null || ring == null || bracelet == null)
            {
                from.SendMessage("You must have all the pieces of the Vampire and Dracula equiped to transform!");
            }

            else if (this.Transformed == false)
            {
                from.PlaySound(0x220);
                from.BodyMod           = 0x0;
                from.DisplayGuildTitle = false;
                this.Transformed       = true;
                from.AddToBackpack(new DracsKey());
                from.AddToBackpack(new BookOfTheDammed());
            }
            else
            {
                from.PlaySound(0x220);
                from.BodyMod           = 0x0;
                from.DisplayGuildTitle = true;
                this.Transformed       = false;
            }
        }
Пример #2
0
        public override void OnDoubleClick(Mobile from)
        {
            VampGloves   gloves   = from.FindItemOnLayer(Layer.Gloves) as VampGloves;
            VampHelm     helm     = from.FindItemOnLayer(Layer.Helm) as VampHelm;
            VampLegs     legs     = from.FindItemOnLayer(Layer.Pants) as VampLegs;
            VampArms     arms     = from.FindItemOnLayer(Layer.Arms) as VampArms;
            VampGorget   gorget   = from.FindItemOnLayer(Layer.Neck) as VampGorget;
            VampEarrings earrings = from.FindItemOnLayer(Layer.Earrings) as VampEarrings;
            VampRing     ring     = from.FindItemOnLayer(Layer.Ring) as VampRing;
            VampBracelet bracelet = from.FindItemOnLayer(Layer.Bracelet) as VampBracelet;

            if (Parent != from)
            {
                from.SendMessage("The Shroud of Dracula must be equiped to be used.");
            }

            else if (from.Mounted == true)
            {
                from.SendMessage("You cannot be mounted while trying to transform!");
            }

            else if (gloves == null || helm == null || legs == null || arms == null || gorget == null || earrings == null || ring == null || bracelet == null)
            {
                from.SendMessage("You must have all the pieces of the Vampire equiped to transform!");
            }

            else if (this.Transformed == false)
            {
                LootType = LootType.Blessed;
                from.SendMessage("You pull the hood over your head.");
                from.PlaySound(0x220);
                //from.Title = "the True Vampire";
                from.BodyMod           = 146;
                from.NameHue           = 39;
                from.HueMod            = 1;
                from.DisplayGuildTitle = false;
                this.Transformed       = true;
                ItemID = 9860;
                from.RemoveItem(this);
                from.EquipItem(this);

                m_StatMod0 = new StatMod(StatType.Str, "MOD0", 5, TimeSpan.Zero);
                m_StatMod1 = new StatMod(StatType.Int, "MOD1", 5, TimeSpan.Zero);
                m_StatMod2 = new StatMod(StatType.Dex, "MOD2", 5, TimeSpan.Zero);
                from.AddStatMod(m_StatMod0);
                from.AddStatMod(m_StatMod1);
                from.AddStatMod(m_StatMod2);
            }
            else
            {
                from.SendMessage("You lower the hood.");
                from.PlaySound(0x220);
                //from.Title = null;
                from.BodyMod           = 0x0;
                from.NameHue           = -1;
                from.HueMod            = -1;
                from.DisplayGuildTitle = true;
                this.Transformed       = false;
                ItemID = 0x1F03;
                from.RemoveItem(this);
                from.EquipItem(this);
                from.RemoveStatMod("MOD0");
                from.RemoveStatMod("MOD1");
                from.RemoveStatMod("MOD2");
            }
        }