|
Архив - только для чтения |
Модератор форума: andycrowz |
Форум » Корзина форума » Корзина » Ошбка в visual studio |
Ошбка в visual studio |
Опишу все как делал сначала
так Проделал через Cmake запускаю TrinityCore.sln Начинаю компилировать Выдает 5 ошибок №Error 1 error C3859: virtual memory range for PCH exceeded; please recompile with a command line option of '-Zm138' or greater C:\Program Files\Microsoft Visual Studio 12.0\VC\include\xmemory0 577 1 game №2Error 2 error C1076: compiler limit : internal heap limit reached; use /Zm to specify a higher limit C:\Program Files\Microsoft Visual Studio 12.0\VC\include\xmemory0 577 1 game №3Error 3 error C3859: virtual memory range for PCH exceeded; please recompile with a command line option of '-Zm188' or greater C:\Program Files\Microsoft Visual Studio 12.0\VC\include\xtree 893 1 scripts №4Error 4 error C1076: compiler limit : internal heap limit reached; use /Zm to specify a higher limit C:\Program Files\Microsoft Visual Studio 12.0\VC\include\xtree 893 1 scripts №5Error 5 error LNK1181: cannot open input file '..\game\Release\game.lib' D:\gooaaew\src\server\worldserver\LINK worldserver Увиличиваю -Zm до 500 В game и scripts жму BUILD >BUILD SOLUTION жду Вибивает 3 ошибки № 1 Error 7 error C4263: 'uint64 instance_shadowfang_keep::instance_shadowfang_keep_InstanceMapScript::GetData64(uint32)' : member function does not override any base class virtual member function D:\Trinity\src\server\scripts\EasternKingdoms\ShadowfangKeep\instance_shadowfang_keep.cpp 233 1 scripts №2Error 8 error C4264: 'uint64 ZoneScript::GetData64(uint32) const' : no override available for virtual member function from base 'ZoneScript'; function is hidden D:\Trinity\src\server\scripts\EasternKingdoms\ShadowfangKeep\instance_shadowfang_keep.cpp 325 1 scripts №3Error 42 error LNK1181: cannot open input file '..\scripts\Release\scripts.lib' D:\gooaaew\src\server\worldserver\LINK worldserver Строка (OUTPUT) ------ Build started: Project: revision.h, Configuration: Release Win32 ------ CMake Warning (dev) in cmake/genrev.cmake: Syntax Warning in cmake code at D:/Trinity/cmake/genrev.cmake:61:109 Argument not separated from preceding token by whitespace. This warning is for project developers. Use -Wno-dev to suppress it. -- Could not find a proper repository signature (hash) - you may need to pull tags with git fetch -t Continuing anyway - note that the versionstring will be set to "unknown 1970-01-01 00:00:00 (Archived)" ------ Build started: Project: game, Configuration: Release Win32 ------ gamePCH.cpp AccountMgr.cpp RBAC.cpp AnticheatData.cpp AnticheatMgr.cpp AnticheatScripts.cpp AchievementMgr.cpp AddonMgr.cpp CombatAI.cpp GameObjectAI.cpp GuardAI.cpp PassiveAI.cpp PetAI.cpp ReactorAI.cpp TotemAI.cpp UnitAI.cpp CreatureAI.cpp CreatureAIRegistry.cpp CreatureAISelector.cpp CreatureEventAI.cpp CreatureEventAIMgr.cpp Generating Code... Compiling... ScriptedCreature.cpp ScriptedEscortAI.cpp ScriptedFollowerAI.cpp SmartAI.cpp SmartScript.cpp SmartScriptMgr.cpp AuctionHouseMgr.cpp Battlefield.cpp BattlefieldMgr.cpp BattlefieldWG.cpp ArenaTeam.cpp ArenaTeamMgr.cpp Battleground.cpp BattlegroundMgr.cpp BattlegroundQueue.cpp SpectatorAddon.cpp BattlegroundAB.cpp BattlegroundAV.cpp BattlegroundBE.cpp BattlegroundDS.cpp Generating Code... Compiling... BattlegroundEY.cpp BattlegroundIC.cpp BattlegroundNA.cpp BattlegroundRL.cpp BattlegroundRV.cpp BattlegroundSA.cpp BattlegroundWS.cpp CalendarMgr.cpp Channel.cpp D:\Trinity\src\server\game\Chat\Channels\Channel.cpp(608): warning C4551: function call missing argument list ChannelMgr.cpp Chat.cpp ChatLink.cpp HostileRefManager.cpp ThreatManager.cpp ConditionMgr.cpp DisableMgr.cpp DBCStores.cpp LFG.cpp LFGGroupData.cpp LFGMgr.cpp Generating Code... Compiling... LFGPlayerData.cpp LFGQueue.cpp LFGScripts.cpp Corpse.cpp Creature.cpp CreatureGroups.cpp GossipDef.cpp TemporarySummon.cpp DynamicObject.cpp GameObject.cpp Bag.cpp Item.cpp ItemEnchantmentMgr.cpp Object.cpp ObjectPosSelector.cpp UpdateData.cpp UpdateFieldFlags.cpp Pet.cpp Player.cpp SocialMgr.cpp Generating Code... Compiling... Totem.cpp Transport.cpp StatSystem.cpp Unit.cpp Vehicle.cpp GameEventMgr.cpp ObjectAccessor.cpp ObjectMgr.cpp GridStates.cpp GridNotifiers.cpp ObjectGridLoader.cpp Group.cpp GroupMgr.cpp GroupReference.cpp Guild.cpp GuildMgr.cpp AddonHandler.cpp ArenaTeamHandler.cpp AuctionHouseHandler.cpp AuthHandler.cpp Generating Code... Compiling... BattlefieldHandler.cpp BattleGroundHandler.cpp CalendarHandler.cpp ChannelHandler.cpp CharacterHandler.cpp ChatHandler.cpp CombatHandler.cpp DuelHandler.cpp GroupHandler.cpp GuildHandler.cpp ItemHandler.cpp LFGHandler.cpp LootHandler.cpp MailHandler.cpp MiscHandler.cpp MovementHandler.cpp NPCHandler.cpp PetHandler.cpp PetitionsHandler.cpp QueryHandler.cpp Generating Code... Compiling... QuestHandler.cpp ReferAFriendHandler.cpp SkillHandler.cpp SpellHandler.cpp TaxiHandler.cpp TicketHandler.cpp TradeHandler.cpp VehicleHandler.cpp VoiceChatHandler.cpp InstanceSaveMgr.cpp InstanceScript.cpp LootMgr.cpp Mail.cpp Map.cpp MapInstanced.cpp MapManager.cpp MapUpdater.cpp FollowerReference.cpp MotionMaster.cpp MovementGenerator.cpp Generating Code... Compiling... ConfusedMovementGenerator.cpp FleeingMovementGenerator.cpp HomeMovementGenerator.cpp IdleMovementGenerator.cpp PointMovementGenerator.cpp RandomMovementGenerator.cpp TargetedMovementGenerator.cpp WaypointMovementGenerator.cpp PathGenerator.cpp MovementPacketBuilder.cpp MovementUtil.cpp MoveSpline.cpp MoveSplineInit.cpp Spline.cpp WaypointManager.cpp OutdoorPvP.cpp OutdoorPvPMgr.cpp PoolMgr.cpp QuestDef.cpp ReputationMgr.cpp Generating Code... Compiling... MapScripts.cpp ScriptLoader.cpp ScriptMgr.cpp ScriptSystem.cpp Opcodes.cpp PacketLog.cpp WorldSession.cpp WorldSocket.cpp WorldSocketMgr.cpp SkillDiscovery.cpp SkillExtraItems.cpp SpellAuraEffects.cpp SpellAuras.cpp Spell.cpp SpellEffects.cpp D:\Trinity\src\server\game\Spells\SpellEffects.cpp(1194): warning C4060: switch statement contains no 'case' or 'default' labels SpellInfo.cpp SpellMgr.cpp SpellScript.cpp CreatureTextMgr.cpp CharacterDatabaseCleaner.cpp Generating Code... Compiling... PlayerDump.cpp TicketMgr.cpp Warden.cpp WardenCheckMgr.cpp WardenMac.cpp WardenWin.cpp Weather.cpp WeatherMgr.cpp World.cpp Generating Code... game.vcxproj -> D:\gooaaew\src\server\game\Release\game.lib ------ Build started: Project: scripts, Configuration: Release Win32 ------ ScriptPCH.cpp spell_shaman.cpp spell_hunter.cpp spell_rogue.cpp spell_druid.cpp spell_dk.cpp spell_quest.cpp spell_warrior.cpp spell_generic.cpp spell_warlock.cpp spell_priest.cpp spell_mage.cpp spell_paladin.cpp spell_item.cpp spell_holiday.cpp spell_pet.cpp cs_anticheat.cpp cs_account.cpp cs_achievement.cpp cs_arena.cpp cs_ban.cpp Generating Code... Compiling... cs_bf.cpp cs_cast.cpp cs_character.cpp cs_cheat.cpp cs_debug.cpp cs_deserter.cpp cs_disable.cpp cs_event.cpp cs_gm.cpp cs_go.cpp cs_gobject.cpp cs_guild.cpp cs_honor.cpp cs_instance.cpp cs_learn.cpp cs_lfg.cpp cs_list.cpp cs_lookup.cpp cs_message.cpp cs_misc.cpp Generating Code... Compiling... cs_modify.cpp cs_npc.cpp cs_quest.cpp cs_rates.cpp cs_rbac.cpp cs_reload.cpp cs_reset.cpp cs_tele.cpp cs_ticket.cpp cs_server.cpp cs_titles.cpp cs_wp.cpp cs_mmaps.cpp example_misc.cpp example_gossip_codebox.cpp example_escort.cpp example_creature.cpp example_spell.cpp example_commandscript.cpp ScriptedEscortAI.cpp Generating Code... Compiling... ScriptedCreature.cpp ScriptedFollowerAI.cpp Transmogrification.cpp chat_censure.cpp npc_arena_team_top.cpp mod_MultiKill.cpp npc_mmr_reset.cpp arena_fast_start.cpp cs_fake.cpp Reforging.cpp ArenaSpectate.cpp top5_killers.cpp top5_arenateams.cpp achievement_scripts.cpp areatrigger_scripts.cpp boss_emerald_dragons.cpp chat_log.cpp go_scripts.cpp guards.cpp item_scripts.cpp Generating Code... Compiling... mob_generic_creature.cpp npc_innkeeper.cpp npc_professions.cpp npc_taxi.cpp npcs_special.cpp D:\Trinity\src\server\scripts\World\npcs_special.cpp(3373): warning C4373: 'npc_lonely_turkey::npc_lonely_turkeyAI::UpdateAI': virtual function overrides 'ScriptedAI::UpdateAI', previous versions of the compiler did not override when parameters only differed by const/volatile qualifiers D:\Trinity\src\server\game\AI\ScriptedAI\ScriptedCreature.h(147) : see declaration of 'ScriptedAI::UpdateAI' D:\Trinity\src\server\scripts\World\npcs_special.cpp(3571): warning C4373: 'npc_argent_pet::npc_argent_petAI::UpdateAI': virtual function overrides 'ScriptedAI::UpdateAI', previous versions of the compiler did not override when parameters only differed by const/volatile qualifiers D:\Trinity\src\server\game\AI\ScriptedAI\ScriptedCreature.h(147) : see declaration of 'ScriptedAI::UpdateAI' OutdoorPvPTF.cpp OutdoorPvPSI.cpp OutdoorPvPZM.cpp OutdoorPvPNA.cpp OutdoorPvPHP.cpp OutdoorPvPEP.cpp zone_ghostlands.cpp zone_eversong_woods.cpp boss_galvangar.cpp boss_balinda.cpp boss_drekthar.cpp boss_vanndar.cpp alterac_valley.cpp boss_the_ravenian.cpp boss_instructor_malicia.cpp Generating Code... Compiling... boss_death_knight_darkreaver.cpp boss_illucia_barov.cpp boss_vectus.cpp boss_jandice_barov.cpp boss_kormok.cpp boss_lord_alexei_barov.cpp boss_doctor_theolen_krastinov.cpp boss_darkmaster_gandling.cpp instance_scholomance.cpp boss_lorekeeper_polkelt.cpp boss_ras_frostwhisper.cpp boss_kirtonos_the_herald.cpp zone_isle_of_queldanas.cpp boss_kruul.cpp boss_hakkar.cpp boss_mandokir.cpp boss_marli.cpp boss_hazzarah.cpp boss_jeklik.cpp boss_grilek.cpp Generating Code... Compiling... boss_renataki.cpp boss_arlokk.cpp boss_gahzranka.cpp boss_venoxis.cpp instance_zulgurub.cpp boss_jindo.cpp boss_wushoolay.cpp boss_thekal.cpp zone_wetlands.cpp zone_arathi_highlands.cpp instance_gnomeregan.cpp gnomeregan.cpp zone_redridge_mountains.cpp boss_high_interrogator_gerstahn.cpp boss_gorosh_the_dervish.cpp blackrock_depths.cpp boss_anubshiah.cpp boss_tomb_of_seven.cpp boss_general_angerforge.cpp boss_grizzle.cpp Generating Code... Compiling... boss_ambassador_flamelash.cpp instance_blackrock_depths.cpp boss_moira_bronzebeard.cpp boss_emperor_dagran_thaurissan.cpp boss_magmus.cpp zone_ironforge.cpp chapter2.cpp chapter5.cpp chapter1.cpp zone_the_scarlet_enclave.cpp zone_eastern_plaguelands.cpp boss_gehennas.cpp boss_lucifron.cpp boss_golemagg.cpp boss_majordomo_executus.cpp boss_baron_geddon.cpp boss_ragnaros.cpp boss_garr.cpp instance_molten_core.cpp boss_sulfuron_harbinger.cpp Generating Code... Compiling... boss_magmadar.cpp boss_shazzrah.cpp boss_baroness_anastari.cpp boss_nerubenkan.cpp instance_stratholme.cpp boss_dathrohan_balnazzar.cpp boss_timmy_the_cruel.cpp boss_baron_rivendare.cpp boss_magistrate_barthilas.cpp boss_order_of_silver_hand.cpp boss_ramstein_the_gorger.cpp boss_cannon_master_willey.cpp boss_maleki_the_pallid.cpp boss_postmaster_malown.cpp stratholme.cpp zone_tirisfal_glades.cpp sunken_temple.cpp instance_sunken_temple.cpp boss_felblood_kaelthas.cpp boss_priestess_delrissa.cpp Generating Code... Compiling... instance_magisters_terrace.cpp boss_selin_fireheart.cpp boss_vexallus.cpp magisters_terrace.cpp uldaman.cpp boss_ironaya.cpp instance_uldaman.cpp boss_archaedas.cpp zone_swamp_of_sorrows.cpp boss_pyroguard_emberseer.cpp boss_drakkisath.cpp boss_warmaster_voone.cpp boss_mother_smolderweb.cpp boss_quartermaster_zigris.cpp boss_halycon.cpp boss_overlord_wyrmthalak.cpp boss_shadow_hunter_voshgajin.cpp boss_gyth.cpp boss_rend_blackhand.cpp boss_highlord_omokk.cpp Generating Code... Compiling... boss_the_beast.cpp instance_blackrock_spire.cpp boss_eredar_twins.cpp boss_kiljaeden.cpp boss_muru.cpp instance_sunwell_plateau.cpp boss_kalecgos.cpp boss_brutallus.cpp sunwell_plateau.cpp boss_felmyst.cpp zone_stranglethorn_vale.cpp deadmines.cpp boss_mr_smite.cpp instance_deadmines.cpp zone_duskwood.cpp boss_azshir_the_sleepless.cpp boss_mograine_and_whitemane.cpp boss_bloodmage_thalnos.cpp boss_interrogator_vishas.cpp boss_headless_horseman.cpp D:\Trinity\src\server\scripts\EasternKingdoms\ScarletMonastery\boss_headless_horseman.cpp(239): warning C4373: 'boss_headless_horseman::boss_headless_horsemanAI::DoAction': virtual function overrides 'UnitAI::DoAction', previous versions of the compiler did not override when parameters only differed by const/volatile qualifiers D:\Trinity\src\server\game\AI\CoreAI\UnitAI.h(138) : see declaration of 'UnitAI::DoAction' D:\Trinity\src\server\scripts\EasternKingdoms\ScarletMonastery\boss_headless_horseman.cpp(258): warning C4373: 'boss_headless_horseman::boss_headless_horsemanAI::UpdateAI': virtual function overrides 'ScriptedAI::UpdateAI', previous versions of the compiler did not override when parameters only differed by const/volatile qualifiers D:\Trinity\src\server\game\AI\ScriptedAI\ScriptedCreature.h(147) : see declaration of 'ScriptedAI::UpdateAI' Generating Code... Compiling... instance_scarlet_monastery.cpp boss_houndmaster_loksey.cpp boss_high_inquisitor_fairbanks.cpp boss_arcanist_doan.cpp boss_herod.cpp boss_scorn.cpp zone_undercity.cpp zone_silvermoon_city.cpp zone_loch_modan.cpp shadowfang_keep.cpp instance_shadowfang_keep.cpp D:\Trinity\src\server\scripts\EasternKingdoms\ShadowfangKeep\instance_shadowfang_keep.cpp(233): error C4263: 'uint64 instance_shadowfang_keep::instance_shadowfang_keep_InstanceMapScript::GetData64(uint32)' : member function does not override any base class virtual member function D:\Trinity\src\server\scripts\EasternKingdoms\ShadowfangKeep\instance_shadowfang_keep.cpp(325): error C4264: 'uint64 ZoneScript::GetData64(uint32) const' : no override available for virtual member function from base 'ZoneScript'; function is hidden D:\Trinity\src\server\game\Maps\ZoneScript.h(44) : see declaration of 'ZoneScript::GetData64' D:\Trinity\src\server\game\Maps\ZoneScript.h(27) : see declaration of 'ZoneScript' boss_apothecary_trio.cpp D:\Trinity\src\server\scripts\EasternKingdoms\ShadowfangKeep\boss_apothecary_trio.cpp(168): warning C4373: 'npc_apothecary_hummel::npc_apothecary_hummelAI::DoAction': virtual function overrides 'UnitAI::DoAction', previous versions of the compiler did not override when parameters only differed by const/volatile qualifiers D:\Trinity\src\server\game\AI\CoreAI\UnitAI.h(138) : see declaration of 'UnitAI::DoAction' D:\Trinity\src\server\scripts\EasternKingdoms\ShadowfangKeep\boss_apothecary_trio.cpp(236): warning C4373: 'npc_apothecary_hummel::npc_apothecary_hummelAI::UpdateAI': virtual function overrides 'ScriptedAI::UpdateAI', previous versions of the compiler did not override when parameters only differed by const/volatile qualifiers D:\Trinity\src\server\game\AI\ScriptedAI\ScriptedCreature.h(147) : see declaration of 'ScriptedAI::UpdateAI' D:\Trinity\src\server\scripts\EasternKingdoms\ShadowfangKeep\boss_apothecary_trio.cpp(374): warning C4373: 'npc_apothecary_baxter::npc_apothecary_baxterAI::DoAction': virtual function overrides 'UnitAI::DoAction', previous versions of the compiler did not override when parameters only differed by const/volatile qualifiers D:\Trinity\src\server\game\AI\CoreAI\UnitAI.h(138) : see declaration of 'UnitAI::DoAction' D:\Trinity\src\server\scripts\EasternKingdoms\ShadowfangKeep\boss_apothecary_trio.cpp(397): warning C4373: 'npc_apothecary_baxter::npc_apothecary_baxterAI::UpdateAI': virtual function overrides 'ScriptedAI::UpdateAI', previous versions of the compiler did not override when parameters only differed by const/volatile qualifiers D:\Trinity\src\server\game\AI\ScriptedAI\ScriptedCreature.h(147) : see declaration of 'ScriptedAI::UpdateAI' D:\Trinity\src\server\scripts\EasternKingdoms\ShadowfangKeep\boss_apothecary_trio.cpp(502): warning C4373: 'npc_apothecary_frye::npc_apothecary_fryeAI::DoAction': virtual function overrides 'UnitAI::DoAction', previous versions of the compiler did not override when parameters only differed by const/volatile qualifiers D:\Trinity\src\server\game\AI\CoreAI\UnitAI.h(138) : see declaration of 'UnitAI::DoAction' D:\Trinity\src\server\scripts\EasternKingdoms\ShadowfangKeep\boss_apothecary_trio.cpp(552): warning C4373: 'npc_apothecary_frye::npc_apothecary_fryeAI::UpdateAI': virtual function overrides 'ScriptedAI::UpdateAI', previous versions of the compiler did not override when parameters only differed by const/volatile qualifiers D:\Trinity\src\server\game\AI\ScriptedAI\ScriptedCreature.h(147) : see declaration of 'ScriptedAI::UpdateAI' D:\Trinity\src\server\scripts\EasternKingdoms\ShadowfangKeep\boss_apothecary_trio.cpp(652): warning C4373: 'npc_crazed_apothecary::npc_crazed_apothecaryAI::UpdateAI': virtual function overrides 'ScriptedAI::UpdateAI', previous versions of the compiler did not override when parameters only differed by const/volatile qualifiers D:\Trinity\src\server\game\AI\ScriptedAI\ScriptedCreature.h(147) : see declaration of 'ScriptedAI::UpdateAI' zone_burning_steppes.cpp boss_chromaggus.cpp boss_razorgore.cpp boss_firemaw.cpp boss_broodlord_lashlayer.cpp boss_ebonroc.cpp instance_blackwing_lair.cpp boss_vaelastrasz.cpp Generating Code... Compiling... boss_nefarian.cpp boss_flamegor.cpp boss_victor_nefarius.cpp zone_blasted_lands.cpp zone_stormwind_city.cpp boss_halazzi.cpp boss_hexlord.cpp boss_zuljin.cpp boss_akilzon.cpp instance_zulaman.cpp boss_janalai.cpp boss_nalorakk.cpp zulaman.cpp zone_hinterlands.cpp zone_western_plaguelands.cpp zone_alterac_mountains.cpp zone_westfall.cpp zone_silverpine_forest.cpp instance_karazhan.cpp boss_nightbane.cpp Generating Code... Compiling... karazhan.cpp boss_curator.cpp boss_shade_of_aran.cpp boss_netherspite.cpp boss_maiden_of_virtue.cpp boss_midnight.cpp boss_prince_malchezaar.cpp bosses_opera.cpp boss_moroes.cpp boss_terestian_illhoof.cpp zone_stonetalon_mountains.cpp zone_silithus.cpp zone_moonglade.cpp razorfen_downs.cpp instance_razorfen_downs.cpp boss_amnennar_the_coldbringer.cpp zulfarrak.cpp instance_zulfarrak.cpp boss_epoch_hunter.cpp boss_leutenant_drake.cpp Generating Code... Compiling... old_hillsbrad.cpp instance_old_hillsbrad.cpp boss_captain_skarloc.cpp boss_archimonde.cpp boss_kazrogal.cpp hyjal_trash.cpp hyjal.cpp hyjalAI.cpp instance_hyjal.cpp boss_rage_winterchill.cpp boss_azgalor.cpp boss_anetheron.cpp boss_infinite_corruptor.cpp boss_salramm_the_fleshcrafter.cpp boss_meathook.cpp boss_mal_ganis.cpp boss_chrono_lord_epoch.cpp culling_of_stratholme.cpp instance_culling_of_stratholme.cpp instance_dark_portal.cpp Generating Code... Compiling... boss_chrono_lord_deja.cpp dark_portal.cpp boss_aeonus.cpp boss_temporus.cpp boss_kelris.cpp instance_blackfathom_deeps.cpp boss_gelihast.cpp blackfathom_deeps.cpp boss_aku_mai.cpp zone_azuremyst_isle.cpp zone_orgrimmar.cpp zone_desolace.cpp zone_feralas.cpp boss_princess_theradras.cpp boss_landslide.cpp boss_celebras_the_cursed.cpp boss_noxxion.cpp boss_fankriss.cpp boss_huhuran.cpp instance_temple_of_ahnqiraj.cpp Generating Code... Compiling... mob_anubisath_sentinel.cpp boss_viscidus.cpp boss_twinemperors.cpp boss_sartura.cpp boss_cthun.cpp boss_skeram.cpp boss_ouro.cpp boss_bug_trio.cpp zone_darkshore.cpp boss_buru.cpp instance_ruins_of_ahnqiraj.cpp boss_rajaxx.cpp boss_ossirian.cpp boss_ayamiss.cpp boss_moam.cpp boss_kurinnaxx.cpp zone_mulgore.cpp zone_bloodmyst_isle.cpp zone_thunder_bluff.cpp zone_azshara.cpp Generating Code... Compiling... instance_razorfen_kraul.cpp razorfen_kraul.cpp zone_the_barrens.cpp zone_ungoro_crater.cpp instance_wailing_caverns.cpp wailing_caverns.cpp zone_durotar.cpp zone_felwood.cpp boss_azuregos.cpp zone_tanaris.cpp zone_dustwallow_marsh.cpp zone_winterspring.cpp zone_thousand_needles.cpp zone_ashenvale.cpp zone_teldrassil.cpp boss_onyxia.cpp instance_onyxias_lair.cpp zone_nagrand.cpp instance_magtheridons_lair.cpp boss_magtheridon.cpp Generating Code... Compiling... instance_hellfire_ramparts.cpp boss_omor_the_unscarred.cpp boss_watchkeeper_gargolmar.cpp boss_vazruden_the_herald.cpp boss_the_maker.cpp boss_kelidan_the_breaker.cpp instance_blood_furnace.cpp boss_broggok.cpp boss_warchief_kargath_bladefist.cpp boss_nethekurse.cpp instance_shattered_halls.cpp boss_warbringer_omrogg.cpp boss_mekgineer_steamrigger.cpp instance_steam_vault.cpp boss_hydromancer_thespia.cpp boss_warlord_kalithresh.cpp boss_hydross_the_unstable.cpp boss_fathomlord_karathress.cpp instance_serpent_shrine.cpp boss_lady_vashj.cpp Generating Code... Compiling... boss_leotheras_the_blind.cpp boss_lurker_below.cpp boss_morogrim_tidewalker.cpp boss_hungarfen.cpp boss_the_black_stalker.cpp zone_shattrath_city.cpp boss_mechano_lord_capacitus.cpp boss_pathaleon_the_calculator.cpp boss_nethermancer_sepethrea.cpp boss_gatewatcher_gyrokill.cpp instance_mechanar.cpp boss_gatewatcher_ironhand.cpp instance_the_eye.cpp boss_void_reaver.cpp boss_astromancer.cpp boss_alar.cpp boss_kaelthas.cpp the_eye.cpp instance_the_botanica.cpp boss_commander_sarannis.cpp Generating Code... Compiling... boss_thorngrin_the_tender.cpp boss_high_botanist_freywinn.cpp boss_warp_splinter.cpp boss_laj.cpp boss_harbinger_skyriss.cpp instance_arcatraz.cpp arcatraz.cpp boss_shirrak_the_dead_watcher.cpp boss_exarch_maladaar.cpp boss_pandemonius.cpp boss_nexusprince_shaffar.cpp boss_tailonking_ikiss.cpp boss_darkweaver_syth.cpp instance_sethekk_halls.cpp boss_murmur.cpp boss_ambassador_hellmaw.cpp boss_blackheart_the_inciter.cpp instance_shadow_labyrinth.cpp boss_grandmaster_vorpil.cpp boss_doomwalker.cpp Generating Code... Compiling... zone_terokkar_forest.cpp zone_hellfire_peninsula.cpp boss_doomlord_kazzak.cpp boss_teron_gorefiend.cpp illidari_council.cpp boss_shade_of_akama.cpp boss_supremus.cpp black_temple.cpp boss_mother_shahraz.cpp instance_black_temple.cpp boss_reliquary_of_souls.cpp boss_warlord_najentus.cpp boss_bloodboil.cpp boss_illidan.cpp zone_shadowmoon_valley.cpp zone_blades_edge_mountains.cpp boss_high_king_maulgar.cpp boss_gruul.cpp instance_gruuls_lair.cpp zone_netherstorm.cpp Generating Code... Compiling... zone_zangarmarsh.cpp zone_wintergrasp.cpp isle_of_conquest.cpp zone_storm_peaks.cpp instance_halls_of_lightning.cpp boss_bjarngrim.cpp boss_ionar.cpp boss_volkhan.cpp boss_loken.cpp halls_of_lightning.cpp boss_general_vezax.cpp ulduar_teleporter.cpp boss_thorim.cpp boss_ignis.cpp boss_algalon_the_observer.cpp instance_ulduar.cpp boss_auriaya.cpp boss_yoggsaron.cpp boss_hodir.cpp boss_assembly_of_iron.cpp Generating Code... Compiling... boss_flame_leviathan.cpp boss_xt002.cpp boss_mimiron.cpp boss_freya.cpp boss_razorscale.cpp boss_kologarn.cpp ulduar_trash.cpp boss_krystallus.cpp instance_halls_of_stone.cpp boss_maiden_of_grief.cpp boss_sjonnir.cpp halls_of_stone.cpp D:\Trinity\src\server\scripts\Northrend\Ulduar\HallsOfStone\halls_of_stone.cpp(215): warning C4373: 'mob_tribuna_controller::mob_tribuna_controllerAI::UpdateAI': virtual function overrides 'ScriptedAI::UpdateAI', previous versions of the compiler did not override when parameters only differed by const/volatile qualifiers D:\Trinity\src\server\game\AI\ScriptedAI\ScriptedCreature.h(147) : see declaration of 'ScriptedAI::UpdateAI' instance_obsidian_sanctum.cpp boss_sartharion.cpp instance_ruby_sanctum.cpp ruby_sanctum.cpp boss_baltharus_the_warborn.cpp boss_saviana_ragefire.cpp boss_general_zarithrian.cpp boss_halion.cpp Generating Code... Compiling... boss_falric.cpp instance_halls_of_reflection.cpp D:\Trinity\src\server\scripts\Northrend\FrozenHalls\HallsOfReflection\instance_halls_of_reflection.cpp(353): warning C4553: '==' : operator has no effect; did you intend '='? halls_of_reflection.cpp boss_marwyn.cpp boss_lich_king_hor.cpp D:\Trinity\src\server\scripts\Northrend\FrozenHalls\HallsOfReflection\boss_lich_king_hor.cpp(134): warning C4309: 'argument' : truncation of constant value D:\Trinity\src\server\scripts\Northrend\FrozenHalls\HallsOfReflection\boss_lich_king_hor.cpp(183): warning C4309: 'argument' : truncation of constant value D:\Trinity\src\server\scripts\Northrend\FrozenHalls\HallsOfReflection\boss_lich_king_hor.cpp(189): warning C4309: 'argument' : truncation of constant value D:\Trinity\src\server\scripts\Northrend\FrozenHalls\HallsOfReflection\boss_lich_king_hor.cpp(195): warning C4309: 'argument' : truncation of constant value D:\Trinity\src\server\scripts\Northrend\FrozenHalls\HallsOfReflection\boss_lich_king_hor.cpp(221): warning C4309: 'argument' : truncation of constant value D:\Trinity\src\server\scripts\Northrend\FrozenHalls\HallsOfReflection\boss_lich_king_hor.cpp(246): warning C4309: 'argument' : truncation of constant value D:\Trinity\src\server\scripts\Northrend\FrozenHalls\HallsOfReflection\boss_lich_king_hor.cpp(251): warning C4309: 'argument' : truncation of constant value D:\Trinity\src\server\scripts\Northrend\FrozenHalls\HallsOfReflection\boss_lich_king_hor.cpp(273): warning C4309: 'argument' : truncation of constant value D:\Trinity\src\server\scripts\Northrend\FrozenHalls\HallsOfReflection\boss_lich_king_hor.cpp(287): warning C4309: 'argument' : truncation of constant value D:\Trinity\src\server\scripts\Northrend\FrozenHalls\HallsOfReflection\boss_lich_king_hor.cpp(339): warning C4309: 'argument' : truncation of constant value D:\Trinity\src\server\scripts\Northrend\FrozenHalls\HallsOfReflection\boss_lich_king_hor.cpp(428): warning C4373: 'npc_raging_gnoul::npc_raging_gnoulAI::UpdateAI': virtual function overrides 'ScriptedAI::UpdateAI', previous versions of the compiler did not override when parameters only differed by const/volatile qualifiers D:\Trinity\src\server\game\AI\ScriptedAI\ScriptedCreature.h(147) : see declaration of 'ScriptedAI::UpdateAI' D:\Trinity\src\server\scripts\Northrend\FrozenHalls\HallsOfReflection\boss_lich_king_hor.cpp(532): warning C4373: 'npc_risen_witch_doctor::npc_risen_witch_doctorAI::UpdateAI': virtual function overrides 'ScriptedAI::UpdateAI', previous versions of the compiler did not override when parameters only differed by const/volatile qualifiers D:\Trinity\src\server\game\AI\ScriptedAI\ScriptedCreature.h(147) : see declaration of 'ScriptedAI::UpdateAI' D:\Trinity\src\server\scripts\Northrend\FrozenHalls\HallsOfReflection\boss_lich_king_hor.cpp(620): warning C4373: 'npc_abon::npc_abonAI::UpdateAI': virtual function overrides 'ScriptedAI::UpdateAI', previous versions of the compiler did not override when parameters only differed by const/volatile qualifiers D:\Trinity\src\server\game\AI\ScriptedAI\ScriptedCreature.h(147) : see declaration of 'ScriptedAI::UpdateAI' npc_the_lich_king_hor.cpp boss_forgemaster_garfrost.cpp boss_krickandick.cpp pit_of_saron.cpp boss_scourgelord_tyrannus.cpp instance_pit_of_saron.cpp forge_of_souls.cpp boss_bronjahm.cpp instance_forge_of_souls.cpp boss_devourer_of_souls.cpp boss_malygos.cpp instance_eye_of_eternity.cpp boss_eregos.cpp boss_drakos.cpp boss_varos.cpp Generating Code... Compiling... boss_urom.cpp oculus.cpp instance_oculus.cpp boss_commander_kolurg.cpp boss_commander_stoutbeard.cpp boss_ormorok.cpp boss_magus_telestra.cpp instance_nexus.cpp boss_keristrasza.cpp boss_anomalus.cpp boss_anubarak_trial.cpp boss_faction_champions.cpp boss_lord_jaraxxus.cpp boss_northrend_beasts.cpp trial_of_the_crusader.cpp boss_twin_valkyr.cpp instance_trial_of_the_crusader.cpp trial_of_the_champion.cpp D:\Trinity\src\server\scripts\Northrend\CrusadersColiseum\TrialOfTheChampion\trial_of_the_champion.cpp(186): warning C4373: 'npc_anstart::npc_anstartAI::UpdateAI': virtual function overrides 'ScriptedAI::UpdateAI', previous versions of the compiler did not override when parameters only differed by const/volatile qualifiers D:\Trinity\src\server\game\AI\ScriptedAI\ScriptedCreature.h(147) : see declaration of 'ScriptedAI::UpdateAI' D:\Trinity\src\server\scripts\Northrend\CrusadersColiseum\TrialOfTheChampion\trial_of_the_champion.cpp(726): warning C4373: 'npc_announcer_toc5::npc_announcer_toc5AI::UpdateAI': virtual function overrides 'ScriptedAI::UpdateAI', previous versions of the compiler did not override when parameters only differed by const/volatile qualifiers D:\Trinity\src\server\game\AI\ScriptedAI\ScriptedCreature.h(147) : see declaration of 'ScriptedAI::UpdateAI' boss_grand_champions.cpp D:\Trinity\src\server\scripts\Northrend\CrusadersColiseum\TrialOfTheChampion\boss_grand_champions.cpp(379): warning C4373: 'generic_vehicleAI_toc5::generic_vehicleAI_toc5AI::UpdateAI': virtual function overrides 'npc_escortAI::UpdateAI', previous versions of the compiler did not override when parameters only differed by const/volatile qualifiers D:\Trinity\src\server\game\AI\ScriptedAI\ScriptedEscortAI.h(57) : see declaration of 'npc_escortAI::UpdateAI' D:\Trinity\src\server\scripts\Northrend\CrusadersColiseum\TrialOfTheChampion\boss_grand_champions.cpp(549): warning C4373: 'boss_warrior_toc5::boss_warrior_toc5AI::UpdateAI': virtual function overrides 'BossAI::UpdateAI', previous versions of the compiler did not override when parameters only differed by const/volatile qualifiers D:\Trinity\src\server\game\AI\ScriptedAI\ScriptedCreature.h(345) : see declaration of 'BossAI::UpdateAI' D:\Trinity\src\server\scripts\Northrend\CrusadersColiseum\TrialOfTheChampion\boss_grand_champions.cpp(725): warning C4373: 'boss_mage_toc5::boss_mage_toc5AI::UpdateAI': virtual function overrides 'BossAI::UpdateAI', previous versions of the compiler did not override when parameters only differed by const/volatile qualifiers D:\Trinity\src\server\game\AI\ScriptedAI\ScriptedCreature.h(345) : see declaration of 'BossAI::UpdateAI' D:\Trinity\src\server\scripts\Northrend\CrusadersColiseum\TrialOfTheChampion\boss_grand_champions.cpp(900): warning C4373: 'boss_shaman_toc5::boss_shaman_toc5AI::UpdateAI': virtual function overrides 'BossAI::UpdateAI', previous versions of the compiler did not override when parameters only differed by const/volatile qualifiers D:\Trinity\src\server\game\AI\ScriptedAI\ScriptedCreature.h(345) : see declaration of 'BossAI::UpdateAI' D:\Trinity\src\server\scripts\Northrend\CrusadersColiseum\TrialOfTheChampion\boss_grand_champions.cpp(1116): warning C4373: 'boss_hunter_toc5::boss_hunter_toc5AI::UpdateAI': virtual function overrides 'BossAI::UpdateAI', previous versions of the compiler did not override when parameters only differed by const/volatile qualifiers D:\Trinity\src\server\game\AI\ScriptedAI\ScriptedCreature.h(345) : see declaration of 'BossAI::UpdateAI' D:\Trinity\src\server\scripts\Northrend\CrusadersColiseum\TrialOfTheChampion\boss_grand_champions.cpp(1344): warning C4373: 'boss_rouge_toc5::boss_rouge_toc5AI::UpdateAI': virtual function overrides 'BossAI::UpdateAI', previous versions of the compiler did not override when parameters only differed by const/volatile qualifiers D:\Trinity\src\server\game\AI\ScriptedAI\ScriptedCreature.h(345) : see declaration of 'BossAI::UpdateAI' boss_black_knight.cpp D:\Trinity\src\server\scripts\Northrend\CrusadersColiseum\TrialOfTheChampion\boss_black_knight.cpp(661): warning C4373: 'npc_risen_announcer::npc_risen_announcerAI::UpdateAI': virtual function overrides 'ScriptedAI::UpdateAI', previous versions of the compiler did not override when parameters only differed by const/volatile qualifiers D:\Trinity\src\server\game\AI\ScriptedAI\ScriptedCreature.h(147) : see declaration of 'ScriptedAI::UpdateAI' Generating Code... Compiling... instance_trial_of_the_champion.cpp boss_argent_challenge.cpp D:\Trinity\src\server\scripts\Northrend\CrusadersColiseum\TrialOfTheChampion\boss_argent_challenge.cpp(276): warning C4018: '<=' : signed/unsigned mismatch boss_loatheb.cpp boss_anubrekhan.cpp boss_maexxna.cpp boss_patchwerk.cpp boss_gothik.cpp boss_faerlina.cpp boss_gluth.cpp boss_four_horsemen.cpp boss_kelthuzad.cpp boss_heigan.cpp boss_thaddius.cpp boss_razuvious.cpp boss_sapphiron.cpp instance_naxxramas.cpp boss_grobbulus.cpp boss_noth.cpp zone_crystalsong_forest.cpp boss_archavon.cpp Generating Code... Compiling... boss_koralon.cpp instance_vault_of_archavon.cpp boss_emalon.cpp boss_toravon.cpp zone_sholazar_basin.cpp boss_palehoof.cpp boss_svala.cpp instance_pinnacle.cpp boss_ymiron.cpp boss_skadi.cpp boss_ingvar_the_plunderer.cpp boss_skarvald_dalronn.cpp instance_utgarde_keep.cpp boss_keleseth.cpp utgarde_keep.cpp zone_dragonblight.cpp zone_grizzly_hills.cpp instance_azjol_nerub.cpp boss_krikthir_the_gatewatcher.cpp boss_hadronox.cpp Generating Code... Compiling... boss_anubarak.cpp boss_herald_volazj.cpp boss_prince_taldaram.cpp instance_ahnkahet.cpp boss_jedoga_shadowseeker.cpp boss_elder_nadox.cpp boss_amanitar.cpp boss_zuramat.cpp instance_violet_hold.cpp boss_lavanthor.cpp boss_cyanigosa.cpp boss_ichoron.cpp boss_moragg.cpp boss_xevozz.cpp boss_erekem.cpp violet_hold.cpp instance_icecrown_citadel.cpp icecrown_citadel.cpp icecrown_citadel_teleport.cpp boss_lord_marrowgar.cpp Generating Code... Compiling... boss_lady_deathwhisper.cpp boss_deathbringer_saurfang.cpp boss_festergut.cpp boss_rotface.cpp boss_professor_putricide.cpp boss_blood_prince_council.cpp boss_blood_queen_lana_thel.cpp boss_valithria_dreamwalker.cpp boss_sindragosa.cpp boss_the_lich_king.cpp icc_trash.cpp zone_zuldrak.cpp zone_icecrown.cpp boss_slad_ran.cpp instance_gundrak.cpp boss_drakkari_colossus.cpp boss_gal_darah.cpp boss_moorabi.cpp boss_eck.cpp zone_borean_tundra.cpp Generating Code... d:\trinity\src\server\scripts\northrend\icecrowncitadel\icc_trash.cpp(1691): warning C4715: 'npc_icc_rep_rings::OnGossipHello' : not all control paths return a value Compiling... zone_howling_fjord.cpp zone_dalaran.cpp boss_trollgore.cpp instance_drak_tharon_keep.cpp boss_novos.cpp boss_tharon_ja.cpp boss_dred.cpp childrens_week.cpp Generating Code... ------ Build started: Project: worldserver, Configuration: Release Win32 ------ LINK : fatal error LNK1181: cannot open input file '..\scripts\Release\scripts.lib' ------ Skipped Build: Project: INSTALL, Configuration: Release Win32 ------ Project not selected to build for this solution configuration ========== Build: 2 succeeded, 2 failed, 14 up-to-date, 1 skipped ========== Вот что делать Дальше как исправить помогите Заранее спасибо с меня +
УАС
|
1 EROR Error 1 error C4263: 'uint64 instance_shadowfang_keep::instance_shadowfang_keep_InstanceMapScript::GetData64(uint32)' : member function does not override any base class virtual member function D:\isxodgo\src\server\scripts\EasternKingdoms\ShadowfangKeep\instance_shadowfang_keep.cpp 233 1 scripts Код /* * Copyright (C) 2008-2013 TrinityCore <http://www.trinitycore.org/> * Copyright (C) 2006-2009 ScriptDev2 <https://scriptdev2.svn.sourceforge.net/> * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the * Free Software Foundation; either version 2 of the License, or (at your * option) any later version. * * This program is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for * more details. * * You should have received a copy of the GNU General Public License along * with this program. If not, see <http://www.gnu.org/licenses/>. */ /* ScriptData SDName: Instance_Shadowfang_Keep SD%Complete: 90 SDComment: SDCategory: Shadowfang Keep EndScriptData */ #include "ScriptedCreature.h" #include "ScriptMgr.h" #include "InstanceScript.h" #include "shadowfang_keep.h" #include "TemporarySummon.h" #define MAX_ENCOUNTER 5 enum Shadowfang { SAY_BOSS_DIE_AD = 4, SAY_BOSS_DIE_AS = 3, SAY_ARCHMAGE = 0, NPC_ASH = 3850, NPC_ADA = 3849, NPC_ARCHMAGE_ARUGAL = 4275, NPC_ARUGAL_VOIDWALKER = 4627, GO_COURTYARD_DOOR = 18895, //door to open when talking to NPC's GO_SORCERER_DOOR = 18972, //door to open when Fenrus the Devourer GO_ARUGAL_DOOR = 18971, //door to open when Wolf Master Nandos SPELL_ASHCROMBE_TELEPORT = 15742, ACTION_SPAWN_CRAZED = 3 }; const Position SpawnLocation[] = { {-148.199f, 2165.647f, 128.448f, 1.026f}, {-153.110f, 2168.620f, 128.448f, 1.026f}, {-145.905f, 2180.520f, 128.448f, 4.183f}, {-140.794f, 2178.037f, 128.448f, 4.090f}, {-138.640f, 2170.159f, 136.577f, 2.737f} }; class instance_shadowfang_keep : public InstanceMapScript { public: instance_shadowfang_keep() : InstanceMapScript("instance_shadowfang_keep", 33) { } InstanceScript* GetInstanceScript(InstanceMap* map) const { return new instance_shadowfang_keep_InstanceMapScript(map); } struct instance_shadowfang_keep_InstanceMapScript : public InstanceScript { instance_shadowfang_keep_InstanceMapScript(Map* map) : InstanceScript(map) {} uint32 m_auiEncounter[MAX_ENCOUNTER]; std::string str_data; uint64 uiAshGUID; uint64 uiAdaGUID; uint64 uiArchmageArugalGUID; uint64 fryeGUID; uint64 hummelGUID; uint64 baxterGUID; uint64 DoorCourtyardGUID; uint64 DoorSorcererGUID; uint64 DoorArugalGUID; uint8 uiPhase; uint16 uiTimer; uint32 spawnCrazedTimer; void Initialize() { memset(&m_auiEncounter, 0, sizeof(m_auiEncounter)); uiAshGUID = 0; uiAdaGUID = 0; uiArchmageArugalGUID = 0; fryeGUID = 0; hummelGUID = 0; baxterGUID = 0; DoorCourtyardGUID = 0; DoorSorcererGUID = 0; DoorArugalGUID = 0; uiPhase = 0; uiTimer = 0; } void OnCreatureCreate(Creature* creature) { switch (creature->GetEntry()) { case NPC_ASH: uiAshGUID = creature->GetGUID(); break; case NPC_ADA: uiAdaGUID = creature->GetGUID(); break; case NPC_ARCHMAGE_ARUGAL: uiArchmageArugalGUID = creature->GetGUID(); break; case NPC_FRYE: fryeGUID = creature->GetGUID(); break; case NPC_HUMMEL: hummelGUID = creature->GetGUID(); break; case NPC_BAXTER: baxterGUID = creature->GetGUID(); break; } } void OnGameObjectCreate(GameObject* go) { switch (go->GetEntry()) { case GO_COURTYARD_DOOR: DoorCourtyardGUID = go->GetGUID(); if (m_auiEncounter[0] == DONE) HandleGameObject(0, true, go); break; case GO_SORCERER_DOOR: DoorSorcererGUID = go->GetGUID(); if (m_auiEncounter[2] == DONE) HandleGameObject(0, true, go); break; case GO_ARUGAL_DOOR: DoorArugalGUID = go->GetGUID(); if (m_auiEncounter[3] == DONE) HandleGameObject(0, true, go); break; } } void DoSpeech() { Creature* pAda = instance->GetCreature(uiAdaGUID); Creature* pAsh = instance->GetCreature(uiAshGUID); if (pAda && pAda->isAlive() && pAsh && pAsh->isAlive()) { pAda->AI()->Talk(SAY_BOSS_DIE_AD); pAsh->AI()->Talk(SAY_BOSS_DIE_AS); } } void SetData(uint32 type, uint32 data) { switch (type) { case TYPE_FREE_NPC: if (data == DONE) DoUseDoorOrButton(DoorCourtyardGUID); m_auiEncounter[0] = data; break; case TYPE_RETHILGORE: if (data == DONE) DoSpeech(); m_auiEncounter[1] = data; break; case TYPE_FENRUS: switch (data) { case DONE: uiTimer = 1000; uiPhase = 1; break; case 7: DoUseDoorOrButton(DoorSorcererGUID); break; } m_auiEncounter[2] = data; break; case TYPE_NANDOS: if (data == DONE) DoUseDoorOrButton(DoorArugalGUID); m_auiEncounter[3] = data; break; case TYPE_CROWN: if (data == NOT_STARTED) spawnCrazedTimer = urand(7000, 14000); m_auiEncounter[4] = data; break; } if (data == DONE) { OUT_SAVE_INST_DATA; std::ostringstream saveStream; saveStream << m_auiEncounter[0] << ' ' << m_auiEncounter[1] << ' ' << m_auiEncounter[2] << ' ' << m_auiEncounter[3]; str_data = saveStream.str(); SaveToDB(); OUT_SAVE_INST_DATA_COMPLETE; } } uint32 GetData(uint32 type) const { switch (type) { case TYPE_FREE_NPC: return m_auiEncounter[0]; case TYPE_RETHILGORE: return m_auiEncounter[1]; case TYPE_FENRUS: return m_auiEncounter[2]; case TYPE_NANDOS: return m_auiEncounter[3]; case TYPE_CROWN: return m_auiEncounter[4]; } return 0; } uint64 GetData64(uint32 id) { switch(id) { case DATA_DOOR: return DoorCourtyardGUID; case DATA_FRYE: return fryeGUID; case DATA_HUMMEL: return hummelGUID; case DATA_BAXTER: return baxterGUID; } return 0; } std::string GetSaveData() { return str_data; } void Load(const char* in) { if (!in) { OUT_LOAD_INST_DATA_FAIL; return; } OUT_LOAD_INST_DATA(in); std::istringstream loadStream(in); loadStream >> m_auiEncounter[0] >> m_auiEncounter[1] >> m_auiEncounter[2] >> m_auiEncounter[3]; for (uint8 i = 0; i < MAX_ENCOUNTER; ++i) { if (m_auiEncounter[i] == IN_PROGRESS) m_auiEncounter[i] = NOT_STARTED; } OUT_LOAD_INST_DATA_COMPLETE; } void Update(uint32 diff) { if (GetData(TYPE_CROWN) == IN_PROGRESS) { if (spawnCrazedTimer <= diff) { if (Creature* hummel = instance->GetCreature(hummelGUID)) hummel->AI()->DoAction(ACTION_SPAWN_CRAZED); spawnCrazedTimer = urand(2000, 5000); } else spawnCrazedTimer -= diff; } if (GetData(TYPE_FENRUS) != DONE) return; Creature* pArchmage = instance->GetCreature(uiArchmageArugalGUID); if (!pArchmage || !pArchmage->isAlive()) return; if (uiPhase) { if (uiTimer <= diff) { switch (uiPhase) { case 1: { Creature* summon = pArchmage->SummonCreature(pArchmage->GetEntry(), SpawnLocation[4], TEMPSUMMON_TIMED_DESPAWN, 10000); summon->SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_IMMUNE_TO_PC); summon->SetReactState(REACT_DEFENSIVE); summon->CastSpell(summon, SPELL_ASHCROMBE_TELEPORT, true); summon->AI()->Talk(SAY_ARCHMAGE); uiTimer = 2000; uiPhase = 2; break; } case 2: { pArchmage->SummonCreature(NPC_ARUGAL_VOIDWALKER, SpawnLocation[0], TEMPSUMMON_CORPSE_TIMED_DESPAWN, 60000); pArchmage->SummonCreature(NPC_ARUGAL_VOIDWALKER, SpawnLocation[1], TEMPSUMMON_CORPSE_TIMED_DESPAWN, 60000); pArchmage->SummonCreature(NPC_ARUGAL_VOIDWALKER, SpawnLocation[2], TEMPSUMMON_CORPSE_TIMED_DESPAWN, 60000); pArchmage->SummonCreature(NPC_ARUGAL_VOIDWALKER, SpawnLocation[3], TEMPSUMMON_CORPSE_TIMED_DESPAWN, 60000); uiPhase = 0; break; } } } else uiTimer -= diff; } } }; }; void AddSC_instance_shadowfang_keep() { new instance_shadowfang_keep(); } Добавлено (15.12.2014, 21:55) --------------------------------------------- Добавлено (15.12.2014, 21:58) Error 2 error C4264: 'uint64 ZoneScript::GetData64(uint32) const' : no override available for virtual member function from base 'ZoneScript'; function is hidden D:\isxodgo\src\server\scripts\EasternKingdoms\ShadowfangKeep\instance_shadowfang_keep.cpp 325 1 scripts
Код /*
* Copyright (C) 2008-2013 TrinityCore <http://www.trinitycore.org/> * Copyright (C) 2006-2009 ScriptDev2 <https://scriptdev2.svn.sourceforge.net/> * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the * Free Software Foundation; either version 2 of the License, or (at your * option) any later version. * * This program is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for * more details. * * You should have received a copy of the GNU General Public License along * with this program. If not, see <http://www.gnu.org/licenses/>. */ /* ScriptData SDName: Instance_Shadowfang_Keep SD%Complete: 90 SDComment: SDCategory: Shadowfang Keep EndScriptData */ #include "ScriptedCreature.h" #include "ScriptMgr.h" #include "InstanceScript.h" #include "shadowfang_keep.h" #include "TemporarySummon.h" #define MAX_ENCOUNTER 5 enum Shadowfang { SAY_BOSS_DIE_AD = 4, SAY_BOSS_DIE_AS = 3, SAY_ARCHMAGE = 0, NPC_ASH = 3850, NPC_ADA = 3849, NPC_ARCHMAGE_ARUGAL = 4275, NPC_ARUGAL_VOIDWALKER = 4627, GO_COURTYARD_DOOR = 18895, //door to open when talking to NPC's GO_SORCERER_DOOR = 18972, //door to open when Fenrus the Devourer GO_ARUGAL_DOOR = 18971, //door to open when Wolf Master Nandos SPELL_ASHCROMBE_TELEPORT = 15742, ACTION_SPAWN_CRAZED = 3 }; const Position SpawnLocation[] = { {-148.199f, 2165.647f, 128.448f, 1.026f}, {-153.110f, 2168.620f, 128.448f, 1.026f}, {-145.905f, 2180.520f, 128.448f, 4.183f}, {-140.794f, 2178.037f, 128.448f, 4.090f}, {-138.640f, 2170.159f, 136.577f, 2.737f} }; class instance_shadowfang_keep : public InstanceMapScript { public: instance_shadowfang_keep() : InstanceMapScript("instance_shadowfang_keep", 33) { } InstanceScript* GetInstanceScript(InstanceMap* map) const { return new instance_shadowfang_keep_InstanceMapScript(map); } struct instance_shadowfang_keep_InstanceMapScript : public InstanceScript { instance_shadowfang_keep_InstanceMapScript(Map* map) : InstanceScript(map) {} uint32 m_auiEncounter[MAX_ENCOUNTER]; std::string str_data; uint64 uiAshGUID; uint64 uiAdaGUID; uint64 uiArchmageArugalGUID; uint64 fryeGUID; uint64 hummelGUID; uint64 baxterGUID; uint64 DoorCourtyardGUID; uint64 DoorSorcererGUID; uint64 DoorArugalGUID; uint8 uiPhase; uint16 uiTimer; uint32 spawnCrazedTimer; void Initialize() { memset(&m_auiEncounter, 0, sizeof(m_auiEncounter)); uiAshGUID = 0; uiAdaGUID = 0; uiArchmageArugalGUID = 0; fryeGUID = 0; hummelGUID = 0; baxterGUID = 0; DoorCourtyardGUID = 0; DoorSorcererGUID = 0; DoorArugalGUID = 0; uiPhase = 0; uiTimer = 0; } void OnCreatureCreate(Creature* creature) { switch (creature->GetEntry()) { case NPC_ASH: uiAshGUID = creature->GetGUID(); break; case NPC_ADA: uiAdaGUID = creature->GetGUID(); break; case NPC_ARCHMAGE_ARUGAL: uiArchmageArugalGUID = creature->GetGUID(); break; case NPC_FRYE: fryeGUID = creature->GetGUID(); break; case NPC_HUMMEL: hummelGUID = creature->GetGUID(); break; case NPC_BAXTER: baxterGUID = creature->GetGUID(); break; } } void OnGameObjectCreate(GameObject* go) { switch (go->GetEntry()) { case GO_COURTYARD_DOOR: DoorCourtyardGUID = go->GetGUID(); if (m_auiEncounter[0] == DONE) HandleGameObject(0, true, go); break; case GO_SORCERER_DOOR: DoorSorcererGUID = go->GetGUID(); if (m_auiEncounter[2] == DONE) HandleGameObject(0, true, go); break; case GO_ARUGAL_DOOR: DoorArugalGUID = go->GetGUID(); if (m_auiEncounter[3] == DONE) HandleGameObject(0, true, go); break; } } void DoSpeech() { Creature* pAda = instance->GetCreature(uiAdaGUID); Creature* pAsh = instance->GetCreature(uiAshGUID); if (pAda && pAda->isAlive() && pAsh && pAsh->isAlive()) { pAda->AI()->Talk(SAY_BOSS_DIE_AD); pAsh->AI()->Talk(SAY_BOSS_DIE_AS); } } void SetData(uint32 type, uint32 data) { switch (type) { case TYPE_FREE_NPC: if (data == DONE) DoUseDoorOrButton(DoorCourtyardGUID); m_auiEncounter[0] = data; break; case TYPE_RETHILGORE: if (data == DONE) DoSpeech(); m_auiEncounter[1] = data; break; case TYPE_FENRUS: switch (data) { case DONE: uiTimer = 1000; uiPhase = 1; break; case 7: DoUseDoorOrButton(DoorSorcererGUID); break; } m_auiEncounter[2] = data; break; case TYPE_NANDOS: if (data == DONE) DoUseDoorOrButton(DoorArugalGUID); m_auiEncounter[3] = data; break; case TYPE_CROWN: if (data == NOT_STARTED) spawnCrazedTimer = urand(7000, 14000); m_auiEncounter[4] = data; break; } if (data == DONE) { OUT_SAVE_INST_DATA; std::ostringstream saveStream; saveStream << m_auiEncounter[0] << ' ' << m_auiEncounter[1] << ' ' << m_auiEncounter[2] << ' ' << m_auiEncounter[3]; str_data = saveStream.str(); SaveToDB(); OUT_SAVE_INST_DATA_COMPLETE; } } uint32 GetData(uint32 type) const { switch (type) { case TYPE_FREE_NPC: return m_auiEncounter[0]; case TYPE_RETHILGORE: return m_auiEncounter[1]; case TYPE_FENRUS: return m_auiEncounter[2]; case TYPE_NANDOS: return m_auiEncounter[3]; case TYPE_CROWN: return m_auiEncounter[4]; } return 0; } uint64 GetData64(uint32 id) { switch(id) { case DATA_DOOR: return DoorCourtyardGUID; case DATA_FRYE: return fryeGUID; case DATA_HUMMEL: return hummelGUID; case DATA_BAXTER: return baxterGUID; } return 0; } std::string GetSaveData() { return str_data; } void Load(const char* in) { if (!in) { OUT_LOAD_INST_DATA_FAIL; return; } OUT_LOAD_INST_DATA(in); std::istringstream loadStream(in); loadStream >> m_auiEncounter[0] >> m_auiEncounter[1] >> m_auiEncounter[2] >> m_auiEncounter[3]; for (uint8 i = 0; i < MAX_ENCOUNTER; ++i) { if (m_auiEncounter[i] == IN_PROGRESS) m_auiEncounter[i] = NOT_STARTED; } OUT_LOAD_INST_DATA_COMPLETE; } void Update(uint32 diff) { if (GetData(TYPE_CROWN) == IN_PROGRESS) { if (spawnCrazedTimer <= diff) { if (Creature* hummel = instance->GetCreature(hummelGUID)) hummel->AI()->DoAction(ACTION_SPAWN_CRAZED);
УАС
|
| |||
| |||