diff options
| author | megamage <none@none> | 2009-01-17 13:42:41 -0600 |
|---|---|---|
| committer | megamage <none@none> | 2009-01-17 13:42:41 -0600 |
| commit | 2cf1a3be1b310feafc43781ab9178f0c1f35d352 (patch) | |
| tree | 8c028b01c102bba566ebb32c8014ab19eba8f46a /src/bindings/scripts | |
| parent | 8739ded05dbf68486551531024f1ad8ad7b389cf (diff) | |
| parent | c5dfe7dac27a0441192af758dc55e6c71c83ccb4 (diff) | |
*Update to Trinity 878.
--HG--
branch : trunk
Diffstat (limited to 'src/bindings/scripts')
4 files changed, 515 insertions, 27 deletions
diff --git a/src/bindings/scripts/CMakeLists.txt b/src/bindings/scripts/CMakeLists.txt new file mode 100644 index 00000000000..636530b9527 --- /dev/null +++ b/src/bindings/scripts/CMakeLists.txt @@ -0,0 +1,389 @@ + +########### next target ############### + +SET(trinityscript_LIB_SRCS + ScriptMgr.cpp + ScriptMgr.h + include/precompiled.cpp + include/precompiled.h + include/sc_creature.cpp + include/sc_creature.h + include/sc_gossip.h + include/sc_instance.h + scripts/areatrigger/areatrigger_scripts.cpp + scripts/boss/boss_emeriss.cpp + scripts/boss/boss_lethon.cpp + scripts/boss/boss_taerar.cpp + scripts/boss/boss_ysondre.cpp + scripts/creature/mob_event_ai.cpp + scripts/creature/mob_event_ai.h + scripts/creature/mob_generic_creature.cpp + scripts/creature/simple_ai.cpp + scripts/creature/simple_ai.h + scripts/custom/custom_example.cpp + scripts/custom/custom_gossip_codebox.cpp + scripts/custom/test.cpp + scripts/go/go_scripts.cpp + scripts/guard/guard_ai.cpp + scripts/guard/guard_ai.h + scripts/guard/guards.cpp + scripts/item/item_scripts.cpp + scripts/item/item_test.cpp + scripts/npc/npc_escortAI.cpp + scripts/npc/npc_escortAI.h + scripts/npc/npc_innkeeper.cpp + scripts/npc/npc_professions.cpp + scripts/npc/npcs_special.cpp + scripts/zone/arathi_highlands/arathi_highlands.cpp + scripts/zone/alterac_mountains/alterac_mountains.cpp + scripts/zone/ashenvale_forest/ashenvale.cpp + scripts/zone/aunchindoun/auchenai_crypts/boss_exarch_maladaar.cpp + scripts/zone/aunchindoun/auchenai_crypts/boss_shirrak_the_dead_watcher.cpp + scripts/zone/aunchindoun/mana_tombs/boss_nexusprince_shaffar.cpp + scripts/zone/aunchindoun/mana_tombs/boss_pandemonius.cpp + scripts/zone/aunchindoun/sethekk_halls/boss_darkweaver_syth.cpp + scripts/zone/aunchindoun/sethekk_halls/boss_tailonking_ikiss.cpp + scripts/zone/aunchindoun/sethekk_halls/def_sethekk_halls.h + scripts/zone/aunchindoun/sethekk_halls/instance_sethekk_halls.cpp + scripts/zone/aunchindoun/shadow_labyrinth/boss_ambassador_hellmaw.cpp + scripts/zone/aunchindoun/shadow_labyrinth/boss_blackheart_the_inciter.cpp + scripts/zone/aunchindoun/shadow_labyrinth/boss_grandmaster_vorpil.cpp + scripts/zone/aunchindoun/shadow_labyrinth/boss_murmur.cpp + scripts/zone/aunchindoun/shadow_labyrinth/def_shadow_labyrinth.h + scripts/zone/aunchindoun/shadow_labyrinth/instance_shadow_labyrinth.cpp + scripts/zone/azshara/azshara.cpp + scripts/zone/azshara/boss_azuregos.cpp + scripts/zone/azuremyst_isle/azuremyst_isle.cpp + scripts/zone/barrens/the_barrens.cpp + scripts/zone/black_temple/black_temple.cpp + scripts/zone/black_temple/boss_bloodboil.cpp + scripts/zone/black_temple/boss_illidan.cpp + scripts/zone/black_temple/boss_mother_shahraz.cpp + scripts/zone/black_temple/boss_reliquary_of_souls.cpp + scripts/zone/black_temple/boss_shade_of_akama.cpp + scripts/zone/black_temple/boss_supremus.cpp + scripts/zone/black_temple/boss_teron_gorefiend.cpp + scripts/zone/black_temple/boss_warlord_najentus.cpp + scripts/zone/black_temple/def_black_temple.h + scripts/zone/black_temple/illidari_council.cpp + scripts/zone/black_temple/instance_black_temple.cpp + scripts/zone/blackrock_depths/blackrock_depths.cpp + scripts/zone/blackrock_depths/instance_blackrock_depths.cpp + scripts/zone/blackrock_depths/def_blackrock_depths.h + scripts/zone/blackrock_depths/boss_ambassador_flamelash.cpp + scripts/zone/blackrock_depths/boss_angerrel.cpp + scripts/zone/blackrock_depths/boss_anubshiah.cpp + scripts/zone/blackrock_depths/boss_doomrel.cpp + scripts/zone/blackrock_depths/boss_doperel.cpp + scripts/zone/blackrock_depths/boss_emperor_dagran_thaurissan.cpp + scripts/zone/blackrock_depths/boss_general_angerforge.cpp + scripts/zone/blackrock_depths/boss_gloomrel.cpp + scripts/zone/blackrock_depths/boss_gorosh_the_dervish.cpp + scripts/zone/blackrock_depths/boss_grizzle.cpp + scripts/zone/blackrock_depths/boss_haterel.cpp + scripts/zone/blackrock_depths/boss_high_interrogator_gerstahn.cpp + scripts/zone/blackrock_depths/boss_magmus.cpp + scripts/zone/blackrock_depths/boss_moira_bronzebeard.cpp + scripts/zone/blackrock_depths/boss_seethrel.cpp + scripts/zone/blackrock_depths/boss_vilerel.cpp + scripts/zone/blackrock_spire/boss_drakkisath.cpp + scripts/zone/blackrock_spire/boss_gyth.cpp + scripts/zone/blackrock_spire/boss_halycon.cpp + scripts/zone/blackrock_spire/boss_highlord_omokk.cpp + scripts/zone/blackrock_spire/boss_mother_smolderweb.cpp + scripts/zone/blackrock_spire/boss_overlord_wyrmthalak.cpp + scripts/zone/blackrock_spire/boss_pyroguard_emberseer.cpp + scripts/zone/blackrock_spire/boss_quartermaster_zigris.cpp + scripts/zone/blackrock_spire/boss_rend_blackhand.cpp + scripts/zone/blackrock_spire/boss_shadow_hunter_voshgajin.cpp + scripts/zone/blackrock_spire/boss_the_beast.cpp + scripts/zone/blackrock_spire/boss_warmaster_voone.cpp + scripts/zone/blackwing_lair/boss_broodlord_lashlayer.cpp + scripts/zone/blackwing_lair/boss_chromaggus.cpp + scripts/zone/blackwing_lair/boss_ebonroc.cpp + scripts/zone/blackwing_lair/boss_firemaw.cpp + scripts/zone/blackwing_lair/boss_flamegor.cpp + scripts/zone/blackwing_lair/boss_nefarian.cpp + scripts/zone/blackwing_lair/boss_razorgore.cpp + scripts/zone/blackwing_lair/boss_vaelastrasz.cpp + scripts/zone/blackwing_lair/boss_victor_nefarius.cpp + scripts/zone/blackwing_lair/instance_blackwing_lair.cpp + scripts/zone/blades_edge_mountains/blades_edge_mountains.cpp + scripts/zone/blasted_lands/blasted_lands.cpp + scripts/zone/blasted_lands/boss_kruul.cpp + scripts/zone/bloodmyst_isle/bloodmyst_isle.cpp + scripts/zone/burning_steppes/burning_steppes.cpp + scripts/zone/caverns_of_time/dark_portal/def_dark_portal.h + scripts/zone/caverns_of_time/dark_portal/instance_dark_portal.cpp + scripts/zone/caverns_of_time/dark_portal/dark_portal.cpp + scripts/zone/caverns_of_time/dark_portal/boss_aeonus.cpp + scripts/zone/caverns_of_time/dark_portal/boss_chrono_lord_deja.cpp + scripts/zone/caverns_of_time/dark_portal/boss_temporus.cpp + scripts/zone/caverns_of_time/hyjal/boss_archimonde.cpp + scripts/zone/caverns_of_time/hyjal/def_hyjal.h + scripts/zone/caverns_of_time/hyjal/hyjal.cpp + scripts/zone/caverns_of_time/hyjal/hyjalAI.cpp + scripts/zone/caverns_of_time/hyjal/hyjalAI.h + scripts/zone/caverns_of_time/hyjal/instance_hyjal.cpp + scripts/zone/caverns_of_time/old_hillsbrad/boss_captain_skarloc.cpp + scripts/zone/caverns_of_time/old_hillsbrad/boss_epoch_hunter.cpp + scripts/zone/caverns_of_time/old_hillsbrad/boss_leutenant_drake.cpp + scripts/zone/caverns_of_time/old_hillsbrad/def_old_hillsbrad.h + scripts/zone/caverns_of_time/old_hillsbrad/instance_old_hillsbrad.cpp + scripts/zone/caverns_of_time/old_hillsbrad/old_hillsbrad.cpp + scripts/zone/coilfang_resevoir/serpent_shrine/boss_fathomlord_karathress.cpp + scripts/zone/coilfang_resevoir/serpent_shrine/boss_hydross_the_unstable.cpp + scripts/zone/coilfang_resevoir/serpent_shrine/boss_lurker_below.cpp + scripts/zone/coilfang_resevoir/serpent_shrine/boss_lady_vashj.cpp + scripts/zone/coilfang_resevoir/serpent_shrine/boss_leotheras_the_blind.cpp + scripts/zone/coilfang_resevoir/serpent_shrine/boss_morogrim_tidewalker.cpp + scripts/zone/coilfang_resevoir/serpent_shrine/def_serpent_shrine.h + scripts/zone/coilfang_resevoir/serpent_shrine/instance_serpent_shrine.cpp + scripts/zone/coilfang_resevoir/steam_vault/boss_hydromancer_thespia.cpp + scripts/zone/coilfang_resevoir/steam_vault/boss_mekgineer_steamrigger.cpp + scripts/zone/coilfang_resevoir/steam_vault/boss_warlord_kalithresh.cpp + scripts/zone/coilfang_resevoir/steam_vault/def_steam_vault.h + scripts/zone/coilfang_resevoir/steam_vault/instance_steam_vault.cpp + scripts/zone/coilfang_resevoir/underbog/boss_hungarfen.cpp + scripts/zone/darkshore/darkshore.cpp + scripts/zone/deadmines/def_deadmines.h + scripts/zone/deadmines/deadmines.cpp + scripts/zone/dun_morogh/dun_morogh.cpp + scripts/zone/dustwallow_marsh/dustwallow_marsh.cpp + scripts/zone/eastern_plaguelands/eastern_plaguelands.cpp + scripts/zone/elwynn_forest/elwynn_forest.cpp + scripts/zone/eversong_woods/eversong_woods.cpp + scripts/zone/felwood/felwood.cpp + scripts/zone/feralas/feralas.cpp + scripts/zone/ghostlands/ghostlands.cpp + scripts/zone/gruuls_lair/boss_gruul.cpp + scripts/zone/gruuls_lair/boss_high_king_maulgar.cpp + scripts/zone/gruuls_lair/def_gruuls_lair.h + scripts/zone/gruuls_lair/instance_gruuls_lair.cpp + scripts/zone/hellfire_citadel/blood_furnace/boss_broggok.cpp + scripts/zone/hellfire_citadel/blood_furnace/boss_kelidan_the_breaker.cpp + scripts/zone/hellfire_citadel/blood_furnace/boss_the_maker.cpp + scripts/zone/hellfire_citadel/hellfire_ramparts/boss_omor_the_unscarred.cpp + scripts/zone/hellfire_citadel/hellfire_ramparts/boss_watchkeeper_gargolmar.cpp + scripts/zone/hellfire_citadel/magtheridons_lair/boss_magtheridon.cpp + scripts/zone/hellfire_citadel/magtheridons_lair/def_magtheridons_lair.h + scripts/zone/hellfire_citadel/magtheridons_lair/instance_magtheridons_lair.cpp + scripts/zone/hellfire_citadel/shattered_halls/boss_nethekurse.cpp + scripts/zone/hellfire_citadel/shattered_halls/boss_warbringer_omrogg.cpp + scripts/zone/hellfire_citadel/shattered_halls/def_shattered_halls.h + scripts/zone/hellfire_citadel/shattered_halls/instance_shattered_halls.cpp + scripts/zone/hellfire_citadel/shattered_halls/boss_warchief_kargath_bladefist.cpp + scripts/zone/hellfire_peninsula/boss_doomlord_kazzak.cpp + scripts/zone/hellfire_peninsula/hellfire_peninsula.cpp + scripts/zone/ironforge/ironforge.cpp + scripts/zone/isle_of_queldanas/isle_of_queldanas.cpp + scripts/zone/karazhan/boss_curator.cpp + scripts/zone/karazhan/boss_maiden_of_virtue.cpp + scripts/zone/karazhan/boss_midnight.cpp + scripts/zone/karazhan/boss_moroes.cpp + scripts/zone/karazhan/boss_netherspite.cpp + scripts/zone/karazhan/boss_nightbane.cpp + scripts/zone/karazhan/boss_prince_malchezaar.cpp + scripts/zone/karazhan/boss_shade_of_aran.cpp + scripts/zone/karazhan/boss_terestian_illhoof.cpp + scripts/zone/karazhan/bosses_opera.cpp + scripts/zone/karazhan/def_karazhan.h + scripts/zone/karazhan/instance_karazhan.cpp + scripts/zone/karazhan/karazhan.cpp + scripts/zone/loch_modan/loch_modan.cpp + scripts/zone/magisters_terrace/boss_felblood_kaelthas.cpp + scripts/zone/magisters_terrace/boss_priestess_delrissa.cpp + scripts/zone/magisters_terrace/boss_selin_fireheart.cpp + scripts/zone/magisters_terrace/boss_vexallus.cpp + scripts/zone/magisters_terrace/def_magisters_terrace.h + scripts/zone/magisters_terrace/instance_magisters_terrace.cpp + scripts/zone/maraudon/boss_celebras_the_cursed.cpp + scripts/zone/maraudon/boss_landslide.cpp + scripts/zone/maraudon/boss_noxxion.cpp + scripts/zone/maraudon/boss_princess_theradras.cpp + scripts/zone/molten_core/boss_baron_geddon.cpp + scripts/zone/molten_core/boss_garr.cpp + scripts/zone/molten_core/boss_gehennas.cpp + scripts/zone/molten_core/boss_golemagg.cpp + scripts/zone/molten_core/boss_lucifron.cpp + scripts/zone/molten_core/boss_magmadar.cpp + scripts/zone/molten_core/boss_majordomo_executus.cpp + scripts/zone/molten_core/boss_ragnaros.cpp + scripts/zone/molten_core/boss_shazzrah.cpp + scripts/zone/molten_core/boss_sulfuron_harbinger.cpp + scripts/zone/molten_core/def_molten_core.h + scripts/zone/molten_core/instance_molten_core.cpp + scripts/zone/molten_core/molten_core.cpp + scripts/zone/moonglade/moonglade.cpp + scripts/zone/mulgore/mulgore.cpp + scripts/zone/nagrand/nagrand.cpp + scripts/zone/naxxramas/boss_anubrekhan.cpp + scripts/zone/naxxramas/boss_faerlina.cpp + scripts/zone/naxxramas/boss_gluth.cpp + scripts/zone/naxxramas/boss_gothik.cpp + scripts/zone/naxxramas/boss_grobbulus.cpp + scripts/zone/naxxramas/boss_heigan.cpp + scripts/zone/naxxramas/boss_highlord_mograine.cpp + scripts/zone/naxxramas/boss_kelthuzad.cpp + scripts/zone/naxxramas/boss_four_horsemen.cpp + scripts/zone/naxxramas/boss_loatheb.cpp + scripts/zone/naxxramas/boss_maexxna.cpp + scripts/zone/naxxramas/boss_noth.cpp + scripts/zone/naxxramas/boss_patchwerk.cpp + scripts/zone/naxxramas/boss_razuvious.cpp + scripts/zone/naxxramas/boss_sapphiron.cpp + scripts/zone/naxxramas/boss_thaddius.cpp + scripts/zone/naxxramas/instance_naxxramas.cpp + scripts/zone/netherstorm/netherstorm.cpp + scripts/zone/onyxias_lair/boss_onyxia.cpp + scripts/zone/orgrimmar/orgrimmar.cpp + scripts/zone/razorfen_downs/boss_amnennar_the_coldbringer.cpp + scripts/zone/razorfen_kraul/razorfen_kraul.cpp + scripts/zone/ruins_of_ahnqiraj/boss_ayamiss.cpp + scripts/zone/ruins_of_ahnqiraj/boss_buru.cpp + scripts/zone/ruins_of_ahnqiraj/boss_kurinnaxx.cpp + scripts/zone/ruins_of_ahnqiraj/boss_moam.cpp + scripts/zone/ruins_of_ahnqiraj/boss_ossirian.cpp + scripts/zone/ruins_of_ahnqiraj/boss_rajaxx.cpp + scripts/zone/ruins_of_ahnqiraj/instance_ruins_of_ahnqiraj.cpp + scripts/zone/scarlet_monastery/boss_arcanist_doan.cpp + scripts/zone/scarlet_monastery/boss_azshir_the_sleepless.cpp + scripts/zone/scarlet_monastery/boss_bloodmage_thalnos.cpp + scripts/zone/scarlet_monastery/boss_herod.cpp + scripts/zone/scarlet_monastery/boss_high_inquisitor_fairbanks.cpp + scripts/zone/scarlet_monastery/boss_houndmaster_loksey.cpp + scripts/zone/scarlet_monastery/boss_interrogator_vishas.cpp + scripts/zone/scarlet_monastery/boss_scorn.cpp + scripts/zone/scarlet_monastery/boss_headless_horseman.cpp + scripts/zone/scarlet_monastery/boss_mograine_and_whitemane.cpp + scripts/zone/scarlet_monastery/instance_scarlet_monastery.cpp + scripts/zone/scarlet_monastery/def_scarlet_monastery.h + scripts/zone/scholomance/boss_darkmaster_gandling.cpp + scripts/zone/scholomance/boss_death_knight_darkreaver.cpp + scripts/zone/scholomance/boss_doctor_theolen_krastinov.cpp + scripts/zone/scholomance/boss_illucia_barov.cpp + scripts/zone/scholomance/boss_instructor_malicia.cpp + scripts/zone/scholomance/boss_jandice_barov.cpp + scripts/zone/scholomance/boss_kormok.cpp + scripts/zone/scholomance/boss_lord_alexei_barov.cpp + scripts/zone/scholomance/boss_lorekeeper_polkelt.cpp + scripts/zone/scholomance/boss_ras_frostwhisper.cpp + scripts/zone/scholomance/boss_the_ravenian.cpp + scripts/zone/scholomance/boss_vectus.cpp + scripts/zone/scholomance/def_scholomance.h + scripts/zone/scholomance/instance_scholomance.cpp + scripts/zone/searing_gorge/searing_gorge.cpp + scripts/zone/shadowfang_keep/def_shadowfang_keep.h + scripts/zone/shadowfang_keep/instance_shadowfang_keep.cpp + scripts/zone/shadowfang_keep/shadowfang_keep.cpp + scripts/zone/shadowmoon_valley/boss_doomwalker.cpp + scripts/zone/shadowmoon_valley/shadowmoon_valley.cpp + scripts/zone/shattrath/shattrath_city.cpp + scripts/zone/silithus/silithus.cpp + scripts/zone/silvermoon/silvermoon_city.cpp + scripts/zone/silverpine_forest/silverpine_forest.cpp + scripts/zone/stonetalon_mountains/stonetalon_mountains.cpp + scripts/zone/stormwind/stormwind_city.cpp + scripts/zone/stranglethorn_vale/stranglethorn_vale.cpp + scripts/zone/stratholme/boss_baron_rivendare.cpp + scripts/zone/stratholme/boss_baroness_anastari.cpp + scripts/zone/stratholme/boss_cannon_master_willey.cpp + scripts/zone/stratholme/boss_dathrohan_balnazzar.cpp + scripts/zone/stratholme/boss_magistrate_barthilas.cpp + scripts/zone/stratholme/boss_maleki_the_pallid.cpp + scripts/zone/stratholme/boss_nerubenkan.cpp + scripts/zone/stratholme/boss_order_of_silver_hand.cpp + scripts/zone/stratholme/boss_postmaster_malown.cpp + scripts/zone/stratholme/boss_ramstein_the_gorger.cpp + scripts/zone/stratholme/boss_timmy_the_cruel.cpp + scripts/zone/stratholme/def_stratholme.h + scripts/zone/stratholme/instance_stratholme.cpp + scripts/zone/stratholme/stratholme.cpp + scripts/zone/sunwell_plateau/boss_eredar_twins.cpp + scripts/zone/sunwell_plateau/boss_felmyst.cpp + scripts/zone/sunwell_plateau/boss_brutallus.cpp + scripts/zone/sunwell_plateau/boss_kalecgos.cpp + scripts/zone/sunwell_plateau/def_sunwell_plateau.h + scripts/zone/sunwell_plateau/instance_sunwell_plateau.cpp + scripts/zone/tanaris/tanaris.cpp + scripts/zone/tempest_keep/arcatraz/arcatraz.cpp + scripts/zone/tempest_keep/arcatraz/boss_harbinger_skyriss.cpp + scripts/zone/tempest_keep/arcatraz/def_arcatraz.h + scripts/zone/tempest_keep/arcatraz/instance_arcatraz.cpp + scripts/zone/tempest_keep/botanica/boss_high_botanist_freywinn.cpp + scripts/zone/tempest_keep/botanica/boss_laj.cpp + scripts/zone/tempest_keep/botanica/boss_warp_splinter.cpp + scripts/zone/tempest_keep/the_eye/boss_alar.cpp + scripts/zone/tempest_keep/the_eye/boss_astromancer.cpp + scripts/zone/tempest_keep/the_eye/boss_kaelthas.cpp + scripts/zone/tempest_keep/the_eye/boss_void_reaver.cpp + scripts/zone/tempest_keep/the_eye/def_the_eye.h + scripts/zone/tempest_keep/the_eye/instance_the_eye.cpp + scripts/zone/tempest_keep/the_eye/the_eye.cpp + scripts/zone/tempest_keep/the_mechanar/boss_gatewatcher_gyrokill.cpp + scripts/zone/tempest_keep/the_mechanar/boss_gatewatcher_ironhand.cpp + scripts/zone/tempest_keep/the_mechanar/boss_nethermancer_sepethrea.cpp + scripts/zone/tempest_keep/the_mechanar/boss_pathaleon_the_calculator.cpp + scripts/zone/tempest_keep/the_mechanar/def_mechanar.h + scripts/zone/tempest_keep/the_mechanar/instance_mechanar.cpp + scripts/zone/temple_of_ahnqiraj/boss_bug_trio.cpp + scripts/zone/temple_of_ahnqiraj/boss_cthun.cpp + scripts/zone/temple_of_ahnqiraj/boss_fankriss.cpp + scripts/zone/temple_of_ahnqiraj/boss_huhuran.cpp + scripts/zone/temple_of_ahnqiraj/boss_ouro.cpp + scripts/zone/temple_of_ahnqiraj/boss_sartura.cpp + scripts/zone/temple_of_ahnqiraj/boss_skeram.cpp + scripts/zone/temple_of_ahnqiraj/boss_twinemperors.cpp + scripts/zone/temple_of_ahnqiraj/boss_viscidus.cpp + scripts/zone/temple_of_ahnqiraj/def_temple_of_ahnqiraj.h + scripts/zone/temple_of_ahnqiraj/instance_temple_of_ahnqiraj.cpp + scripts/zone/temple_of_ahnqiraj/mob_anubisath_sentinel.cpp + scripts/zone/terokkar_forest/terokkar_forest.cpp + scripts/zone/thunder_bluff/thunder_bluff.cpp + scripts/zone/tirisfal_glades/tirisfal_glades.cpp + scripts/zone/thousand_needles/thousand_needles.cpp + scripts/zone/uldaman/boss_archaedas.cpp + scripts/zone/uldaman/instance_uldaman.cpp + scripts/zone/uldaman/boss_ironaya.cpp + scripts/zone/uldaman/uldaman.cpp + scripts/zone/undercity/undercity.cpp + scripts/zone/wailing_caverns/instance_wailing_caverns.cpp + scripts/zone/western_plaguelands/western_plaguelands.cpp + scripts/zone/westfall/westfall.cpp + scripts/zone/winterspring/winterspring.cpp + scripts/zone/zangarmarsh/zangarmarsh.cpp + scripts/zone/zulaman/boss_akilzon.cpp + scripts/zone/zulaman/boss_halazzi.cpp + scripts/zone/zulaman/boss_hexlord.cpp + scripts/zone/zulaman/boss_janalai.cpp + scripts/zone/zulaman/boss_nalorakk.cpp + scripts/zone/zulaman/boss_zuljin.cpp + scripts/zone/zulaman/def_zulaman.h + scripts/zone/zulaman/instance_zulaman.cpp + scripts/zone/zulaman/zulaman.cpp + scripts/zone/zulfarrak/zulfarrak.cpp + scripts/zone/zulgurub/boss_arlokk.cpp + scripts/zone/zulgurub/boss_gahzranka.cpp + scripts/zone/zulgurub/boss_grilek.cpp + scripts/zone/zulgurub/boss_hakkar.cpp + scripts/zone/zulgurub/boss_hazzarah.cpp + scripts/zone/zulgurub/boss_jeklik.cpp + scripts/zone/zulgurub/boss_jindo.cpp + scripts/zone/zulgurub/boss_mandokir.cpp + scripts/zone/zulgurub/boss_marli.cpp + scripts/zone/zulgurub/boss_renataki.cpp + scripts/zone/zulgurub/boss_thekal.cpp + scripts/zone/zulgurub/boss_venoxis.cpp + scripts/zone/zulgurub/boss_wushoolay.cpp + scripts/zone/zulgurub/def_zulgurub.h + scripts/zone/zulgurub/instance_zulgurub.cpp + system.cpp +) + +add_library(trinityscript STATIC ${trinityscript_LIB_SRCS}) + +target_link_libraries(trinityscript) + +set_target_properties(trinityscript PROPERTIES VERSION 4.2.0 SOVERSION 4) +install(TARGETS trinityscript DESTINATION lib) + diff --git a/src/bindings/scripts/scripts/npc/npcs_special.cpp b/src/bindings/scripts/scripts/npc/npcs_special.cpp index c438ef2d8af..e67fa031d42 100644 --- a/src/bindings/scripts/scripts/npc/npcs_special.cpp +++ b/src/bindings/scripts/scripts/npc/npcs_special.cpp @@ -131,12 +131,79 @@ bool QuestComplete_npc_chicken_cluck(Player *player, Creature *_Creature, const ## npc_dancing_flames ######*/ -bool ReceiveEmote_npc_dancing_flames( Player *player, Creature *_Creature, uint32 emote ) +#define SPELL_BRAZIER 45423 +#define SPELL_SEDUCTION 47057 +#define SPELL_FIERY_AURA 45427 + +struct TRINITY_DLL_DECL npc_dancing_flamesAI : public ScriptedAI { - if( emote == TEXTEMOTE_DANCE ) - _Creature->CastSpell(player,47057,false); + npc_dancing_flamesAI(Creature *c) : ScriptedAI(c) {Reset();} + + bool active; + uint32 can_iteract; - return true; + void Reset() + { + active = true; + can_iteract = 3500; + DoCast(m_creature,SPELL_BRAZIER,true); + DoCast(m_creature,SPELL_FIERY_AURA,false); + float x, y, z; + m_creature->GetPosition(x,y,z); + m_creature->Relocate(x,y,z + 0.94f); + m_creature->AddUnitMovementFlag(MOVEMENTFLAG_ONTRANSPORT | MOVEMENTFLAG_LEVITATING); + m_creature->HandleEmoteCommand(EMOTE_ONESHOT_DANCE); + WorldPacket data; //send update position to client + m_creature->BuildHeartBeatMsg(&data); + m_creature->SendMessageToSet(&data,true); + } + + void UpdateAI(const uint32 diff) + { + if (!active) + { + if(can_iteract <= diff){ + active = true; + can_iteract = 3500; + m_creature->HandleEmoteCommand(EMOTE_ONESHOT_DANCE); + }else can_iteract -= diff; + } + } + + void Aggro(Unit* who){} +}; + +CreatureAI* GetAI_npc_dancing_flames(Creature *_Creature) +{ + return new npc_dancing_flamesAI(_Creature); +} + +bool ReceiveEmote_npc_dancing_flames( Player *player, Creature *flame, uint32 emote ) +{ + if ( ((npc_dancing_flamesAI*)flame->AI())->active && + flame->IsWithinLOS(player->GetPositionX(),player->GetPositionY(),player->GetPositionZ()) && flame->IsWithinDistInMap(player,30.0f)) + { + flame->SetInFront(player); + ((npc_dancing_flamesAI*)flame->AI())->active = false; + + WorldPacket data; + flame->BuildHeartBeatMsg(&data); + flame->SendMessageToSet(&data,true); + switch(emote) + { + case TEXTEMOTE_KISS: flame->HandleEmoteCommand(EMOTE_ONESHOT_SHY); break; + case TEXTEMOTE_WAVE: flame->HandleEmoteCommand(EMOTE_ONESHOT_WAVE); break; + case TEXTEMOTE_BOW: flame->HandleEmoteCommand(EMOTE_ONESHOT_BOW); break; + case TEXTEMOTE_JOKE: flame->HandleEmoteCommand(EMOTE_ONESHOT_LAUGH); break; + case TEXTEMOTE_DANCE: + { + if (!player->HasAura(SPELL_SEDUCTION,0)) + flame->CastSpell(player,SPELL_SEDUCTION,true); + } + break; + } + } + return true; } /*###### @@ -940,6 +1007,7 @@ void AddSC_npcs_special() newscript = new Script; newscript->Name="npc_dancing_flames"; + newscript->GetAI = &GetAI_npc_dancing_flames; newscript->pReceiveEmote = &ReceiveEmote_npc_dancing_flames; newscript->RegisterSelf(); diff --git a/src/bindings/scripts/scripts/zone/aunchindoun/auchenai_crypts/boss_shirrak_the_dead_watcher.cpp b/src/bindings/scripts/scripts/zone/aunchindoun/auchenai_crypts/boss_shirrak_the_dead_watcher.cpp index afc161afed4..d0273e22d34 100644 --- a/src/bindings/scripts/scripts/zone/aunchindoun/auchenai_crypts/boss_shirrak_the_dead_watcher.cpp +++ b/src/bindings/scripts/scripts/zone/aunchindoun/auchenai_crypts/boss_shirrak_the_dead_watcher.cpp @@ -23,7 +23,7 @@ EndScriptData */ #include "precompiled.h" -#define SPELL_INHABITMAGIC 32264 +#define SPELL_INHIBITMAGIC 32264 #define SPELL_ATTRACTMAGIC 32265 #define N_SPELL_CARNIVOROUSBITE 36383 #define H_SPELL_CARNIVOROUSBITE 39382 @@ -44,7 +44,7 @@ struct TRINITY_DLL_DECL boss_shirrak_the_dead_watcherAI : public ScriptedAI Reset(); } - uint32 Inhabitmagic_Timer; + uint32 Inhibitmagic_Timer; uint32 Attractmagic_Timer; uint32 Carnivorousbite_Timer; uint32 FocusFire_Timer; @@ -53,7 +53,7 @@ struct TRINITY_DLL_DECL boss_shirrak_the_dead_watcherAI : public ScriptedAI void Reset() { - Inhabitmagic_Timer = 3000; + Inhibitmagic_Timer = 0; Attractmagic_Timer = 28000; Carnivorousbite_Timer = 10000; FocusFire_Timer = 17000; @@ -79,22 +79,38 @@ struct TRINITY_DLL_DECL boss_shirrak_the_dead_watcherAI : public ScriptedAI void UpdateAI(const uint32 diff) { + //Inhibitmagic_Timer + if (Inhibitmagic_Timer < diff) + { + float dist; + Map *map = m_creature->GetMap(); + Map::PlayerList const &PlayerList = map->GetPlayers(); + for(Map::PlayerList::const_iterator i = PlayerList.begin(); i != PlayerList.end(); ++i) + if (Player* i_pl = i->getSource()) + if (i_pl->isAlive() && (dist = i_pl->GetDistance(m_creature)) < 45) + { + i_pl->RemoveAurasDueToSpell(SPELL_INHIBITMAGIC); + m_creature->AddAura(SPELL_INHIBITMAGIC, i_pl); + if(dist < 35) + m_creature->AddAura(SPELL_INHIBITMAGIC, i_pl); + if(dist < 25) + m_creature->AddAura(SPELL_INHIBITMAGIC, i_pl); + if(dist < 15) + m_creature->AddAura(SPELL_INHIBITMAGIC, i_pl); + } + Inhibitmagic_Timer = 3000+(rand()%1000); + }else Inhibitmagic_Timer -= diff; + //Return since we have no target if (!m_creature->SelectHostilTarget() || !m_creature->getVictim() ) return; - //Inhabitmagic_Timer - if (Inhabitmagic_Timer < diff) - { - DoCast(m_creature,SPELL_INHABITMAGIC); - Inhabitmagic_Timer = 2000+(rand()%2000); - }else Inhabitmagic_Timer -= diff; - //Attractmagic_Timer if (Attractmagic_Timer < diff) { DoCast(m_creature,SPELL_ATTRACTMAGIC); Attractmagic_Timer = 30000; + Carnivorousbite_Timer = 1500; }else Attractmagic_Timer -= diff; //Carnivorousbite_Timer @@ -108,20 +124,20 @@ struct TRINITY_DLL_DECL boss_shirrak_the_dead_watcherAI : public ScriptedAI if (FocusFire_Timer < diff) { // Summon Focus Fire & Emote - Unit *target = SelectUnit(SELECT_TARGET_RANDOM,0); - if (target && target->GetTypeId() == TYPEID_PLAYER) + Unit *target = SelectUnit(SELECT_TARGET_RANDOM,1); + if (target && target->GetTypeId() == TYPEID_PLAYER && target->isAlive()) { focusedTarget = target; m_creature->SummonCreature(ENTRY_FOCUS_FIRE,target->GetPositionX(),target->GetPositionY(),target->GetPositionZ(),0,TEMPSUMMON_TIMED_DESPAWN,5500); // Emote - std::string *emote = new std::string("focuses his energy on "); + std::string *emote = new std::string("focuses on "); emote->append(target->GetName()); + emote->append("!"); DoTextEmote(emote->c_str(),NULL,true); delete emote; - - FocusFire_Timer = 15000+(rand()%5000); } + FocusFire_Timer = 15000+(rand()%5000); }else FocusFire_Timer -= diff; DoMeleeAttackIfReady(); @@ -143,7 +159,7 @@ struct TRINITY_DLL_DECL mob_focus_fireAI : public ScriptedAI bool HeroicMode; uint32 FieryBlast_Timer; - bool fiery1, fiery2, fiery3; + bool fiery1, fiery2; void Reset() { diff --git a/src/bindings/scripts/scripts/zone/stranglethorn_vale/stranglethorn_vale.cpp b/src/bindings/scripts/scripts/zone/stranglethorn_vale/stranglethorn_vale.cpp index a5d66b02ddc..2631b9ac3ae 100644 --- a/src/bindings/scripts/scripts/zone/stranglethorn_vale/stranglethorn_vale.cpp +++ b/src/bindings/scripts/scripts/zone/stranglethorn_vale/stranglethorn_vale.cpp @@ -72,13 +72,28 @@ struct TRINITY_DLL_DECL mob_yennikuAI : public ScriptedAI void UpdateAI(const uint32 diff) { if (bReset) - if(Reset_Timer < diff) - { - EnterEvadeMode(); - bReset = false; - m_creature->setFaction(28); //troll, bloodscalp - } - else Reset_Timer -= diff; + { + if(Reset_Timer < diff) + { + EnterEvadeMode(); + bReset = false; + m_creature->setFaction(28); //troll, bloodscalp + } + else Reset_Timer -= diff; + + if(m_creature->isInCombat() && m_creature->getVictim()) + { + if(m_creature->getVictim()->GetTypeId() == TYPEID_PLAYER) + { + Unit *victim = m_creature->getVictim(); + if(((Player*)victim)->GetTeam() == HORDE) + { + m_creature->CombatStop(); + m_creature->DeleteThreatList(); + } + } + } + } //Return since we have no target if (!m_creature->SelectHostilTarget() || !m_creature->getVictim() ) |
