Example #1
0
        public override void OnSingleClick(Mobile from)
        {
            HueableSpellDetail hueableSpellDetails = SpellHue.GetHueableSpellDetail(m_HueableSpell);
            SpellHueTypeDetail spellHueTypeDetails = SpellHue.GetSpellHueTypeDetail(m_HueType);

            string text = "(" + hueableSpellDetails.m_SpellName + ": " + spellHueTypeDetails.m_Name + ")";

            base.OnSingleClick(from);

            LabelTo(from, text);
        }
Example #2
0
        public static SpellHueTypeDetail GetSpellHueTypeDetail(SpellHueType spellHueType)
        {
            SpellHueTypeDetail spellHueTypeDetail = new SpellHueTypeDetail();

            switch (spellHueType)
            {
            case SpellHueType.Basic:
                spellHueTypeDetail.m_Name         = "Basic";
                spellHueTypeDetail.m_AnimationHue = 0;
                spellHueTypeDetail.m_DisplayHue   = 0;
                break;

            case SpellHueType.Fiery:
                spellHueTypeDetail.m_Name         = "Fiery";
                spellHueTypeDetail.m_AnimationHue = 2116;
                spellHueTypeDetail.m_DisplayHue   = 2117;
                break;

            case SpellHueType.Icy:
                spellHueTypeDetail.m_Name         = "Icy";
                spellHueTypeDetail.m_AnimationHue = 2578;
                spellHueTypeDetail.m_DisplayHue   = 2579;
                break;

            case SpellHueType.Earthy:
                spellHueTypeDetail.m_Name         = "Earthy";
                spellHueTypeDetail.m_AnimationHue = 2552;
                spellHueTypeDetail.m_DisplayHue   = 2553;
                break;

            case SpellHueType.Mystical:
                spellHueTypeDetail.m_Name         = "Mystical";
                spellHueTypeDetail.m_AnimationHue = 2641;
                spellHueTypeDetail.m_DisplayHue   = 2642;
                break;

            case SpellHueType.Ghostly:
                spellHueTypeDetail.m_Name         = "Ghostly";
                spellHueTypeDetail.m_AnimationHue = 2598;
                spellHueTypeDetail.m_DisplayHue   = 2599;
                break;
            }

            return(spellHueTypeDetail);
        }
Example #3
0
        public virtual void Activate(PlayerMobile player)
        {
            SpellHueEntry entry = PlayerEnhancementPersistance.GetSpellHueEntry(player, m_HueableSpell);

            if (entry == null)
            {
                return;
            }

            HueableSpellDetail hueableSpellDetails = SpellHue.GetHueableSpellDetail(m_HueableSpell);
            SpellHueTypeDetail spellHueTypeDetails = SpellHue.GetSpellHueTypeDetail(m_HueType);

            if (hueableSpellDetails == null || spellHueTypeDetails == null)
            {
                return;
            }

            string displayName = hueableSpellDetails.m_SpellName + ": " + spellHueTypeDetails.m_Name;

            if (entry.m_UnlockedHues.Contains(m_HueType))
            {
                player.SendMessage("You have already unlocked the spell hue for " + displayName + ".");
                return;
            }

            else
            {
                entry.m_UnlockedHues.Add(m_HueType);
                entry.m_ActiveHue = m_HueType;

                player.SendMessage("You unlock the spell hue for " + displayName + ".");

                player.PlaySound(0x0F5);
                player.FixedParticles(0x375A, 10, 15, 5012, 2587, 0, EffectLayer.Waist);

                player.CloseGump(typeof(PlayerSpellHuesGump));

                Delete();

                return;
            }
        }