예제 #1
0
        public static void SetupGrizzly()
        {
            // default settings
            GrizzlyBear = new NPCEntry
            {
                Id             = BearId,
                DefaultName    = "Sample Grizzly",
                EntryFlags     = NPCEntryFlags.Tamable,
                Type           = CreatureType.Humanoid,
                DisplayIds     = new[] { 21635u },
                Scale          = 1,
                MinLevel       = 73,
                MaxLevel       = 74,
                HordeFactionId = FactionTemplateId.Monster_2,
                MinHealth      = 100000,
                MaxHealth      = 500000,
                AttackPower    = 314,
                AttackTime     = 1500,
                MinDamage      = 250,
                MaxDamage      = 360,
                WalkSpeed      = 2.5f,
                RunSpeed       = 8f,
                FlySpeed       = 14f,

                MinMana = 2000
            };

            GrizzlyBear.SetResistance(DamageSchool.Physical, 7600);

            // AOE damage spell
            GrizzlyBear.AddSpell(SpellId.ConeOfFire);

            // A spell with a freeze debuff
            GrizzlyBear.AddSpell(SpellId.Chilled);

            // Sample gossip menu
            GrizzlyBear.DefaultGossip = CreateSampleGossipMenu();

            GrizzlyBear.FinalizeDataHolder();

            //NPCMgr.AddEntry(BearId, GrizzlyBear);
        }