Esempio n. 1
0
        public virtual void ActivateLinks()
        {
            if (LinkedInstances.Count > 0 && GeneratorProfiles.Count > 0)
            {
                var profileTemplate = GeneratorProfiles[0];

                foreach (var link in LinkedInstances)
                {
                    var profile = new BiotaPropertiesGenerator();
                    profile.WeenieClassId = link.WeenieClassId;
                    profile.ObjCellId     = link.ObjCellId;
                    profile.OriginX       = link.OriginX;
                    profile.OriginY       = link.OriginY;
                    profile.OriginZ       = link.OriginZ;
                    profile.AnglesW       = link.AnglesW;
                    profile.AnglesX       = link.AnglesX;
                    profile.AnglesY       = link.AnglesY;
                    profile.AnglesZ       = link.AnglesZ;
                    profile.Probability   = profileTemplate.Probability;
                    profile.InitCreate    = profileTemplate.InitCreate;
                    profile.MaxCreate     = profileTemplate.MaxCreate;
                    profile.WhenCreate    = profileTemplate.WhenCreate;
                    profile.WhereCreate   = profileTemplate.WhereCreate;

                    GeneratorProfiles.Add(profile);
                }
            }
        }
Esempio n. 2
0
        private void SetEphemeralValues()
        {
            Ethereal      = true;
            RadarBehavior = ACE.Entity.Enum.RadarBehavior.ShowNever;
            Usable        = ACE.Entity.Enum.Usable.No;

            if (!PropertyManager.GetBool("advanced_combat_pets").Item)
            {
                Biota.BiotaPropertiesSpellBook.Clear();
            }

            Biota.BiotaPropertiesCreateList.Clear();
            Biota.BiotaPropertiesEmote.Clear();
            GeneratorProfiles.Clear();

            DeathTreasureType = null;
        }
Esempio n. 3
0
        private void SetEphemeralValues()
        {
            Ethereal      = true;
            RadarBehavior = ACE.Entity.Enum.RadarBehavior.ShowNever;
            Usable        = ACE.Entity.Enum.Usable.No;

            if (!PropertyManager.GetBool("advanced_combat_pets").Item)
            {
                Biota.BiotaPropertiesSpellBook.Clear();
            }

            Biota.BiotaPropertiesCreateList.Clear();
            Biota.BiotaPropertiesEmote.Clear();
            GeneratorProfiles.Clear();

            DeathTreasureType   = null;
            WieldedTreasureType = null;

            if (Biota.WeenieType != (int)WeenieType.CombatPet) // Combat Pets are currently being made from real creatures
            {
                Biota.WeenieType = (int)WeenieType.CombatPet;
            }
        }