Exemplo n.º 1
0
        public DataStore()
        {
            LegacyToolBox.AppendMessage("Loading Creature Template...");
            CreatureTemplate = WorldWorker.LoadAllCreatureTemplate();
            LegacyToolBox.AppendMessage("Loading Item Template...");
            ItemTemplate = WorldWorker.LoadAllItemTemplate();
            //LegacyToolBox.AppendMessage("Loading Creature Spawn Info...");
            //CreatureSpawn = WorldWorker.LoadAllCreatureSpawnInfo();
            //LegacyToolBox.AppendMessage("Loading BroadCast Text...");
            //BroadCastText = WorldWorker.LoadAllBroadCastText();
            LegacyToolBox.AppendMessage("Loading Quest Template...");
            QuestTemplate = WorldWorker.LoadAllQuestTemplate();
            //LegacyToolBox.AppendMessage("Loading Smart Scripts...");
            //SmartScript = WorldWorker.LoadAllSmartScripts();
            //LegacyToolBox.AppendMessage("Loading Npc Text...");
            //NpcText = WorldWorker.LoadAllNpcText();
            //LegacyToolBox.AppendMessage("Loading Gossip Menu Options...");
            //GossipItem = WorldWorker.LoadAllGossipOption();
            LegacyToolBox.AppendMessage("Loading Gossip Menus...");
            GossipMenu = WorldWorker.LoadAllGossipMenu();
            //LegacyToolBox.AppendMessage("Loading Npc Trainers...");
            //Trainer = WorldWorker.LoadAllNpcTrainer();
            //LegacyToolBox.AppendMessage("Loading Npc Vendors...");
            //Vendor = WorldWorker.LoadAllNpcVendor();
            //LegacyToolBox.AppendMessage("Loading Creature Loots...");
            //CreatureLoot = WorldWorker.LoadAllCreatureLoot();
            LegacyToolBox.AppendMessage("Loading Item Enchantments...");
            ItemEnchant = WorldWorker.LoadAllItemEnchant();
            LegacyToolBox.AppendMessage("Loading Research Set...");
            ResearchSet = WorldWorker.LoadAllResearchSet();
            LegacyToolBox.AppendMessage("Loading Research Data...");
            ResearchData = WorldWorker.LoadAllResearchData();
            LegacyToolBox.AppendMessage("Loading Compound Recipe...");
            CompoundRecipe = WorldWorker.LoadCompoundRecipe();

            LegacyToolBox.AppendMessage("Loading Item Quality Define...");
            ItemQuality = WorldWorker.LoadDBDefine("ItemQuality");
            LegacyToolBox.AppendMessage("Loading Item Ammo Type Define...");
            ItemAmmoType = WorldWorker.LoadDBDefine("ItemAmmoType");
            LegacyToolBox.AppendMessage("Loading Item Bonding Define...");
            ItemBonding = WorldWorker.LoadDBDefine("ItemBonding");
            LegacyToolBox.AppendMessage("Loading Item Damage School Define...");
            ItemDamageSchool = WorldWorker.LoadDBDefine("ItemDamageSchool");
            LegacyToolBox.AppendMessage("Loading Item Inventory Type Define...");
            ItemInventoryType = WorldWorker.LoadDBDefine("ItemInventoryType");
            LegacyToolBox.AppendMessage("Loading Item Sheath Define...");
            ItemSheath = WorldWorker.LoadDBDefine("ItemSheath");
            LegacyToolBox.AppendMessage("Loading Item Socket Color Define...");
            ItemSocketColor = WorldWorker.LoadDBDefine("ItemSocketColor");
            LegacyToolBox.AppendMessage("Loading Item Spell Trigger Define...");
            ItemSpellTrigger = WorldWorker.LoadDBDefine("ItemSpellTrigger");
            LegacyToolBox.AppendMessage("Loading Item Stat Type Define...");
            ItemStatType = WorldWorker.LoadDBDefine("ItemStatType");
            LegacyToolBox.AppendMessage("Loading Reputation Rank Define...");
            ReputationRank = WorldWorker.LoadDBDefine("ReputationRank");
            LegacyToolBox.AppendMessage("Loading Gossip Icon Define...");
            GossipIcon = WorldWorker.LoadDBDefine("GossipIcon");
            LegacyToolBox.AppendMessage("Loading Spell Effect Define...");
            SpellEffect = WorldWorker.LoadDBDefine("SpellEffect");
            LegacyToolBox.AppendMessage("Loading Spell Aura Define...");
            SpellAura = WorldWorker.LoadDBDefine("SpellAura");
            LegacyToolBox.AppendMessage("Loading Spell Effect Target Define...");
            SpellEffectTarget = WorldWorker.LoadDBDefine("SpellEffectTarget");
            LegacyToolBox.AppendMessage("Loading Spell Aura State Define...");
            SpellAuraState = WorldWorker.LoadDBDefine("SpellAuraState");
            LegacyToolBox.AppendMessage("Loading Spell Family Define...");
            SpellFamily = WorldWorker.LoadDBDefine("SpellFamily");
            LegacyToolBox.AppendMessage("Loading Spell Damage Class Define...");
            SpellDamageClass = WorldWorker.LoadDBDefine("SpellDamageClass");
            LegacyToolBox.AppendMessage("Loading Spell Power Type Define...");
            SpellPowerType = WorldWorker.LoadDBDefine("SpellPowerType");
            LegacyToolBox.AppendMessage("Loading Item Group Sound Define...");
            ItemGroupSound = WorldWorker.LoadDBDefine("ItemGroupSound");
            LegacyToolBox.AppendMessage("Loading Gossip Option Define...");
            GossipOption = WorldWorker.LoadDBDefine("GossipOption");
            LegacyToolBox.AppendMessage("Loading Item Material Define...");
            ItemMaterial = WorldWorker.LoadDBDefine("ItemMaterial");

            LegacyToolBox.AppendMessage("Loading DBC <Spell>...");
            Spell = WorldWorker.LoadAllSpell();
            LegacyToolBox.AppendMessage("Loading DBC <SkillLine>...");
            SkillLine = WorldWorker.LoadAllSkillLine();
            LegacyToolBox.AppendMessage("Loading DBC <SkillLineAbility>...");
            SkillLineAbility = WorldWorker.LoadSkillLineAbility();
            LegacyToolBox.AppendMessage("Loading DBC <ItemRandomProperties>...");
            ItemRandomProperty = WorldWorker.LoadItemRandomProperty();
            LegacyToolBox.AppendMessage("Loading DBC <SpellItemEnchantment>...");
            SpellItemEnchant = WorldWorker.LoadSpellItemEnchant();
            LegacyToolBox.AppendMessage("Loading DBC <ItemDisplayInfo>...");
            ItemDisplayInfo = WorldWorker.LoadItemDisplayInfo();
            GemProperty     = WorldWorker.LoadGemProperties();

            GtCombatRating            = WorldWorker.LoadGtCombatRating();
            GtClassCombatRatingScalar = WorldWorker.LoadGtClassCombatRatingScalar();

            LegacyToolBox.AppendMessage("Loading DBC Define <SpellRadius>...");
            SpellRadius = WorldWorker.LoadDBCDefine("SpellRadius");
            LegacyToolBox.AppendMessage("Loading DBC Define <SpellMechanic>...");
            SpellMechanic = WorldWorker.LoadDBCDefine("SpellMechanic.dbc", 1, 6, true);
            LegacyToolBox.AppendMessage("Loading DBC Define <SpellDispelType>...");
            SpellDispel = WorldWorker.LoadDBCDefine("SpellDispelType.dbc", 1, 6);
            LegacyToolBox.AppendMessage("Loading DBC Define <TotemCategory>...");
            TotemCategory = WorldWorker.LoadDBCDefine("TotemCategory.dbc", 1, 6, true);
            LegacyToolBox.AppendMessage("Loading DBC Define <SpellIcon>...");
            SpellIcon = WorldWorker.LoadDBCDefine("SpellIcon.dbc", 1, 2, false, false);
            LegacyToolBox.AppendMessage("Loading DBC Define <ItemClass>...");
            ItemClass = WorldWorker.LoadDBCDefine("ItemClass.dbc", 1, 8);
            LegacyToolBox.AppendMessage("Loading DBC Define <ItemBagFamily>...");
            ItemBagFamily = WorldWorker.LoadDBCDefine("ItemBagFamily.dbc", 1, 6);
            LegacyToolBox.AppendMessage("Loading DBC Define <ItemPetFood>...");
            ItemPetFood = WorldWorker.LoadDBCDefine("ItemPetFood.dbc", 1, 6, true);
            LegacyToolBox.AppendMessage("Loading DBC Define <HolidayNames>...");
            HolidayNames = WorldWorker.LoadDBCDefine("HolidayNames.dbc", 1, 6, true);
            LegacyToolBox.AppendMessage("Loading DBC Define <PageTextMaterial>...");
            PageTextMaterial = WorldWorker.LoadDBCDefine("PageTextMaterial.dbc", 1, 2, true);
            LegacyToolBox.AppendMessage("Loading DBC Define <Languages>...");
            Language = WorldWorker.LoadDBCDefine("Languages.dbc", 1, 6, true);
            LegacyToolBox.AppendMessage("Loading DBC Define <ItemSubClass>...");
            ItemSubclass = WorldWorker.LoadDBCDefine("ItemSubClass.dbc", 1, 2, 15, ItemClass.Count);
            LegacyToolBox.AppendMessage("Loading DBC Define <ItemSet>...");
            ItemSet = WorldWorker.LoadDBCDefine("ItemSet.dbc", 1, 6, true);
            LegacyToolBox.AppendMessage("Loading DBC Define <Emotes>...");
            Emotes = WorldWorker.LoadDBCDefine("Emotes.dbc", 1, 2);
            LegacyToolBox.AppendMessage("Loading DBC Define <SpellDuration>...");
            SpellDuration = WorldWorker.LoadDBCDefine("SpellDuration");
            LegacyToolBox.AppendMessage("Loading DBC Define <SpellCastTime>...");
            SpellCastTime = WorldWorker.LoadDBCDefine("SpellCastTime");
            LegacyToolBox.AppendMessage("Loading DBC Define <SpellRange>...");
            SpellRange = WorldWorker.LoadDBCDefine("SpellRange");
            QuestInfo  = WorldWorker.LoadDBCDefine("QuestInfo.dbc", 1, 6, true);
            QuestSort  = WorldWorker.LoadDBCDefine("QuestSort.dbc", 1, 6, true);
            Area       = WorldWorker.LoadDBCDefine("AreaTable.dbc", 1, 16, true);
            Faction    = WorldWorker.LoadDBCDefine("Faction.dbc", 1, 28, true);
            Skill      = WorldWorker.LoadDBCDefine("SkillLine.dbc", 1, 8, true);
            Title      = WorldWorker.LoadDBCDefine("CharTitles.dbc", 1, 7, true);

            DB.Refresh();
        }