diff options
66 files changed, 310 insertions, 305 deletions
@@ -49,4 +49,9 @@ Skystar, Reve, jorooo, FrozenDB, miranda.conrado, Tequila, Gommes, Zerg2000,  aerione_alt, Rastik, FrenchW, wilibald09, Velorien, kancaras, fisherman,  Aviram, Mufik, loop69, multiplexer, Koani, rechapa79, kozelo, MeanMachine,  fregh, adrycasillo, IncoGnito, Alez, Itch, Kuteur, MaS0n, peaceman, manuel, -Gendalph, Lynx3d, raftom, Infinity, Ebrithil, Sorya, HP1, Prince, redcore. +Gendalph, Lynx3d, raftom, Infinity, Ebrithil, Sorya, HP1, Prince, redcore, +Boogie, Necro, Thyros, simon, MrSmite, horogandris, Stryker, MaXiMiUS, kaell, +totoro, Forgiven, Big, Oculus, Lorac, Nemesis, Epsik, iadus3, durotar, hoshie, +fukifat, imbecile, Nafsih, Meldanor, Turok, Naturamen, Themris, Sundark, +Azuritus, jotapdiez, EnderGT, Curuad, oc_redfox, rockzOr, Darkshines, +BlackYoghurt, McLovin, Gyullo, kaxap. diff --git a/src/bindings/scripts/scripts/custom/npc_acherus_taxi.cpp b/src/bindings/scripts/scripts/custom/npc_acherus_taxi.cpp index f6bb60cdbbc..2057eb4e436 100644 --- a/src/bindings/scripts/scripts/custom/npc_acherus_taxi.cpp +++ b/src/bindings/scripts/scripts/custom/npc_acherus_taxi.cpp @@ -15,10 +15,10 @@ pPlayer->ADD_GOSSIP_ITEM(GOSSIP_ICON_CHAT, GOSSIP_FLIGHT, GOSSIP_SENDER_MAIN, GO  bool GossipSelect_npc_acherus_taxi(Player* pPlayer, Creature* pCreature, uint32 uiSender, uint32 uiAction)  {      if (uiAction == GOSSIP_ACTION_INFO_DEF + 1) -    {  -       if (pPlayer->GetPositionZ() >=316)        +    { +       if (pPlayer->GetPositionZ() >=316)          { -        pPlayer->GetSession()->SendDoFlight(24446, 1053);  +        pPlayer->GetSession()->SendDoFlight(24446, 1053);          }else{          pPlayer->GetSession()->SendDoFlight(24446, 1054);          } diff --git a/src/bindings/scripts/scripts/custom/npc_wyrmresttempel_taxi.cpp b/src/bindings/scripts/scripts/custom/npc_wyrmresttempel_taxi.cpp index d7f27ff4aca..182732053fd 100644 --- a/src/bindings/scripts/scripts/custom/npc_wyrmresttempel_taxi.cpp +++ b/src/bindings/scripts/scripts/custom/npc_wyrmresttempel_taxi.cpp @@ -14,18 +14,18 @@ pPlayer->SetTaxiCheater(true);  pPlayer->ADD_GOSSIP_ITEM(GOSSIP_ICON_CHAT, GOSSIP_UP, GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF + 1);  pPlayer->ADD_GOSSIP_ITEM(GOSSIP_ICON_CHAT, GOSSIP_DOWN, GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF + 2); -        pPlayer->SEND_GOSSIP_MENU(12887, pCreature->GetGUID());  -         +        pPlayer->SEND_GOSSIP_MENU(12887, pCreature->GetGUID()); +      return true;  }  bool GossipSelect_npc_wyrmresttempel_middle_taxi(Player* pPlayer, Creature* pCreature, uint32 uiSender, uint32 uiAction)  {      if (uiAction == GOSSIP_ACTION_INFO_DEF + 1) -    {           +    {          pPlayer->GetSession()->SendDoFlight(6376, 881);      } -     +      if (uiAction == GOSSIP_ACTION_INFO_DEF + 2)      { @@ -42,7 +42,7 @@ pPlayer->SetTaxiCheater(true);  pPlayer->ADD_GOSSIP_ITEM(GOSSIP_ICON_CHAT, GOSSIP_TOP, GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF + 4);  pPlayer->ADD_GOSSIP_ITEM(GOSSIP_ICON_CHAT, GOSSIP_MIDDLE, GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF + 3);          pPlayer->SEND_GOSSIP_MENU(12713, pCreature->GetGUID()); -         +      return true;  } @@ -51,10 +51,10 @@ pPlayer->ADD_GOSSIP_ITEM(GOSSIP_ICON_CHAT, GOSSIP_MIDDLE, GOSSIP_SENDER_MAIN, GO  bool GossipSelect_npc_wyrmresttempel_bottom_taxi(Player* pPlayer, Creature* pCreature, uint32 uiSender, uint32 uiAction)  {      if (uiAction == GOSSIP_ACTION_INFO_DEF + 4) -    {          +    {          pPlayer->GetSession()->SendDoFlight(6376, 878);      } -     +      if (uiAction == GOSSIP_ACTION_INFO_DEF + 3)      { @@ -78,7 +78,7 @@ pPlayer->ADD_GOSSIP_ITEM(GOSSIP_ICON_CHAT, GOSSIP_ONEDOWN, GOSSIP_SENDER_MAIN, G  bool GossipSelect_npc_wyrmresttempel_top_taxi(Player* pPlayer, Creature* pCreature, uint32 uiSender, uint32 uiAction)  {      if (uiAction == GOSSIP_ACTION_INFO_DEF + 5) -    {       +    {          pPlayer->GetSession()->SendDoFlight(6376, 879);      } diff --git a/src/bindings/scripts/scripts/eastern_kingdoms/blackrock_depths/def_blackrock_depths.h b/src/bindings/scripts/scripts/eastern_kingdoms/blackrock_depths/def_blackrock_depths.h index 6ce124a7c3e..ff82cfd0879 100644 --- a/src/bindings/scripts/scripts/eastern_kingdoms/blackrock_depths/def_blackrock_depths.h +++ b/src/bindings/scripts/scripts/eastern_kingdoms/blackrock_depths/def_blackrock_depths.h @@ -17,7 +17,7 @@ enum      TYPE_TOMB_OF_SEVEN      = 4,      TYPE_LYCEUM             = 5,      TYPE_IRON_HALL          = 6, -  +      DATA_EMPEROR            = 10,      DATA_PHALANX            = 11, diff --git a/src/bindings/scripts/scripts/eastern_kingdoms/blackrock_depths/instance_blackrock_depths.cpp b/src/bindings/scripts/scripts/eastern_kingdoms/blackrock_depths/instance_blackrock_depths.cpp index f8993b36124..770062492ef 100644 --- a/src/bindings/scripts/scripts/eastern_kingdoms/blackrock_depths/instance_blackrock_depths.cpp +++ b/src/bindings/scripts/scripts/eastern_kingdoms/blackrock_depths/instance_blackrock_depths.cpp @@ -47,7 +47,7 @@ enum      NPC_SEETHREL            = 9038,      NPC_GLOOMREL            = 9037,      NPC_DOOMREL             = 9039, -  +      GO_ARENA1               = 161525,      GO_ARENA2               = 161522,      GO_ARENA3               = 161524, @@ -65,7 +65,7 @@ enum      GO_GOLEM_ROOM_N         = 170573,      GO_GOLEM_ROOM_S         = 170574,      GO_THONE_ROOM           = 170575, -  +      GO_SPECTRAL_CHALICE     = 164869,      GO_CHEST_SEVEN          = 169243  }; @@ -174,7 +174,7 @@ struct TRINITY_DLL_DECL instance_blackrock_depths : public ScriptedInstance          case GO_BAR_KEG_TRAP: GoBarKegTrapGUID = pGo->GetGUID(); break;          case GO_BAR_DOOR: GoBarDoorGUID = pGo->GetGUID(); break;          case GO_TOMB_ENTER: GoTombEnterGUID = pGo->GetGUID(); break; -        case GO_TOMB_EXIT:  +        case GO_TOMB_EXIT:              GoTombExitGUID = pGo->GetGUID();              if (GhostKillCount >= 7)                  HandleGameObject(0, true, pGo); @@ -346,7 +346,7 @@ struct TRINITY_DLL_DECL instance_blackrock_depths : public ScriptedInstance                  if (Unit* target = boss->SelectNearestTarget(500))                      boss->AI()->AttackStart(target);              } -        }         +        }      }      void TombOfSevenReset() @@ -367,7 +367,7 @@ struct TRINITY_DLL_DECL instance_blackrock_depths : public ScriptedInstance                      boss->GetMotionMaster()->MoveTargetedHome();                      boss->SetLootRecipient(NULL);                  } -                boss->setFaction(FACTION_FRIEND);                 +                boss->setFaction(FACTION_FRIEND);              }          }          GhostKillCount = 0; @@ -386,7 +386,7 @@ struct TRINITY_DLL_DECL instance_blackrock_depths : public ScriptedInstance      void TombOfSevenEnd()      { -        DoRespawnGameObject(GoChestGUID,DAY);         +        DoRespawnGameObject(GoChestGUID,DAY);          HandleGameObject(GoTombExitGUID,true);//event done, open exit door          HandleGameObject(GoTombEnterGUID,true);//event done, open entrance door          TombEventStarterGUID = 0; diff --git a/src/bindings/scripts/scripts/eastern_kingdoms/karazhan/boss_moroes.cpp b/src/bindings/scripts/scripts/eastern_kingdoms/karazhan/boss_moroes.cpp index 6d871ef04b7..d32c670e133 100644 --- a/src/bindings/scripts/scripts/eastern_kingdoms/karazhan/boss_moroes.cpp +++ b/src/bindings/scripts/scripts/eastern_kingdoms/karazhan/boss_moroes.cpp @@ -187,7 +187,7 @@ struct TRINITY_DLL_DECL boss_moroesAI : public ScriptedAI          {              for(uint8 i = 0; i < 4; ++i)              { -                Creature *pCreature = m_creature->SummonCreature(AddId[i], Locations[i][0], Locations[i][1], POS_Z, Locations[i][2], TEMPSUMMON_CORPSE_TIMED_DESPAWN, 10000);                 +                Creature *pCreature = m_creature->SummonCreature(AddId[i], Locations[i][0], Locations[i][1], POS_Z, Locations[i][2], TEMPSUMMON_CORPSE_TIMED_DESPAWN, 10000);                  if (pCreature)                  {                      AddGUID[i] = pCreature->GetGUID(); diff --git a/src/bindings/scripts/scripts/eastern_kingdoms/karazhan/boss_netherspite.cpp b/src/bindings/scripts/scripts/eastern_kingdoms/karazhan/boss_netherspite.cpp index 68406e65f04..508823658f6 100644 --- a/src/bindings/scripts/scripts/eastern_kingdoms/karazhan/boss_netherspite.cpp +++ b/src/bindings/scripts/scripts/eastern_kingdoms/karazhan/boss_netherspite.cpp @@ -63,7 +63,7 @@ struct TRINITY_DLL_DECL boss_netherspiteAI : public ScriptedAI          pInstance = c->GetInstanceData();          for(int i=0; i<3; ++i) -        {  +        {              PortalGUID[i] = 0;              BeamTarget[i] = 0;              BeamerGUID[i] = 0; @@ -176,7 +176,7 @@ struct TRINITY_DLL_DECL boss_netherspiteAI : public ScriptedAI                  if(Map* map = m_creature->GetMap())                  {                      Map::PlayerList const& players = map->GetPlayers(); -                 +                      // get the best suitable target                      for(Map::PlayerList::const_iterator i = players.begin(); i!=players.end(); ++i)                      { @@ -303,7 +303,7 @@ struct TRINITY_DLL_DECL boss_netherspiteAI : public ScriptedAI                  m_creature->AddAura(SPELL_NETHERBURN_AURA, m_creature);                  EmpowermentTimer = 90000;              }else EmpowermentTimer -= diff; -             +              if(PhaseTimer < diff)              {                  if(!m_creature->IsNonMeleeSpellCasted(false)) @@ -345,7 +345,7 @@ CreatureAI* GetAI_boss_netherspite(Creature *_Creature)  void AddSC_boss_netherspite()  {      Script *newscript; -  +      newscript = new Script;      newscript->Name="boss_netherspite";      newscript->GetAI = GetAI_boss_netherspite; diff --git a/src/bindings/scripts/scripts/eastern_kingdoms/karazhan/boss_shade_of_aran.cpp b/src/bindings/scripts/scripts/eastern_kingdoms/karazhan/boss_shade_of_aran.cpp index d672851315e..490828db73b 100644 --- a/src/bindings/scripts/scripts/eastern_kingdoms/karazhan/boss_shade_of_aran.cpp +++ b/src/bindings/scripts/scripts/eastern_kingdoms/karazhan/boss_shade_of_aran.cpp @@ -141,7 +141,7 @@ struct TRINITY_DLL_DECL boss_aranAI : public ScriptedAI          {              // Not in progress              pInstance->SetData(TYPE_ARAN, NOT_STARTED); -            pInstance->HandleGameObject(pInstance->GetData64(DATA_GO_LIBRARY_DOOR), true);  +            pInstance->HandleGameObject(pInstance->GetData64(DATA_GO_LIBRARY_DOOR), true);          }      } diff --git a/src/bindings/scripts/scripts/eastern_kingdoms/karazhan/bosses_opera.cpp b/src/bindings/scripts/scripts/eastern_kingdoms/karazhan/bosses_opera.cpp index da6f77e7c20..01a12847bd9 100644 --- a/src/bindings/scripts/scripts/eastern_kingdoms/karazhan/bosses_opera.cpp +++ b/src/bindings/scripts/scripts/eastern_kingdoms/karazhan/bosses_opera.cpp @@ -1053,7 +1053,7 @@ struct TRINITY_DLL_DECL boss_romuloAI : public ScriptedAI          EntryYellTimer = 8000;          AggroYellTimer = 15000;      } -     +      ScriptedInstance* pInstance;      uint64 JulianneGUID; @@ -1286,7 +1286,7 @@ void boss_julianneAI::UpdateAI(const uint32 diff)              DrinkPoisonTimer = 0;          }else DrinkPoisonTimer -= diff;      } -     +      if (Phase == PHASE_ROMULO && !SummonedRomulo)      {          if (SummonRomuloTimer < diff) @@ -1319,7 +1319,7 @@ void boss_julianneAI::UpdateAI(const uint32 diff)              ResurrectTimer = 1000;          }else ResurrectSelfTimer -= diff;      } -     +      if (!UpdateVictim() || IsFakingDeath)          return; diff --git a/src/bindings/scripts/scripts/eastern_kingdoms/magisters_terrace/boss_felblood_kaelthas.cpp b/src/bindings/scripts/scripts/eastern_kingdoms/magisters_terrace/boss_felblood_kaelthas.cpp index 12718e947fd..9f0e24f19d5 100644 --- a/src/bindings/scripts/scripts/eastern_kingdoms/magisters_terrace/boss_felblood_kaelthas.cpp +++ b/src/bindings/scripts/scripts/eastern_kingdoms/magisters_terrace/boss_felblood_kaelthas.cpp @@ -143,7 +143,7 @@ struct TRINITY_DLL_DECL boss_felblood_kaelthasAI : public ScriptedAI          if (!pInstance)              return; -         +          pInstance->HandleGameObject(pInstance->GetData64(DATA_KAEL_DOOR), true);          // Open the encounter door      } @@ -158,7 +158,7 @@ struct TRINITY_DLL_DECL boss_felblood_kaelthasAI : public ScriptedAI      {          if (!pInstance)              return; -         +          pInstance->HandleGameObject(pInstance->GetData64(DATA_KAEL_DOOR), false);         //Close the encounter door, open it in JustDied/Reset      } diff --git a/src/bindings/scripts/scripts/eastern_kingdoms/magisters_terrace/boss_priestess_delrissa.cpp b/src/bindings/scripts/scripts/eastern_kingdoms/magisters_terrace/boss_priestess_delrissa.cpp index 2c0dda0898d..2e8454631d5 100644 --- a/src/bindings/scripts/scripts/eastern_kingdoms/magisters_terrace/boss_priestess_delrissa.cpp +++ b/src/bindings/scripts/scripts/eastern_kingdoms/magisters_terrace/boss_priestess_delrissa.cpp @@ -612,7 +612,7 @@ struct TRINITY_DLL_DECL boss_ellris_duskhallowAI : public boss_priestess_lackey_      {          DoCast(m_creature,SPELL_SUMMON_IMP);      } -  +      void UpdateAI(const uint32 diff)      {          if (!UpdateVictim()) @@ -960,7 +960,7 @@ enum      SPELL_MULTI_SHOT            = 31942,      SPELL_WING_CLIP             = 44286,      SPELL_FREEZING_TRAP         = 44136, -  +      NPC_SLIVER                  = 24552  }; @@ -1163,7 +1163,7 @@ CreatureAI* GetAI_apoko(Creature* pCreature)  {      return new boss_apokoAI(pCreature);  } -  +  enum  {      SPELL_GOBLIN_DRAGON_GUN     = 44272, diff --git a/src/bindings/scripts/scripts/eastern_kingdoms/scarlet_enclave/chapter1.cpp b/src/bindings/scripts/scripts/eastern_kingdoms/scarlet_enclave/chapter1.cpp index b90f5c59978..53e524f2da6 100644 --- a/src/bindings/scripts/scripts/eastern_kingdoms/scarlet_enclave/chapter1.cpp +++ b/src/bindings/scripts/scripts/eastern_kingdoms/scarlet_enclave/chapter1.cpp @@ -376,7 +376,7 @@ struct TRINITY_DLL_DECL npc_death_knight_initiateAI : public SpellAI          {              if (pDoneBy->GetGUID() != m_uiDuelerGUID && pDoneBy->GetOwnerGUID() != m_uiDuelerGUID) // other players cannot help                  uiDamage = 0; -            else if (uiDamage >= m_creature->GetHealth())  +            else if (uiDamage >= m_creature->GetHealth())              {                  uiDamage = 0; @@ -541,7 +541,7 @@ struct TRINITY_DLL_DECL npc_dark_rider_of_acherusAI : public ScriptedAI      }      void InitDespawnHorse(Unit *who) -    {    +    {          if (!who)              return; @@ -903,7 +903,7 @@ bool GOHello_go_inconspicuous_mine_car(Player* pPlayer, GameObject* pGO)      return true;  } -// npc 28912 quest 17217 boss 29001 mob 29007 go 191092  +// npc 28912 quest 17217 boss 29001 mob 29007 go 191092  void AddSC_the_scarlet_enclave_c1()  { @@ -973,7 +973,7 @@ void AddSC_the_scarlet_enclave_c1()      newscript->RegisterSelf();  } -/*    +/*  DELETE FROM `script_texts` WHERE `entry` IN(-1609301, -1609302);  INSERT INTO `script_texts` (`entry`,`content_default`,`type`,`language`,`emote`,`comment`) VALUES  (-1609301, 'Come, weakling! Strike me down!', 0, 0, 0, 'SAY_DEATH_RIDER_FINAL'), diff --git a/src/bindings/scripts/scripts/eastern_kingdoms/scarlet_enclave/chapter2.cpp b/src/bindings/scripts/scripts/eastern_kingdoms/scarlet_enclave/chapter2.cpp index 377a5f5c2db..664476d699f 100644 --- a/src/bindings/scripts/scripts/eastern_kingdoms/scarlet_enclave/chapter2.cpp +++ b/src/bindings/scripts/scripts/eastern_kingdoms/scarlet_enclave/chapter2.cpp @@ -100,7 +100,7 @@ struct TRINITY_DLL_DECL npc_crusade_persuadedAI : public ScriptedAI          }      } -    void UpdateAI(const uint32 diff)  +    void UpdateAI(const uint32 diff)      {          if (uiSpeech_counter)          { @@ -135,7 +135,7 @@ struct TRINITY_DLL_DECL npc_crusade_persuadedAI : public ScriptedAI              return;          } -         +          if(!UpdateVictim())              return; @@ -381,7 +381,7 @@ struct TRINITY_DLL_DECL mob_scarlet_courierAI : public ScriptedAI              uiStage = 2;      } -    void UpdateAI(const uint32 diff)  +    void UpdateAI(const uint32 diff)      {          if(uiStage && !me->isInCombat())          { @@ -459,7 +459,7 @@ struct TRINITY_DLL_DECL mob_high_inquisitor_valrothAI : public ScriptedAI          DoCast(who, SPELL_VALROTH_SMITE);      } -    void UpdateAI(const uint32 diff)  +    void UpdateAI(const uint32 diff)      {          if (uiRenew_timer < diff)          { @@ -647,7 +647,7 @@ struct TRINITY_DLL_DECL npc_a_special_surpriseAI : public ScriptedAI              PlayerGUID = pWho->GetGUID();      } -    void UpdateAI(const uint32 diff)  +    void UpdateAI(const uint32 diff)      {          if (PlayerGUID && !me->getVictim() && me->isAlive())          { diff --git a/src/bindings/scripts/scripts/eastern_kingdoms/scarlet_enclave/the_scarlet_enclave.cpp b/src/bindings/scripts/scripts/eastern_kingdoms/scarlet_enclave/the_scarlet_enclave.cpp index b13423e850f..0e4b31c682a 100644 --- a/src/bindings/scripts/scripts/eastern_kingdoms/scarlet_enclave/the_scarlet_enclave.cpp +++ b/src/bindings/scripts/scripts/eastern_kingdoms/scarlet_enclave/the_scarlet_enclave.cpp @@ -86,7 +86,7 @@ struct TRINITY_DLL_DECL npc_valkyr_battle_maidenAI : public PassiveAI                  case 3:                      me->DisappearAndDie();                      break; -                default:  +                default:                      //Nothing To DO                      break;              } diff --git a/src/bindings/scripts/scripts/eastern_kingdoms/shadowfang_keep/shadowfang_keep.cpp b/src/bindings/scripts/scripts/eastern_kingdoms/shadowfang_keep/shadowfang_keep.cpp index fc0b5a8a204..7630f57f14d 100644 --- a/src/bindings/scripts/scripts/eastern_kingdoms/shadowfang_keep/shadowfang_keep.cpp +++ b/src/bindings/scripts/scripts/eastern_kingdoms/shadowfang_keep/shadowfang_keep.cpp @@ -111,7 +111,7 @@ bool GossipHello_npc_shadowfang_prisoner(Player* pPlayer, Creature* pCreature)      if (pInstance && pInstance->GetData(TYPE_FREE_NPC) != DONE && pInstance->GetData(TYPE_RETHILGORE) == DONE)          pPlayer->ADD_GOSSIP_ITEM(GOSSIP_ICON_CHAT, GOSSIP_ITEM_DOOR, GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF+1); -  +      pPlayer->SEND_GOSSIP_MENU(pCreature->GetNpcTextId(), pCreature->GetGUID());      return true; diff --git a/src/bindings/scripts/scripts/eastern_kingdoms/stratholme/boss_baron_rivendare.cpp b/src/bindings/scripts/scripts/eastern_kingdoms/stratholme/boss_baron_rivendare.cpp index b83637650bb..cb59acc883c 100644 --- a/src/bindings/scripts/scripts/eastern_kingdoms/stratholme/boss_baron_rivendare.cpp +++ b/src/bindings/scripts/scripts/eastern_kingdoms/stratholme/boss_baron_rivendare.cpp @@ -102,7 +102,7 @@ struct TRINITY_DLL_DECL boss_baron_rivendareAI : public ScriptedAI              pInstance->SetData(TYPE_BARON,NOT_STARTED);      } -    void AttackStart(Unit* who)  +    void AttackStart(Unit* who)      {          if (pInstance)//can't use entercombat(), boss' dmg aura sets near players in combat, before entering the room's door              pInstance->SetData(TYPE_BARON,IN_PROGRESS); diff --git a/src/bindings/scripts/scripts/eastern_kingdoms/stratholme/instance_stratholme.cpp b/src/bindings/scripts/scripts/eastern_kingdoms/stratholme/instance_stratholme.cpp index c37b1a904f7..d475e116039 100644 --- a/src/bindings/scripts/scripts/eastern_kingdoms/stratholme/instance_stratholme.cpp +++ b/src/bindings/scripts/scripts/eastern_kingdoms/stratholme/instance_stratholme.cpp @@ -156,13 +156,13 @@ struct TRINITY_DLL_DECL instance_stratholme : public ScriptedInstance          case GO_ZIGGURAT1:          ziggurat1GUID = pGo->GetGUID(); break;          case GO_ZIGGURAT2:          ziggurat2GUID = pGo->GetGUID(); break;          case GO_ZIGGURAT3:          ziggurat3GUID = pGo->GetGUID(); break; -        case GO_ZIGGURAT4:           -            ziggurat4GUID = pGo->GetGUID();  +        case GO_ZIGGURAT4: +            ziggurat4GUID = pGo->GetGUID();              if (TYPE_BARON == DONE || TYPE_RAMSTEIN == DONE)                  HandleGameObject(0, true, pGo);              break; -        case GO_ZIGGURAT5:           -            ziggurat5GUID = pGo->GetGUID();  +        case GO_ZIGGURAT5: +            ziggurat5GUID = pGo->GetGUID();              if (TYPE_BARON == DONE || TYPE_RAMSTEIN == DONE)                  HandleGameObject(0, true, pGo);              break; @@ -313,7 +313,7 @@ struct TRINITY_DLL_DECL instance_stratholme : public ScriptedInstance          std::ostringstream saveStream;          saveStream << Encounter[0] << " " << Encounter[1] << " " << Encounter[2] << " "              << Encounter[3] << " " << Encounter[4] << " " << Encounter[5]; -       +          OUT_SAVE_INST_DATA_COMPLETE;          return saveStream.str();      } diff --git a/src/bindings/scripts/scripts/eastern_kingdoms/sunwell_plateau/boss_eredar_twins.cpp b/src/bindings/scripts/scripts/eastern_kingdoms/sunwell_plateau/boss_eredar_twins.cpp index 85567b2a98b..3662531d08e 100644 --- a/src/bindings/scripts/scripts/eastern_kingdoms/sunwell_plateau/boss_eredar_twins.cpp +++ b/src/bindings/scripts/scripts/eastern_kingdoms/sunwell_plateau/boss_eredar_twins.cpp @@ -145,7 +145,7 @@ struct TRINITY_DLL_DECL boss_sacrolashAI : public ScriptedAI          if (pInstance)              pInstance->SetData(DATA_EREDAR_TWINS_EVENT, NOT_STARTED);      } -     +      void EnterCombat(Unit *who)      {          DoZoneInCombat(); @@ -408,7 +408,7 @@ struct TRINITY_DLL_DECL boss_alythessAI : public Scripted_NoMovementAI          if (pInstance)              pInstance->SetData(DATA_EREDAR_TWINS_EVENT, NOT_STARTED);      } -     +      void EnterCombat(Unit *who)      {          DoZoneInCombat(); diff --git a/src/bindings/scripts/scripts/eastern_kingdoms/sunwell_plateau/boss_kalecgos.cpp b/src/bindings/scripts/scripts/eastern_kingdoms/sunwell_plateau/boss_kalecgos.cpp index 0cf83a6a2e7..bcdf66b1f58 100644 --- a/src/bindings/scripts/scripts/eastern_kingdoms/sunwell_plateau/boss_kalecgos.cpp +++ b/src/bindings/scripts/scripts/eastern_kingdoms/sunwell_plateau/boss_kalecgos.cpp @@ -131,7 +131,7 @@ struct TRINITY_DLL_DECL boss_kalecgosAI : public ScriptedAI          {              SathGUID = pInstance->GetData64(DATA_SATHROVARR);              DoorGUID = pInstance->GetData64(DATA_GO_FORCEFIELD); -             +              if (GameObject *Door = pInstance->instance->GetGameObject(pInstance->GetData64(DoorGUID)))                  Door->SetLootState(GO_JUST_DEACTIVATED);          } diff --git a/src/bindings/scripts/scripts/eastern_kingdoms/sunwell_plateau/boss_muru.cpp b/src/bindings/scripts/scripts/eastern_kingdoms/sunwell_plateau/boss_muru.cpp index 9d30c8fcb25..58d8606ab99 100644 --- a/src/bindings/scripts/scripts/eastern_kingdoms/sunwell_plateau/boss_muru.cpp +++ b/src/bindings/scripts/scripts/eastern_kingdoms/sunwell_plateau/boss_muru.cpp @@ -231,7 +231,7 @@ struct TRINITY_DLL_DECL boss_muruAI : public Scripted_NoMovementAI          Timer[TIMER_HUMANOIDES] = 10000;          Timer[TIMER_PHASE] = 2000;          Timer[TIMER_SENTINEL] = 31500; -         +          m_creature->RemoveFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NOT_SELECTABLE);          m_creature->SetVisibility(VISIBILITY_ON); @@ -485,7 +485,7 @@ struct TRINITY_DLL_DECL npc_dark_fiendAI : public ScriptedAI              }              else              { -             +                  if (m_creature->IsWithinDist(m_creature->getVictim(), 5))                  {                      DoCastAOE(SPELL_DARKFIEND_AOE, false); diff --git a/src/bindings/scripts/scripts/eastern_kingdoms/zulgurub/boss_renataki.cpp b/src/bindings/scripts/scripts/eastern_kingdoms/zulgurub/boss_renataki.cpp index 608897ad18d..42608183fdd 100644 --- a/src/bindings/scripts/scripts/eastern_kingdoms/zulgurub/boss_renataki.cpp +++ b/src/bindings/scripts/scripts/eastern_kingdoms/zulgurub/boss_renataki.cpp @@ -70,7 +70,7 @@ struct TRINITY_DLL_DECL boss_renatakiAI : public ScriptedAI              SetEquipmentSlots(false, EQUIP_UNEQUIP, EQUIP_NO_CHANGE, EQUIP_NO_CHANGE);              m_creature->SetDisplayId(11686); -             +              m_creature->SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NOT_SELECTABLE);              Invisible = true; diff --git a/src/bindings/scripts/scripts/kalimdor/azuremyst_isle.cpp b/src/bindings/scripts/scripts/kalimdor/azuremyst_isle.cpp index f881715ca64..63f4a729dbb 100644 --- a/src/bindings/scripts/scripts/kalimdor/azuremyst_isle.cpp +++ b/src/bindings/scripts/scripts/kalimdor/azuremyst_isle.cpp @@ -199,7 +199,7 @@ struct TRINITY_DLL_DECL npc_engineer_spark_overgrindAI : public ScriptedAI          NpcFlags = c->GetUInt32Value(UNIT_NPC_FLAGS);          if (c->GetAreaId() == AREA_COVE || c->GetAreaId() == AREA_ISLE) -            IsTreeEvent = true;  +            IsTreeEvent = true;      }      uint32 NormFaction; diff --git a/src/bindings/scripts/scripts/kalimdor/blackfathom_depths/instance_blackfathom_deeps.cpp b/src/bindings/scripts/scripts/kalimdor/blackfathom_depths/instance_blackfathom_deeps.cpp index 19203ce2d73..b2664932461 100644 --- a/src/bindings/scripts/scripts/kalimdor/blackfathom_depths/instance_blackfathom_deeps.cpp +++ b/src/bindings/scripts/scripts/kalimdor/blackfathom_depths/instance_blackfathom_deeps.cpp @@ -62,7 +62,7 @@ struct TRINITY_DLL_DECL instance_blackfathom_deeps : public ScriptedInstance      void OnCreatureCreate(Creature* pCreature, bool add)      { -        if (pCreature->GetEntry() == 4832)  +        if (pCreature->GetEntry() == 4832)              m_uiTwilightLordKelrisGUID = pCreature->GetGUID();      } diff --git a/src/bindings/scripts/scripts/kalimdor/razorfen_downs/razorfen_downs.cpp b/src/bindings/scripts/scripts/kalimdor/razorfen_downs/razorfen_downs.cpp index 7515c5a9195..8abb2d61e99 100644 --- a/src/bindings/scripts/scripts/kalimdor/razorfen_downs/razorfen_downs.cpp +++ b/src/bindings/scripts/scripts/kalimdor/razorfen_downs/razorfen_downs.cpp @@ -45,7 +45,7 @@ enum  #define GOSSIP_ITEM_POTION  "Teach me the alchemy recipe"  bool GossipHello_npc_henry_stern (Player* pPlayer, Creature* pCreature) -{    +{      if (pPlayer->GetBaseSkillValue(SKILL_COOKING) >= 175 && !pPlayer->HasSpell(SPELL_GOLDTHORN_TEA))          pPlayer->ADD_GOSSIP_ITEM(GOSSIP_ICON_CHAT, GOSSIP_ITEM_TEA, GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF + 1); diff --git a/src/bindings/scripts/scripts/kalimdor/razorfen_kraul/def_razorfen_kraul.h b/src/bindings/scripts/scripts/kalimdor/razorfen_kraul/def_razorfen_kraul.h index 96917fcd4bf..d40abd7f2fd 100644 --- a/src/bindings/scripts/scripts/kalimdor/razorfen_kraul/def_razorfen_kraul.h +++ b/src/bindings/scripts/scripts/kalimdor/razorfen_kraul/def_razorfen_kraul.h @@ -13,7 +13,7 @@   * along with this program; if not, write to the Free Software   * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA   */ -  +  #ifndef DEF_RAZORFEN_KRAUL_H  #define DEF_RAZORFEN_KRAUL_H diff --git a/src/bindings/scripts/scripts/kalimdor/razorfen_kraul/instance_razorfen_kraul.cpp b/src/bindings/scripts/scripts/kalimdor/razorfen_kraul/instance_razorfen_kraul.cpp index 94b0943cf3d..ed139ea45e9 100644 --- a/src/bindings/scripts/scripts/kalimdor/razorfen_kraul/instance_razorfen_kraul.cpp +++ b/src/bindings/scripts/scripts/kalimdor/razorfen_kraul/instance_razorfen_kraul.cpp @@ -75,7 +75,7 @@ struct TRINITY_DLL_DECL instance_razorfen_kraul : public ScriptedInstance              WardCheck_Timer = 4000;          }else              WardCheck_Timer -= diff; -    }      +    }      void SetData(uint32 type, uint32 data)      { diff --git a/src/bindings/scripts/scripts/kalimdor/razorfen_kraul/razorfen_kraul.cpp b/src/bindings/scripts/scripts/kalimdor/razorfen_kraul/razorfen_kraul.cpp index 1d1217eae16..fec2cf711da 100644 --- a/src/bindings/scripts/scripts/kalimdor/razorfen_kraul/razorfen_kraul.cpp +++ b/src/bindings/scripts/scripts/kalimdor/razorfen_kraul/razorfen_kraul.cpp @@ -184,7 +184,7 @@ void AddSC_razorfen_kraul()      newscript->GetAI = &GetAI_npc_willix;      newscript->pQuestAccept = &QuestAccept_npc_willix;      newscript->RegisterSelf(); -     +      newscript = new Script;      newscript->Name = "npc_deaths_head_ward_keeper";      newscript->GetAI = &GetAI_npc_deaths_head_ward_keeper; diff --git a/src/bindings/scripts/scripts/kalimdor/the_barrens.cpp b/src/bindings/scripts/scripts/kalimdor/the_barrens.cpp index d957ba26ae7..283ca7005f1 100644 --- a/src/bindings/scripts/scripts/kalimdor/the_barrens.cpp +++ b/src/bindings/scripts/scripts/kalimdor/the_barrens.cpp @@ -17,7 +17,7 @@  /* ScriptData  SDName: The_Barrens  SD%Complete: 90 -SDComment: Quest support: 863, 898, 1719, 2458, 4921, 6981,  +SDComment: Quest support: 863, 898, 1719, 2458, 4921, 6981,  SDCategory: Barrens  EndScriptData */ diff --git a/src/bindings/scripts/scripts/kalimdor/wailing_caverns/instance_wailing_caverns.cpp b/src/bindings/scripts/scripts/kalimdor/wailing_caverns/instance_wailing_caverns.cpp index e535a20a2c1..d955226e1c3 100644 --- a/src/bindings/scripts/scripts/kalimdor/wailing_caverns/instance_wailing_caverns.cpp +++ b/src/bindings/scripts/scripts/kalimdor/wailing_caverns/instance_wailing_caverns.cpp @@ -99,7 +99,7 @@ struct TRINITY_DLL_DECL instance_wailing_caverns : public ScriptedInstance          saveStream << m_auiEncounter[0] << " " << m_auiEncounter[1] << " " << m_auiEncounter[2] << " "              << m_auiEncounter[3] << " " << m_auiEncounter[4] << " " << m_auiEncounter[5] << " "              << m_auiEncounter[6] << " " << m_auiEncounter[7] << " " << m_auiEncounter[8]; -       +          OUT_SAVE_INST_DATA_COMPLETE;          return saveStream.str();      } diff --git a/src/bindings/scripts/scripts/kalimdor/wailing_caverns/wailing_caverns.cpp b/src/bindings/scripts/scripts/kalimdor/wailing_caverns/wailing_caverns.cpp index 606eae462df..34ff63bbe7e 100644 --- a/src/bindings/scripts/scripts/kalimdor/wailing_caverns/wailing_caverns.cpp +++ b/src/bindings/scripts/scripts/kalimdor/wailing_caverns/wailing_caverns.cpp @@ -124,7 +124,7 @@ struct TRINITY_DLL_DECL npc_disciple_of_naralexAI : public npc_escortAI      void Reset()      { -         +      }      void EnterCombat(Unit* who) @@ -149,11 +149,11 @@ struct TRINITY_DLL_DECL npc_disciple_of_naralexAI : public npc_escortAI      }      void EnterEvadeMode() -    {         +    {          m_creature->RemoveAllAuras();          m_creature->DeleteThreatList();          m_creature->CombatStop(false);//do not interrupt channeling -        m_creature->SetLootRecipient(NULL);         +        m_creature->SetLootRecipient(NULL);          if (GetIsBeingEscorted())          {              SetReturning(true); @@ -161,7 +161,7 @@ struct TRINITY_DLL_DECL npc_disciple_of_naralexAI : public npc_escortAI              debug_log("TSCR: EscortAI (EnterEvadeMode() Override) has left combat and is now returning to last point");          }          else -            m_creature->GetMotionMaster()->MoveTargetedHome();         +            m_creature->GetMotionMaster()->MoveTargetedHome();      }      void UpdateAI(const uint32 diff) @@ -192,7 +192,7 @@ struct TRINITY_DLL_DECL npc_disciple_of_naralexAI : public npc_escortAI                          {                              eventProgress++;                              DoScriptText(SAY_BANISH_THE_SPIRITS, m_creature); -                            DoCast(m_creature, SPELL_SERPENTINE_CLEANSING);         +                            DoCast(m_creature, SPELL_SERPENTINE_CLEANSING);                              //CAST_AI(npc_escortAI, m_creature->AI())->SetCanDefend(false);                              eventTimer = 30000;                              m_creature->SummonCreature(NPC_DEVIATE_VIPER, -61.5261, 273.676, -92.8442, 0, TEMPSUMMON_CORPSE_TIMED_DESPAWN, 5000); @@ -279,7 +279,7 @@ struct TRINITY_DLL_DECL npc_disciple_of_naralexAI : public npc_escortAI                                          Map::PlayerList const &players = pMap->GetPlayers();                                          for(Map::PlayerList::const_iterator itr = players.begin(); itr != players.end(); ++itr)                                              itr->getSource()->CompletedAchievement(AchievWC); -                                    }             +                                    }                                  }                                  if (m_creature->HasAura(SPELL_NARALEXS_AWAKENING))                                      m_creature->RemoveAura(SPELL_NARALEXS_AWAKENING); diff --git a/src/bindings/scripts/scripts/northrend/azjol_nerub/ahnkahet/boss_elder_nadox.cpp b/src/bindings/scripts/scripts/northrend/azjol_nerub/ahnkahet/boss_elder_nadox.cpp index 129f7b34db6..27ea9e33c05 100644 --- a/src/bindings/scripts/scripts/northrend/azjol_nerub/ahnkahet/boss_elder_nadox.cpp +++ b/src/bindings/scripts/scripts/northrend/azjol_nerub/ahnkahet/boss_elder_nadox.cpp @@ -120,8 +120,8 @@ struct TRINITY_DLL_DECL boss_elder_nadoxAI : public ScriptedAI                      Map::PlayerList const &players = pMap->GetPlayers();                      for(Map::PlayerList::const_iterator itr = players.begin(); itr != players.end(); ++itr)                          itr->getSource()->CompletedAchievement(AchievRespectYourElders); -                }             -            }         +                } +            }          }          if (pInstance) diff --git a/src/bindings/scripts/scripts/northrend/borean_tundra.cpp b/src/bindings/scripts/scripts/northrend/borean_tundra.cpp index 42b8a01009a..08b02bea541 100644 --- a/src/bindings/scripts/scripts/northrend/borean_tundra.cpp +++ b/src/bindings/scripts/scripts/northrend/borean_tundra.cpp @@ -232,12 +232,12 @@ struct TRINITY_DLL_DECL npc_sinkhole_kill_creditAI : public ScriptedAI                      DoCast(m_creature, SPELL_EXPLODE_CART, true);                      DoCast(m_creature, SPELL_SUMMON_CART, true);                      if (GameObject* cart = m_creature->FindNearestGameObject(188160,3)) -                        cart->SetUInt32Value(GAMEOBJECT_FACTION, 14);                         +                        cart->SetUInt32Value(GAMEOBJECT_FACTION, 14);                      Phase_Timer = 3000;                      Phase = 2;                      break;                  case 2: -                    if (GameObject* cart = m_creature->FindNearestGameObject(188160,3))  +                    if (GameObject* cart = m_creature->FindNearestGameObject(188160,3))                          cart->UseDoorOrButton();                      DoCast(m_creature, SPELL_EXPLODE_CART, true);                      Phase_Timer = 3000; @@ -278,7 +278,7 @@ struct TRINITY_DLL_DECL npc_sinkhole_kill_creditAI : public ScriptedAI                      break;              }          } else Phase_Timer -= diff; -         +      }  }; diff --git a/src/bindings/scripts/scripts/northrend/howling_fjord.cpp b/src/bindings/scripts/scripts/northrend/howling_fjord.cpp index 109d1f8992d..6f55c64435c 100644 --- a/src/bindings/scripts/scripts/northrend/howling_fjord.cpp +++ b/src/bindings/scripts/scripts/northrend/howling_fjord.cpp @@ -42,7 +42,7 @@ struct TRINITY_DLL_DECL npc_plaguehound_trackerAI : public npc_escortAI  {      npc_plaguehound_trackerAI(Creature* pCreature) : npc_escortAI(pCreature) { } -    +      void Reset()      {          InitScriptData(); diff --git a/src/bindings/scripts/scripts/northrend/naxxramas/boss_faerlina.cpp b/src/bindings/scripts/scripts/northrend/naxxramas/boss_faerlina.cpp index 4be8f839e3d..9dd0b165973 100644 --- a/src/bindings/scripts/scripts/northrend/naxxramas/boss_faerlina.cpp +++ b/src/bindings/scripts/scripts/northrend/naxxramas/boss_faerlina.cpp @@ -28,7 +28,7 @@  #define SPELL_POSION_BOLT_VOLLEY    HEROIC(28796,54098)  #define SPELL_RAIN_OF_FIRE          HEROIC(28794,54099) -#define SPELL_FRENZY                HEROIC(28798,54100)            +#define SPELL_FRENZY                HEROIC(28798,54100)  #define SPELL_WIDOWS_EMBRACE        HEROIC(28732,54097)  enum Events @@ -97,7 +97,7 @@ struct TRINITY_DLL_DECL boss_faerlinaAI : public BossAI                      events.ScheduleEvent(EVENT_FIRE, 5000 + rand()%15000);                      return;                  case EVENT_FRENZY: -                    DoCast(me,SPELL_FRENZY);          +                    DoCast(me,SPELL_FRENZY);                      events.ScheduleEvent(EVENT_FRENZY, 60000 + rand()%20000);                      return;              } diff --git a/src/bindings/scripts/scripts/northrend/naxxramas/boss_kelthuzad.cpp b/src/bindings/scripts/scripts/northrend/naxxramas/boss_kelthuzad.cpp index a93ff572ab0..aeff698335c 100644 --- a/src/bindings/scripts/scripts/northrend/naxxramas/boss_kelthuzad.cpp +++ b/src/bindings/scripts/scripts/northrend/naxxramas/boss_kelthuzad.cpp @@ -254,7 +254,7 @@ struct TRINITY_DLL_DECL boss_kelthuzadAI : public BossAI                          }                          events.RepeatEvent(20000); -                        return;                         +                        return;                      }                      case EVENT_FISSURE:                          if (Unit* target = SelectUnit(SELECT_TARGET_RANDOM,0)) diff --git a/src/bindings/scripts/scripts/northrend/naxxramas/boss_maexxna.cpp b/src/bindings/scripts/scripts/northrend/naxxramas/boss_maexxna.cpp index 63ffb995cd5..289efbcacb4 100644 --- a/src/bindings/scripts/scripts/northrend/naxxramas/boss_maexxna.cpp +++ b/src/bindings/scripts/scripts/northrend/naxxramas/boss_maexxna.cpp @@ -111,7 +111,7 @@ struct TRINITY_DLL_DECL boss_maexxnaAI : public BossAI                      break;                  }              } -        }                     +        }          if (!enraged && HealthBelowPct(30))          { diff --git a/src/bindings/scripts/scripts/northrend/naxxramas/instance_naxxramas.cpp b/src/bindings/scripts/scripts/northrend/naxxramas/instance_naxxramas.cpp index f6121c18ef5..ff5d09652c1 100644 --- a/src/bindings/scripts/scripts/northrend/naxxramas/instance_naxxramas.cpp +++ b/src/bindings/scripts/scripts/northrend/naxxramas/instance_naxxramas.cpp @@ -160,7 +160,7 @@ struct TRINITY_DLL_DECL instance_naxxramas : public InstanceData      {          if (!InstanceData::SetBossState(id, state))              return false; -         +          if (id == BOSS_HORSEMEN && state == DONE && HorsemenChest)              HorsemenChest->SetRespawnTime(HorsemenChest->GetRespawnDelay()); diff --git a/src/bindings/scripts/scripts/northrend/nexus/nexus/boss_anomalus.cpp b/src/bindings/scripts/scripts/northrend/nexus/nexus/boss_anomalus.cpp index 35675ff8a29..ceade964fbc 100644 --- a/src/bindings/scripts/scripts/northrend/nexus/nexus/boss_anomalus.cpp +++ b/src/bindings/scripts/scripts/northrend/nexus/nexus/boss_anomalus.cpp @@ -16,8 +16,8 @@  /* ScriptData  SDName: Boss_Anomalus -SD%Complete:  -SDComment:  +SD%Complete: +SDComment:  SDCategory: The Nexus, The Nexus  EndScriptData */ @@ -73,11 +73,11 @@ struct TRINITY_DLL_DECL boss_anomalusAI : public ScriptedAI      bool HeroicMode;      uint8 Phase; -    uint32 SPELL_SPARK_Timer;                     +    uint32 SPELL_SPARK_Timer;      uint32 SPELL_CREATE_RIFT_Timer;      uint64 ChaoticRiftGUID; -    void Reset()  +    void Reset()      {          Phase = 0;          SPELL_SPARK_Timer = 5000; @@ -90,7 +90,7 @@ struct TRINITY_DLL_DECL boss_anomalusAI : public ScriptedAI              pInstance->SetData(DATA_ANOMALUS_EVENT, NOT_STARTED);      } -    void EnterCombat(Unit* who)  +    void EnterCombat(Unit* who)      {          DoScriptText(SAY_AGGRO, m_creature); @@ -98,7 +98,7 @@ struct TRINITY_DLL_DECL boss_anomalusAI : public ScriptedAI              pInstance->SetData(DATA_ANOMALUS_EVENT, IN_PROGRESS);      } -    void JustDied(Unit* killer)   +    void JustDied(Unit* killer)      {          DoScriptText(SAY_DEATH, m_creature); @@ -121,7 +121,7 @@ struct TRINITY_DLL_DECL boss_anomalusAI : public ScriptedAI              pInstance->SetData(DATA_ANOMALUS_EVENT, DONE);      } -    void UpdateAI(const uint32 diff)  +    void UpdateAI(const uint32 diff)      {          if (!UpdateVictim())              return; @@ -214,7 +214,7 @@ struct TRINITY_DLL_DECL boss_anomalusAI : public ScriptedAI              SPELL_CREATE_RIFT_Timer = 25000;          }else SPELL_CREATE_RIFT_Timer -=diff; -        DoMeleeAttackIfReady();     +        DoMeleeAttackIfReady();      }  }; @@ -250,7 +250,7 @@ struct TRINITY_DLL_DECL mob_chaotic_riftAI : public Scripted_NoMovementAI          DeadChaoticRift = true;      } -    void UpdateAI(const uint32 diff)  +    void UpdateAI(const uint32 diff)      {          if (!UpdateVictim())              return; @@ -294,7 +294,7 @@ void AddSC_boss_anomalus()      newscript->Name="boss_anomalus";      newscript->GetAI = &GetAI_boss_anomalus;      newscript->RegisterSelf(); -     +      newscript = new Script;      newscript->Name="mob_chaotic_rift";      newscript->GetAI = &GetAI_mob_chaotic_rift; diff --git a/src/bindings/scripts/scripts/northrend/nexus/nexus/boss_keristrasza.cpp b/src/bindings/scripts/scripts/northrend/nexus/nexus/boss_keristrasza.cpp index 58bf2b852a8..eb90f0dea8a 100644 --- a/src/bindings/scripts/scripts/northrend/nexus/nexus/boss_keristrasza.cpp +++ b/src/bindings/scripts/scripts/northrend/nexus/nexus/boss_keristrasza.cpp @@ -16,8 +16,8 @@  /* ScriptData  SDName: Boss_Keristrasza -SD%Complete:  -SDComment:  +SD%Complete: +SDComment:  SDCategory: The Nexus, The Nexus  EndScriptData */ @@ -70,7 +70,7 @@ struct TRINITY_DLL_DECL boss_keristraszaAI : public ScriptedAI      uint32 CheckIntenseColdTimer;      bool MoreThanTwoIntenseCold; // needed for achievement: Intense Cold(2036) -    void Reset()  +    void Reset()      {          CRYSTALFIRE_BREATH_Timer = 14000;          CRYSTAL_CHAINS_CRYSTALIZE_Timer = HeroicMode ? 30000 : 11000; @@ -88,7 +88,7 @@ struct TRINITY_DLL_DECL boss_keristraszaAI : public ScriptedAI              pInstance->SetData(DATA_KERISTRASZA_EVENT, NOT_STARTED);      } -    void EnterCombat(Unit* who)  +    void EnterCombat(Unit* who)      {          DoScriptText(SAY_AGGRO, m_creature);          DoCastAOE(SPELL_INTENSE_COLD); @@ -97,7 +97,7 @@ struct TRINITY_DLL_DECL boss_keristraszaAI : public ScriptedAI              pInstance->SetData(DATA_KERISTRASZA_EVENT, IN_PROGRESS);      } -    void JustDied(Unit* killer)   +    void JustDied(Unit* killer)      {          DoScriptText(SAY_DEATH, m_creature); @@ -166,7 +166,7 @@ struct TRINITY_DLL_DECL boss_keristraszaAI : public ScriptedAI          }      } -    void UpdateAI(const uint32 diff)  +    void UpdateAI(const uint32 diff)      {          if (!UpdateVictim())              return; @@ -220,7 +220,7 @@ struct TRINITY_DLL_DECL boss_keristraszaAI : public ScriptedAI              CRYSTAL_CHAINS_CRYSTALIZE_Timer = HeroicMode ? 30000 : 11000;          }else CRYSTAL_CHAINS_CRYSTALIZE_Timer -= diff; -        DoMeleeAttackIfReady();     +        DoMeleeAttackIfReady();      }  }; @@ -253,7 +253,7 @@ void AddSC_boss_keristrasza()      newscript->Name = "boss_keristrasza";      newscript->GetAI = &GetAI_boss_keristrasza;      newscript->RegisterSelf(); -     +      newscript = new Script;      newscript->Name = "containment_sphere";      newscript->pGOHello = &GOHello_containment_sphere; diff --git a/src/bindings/scripts/scripts/northrend/nexus/nexus/boss_magus_telestra.cpp b/src/bindings/scripts/scripts/northrend/nexus/nexus/boss_magus_telestra.cpp index 2fe856cea05..3c0bc5150ae 100644 --- a/src/bindings/scripts/scripts/northrend/nexus/nexus/boss_magus_telestra.cpp +++ b/src/bindings/scripts/scripts/northrend/nexus/nexus/boss_magus_telestra.cpp @@ -16,8 +16,8 @@  /* ScriptData  SDName: Boss_Magus_Telestra -SD%Complete:  -SDComment:  +SD%Complete: +SDComment:  SDCategory: The Nexus, The Nexus  EndScriptData */ @@ -59,7 +59,7 @@ float CenterOfRoom[1][4] =  struct TRINITY_DLL_DECL boss_magus_telestraAI : public ScriptedAI  { -    boss_magus_telestraAI(Creature* c) : ScriptedAI(c)  +    boss_magus_telestraAI(Creature* c) : ScriptedAI(c)      {          pInstance = c->GetInstanceData();          HeroicMode = c->GetMap()->IsHeroic(); @@ -80,8 +80,8 @@ struct TRINITY_DLL_DECL boss_magus_telestraAI : public ScriptedAI      uint8 Phase; -    uint32 SPELL_ICE_NOVA_Timer;                     -    uint32 SPELL_FIREBOMB_Timer;                     +    uint32 SPELL_ICE_NOVA_Timer; +    uint32 SPELL_FIREBOMB_Timer;      uint32 SPELL_GRAVITY_WELL_Timer;      uint32 Cooldown; @@ -89,8 +89,8 @@ struct TRINITY_DLL_DECL boss_magus_telestraAI : public ScriptedAI      {          Phase = 0;          //These times are probably wrong -        SPELL_ICE_NOVA_Timer =  7000;                   -        SPELL_FIREBOMB_Timer =  0;                 +        SPELL_ICE_NOVA_Timer =  7000; +        SPELL_FIREBOMB_Timer =  0;          SPELL_GRAVITY_WELL_Timer = 15000;          Cooldown = 0; @@ -107,7 +107,7 @@ struct TRINITY_DLL_DECL boss_magus_telestraAI : public ScriptedAI              pInstance->SetData(DATA_MAGUS_TELESTRA_EVENT, NOT_STARTED);      } -    void EnterCombat(Unit* who)  +    void EnterCombat(Unit* who)      {          DoScriptText(SAY_AGGRO, m_creature); @@ -157,8 +157,8 @@ struct TRINITY_DLL_DECL boss_magus_telestraAI : public ScriptedAI          }          return 0;      } -     -    void UpdateAI(const uint32 diff)  + +    void UpdateAI(const uint32 diff)      {          //Return since we have no target          if (!UpdateVictim()) @@ -217,13 +217,13 @@ struct TRINITY_DLL_DECL boss_magus_telestraAI : public ScriptedAI          }          if ((Phase == 0) && (m_creature->GetHealth() <= (m_creature->GetMaxHealth() * 0.5))) -        {      +        {              Phase = 1;              m_creature->CastStop();              m_creature->SetVisibility(VISIBILITY_OFF);              m_creature->SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NOT_SELECTABLE);              FireMagusGUID = SplitPersonality(MOB_FIRE_MAGUS); -            FrostMagusGUID = SplitPersonality(MOB_FROST_MAGUS);  +            FrostMagusGUID = SplitPersonality(MOB_FROST_MAGUS);              ArcaneMagusGUID = SplitPersonality(MOB_ARCANE_MAGUS);              FireMagusDead = false;              FrostMagusDead = false; @@ -236,14 +236,14 @@ struct TRINITY_DLL_DECL boss_magus_telestraAI : public ScriptedAI              return;          } -        if (HeroicMode && (Phase == 2) && (m_creature->GetHealth() <= (m_creature->GetMaxHealth() * 0.1)))  -        {      +        if (HeroicMode && (Phase == 2) && (m_creature->GetHealth() <= (m_creature->GetMaxHealth() * 0.1))) +        {              Phase = 3;              m_creature->CastStop();              m_creature->SetVisibility(VISIBILITY_OFF);              m_creature->SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NOT_SELECTABLE);              FireMagusGUID = SplitPersonality(MOB_FIRE_MAGUS); -            FrostMagusGUID = SplitPersonality(MOB_FROST_MAGUS);  +            FrostMagusGUID = SplitPersonality(MOB_FROST_MAGUS);              ArcaneMagusGUID = SplitPersonality(MOB_ARCANE_MAGUS);              FireMagusDead = false;              FrostMagusDead = false; @@ -263,7 +263,7 @@ struct TRINITY_DLL_DECL boss_magus_telestraAI : public ScriptedAI              else              {                  Cooldown -= diff; -                return;                                      +                return;              }          } @@ -297,7 +297,7 @@ struct TRINITY_DLL_DECL boss_magus_telestraAI : public ScriptedAI              SPELL_FIREBOMB_Timer = 2000;          }else SPELL_FIREBOMB_Timer -=diff; -        DoMeleeAttackIfReady();     +        DoMeleeAttackIfReady();      }  }; diff --git a/src/bindings/scripts/scripts/northrend/nexus/nexus/boss_ormorok.cpp b/src/bindings/scripts/scripts/northrend/nexus/nexus/boss_ormorok.cpp index d55e8514cc6..7ad3cb35bbc 100644 --- a/src/bindings/scripts/scripts/northrend/nexus/nexus/boss_ormorok.cpp +++ b/src/bindings/scripts/scripts/northrend/nexus/nexus/boss_ormorok.cpp @@ -16,8 +16,8 @@  /* ScriptData  SDName: Boss_Ormorok -SD%Complete:  -SDComment:  +SD%Complete: +SDComment:  SDCategory: The Nexus, The Nexus  EndScriptData */ @@ -55,7 +55,7 @@ enum  struct TRINITY_DLL_DECL boss_ormorokAI : public ScriptedAI  { -    boss_ormorokAI(Creature *c) : ScriptedAI(c)  +    boss_ormorokAI(Creature *c) : ScriptedAI(c)      {          pInstance = c->GetInstanceData();          HeroicMode = c->GetMap()->IsHeroic(); @@ -79,9 +79,9 @@ struct TRINITY_DLL_DECL boss_ormorokAI : public ScriptedAI      uint32 SPELL_SPELL_REFLECTION_Timer;      uint32 SPELL_SUMMON_CRYSTALLINE_TANGLER_Timer; -    void Reset()  +    void Reset()      { -        SPELL_CRYSTAL_SPIKES_Timer = 12000;                          +        SPELL_CRYSTAL_SPIKES_Timer = 12000;          SPELL_TRAMPLE_Timer = 10000;          SPELL_SPELL_REFLECTION_Timer = 30000;          SPELL_SUMMON_CRYSTALLINE_TANGLER_Timer = 17000; @@ -92,7 +92,7 @@ struct TRINITY_DLL_DECL boss_ormorokAI : public ScriptedAI              pInstance->SetData(DATA_ORMOROK_EVENT, NOT_STARTED);      } -    void EnterCombat(Unit* who)  +    void EnterCombat(Unit* who)      {          DoScriptText(SAY_AGGRO, m_creature); @@ -100,7 +100,7 @@ struct TRINITY_DLL_DECL boss_ormorokAI : public ScriptedAI              pInstance->SetData(DATA_ORMOROK_EVENT, IN_PROGRESS);      } -    void JustDied(Unit* killer)   +    void JustDied(Unit* killer)      {          DoScriptText(SAY_DEATH, m_creature); @@ -113,7 +113,7 @@ struct TRINITY_DLL_DECL boss_ormorokAI : public ScriptedAI          DoScriptText(SAY_KILL, m_creature);      } -    void UpdateAI(const uint32 diff)  +    void UpdateAI(const uint32 diff)      {          if (!UpdateVictim())          { @@ -209,7 +209,7 @@ struct TRINITY_DLL_DECL boss_ormorokAI : public ScriptedAI              SPELL_SUMMON_CRYSTALLINE_TANGLER_Timer = 17000;          }else SPELL_SUMMON_CRYSTALLINE_TANGLER_Timer -=diff; -        DoMeleeAttackIfReady();     +        DoMeleeAttackIfReady();      }  }; @@ -235,7 +235,7 @@ struct TRINITY_DLL_DECL mob_crystal_spikeAI : public Scripted_NoMovementAI          m_creature->SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NOT_SELECTABLE); //      } -    void UpdateAI(const uint32 diff)  +    void UpdateAI(const uint32 diff)      {          if (SPELL_CRYSTAL_SPIKE_PREVISUAL_Timer < diff)          { @@ -248,8 +248,8 @@ struct TRINITY_DLL_DECL mob_crystal_spikeAI : public Scripted_NoMovementAI              DoCast(m_creature, HeroicMode ? SPELL_CRYSTALL_SPIKE_DAMAGE_H : SPELL_CRYSTALL_SPIKE_DAMAGE_N);              SPELL_CRYSTALL_SPIKE_DAMAGE_Timer = 10000;          }else SPELL_CRYSTALL_SPIKE_DAMAGE_Timer -=diff; -    }  -};  +    } +};  struct TRINITY_DLL_DECL mob_crystalline_tanglerAI : public ScriptedAI  { @@ -262,7 +262,7 @@ struct TRINITY_DLL_DECL mob_crystalline_tanglerAI : public ScriptedAI          SPELL_ROOTS_Timer = 1000;      } -    void UpdateAI(const uint32 diff)  +    void UpdateAI(const uint32 diff)      {          if (SPELL_ROOTS_Timer < diff)          { @@ -272,8 +272,8 @@ struct TRINITY_DLL_DECL mob_crystalline_tanglerAI : public ScriptedAI                  SPELL_ROOTS_Timer = 15000;              }          }else SPELL_ROOTS_Timer -=diff; -    }  -};  +    } +};  CreatureAI* GetAI_mob_crystal_spike(Creature* pCreature)  { diff --git a/src/bindings/scripts/scripts/northrend/nexus/nexus/instance_nexus.cpp b/src/bindings/scripts/scripts/northrend/nexus/nexus/instance_nexus.cpp index 169eda90d2a..1088d585e18 100644 --- a/src/bindings/scripts/scripts/northrend/nexus/nexus/instance_nexus.cpp +++ b/src/bindings/scripts/scripts/northrend/nexus/nexus/instance_nexus.cpp @@ -96,7 +96,7 @@ struct TRINITY_DLL_DECL instance_nexus : public ScriptedInstance                          pCreature->SetDisplayId(24352);                      break;                  } -            case 26796:  +            case 26796:                  {                      //26798                      pCreature->setFaction(16); diff --git a/src/bindings/scripts/scripts/northrend/obsidian_sanctum/boss_sartharion.cpp b/src/bindings/scripts/scripts/northrend/obsidian_sanctum/boss_sartharion.cpp index 6fe8b671cfb..bf18962607f 100644 --- a/src/bindings/scripts/scripts/northrend/obsidian_sanctum/boss_sartharion.cpp +++ b/src/bindings/scripts/scripts/northrend/obsidian_sanctum/boss_sartharion.cpp @@ -87,7 +87,7 @@ enum      //Shadron      //In portal is a disciple, when disciple killed remove Power_of_vesperon, portal open multiple times      NPC_ACOLYTE_OF_SHADRON                      = 31218,    // Acolyte of Shadron -    SPELL_POWER_OF_SHADRON                      = 58105,    // Shadron's presence increases Fire damage taken by all enemies by 100%.                      +    SPELL_POWER_OF_SHADRON                      = 58105,    // Shadron's presence increases Fire damage taken by all enemies by 100%.      SPELL_GIFT_OF_TWILIGTH_SHA                  = 57835,    // TARGET_SCRIPT shadron      SPELL_GIFT_OF_TWILIGTH_SAR                  = 58766,    // TARGET_SCRIPT sartharion @@ -191,7 +191,7 @@ struct TRINITY_DLL_DECL boss_sartharionAI : public ScriptedAI      bool m_bHasCalledShadron;      bool m_bHasCalledVesperon; -    void Reset()  +    void Reset()      {          m_bIsBerserk = false;          m_bIsSoftEnraged = false; @@ -349,7 +349,7 @@ struct TRINITY_DLL_DECL boss_sartharionAI : public ScriptedAI          }      } -    void UpdateAI(const uint32 uiDiff)  +    void UpdateAI(const uint32 uiDiff)      {          //Return since we have no target          if (!UpdateVictim()) @@ -731,7 +731,7 @@ struct TRINITY_DLL_DECL mob_tenebronAI : public dummy_dragonAI          m_uiHatchEggTimer = 30000;      } -    void Aggro(Unit* pWho)  +    void Aggro(Unit* pWho)      {          DoScriptText(SAY_TENEBRON_AGGRO, m_creature);          DoZoneInCombat(); @@ -811,7 +811,7 @@ struct TRINITY_DLL_DECL mob_shadronAI : public dummy_dragonAI              m_creature->RemoveAurasDueToSpell(SPELL_GIFT_OF_TWILIGTH_SHA);      } -    void Aggro(Unit* pWho)  +    void Aggro(Unit* pWho)      {          DoScriptText(SAY_SHADRON_AGGRO,m_creature);          DoZoneInCombat(); @@ -885,7 +885,7 @@ struct TRINITY_DLL_DECL mob_vesperonAI : public dummy_dragonAI          m_uiAcolyteVesperonTimer = 60000;      } -    void Aggro(Unit* pWho)  +    void Aggro(Unit* pWho)      {          DoScriptText(SAY_VESPERON_AGGRO,m_creature);          DoZoneInCombat(); diff --git a/src/bindings/scripts/scripts/northrend/sholazar_basin.cpp b/src/bindings/scripts/scripts/northrend/sholazar_basin.cpp index 39e333677d2..f29e6684f8f 100644 --- a/src/bindings/scripts/scripts/northrend/sholazar_basin.cpp +++ b/src/bindings/scripts/scripts/northrend/sholazar_basin.cpp @@ -38,7 +38,7 @@ EndContentData */  #define GOSSIP_ITEM1 "I am ready to travel to your village now."  enum -{     +{      SAY_START_IRO                       = -1571000,      SAY_QUEST_ACCEPT_IRO                = -1571001,      SAY_END_IRO                         = -1571002, @@ -83,13 +83,13 @@ struct TRINITY_DLL_DECL npc_injured_rainspeaker_oracleAI : public npc_escortAI          case 15:          case 16:          case 17: -        case 18:         +        case 18:              m_creature->RemoveUnitMovementFlag(MOVEMENTFLAG_SWIMMING);              m_creature->RemoveUnitMovementFlag(MOVEMENTFLAG_JUMPING);              m_creature->SetSpeed(MOVE_SWIM, 0.85f, true);              m_creature->AddUnitMovementFlag(MOVEMENTFLAG_SWIMMING + MOVEMENTFLAG_LEVITATING);              break; -        case 19:  +        case 19:              m_creature->SetUnitMovementFlags(MOVEMENTFLAG_JUMPING);              break;          case 28: @@ -108,7 +108,7 @@ struct TRINITY_DLL_DECL npc_injured_rainspeaker_oracleAI : public npc_escortAI              return;          if (Player* pPlayer = GetPlayerForEscort()) -        {             +        {            if (pPlayer->GetQuestStatus(QUEST_FORTUNATE_MISUNDERSTANDINGS) != QUEST_STATUS_COMPLETE)              pPlayer->FailQuest(QUEST_FORTUNATE_MISUNDERSTANDINGS);          } @@ -225,10 +225,10 @@ bool GossipSelect_npc_vekjik(Player* pPlayer, Creature* pCreature, uint32 uiSend  #define GOSSIP_ITEM_AOF3 "I will not fail."  enum -{     +{      QUEST_FREYA_PACT         = 12621, -    SPELL_FREYA_CONVERSATION = 52045,  +    SPELL_FREYA_CONVERSATION = 52045,      GOSSIP_TEXTID_AVATAR1    = 13303,      GOSSIP_TEXTID_AVATAR2    = 13304, diff --git a/src/bindings/scripts/scripts/northrend/storm_peaks.cpp b/src/bindings/scripts/scripts/northrend/storm_peaks.cpp index f8e4780147a..42f74fa18f8 100644 --- a/src/bindings/scripts/scripts/northrend/storm_peaks.cpp +++ b/src/bindings/scripts/scripts/northrend/storm_peaks.cpp @@ -34,7 +34,7 @@ enum  struct TRINITY_DLL_DECL npc_agnetta_tyrsdottarAI : public ScriptedAI  {      npc_agnetta_tyrsdottarAI(Creature* pCreature) : ScriptedAI(pCreature) { } -     +      void Reset()      {          me->RestoreFaction(); @@ -83,8 +83,8 @@ enum  bool GossipHello_npc_frostborn_scout(Player* pPlayer, Creature* pCreature) -{     -     +{ +      if (pPlayer->GetQuestStatus(QUEST_MISSING_SCOUTS) == QUEST_STATUS_INCOMPLETE)      {          pPlayer->ADD_GOSSIP_ITEM(GOSSIP_ICON_CHAT, GOSSIP_ITEM1, GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF+1); diff --git a/src/bindings/scripts/scripts/northrend/ulduar/halls_of_lightning/boss_loken.cpp b/src/bindings/scripts/scripts/northrend/ulduar/halls_of_lightning/boss_loken.cpp index 164b393b6d9..2bf0b154bf0 100644 --- a/src/bindings/scripts/scripts/northrend/ulduar/halls_of_lightning/boss_loken.cpp +++ b/src/bindings/scripts/scripts/northrend/ulduar/halls_of_lightning/boss_loken.cpp @@ -138,12 +138,12 @@ struct TRINITY_DLL_DECL boss_lokenAI : public ScriptedAI          }      } -    void UpdateAI(const uint32 uiDiff)  +    void UpdateAI(const uint32 uiDiff)      {          //Return since we have no target          if (!UpdateVictim())              return; -  +          if (EncounterTimer)              EncounterTimer += uiDiff; diff --git a/src/bindings/scripts/scripts/northrend/ulduar/ulduar/boss_assembly_of_iron.cpp b/src/bindings/scripts/scripts/northrend/ulduar/ulduar/boss_assembly_of_iron.cpp index be3ef898bad..502e42df7a2 100644 --- a/src/bindings/scripts/scripts/northrend/ulduar/ulduar/boss_assembly_of_iron.cpp +++ b/src/bindings/scripts/scripts/northrend/ulduar/ulduar/boss_assembly_of_iron.cpp @@ -61,7 +61,7 @@ EndScriptData */  #define SPELL_LIGHTNING_TENDRILS     61887  #define SPELL_LIGHTNING_TENDRILS_H   63486  #define SPELL_STORMSHIELD            64187 -       +  enum @@ -84,7 +84,7 @@ enum      EVENT_LIGHTNING_TENDRILS,      EVENT_STORMSHIELD,      MAX_EVENT -    +  }; @@ -93,18 +93,18 @@ bool IsEncounterComplete(ScriptedInstance* pInstance, Creature* m_creature)  {     if (!pInstance || !m_creature)          return false; -     +      for(uint8 i = 0; i < 3; ++i)      {          uint64 guid = pInstance->GetData64(DATA_STEELBREAKER+i);          if(!guid)              return false; -             +          if(Creature *boss = (Unit::GetCreature((*m_creature), guid)))          {              if(boss->isAlive())                  return false; -                 +              continue;          }          else @@ -119,7 +119,7 @@ struct TRINITY_DLL_DECL boss_steelbreakerAI : public ScriptedAI      {          pInstance = c->GetInstanceData();      } -     +      void Reset()      {          events.Reset(); @@ -128,7 +128,7 @@ struct TRINITY_DLL_DECL boss_steelbreakerAI : public ScriptedAI          if(pInstance)              pInstance->SetData(DATA_ASSEMBLY, NOT_STARTED);      } -     +      EventMap events;      ScriptedInstance* pInstance;      uint32 phase; @@ -140,7 +140,7 @@ struct TRINITY_DLL_DECL boss_steelbreakerAI : public ScriptedAI          events.ScheduleEvent(EVENT_ENRAGE, 900000);          UpdatePhase();      } -     +      void UpdatePhase()      {          ++phase; @@ -151,7 +151,7 @@ struct TRINITY_DLL_DECL boss_steelbreakerAI : public ScriptedAI          if(phase >= 3)              events.RescheduleEvent(EVENT_OVERWHELMING_POWER, rand()%5000);      } -     +      void DamageTaken(Unit* pKiller, uint32 &damage)      {          if(damage >= m_creature->GetHealth()) @@ -161,7 +161,7 @@ struct TRINITY_DLL_DECL boss_steelbreakerAI : public ScriptedAI                  {                      Brundir->SetHealth(Brundir->GetMaxHealth());                  } -             +              if(Creature* Molgeim = Unit::GetCreature(*m_creature, pInstance ? pInstance->GetData64(DATA_RUNEMASTER_MOLGEIM) : 0))                  if(Molgeim->isAlive())                  { @@ -170,25 +170,25 @@ struct TRINITY_DLL_DECL boss_steelbreakerAI : public ScriptedAI               DoCast(SPELL_SUPERCHARGE);          }      } -     +      void JustDied(Unit* Killer)      {          if(IsEncounterComplete(pInstance, m_creature) && pInstance)              pInstance->SetData(DATA_ASSEMBLY, DONE);      } -     +      void KilledUnit(Unit *who)      {          if(phase == 3)              DoCast(m_creature, SPELL_ELECTRICAL_CHARGE);      } -     +      void SpellHit(Unit *from, const SpellEntry *spell)      {          if(spell->Id == SPELL_SUPERCHARGE)              UpdatePhase();      } -     +      void UpdateAI(const uint32 diff)      {          if (!UpdateVictim()) @@ -220,8 +220,8 @@ struct TRINITY_DLL_DECL boss_steelbreakerAI : public ScriptedAI                  break;              }          } -         -        DoMeleeAttackIfReady();     + +        DoMeleeAttackIfReady();      }  }; @@ -231,7 +231,7 @@ struct TRINITY_DLL_DECL boss_runemaster_molgeimAI : public ScriptedAI      {          pInstance = c->GetInstanceData();      } -     +      void Reset()      {          if(pInstance) @@ -240,18 +240,18 @@ struct TRINITY_DLL_DECL boss_runemaster_molgeimAI : public ScriptedAI          m_creature->RemoveAllAuras();          phase = 0;      } -     +      ScriptedInstance* pInstance;      EventMap events;      uint32 phase; -     +      void EnterCombat(Unit* who)      {          DoZoneInCombat();          events.ScheduleEvent(EVENT_ENRAGE, 900000);          UpdatePhase();      } -     +      void UpdatePhase()      {          ++phase; @@ -263,17 +263,17 @@ struct TRINITY_DLL_DECL boss_runemaster_molgeimAI : public ScriptedAI          if(phase >= 3)              events.RescheduleEvent(EVENT_RUNE_OF_SUMMONING, 20000+(rand()%10)*1000);      } -     +      void DamageTaken(Unit* pKiller, uint32 &damage)      {          if(damage >= m_creature->GetHealth()) -        {    +        {          if(Creature* Steelbreaker = Unit::GetCreature(*m_creature, pInstance ? pInstance->GetData64(DATA_STEELBREAKER) : 0))                  if(Steelbreaker->isAlive())                  {                      Steelbreaker->SetHealth(Steelbreaker->GetMaxHealth());                  } -             +              if(Creature* Brundir = Unit::GetCreature((*m_creature), pInstance ? pInstance->GetData64(DATA_STORMCALLER_BRUNDIR) : 0))                  if(Brundir->isAlive())                  { @@ -282,19 +282,19 @@ struct TRINITY_DLL_DECL boss_runemaster_molgeimAI : public ScriptedAI              DoCast(m_creature, SPELL_SUPERCHARGE);          }      } -     +      void JustDied(Unit* Killer)      {          if(IsEncounterComplete(pInstance, m_creature) && pInstance)              pInstance->SetData(DATA_ASSEMBLY, DONE);      } -     +      void SpellHit(Unit *from, const SpellEntry *spell)      {          if(spell->Id == SPELL_SUPERCHARGE)              UpdatePhase();      } -     +      void UpdateAI(const uint32 diff)      {          if (!UpdateVictim()) @@ -326,7 +326,7 @@ struct TRINITY_DLL_DECL boss_runemaster_molgeimAI : public ScriptedAI                  {                      Unit *target = SelectTarget(SELECT_TARGET_RANDOM);                      DoCast(target, SPELL_RUNE_OF_DEATH); -                    events.ScheduleEvent(EVENT_RUNE_OF_DEATH, 30000+ (rand()%10)*1000);     +                    events.ScheduleEvent(EVENT_RUNE_OF_DEATH, 30000+ (rand()%10)*1000);                  }                  break;                  case EVENT_RUNE_OF_SUMMONING: @@ -338,8 +338,8 @@ struct TRINITY_DLL_DECL boss_runemaster_molgeimAI : public ScriptedAI                  break;              }          } -         -        DoMeleeAttackIfReady();     + +        DoMeleeAttackIfReady();      }  }; @@ -351,28 +351,28 @@ struct TRINITY_DLL_DECL mob_lightning_elementalAI : public ScriptedAI      }      Unit* Target; -     +      void Charge()      {          Target = m_creature->SelectNearestTarget();          m_creature->AddThreat(Target, 5000000.0f);          AttackStart(Target);      } -     +      void UpdateAI(const uint32 diff)      {          if(!m_creature->isInCombat())              return; -             +          if(m_creature->IsWithinMeleeRange(Target))          {              DoCast(Target, (HeroicMode) ? SPELL_LIGHTNING_BLAST_H : SPELL_LIGHTNING_BLAST);              m_creature->DealDamage(m_creature, m_creature->GetMaxHealth()); // hack untill spell works          } -         +          m_creature->GetMotionMaster()->MoveChase(Target); // needed at every update?      } -     +  };  struct TRINITY_DLL_DECL mob_rune_of_summoningAI : public ScriptedAI @@ -395,7 +395,7 @@ struct TRINITY_DLL_DECL boss_stormcaller_brundirAI : public ScriptedAI      {          pInstance = c->GetInstanceData();      } -     +      void Reset()      {          if(pInstance) @@ -404,18 +404,18 @@ struct TRINITY_DLL_DECL boss_stormcaller_brundirAI : public ScriptedAI          events.Reset();          phase = 0;      } -     +      EventMap events;      ScriptedInstance* pInstance;      uint32 phase; -     +      void EnterCombat(Unit* who)      {          DoZoneInCombat();          events.ScheduleEvent(EVENT_ENRAGE, 900000);          UpdatePhase();      } -     +      void UpdatePhase()      {          ++phase; @@ -429,9 +429,9 @@ struct TRINITY_DLL_DECL boss_stormcaller_brundirAI : public ScriptedAI              DoCast(m_creature, SPELL_STORMSHIELD);              events.RescheduleEvent(EVENT_LIGHTNING_TENDRILS, 40000+ (rand()%40)*1000);          } -     +      } -     +      void DamageTaken(Unit* pKiller, uint32 &damage)      {          if(damage >= m_creature->GetHealth()) @@ -441,23 +441,23 @@ struct TRINITY_DLL_DECL boss_stormcaller_brundirAI : public ScriptedAI                  {                      Steelbreaker->SetHealth(Steelbreaker->GetMaxHealth());                  } -             +              if(Creature* Molgeim = Unit::GetCreature(*m_creature, pInstance ? pInstance->GetData64(DATA_RUNEMASTER_MOLGEIM) : 0))                  if(Molgeim->isAlive())                  {                      Molgeim->SetHealth(Molgeim->GetMaxHealth());                  } -                 +              DoCast(SPELL_SUPERCHARGE);          }      } -     +      void JustDied(Unit* Killer)      {          if(IsEncounterComplete(pInstance, m_creature) && pInstance)              pInstance->SetData(DATA_ASSEMBLY, DONE);      } -     +      void SpellHit(Unit *from, const SpellEntry *spell)      {          if(spell->Id == SPELL_SUPERCHARGE) @@ -465,7 +465,7 @@ struct TRINITY_DLL_DECL boss_stormcaller_brundirAI : public ScriptedAI              UpdatePhase();          }      } -     +      void UpdateAI(const uint32 diff)      {          if (!UpdateVictim()) @@ -502,8 +502,8 @@ struct TRINITY_DLL_DECL boss_stormcaller_brundirAI : public ScriptedAI                  break;              }          } -         -        DoMeleeAttackIfReady();     + +        DoMeleeAttackIfReady();      }  }; @@ -540,7 +540,7 @@ void AddSC_boss_assembly_of_iron()      newscript->Name="boss_steelbreaker";      newscript->GetAI = &GetAI_boss_steelbreaker;      newscript->RegisterSelf(); -     +      newscript = new Script;      newscript->Name="boss_runemaster_molgeim";      newscript->GetAI = &GetAI_boss_runemaster_molgeim; @@ -550,15 +550,15 @@ void AddSC_boss_assembly_of_iron()      newscript->Name="boss_stormcaller_brundir";      newscript->GetAI = &GetAI_boss_stormcaller_brundir;      newscript->RegisterSelf(); -     +      newscript = new Script;      newscript->Name="mob_lightning_elemental";      newscript->GetAI = &GetAI_mob_lightning_elemental;      newscript->RegisterSelf(); -     +      newscript = new Script;      newscript->Name="mob_rune_of_summoning";      newscript->GetAI = &GetAI_mob_rune_of_summoning;      newscript->RegisterSelf(); -     +  }
\ No newline at end of file diff --git a/src/bindings/scripts/scripts/northrend/ulduar/ulduar/instance_ulduar.cpp b/src/bindings/scripts/scripts/northrend/ulduar/ulduar/instance_ulduar.cpp index 820402bb487..d7d95f59a6e 100644 --- a/src/bindings/scripts/scripts/northrend/ulduar/ulduar/instance_ulduar.cpp +++ b/src/bindings/scripts/scripts/northrend/ulduar/ulduar/instance_ulduar.cpp @@ -22,19 +22,19 @@  struct TRINITY_DLL_DECL instance_ulduar : public ScriptedInstance  {      instance_ulduar(Map* pMap) : ScriptedInstance(pMap) {Initialize();}; -     +      uint32 m_auiEncounter[MAX_ENCOUNTER]; -     +      uint64 boss_assembly[3]; -     +      void Initialize()      {          memset(&m_auiEncounter, 0, sizeof(m_auiEncounter)); -         +          for(uint8 i = 0; i < 3; ++i)              boss_assembly[i] = 0;      } -     +      bool IsEncounterInProgress() const      {          for(uint8 i = 0; i < MAX_ENCOUNTER; ++i) @@ -42,7 +42,7 @@ struct TRINITY_DLL_DECL instance_ulduar : public ScriptedInstance          return false;      } -     +      void OnCreatureCreate(Creature* pCreature, bool add)      {          switch(pCreature->GetEntry()) @@ -51,7 +51,7 @@ struct TRINITY_DLL_DECL instance_ulduar : public ScriptedInstance              case 32927: boss_assembly[1] = pCreature->GetGUID();    break;              case 32857: boss_assembly[2] = pCreature->GetGUID();    break;          } -         +       }      uint64 GetData64(uint32 identifier) @@ -64,7 +64,7 @@ struct TRINITY_DLL_DECL instance_ulduar : public ScriptedInstance              default:    return 0;          }      } -     +      uint32 GetData(uint32 type)      {          switch(type) @@ -85,10 +85,10 @@ struct TRINITY_DLL_DECL instance_ulduar : public ScriptedInstance              case BOSS_ALGALON:                  return m_auiEncounter[type];          } -         +          return 0;      } -     +      void SetData(uint32 type, uint32 data)      {          switch(type) diff --git a/src/bindings/scripts/scripts/northrend/utgarde_keep/utgarde_keep/instance_utgarde_keep.cpp b/src/bindings/scripts/scripts/northrend/utgarde_keep/utgarde_keep/instance_utgarde_keep.cpp index 0e84a15e006..1e67b163aa7 100644 --- a/src/bindings/scripts/scripts/northrend/utgarde_keep/utgarde_keep/instance_utgarde_keep.cpp +++ b/src/bindings/scripts/scripts/northrend/utgarde_keep/utgarde_keep/instance_utgarde_keep.cpp @@ -81,7 +81,7 @@ struct TRINITY_DLL_DECL instance_utgarde_keep : public ScriptedInstance              forge_fire[i] = 0;              forge_anvil[i] = 0;          } -         +          portcullis[0] = 0;          portcullis[1] = 0;      } diff --git a/src/bindings/scripts/scripts/northrend/utgarde_keep/utgarde_keep/utgarde_keep.cpp b/src/bindings/scripts/scripts/northrend/utgarde_keep/utgarde_keep/utgarde_keep.cpp index d82e45f28d4..df513fe2c72 100644 --- a/src/bindings/scripts/scripts/northrend/utgarde_keep/utgarde_keep/utgarde_keep.cpp +++ b/src/bindings/scripts/scripts/northrend/utgarde_keep/utgarde_keep/utgarde_keep.cpp @@ -19,7 +19,7 @@  #include "precompiled.h"  #include "def_utgarde_keep.h" -uint32 entry_search[3] =  +uint32 entry_search[3] =  {      186609,      186610, @@ -28,7 +28,7 @@ uint32 entry_search[3] =  struct TRINITY_DLL_DECL npc_dragonflayer_forge_masterAI : public ScriptedAI  { -    npc_dragonflayer_forge_masterAI(Creature *c) : ScriptedAI(c)  +    npc_dragonflayer_forge_masterAI(Creature *c) : ScriptedAI(c)      {          pInstance = c->GetInstanceData();          fm_Type = 0; @@ -118,11 +118,11 @@ struct TRINITY_DLL_DECL npc_dragonflayer_forge_masterAI : public ScriptedAI                  {                      near_f = i + 1;                      diff = m_creature->GetDistance2d(temp); -                     +                  }              }          } -     +          switch (near_f)          {          case 1:  return 1; diff --git a/src/bindings/scripts/scripts/northrend/vault_of_archavon/boss_archavon.cpp b/src/bindings/scripts/scripts/northrend/vault_of_archavon/boss_archavon.cpp index 2a0e7fcd007..6e0481f1958 100644 --- a/src/bindings/scripts/scripts/northrend/vault_of_archavon/boss_archavon.cpp +++ b/src/bindings/scripts/scripts/northrend/vault_of_archavon/boss_archavon.cpp @@ -13,7 +13,7 @@ UPDATE `creature_template` SET `ScriptName`='mob_archavon_warder' WHERE `entry`=  #define SPELL_STOMP              HEROIC(58663,60880)  #define SPELL_IMPALE             HEROIC(58666,60882) //Lifts an enemy off the ground with a spiked fist, inflicting 47125 to 52875 Physical damage and 9425 to 10575 additional damage each second for 8 sec.  #define SPELL_BERSERK            47008 -//Spells Archavon Warders                       +//Spells Archavon Warders  #define SPELL_ROCK_SHOWER        HEROIC(60919,60923)  #define SPELL_SHIELD_CRUSH       HEROIC(60897,60899)  #define SPELL_WHIRL              HEROIC(60902,60916) @@ -28,7 +28,7 @@ UPDATE `creature_template` SET `ScriptName`='mob_archavon_warder' WHERE `entry`=  #define EVENT_CHOKING_CLOUD      2  //30s cd  #define EVENT_STOMP              3  //45s cd  #define EVENT_IMPALE             4 -#define EVENT_BERSERK            5  //300s cd  +#define EVENT_BERSERK            5  //300s cd  //mob  #define EVENT_ROCK_SHOWER        5  //set = 20s cd,unkown cd @@ -37,7 +37,7 @@ UPDATE `creature_template` SET `ScriptName`='mob_archavon_warder' WHERE `entry`=  struct TRINITY_DLL_DECL boss_archavonAI : public ScriptedAI  { -    boss_archavonAI(Creature *c) : ScriptedAI(c)  +    boss_archavonAI(Creature *c) : ScriptedAI(c)      {          pInstance = c->GetInstanceData();      } @@ -109,7 +109,7 @@ struct TRINITY_DLL_DECL boss_archavonAI : public ScriptedAI                      return;                  case EVENT_BERSERK:                      DoCast(m_creature, SPELL_BERSERK); -                    DoScriptText(EMOTE_BERSERK, m_creature);   +                    DoScriptText(EMOTE_BERSERK, m_creature);                      return;              }          } diff --git a/src/bindings/scripts/scripts/northrend/vault_of_archavon/boss_emalon.cpp b/src/bindings/scripts/scripts/northrend/vault_of_archavon/boss_emalon.cpp index 967474f6ef9..92e37964699 100644 --- a/src/bindings/scripts/scripts/northrend/vault_of_archavon/boss_emalon.cpp +++ b/src/bindings/scripts/scripts/northrend/vault_of_archavon/boss_emalon.cpp @@ -65,7 +65,7 @@ struct TRINITY_DLL_DECL boss_emalonAI : public ScriptedAI          if (pInstance)              pInstance->SetData(DATA_EMALON_EVENT, NOT_STARTED);      } -     +      void DespawnAllMinions()      {          if(!MinionList.empty()) @@ -155,10 +155,10 @@ struct TRINITY_DLL_DECL boss_emalonAI : public ScriptedAI                          DoScriptText(EMOTE_OVERCHARGE, m_creature);                          events.ScheduleEvent(EVENT_OVERCHARGE, 45000);                      } -                }                 +                }                  return;              case EVENT_BERSERK: -                DoCast(m_creature, SPELL_BERSERK);   +                DoCast(m_creature, SPELL_BERSERK);                  DoScriptText(EMOTE_BERSERK, m_creature);                  return;              } @@ -173,7 +173,7 @@ struct TRINITY_DLL_DECL boss_emalonAI : public ScriptedAI  ######*/  struct TRINITY_DLL_DECL mob_tempest_minionAI : public ScriptedAI  { -    mob_tempest_minionAI(Creature *c) : ScriptedAI(c)  +    mob_tempest_minionAI(Creature *c) : ScriptedAI(c)      {          pInstance = c->GetInstanceData();          EmalonGUID = pInstance ? pInstance->GetData64(DATA_EMALON) : 0; diff --git a/src/bindings/scripts/scripts/northrend/violet_hold/boss_cyanigosa.cpp b/src/bindings/scripts/scripts/northrend/violet_hold/boss_cyanigosa.cpp index 13ad8c27a75..fd1675ae6f8 100644 --- a/src/bindings/scripts/scripts/northrend/violet_hold/boss_cyanigosa.cpp +++ b/src/bindings/scripts/scripts/northrend/violet_hold/boss_cyanigosa.cpp @@ -1,12 +1,12 @@  /* Script Data Start  SDName: Boss cyanigosa  SDAuthor: LordVanMartin -SD%Complete:  -SDComment:  -SDCategory:  +SD%Complete: +SDComment: +SDCategory:  Script Data End */ -/*** SQL START ***  +/*** SQL START ***  update creature_template set scriptname = '' where entry = '';  *** SQL END ***/  #include "precompiled.h" @@ -33,23 +33,23 @@ update creature_template set scriptname = '' where entry = '';  struct TRINITY_DLL_DECL boss_cyanigosaAI : public ScriptedAI  {      boss_cyanigosaAI(Creature *c) : ScriptedAI(c) {} -     +      void Reset() {} -    void EnterCombat(Unit* who)  +    void EnterCombat(Unit* who)      {          DoScriptText(SAY_AGGRO, m_creature);      }      void AttackStart(Unit* who) {}      void MoveInLineOfSight(Unit* who) {} -    void UpdateAI(const uint32 diff)  +    void UpdateAI(const uint32 diff)      {          //Return since we have no target          if (!UpdateVictim())              return; -         +          DoMeleeAttackIfReady();      } -    void JustDied(Unit* killer)   +    void JustDied(Unit* killer)      {          DoScriptText(SAY_DEATH, m_creature);      } diff --git a/src/bindings/scripts/scripts/northrend/violet_hold/boss_erekem.cpp b/src/bindings/scripts/scripts/northrend/violet_hold/boss_erekem.cpp index d5f18ac806f..bc5ca589387 100644 --- a/src/bindings/scripts/scripts/northrend/violet_hold/boss_erekem.cpp +++ b/src/bindings/scripts/scripts/northrend/violet_hold/boss_erekem.cpp @@ -1,12 +1,12 @@  /* Script Data Start  SDName: Boss erekem  SDAuthor: LordVanMartin -SD%Complete:  -SDComment:  -SDCategory:  +SD%Complete: +SDComment: +SDCategory:  Script Data End */ -/*** SQL START ***  +/*** SQL START ***  update creature_template set scriptname = '' where entry = '';  *** SQL END ***/  #include "precompiled.h" @@ -35,21 +35,21 @@ struct TRINITY_DLL_DECL boss_erekemAI : public ScriptedAI      boss_erekemAI(Creature *c) : ScriptedAI(c) {}      void Reset() {} -    void EnterCombat(Unit* who)  +    void EnterCombat(Unit* who)      {          DoScriptText(SAY_AGGRO, m_creature);      }      void AttackStart(Unit* who) {}      void MoveInLineOfSight(Unit* who) {} -    void UpdateAI(const uint32 diff)  +    void UpdateAI(const uint32 diff)      {          //Return since we have no target          if (!UpdateVictim())              return; -                 -        DoMeleeAttackIfReady();     + +        DoMeleeAttackIfReady();      } -    void JustDied(Unit* killer)   +    void JustDied(Unit* killer)      {          DoScriptText(SAY_DEATH, m_creature);      } diff --git a/src/bindings/scripts/scripts/northrend/violet_hold/boss_ichoron.cpp b/src/bindings/scripts/scripts/northrend/violet_hold/boss_ichoron.cpp index 60b1c656808..e3bede3f704 100644 --- a/src/bindings/scripts/scripts/northrend/violet_hold/boss_ichoron.cpp +++ b/src/bindings/scripts/scripts/northrend/violet_hold/boss_ichoron.cpp @@ -1,12 +1,12 @@  /* Script Data Start  SDName: Boss ichoron  SDAuthor: LordVanMartin -SD%Complete:  -SDComment:  -SDCategory:  +SD%Complete: +SDComment: +SDCategory:  Script Data End */ -/*** SQL START ***  +/*** SQL START ***  update creature_template set scriptname = '' where entry = '';  *** SQL END ***/  #include "precompiled.h" @@ -16,7 +16,7 @@ update creature_template set scriptname = '' where entry = '';  #define SPELL_FRENZY                                   54312  #define SPELL_PROTECTIVE_BUBBLE                        54306  #define SPELL_WATER_BLAST                              54237 -#define SPELL_WATER_BOLT_VOLLEY                        54241            +#define SPELL_WATER_BOLT_VOLLEY                        54241  //Yells  #define SAY_AGGRO                                   -1608018 @@ -34,21 +34,21 @@ struct TRINITY_DLL_DECL boss_ichoronAI : public ScriptedAI      boss_ichoronAI(Creature *c) : ScriptedAI(c) {}      void Reset() {} -    void EnterCombat(Unit* who)  +    void EnterCombat(Unit* who)      {          DoScriptText(SAY_AGGRO, m_creature);      }      void AttackStart(Unit* who) {}      void MoveInLineOfSight(Unit* who) {} -    void UpdateAI(const uint32 diff)  +    void UpdateAI(const uint32 diff)      {          //Return since we have no target          if (!UpdateVictim())              return; -                 -        DoMeleeAttackIfReady();     + +        DoMeleeAttackIfReady();      } -    void JustDied(Unit* killer)   +    void JustDied(Unit* killer)      {          DoScriptText(SAY_DEATH, m_creature);      } diff --git a/src/bindings/scripts/scripts/northrend/violet_hold/boss_lavanthor.cpp b/src/bindings/scripts/scripts/northrend/violet_hold/boss_lavanthor.cpp index 430a8acb178..54fe4900ab6 100644 --- a/src/bindings/scripts/scripts/northrend/violet_hold/boss_lavanthor.cpp +++ b/src/bindings/scripts/scripts/northrend/violet_hold/boss_lavanthor.cpp @@ -1,12 +1,12 @@  /* Script Data Start  SDName: Boss lavanthor  SDAuthor: LordVanMartin -SD%Complete:  -SDComment:  -SDCategory:  +SD%Complete: +SDComment: +SDCategory:  Script Data End */ -/*** SQL START ***  +/*** SQL START ***  update creature_template set scriptname = '' where entry = '';  *** SQL END ***/  #include "precompiled.h" @@ -25,13 +25,13 @@ struct TRINITY_DLL_DECL boss_lavanthorAI : public ScriptedAI      void EnterCombat(Unit* who) {}      void AttackStart(Unit* who) {}      void MoveInLineOfSight(Unit* who) {} -    void UpdateAI(const uint32 diff)  +    void UpdateAI(const uint32 diff)      {          //Return since we have no target          if (!UpdateVictim())              return; -                 -        DoMeleeAttackIfReady();     + +        DoMeleeAttackIfReady();      }      void JustDied(Unit* killer) {}  }; diff --git a/src/bindings/scripts/scripts/northrend/violet_hold/boss_moragg.cpp b/src/bindings/scripts/scripts/northrend/violet_hold/boss_moragg.cpp index fdc18a3c549..dd381cf166d 100644 --- a/src/bindings/scripts/scripts/northrend/violet_hold/boss_moragg.cpp +++ b/src/bindings/scripts/scripts/northrend/violet_hold/boss_moragg.cpp @@ -1,12 +1,12 @@  /* Script Data Start  SDName: Boss moragg  SDAuthor: LordVanMartin -SD%Complete:  -SDComment:  -SDCategory:  +SD%Complete: +SDComment: +SDCategory:  Script Data End */ -/*** SQL START ***  +/*** SQL START ***  update creature_template set scriptname = '' where entry = '';  *** SQL END ***/  #include "precompiled.h" @@ -18,18 +18,18 @@ update creature_template set scriptname = '' where entry = '';  struct TRINITY_DLL_DECL boss_moraggAI : public ScriptedAI  {      boss_moraggAI(Creature *c) : ScriptedAI(c) {} -     +      void Reset() {}      void EnterCombat(Unit* who) {}      void AttackStart(Unit* who) {}      void MoveInLineOfSight(Unit* who) {} -    void UpdateAI(const uint32 diff)  +    void UpdateAI(const uint32 diff)      {          //Return since we have no target          if (!UpdateVictim()) -            return;     -         -        DoMeleeAttackIfReady();     +            return; + +        DoMeleeAttackIfReady();      }      void JustDied(Unit* killer) {}  }; diff --git a/src/bindings/scripts/scripts/northrend/violet_hold/boss_xevozz.cpp b/src/bindings/scripts/scripts/northrend/violet_hold/boss_xevozz.cpp index b59c4aec4e1..5bce27d2879 100644 --- a/src/bindings/scripts/scripts/northrend/violet_hold/boss_xevozz.cpp +++ b/src/bindings/scripts/scripts/northrend/violet_hold/boss_xevozz.cpp @@ -1,12 +1,12 @@  /* Script Data Start  SDName: Boss xevozz  SDAuthor: LordVanMartin -SD%Complete:  -SDComment:  -SDCategory:  +SD%Complete: +SDComment: +SDCategory:  Script Data End */ -/*** SQL START ***  +/*** SQL START ***  update creature_template set scriptname = '' where entry = '';  *** SQL END ***/  #include "precompiled.h" @@ -35,21 +35,21 @@ struct TRINITY_DLL_DECL boss_xevozzAI : public ScriptedAI      boss_xevozzAI(Creature *c) : ScriptedAI(c) {}      void Reset() {} -    void EnterCombat(Unit* who)  +    void EnterCombat(Unit* who)      {          DoScriptText(SAY_AGGRO, m_creature);      }      void AttackStart(Unit* who) {}      void MoveInLineOfSight(Unit* who) {} -    void UpdateAI(const uint32 diff)  +    void UpdateAI(const uint32 diff)      {          //Return since we have no target          if (!UpdateVictim())              return; -                 -        DoMeleeAttackIfReady();     + +        DoMeleeAttackIfReady();      } -    void JustDied(Unit* killer)   +    void JustDied(Unit* killer)      {          DoScriptText(SAY_DEATH, m_creature);      } diff --git a/src/bindings/scripts/scripts/northrend/violet_hold/boss_zuramat.cpp b/src/bindings/scripts/scripts/northrend/violet_hold/boss_zuramat.cpp index 218b5915bec..5555949aa76 100644 --- a/src/bindings/scripts/scripts/northrend/violet_hold/boss_zuramat.cpp +++ b/src/bindings/scripts/scripts/northrend/violet_hold/boss_zuramat.cpp @@ -1,12 +1,12 @@  /* Script Data Start  SDName: Boss zuramat  SDAuthor: LordVanMartin -SD%Complete:  -SDComment:  -SDCategory:  +SD%Complete: +SDComment: +SDCategory:  Script Data End */ -/*** SQL START ***  +/*** SQL START ***  update creature_template set scriptname = '' where entry = '';  *** SQL END ***/  #include "precompiled.h" @@ -33,23 +33,23 @@ struct TRINITY_DLL_DECL boss_zuramatAI : public ScriptedAI      boss_zuramatAI(Creature *c) : ScriptedAI(c) {}      uint32 void_shift; -     +      void Reset() {} -    void EnterCombat(Unit* who)  +    void EnterCombat(Unit* who)      {          DoScriptText(SAY_AGGRO, m_creature);      }      void AttackStart(Unit* who) {}      void MoveInLineOfSight(Unit* who) {} -    void UpdateAI(const uint32 diff)  +    void UpdateAI(const uint32 diff)      {          //Return since we have no target          if (!UpdateVictim())              return; -         -        DoMeleeAttackIfReady();     + +        DoMeleeAttackIfReady();      } -    void JustDied(Unit* killer)   +    void JustDied(Unit* killer)      {          DoScriptText(SAY_DEATH, m_creature);      } diff --git a/src/bindings/scripts/scripts/northrend/zuldrak.cpp b/src/bindings/scripts/scripts/northrend/zuldrak.cpp index 988c4957a0c..dfeec6b6e3d 100644 --- a/src/bindings/scripts/scripts/northrend/zuldrak.cpp +++ b/src/bindings/scripts/scripts/northrend/zuldrak.cpp @@ -37,7 +37,7 @@ struct TRINITY_DLL_DECL npc_drakuru_shacklesAI : public ScriptedAI      npc_drakuru_shacklesAI(Creature *c) : ScriptedAI(c) {}      Unit* Rageclaw; -     +      void Reset()      {          m_creature->SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NOT_SELECTABLE); @@ -124,7 +124,7 @@ struct TRINITY_DLL_DECL npc_captured_rageclawAI : public ScriptedAI      }      void MoveInLineOfSight(Unit *who){} -     +      void SpellHit(Unit *caster, const SpellEntry *spell)      {          if (spell->Id == SPELL_FREE_RAGECLAW) @@ -156,7 +156,7 @@ struct TRINITY_DLL_DECL npc_captured_rageclawAI : public ScriptedAI          if (!Despawn)              return; -         +          if (DespawnTimer < diff)              m_creature->setDeathState(JUST_DIED);          else DespawnTimer-=diff; diff --git a/src/bindings/scripts/scripts/outland/blades_edge_mountains.cpp b/src/bindings/scripts/scripts/outland/blades_edge_mountains.cpp index fcb6f4af497..03dbe7b10c4 100644 --- a/src/bindings/scripts/scripts/outland/blades_edge_mountains.cpp +++ b/src/bindings/scripts/scripts/outland/blades_edge_mountains.cpp @@ -33,7 +33,7 @@ EndContentData */  #include "precompiled.h"  //Support for quest: You're Fired! (10821) -bool     obelisk_one, obelisk_two, obelisk_three, obelisk_four, obelisk_five;     +bool     obelisk_one, obelisk_two, obelisk_three, obelisk_four, obelisk_five;  #define LEGION_OBELISK_ONE           185193  #define LEGION_OBELISK_TWO           185195 @@ -336,7 +336,7 @@ bool GossipSelect_npc_saikkal_the_elder(Player* pPlayer, Creature* pCreature, ui  ######*/  bool GOHello_go_legion_obelisk(Player* pPlayer, GameObject* pGo) -{     +{      if (pPlayer->GetQuestStatus(10821) == QUEST_STATUS_INCOMPLETE)      {          switch(pGo->GetEntry()) @@ -357,7 +357,7 @@ bool GOHello_go_legion_obelisk(Player* pPlayer, GameObject* pGo)                    obelisk_five = true;                   break;          } -     +          if (obelisk_one == true && obelisk_two == true && obelisk_three == true && obelisk_four == true && obelisk_five == true)          {              pGo->SummonCreature(19963,2943.40f,4778.20f,284.49f,0.94f,TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT,120000); @@ -369,7 +369,7 @@ bool GOHello_go_legion_obelisk(Player* pPlayer, GameObject* pGo)              obelisk_five = false;          }      } -     +      return true;  } @@ -407,7 +407,7 @@ void AddSC_blades_edge_mountains()      newscript->pGossipHello = &GossipHello_npc_saikkal_the_elder;      newscript->pGossipSelect = &GossipSelect_npc_saikkal_the_elder;      newscript->RegisterSelf(); -     +      newscript = new Script;      newscript->Name="go_legion_obelisk";      newscript->pGOHello =           &GOHello_go_legion_obelisk; diff --git a/src/bindings/scripts/scripts/outland/shadowmoon_valley.cpp b/src/bindings/scripts/scripts/outland/shadowmoon_valley.cpp index 5ef2be74bf9..e7ee5a45569 100644 --- a/src/bindings/scripts/scripts/outland/shadowmoon_valley.cpp +++ b/src/bindings/scripts/scripts/outland/shadowmoon_valley.cpp @@ -1354,7 +1354,7 @@ struct TRINITY_DLL_DECL mob_torloth_the_magnificentAI : public ScriptedAI              switch(slayer->GetTypeId())          {              case TYPEID_UNIT: -                if (Unit *owner = slayer->GetOwner())  +                if (Unit *owner = slayer->GetOwner())                      if (owner->GetTypeId() == TYPEID_PLAYER)                          CAST_PLR(owner)->GroupEventHappens(QUEST_BATTLE_OF_THE_CRIMSON_WATCH, m_creature);                  break; diff --git a/src/bindings/scripts/scripts/outland/terokkar_forest.cpp b/src/bindings/scripts/scripts/outland/terokkar_forest.cpp index bfce48a17dd..9bb0a152cce 100644 --- a/src/bindings/scripts/scripts/outland/terokkar_forest.cpp +++ b/src/bindings/scripts/scripts/outland/terokkar_forest.cpp @@ -579,9 +579,9 @@ struct TRINITY_DLL_DECL npc_akunoAI : public npc_escortAI          if(IsWalking && !m_creature->HasUnitMovementFlag(MOVEMENTFLAG_WALK_MODE))              m_creature->AddUnitMovementFlag(MOVEMENTFLAG_WALK_MODE); -     -         -        switch(i)  + + +        switch(i)          {          case 0: m_creature->setFaction(5); break;          case 3: diff --git a/src/bindings/scripts/scripts/world/boss_emeriss.cpp b/src/bindings/scripts/scripts/world/boss_emeriss.cpp index 9881525e3ad..6733266ce11 100644 --- a/src/bindings/scripts/scripts/world/boss_emeriss.cpp +++ b/src/bindings/scripts/scripts/world/boss_emeriss.cpp @@ -120,7 +120,7 @@ struct TRINITY_DLL_DECL boss_emerissAI : public ScriptedAI          //CorruptionofEarth_Timer          //CorruptionofEarth at 75%, 50% and 25%          if ((m_creature->GetHealth()*100 / m_creature->GetMaxHealth()) <= (100-(25*m_uiCorruptionsCasted))) -        {  +        {              ++m_uiCorruptionsCasted;                        // prevent casting twice on same hp              DoScriptText(SAY_CASTCORRUPTION, m_creature);              DoCast(m_creature->getVictim(), SPELL_CORRUPTIONOFEARTH); diff --git a/src/bindings/scripts/scripts/world/boss_taerar.cpp b/src/bindings/scripts/scripts/world/boss_taerar.cpp index 3f45ab26331..62c1a5ab63b 100644 --- a/src/bindings/scripts/scripts/world/boss_taerar.cpp +++ b/src/bindings/scripts/scripts/world/boss_taerar.cpp @@ -27,7 +27,7 @@ enum  {      SAY_AGGRO               = -1000399,      SAY_SUMMONSHADE         = -1000400, -  +      //Spells of Taerar      SPELL_SLEEP             = 24777,      SPELL_NOXIOUSBREATH     = 24818, diff --git a/src/bindings/scripts/scripts/world/npcs_special.cpp b/src/bindings/scripts/scripts/world/npcs_special.cpp index 2fa1df0c128..ded3184d587 100644 --- a/src/bindings/scripts/scripts/world/npcs_special.cpp +++ b/src/bindings/scripts/scripts/world/npcs_special.cpp @@ -151,7 +151,7 @@ struct TRINITY_DLL_DECL npc_air_force_botsAI : public ScriptedAI          return pSummoned;      } -     +      Creature* GetSummonedGuard()      {          Creature* pCreature = Unit::GetCreature(*m_creature, m_uiSpawnedGUID); @@ -1572,7 +1572,7 @@ CreatureAI* GetAI_npc_snake_trap_serpents(Creature* pCreature)  }  struct TRINITY_DLL_DECL mob_mojoAI : public ScriptedAI -{     +{      mob_mojoAI(Creature *c) : ScriptedAI(c) {Reset();}      uint32 hearts;      uint64 victimGUID; @@ -1628,11 +1628,11 @@ struct TRINITY_DLL_DECL mob_mojoAI : public ScriptedAI                      victim->RemoveAura(43906);//remove polymorph frog thing              }              m_creature->AddAura(43906,pPlayer);//add polymorph frog thing -            victimGUID = pPlayer->GetGUID();             +            victimGUID = pPlayer->GetGUID();              m_creature->CastSpell(m_creature,20372,true);//tag.hearts              m_creature->GetMotionMaster()->MoveFollow(pPlayer,0,0);              hearts = 15000; -        }    +        }      }  }; @@ -1870,7 +1870,7 @@ void AddSC_npcs_special()      newscript->pGossipHello =  &GossipHello_npc_kingdom_of_dalaran_quests;      newscript->pGossipSelect = &GossipSelect_npc_kingdom_of_dalaran_quests;      newscript->RegisterSelf(); -     +      newscript = new Script;      newscript->Name="npc_mount_vendor";      newscript->pGossipHello =  &GossipHello_npc_mount_vendor;  | 
