diff options
Diffstat (limited to 'src/server/scripts/EasternKingdoms')
15 files changed, 32 insertions, 32 deletions
diff --git a/src/server/scripts/EasternKingdoms/BlackrockDepths/blackrock_depths.cpp b/src/server/scripts/EasternKingdoms/BlackrockDepths/blackrock_depths.cpp index 0ae2279fdd9..4976e2a5af6 100644 --- a/src/server/scripts/EasternKingdoms/BlackrockDepths/blackrock_depths.cpp +++ b/src/server/scripts/EasternKingdoms/BlackrockDepths/blackrock_depths.cpp @@ -318,7 +318,7 @@ public: break; case 4: CanWalk = true; - me->SetVisibility(VISIBILITY_OFF); + me->SetVisible(false); SummonRingMob(); Event_Timer = 8000; break; @@ -332,7 +332,7 @@ public: Event_Timer = 0; break; case 7: - me->SetVisibility(VISIBILITY_ON); + me->SetVisible(true); HandleGameObject(DATA_ARENA1, false); DoScriptText(SCRIPT_TEXT6, me);//4 CanWalk = true; @@ -343,7 +343,7 @@ public: Event_Timer = 5000; break; case 9: - me->SetVisibility(VISIBILITY_OFF); + me->SetVisible(false); SummonRingBoss(); Event_Timer = 0; break; diff --git a/src/server/scripts/EasternKingdoms/Karazhan/boss_midnight.cpp b/src/server/scripts/EasternKingdoms/Karazhan/boss_midnight.cpp index af4f061fe3d..96cd80bb0d6 100644 --- a/src/server/scripts/EasternKingdoms/Karazhan/boss_midnight.cpp +++ b/src/server/scripts/EasternKingdoms/Karazhan/boss_midnight.cpp @@ -132,7 +132,7 @@ public: Mount_Timer = 0; me->RemoveFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NON_ATTACKABLE); - me->SetVisibility(VISIBILITY_ON); + me->SetVisible(true); } void EnterCombat(Unit* /*who*/) {} @@ -174,7 +174,7 @@ public: if (Mount_Timer <= diff) { Mount_Timer = 0; - me->SetVisibility(VISIBILITY_OFF); + me->SetVisible(false); me->GetMotionMaster()->MoveIdle(); if (Unit *pAttumen = Unit::GetUnit(*me, Attumen)) { @@ -239,10 +239,10 @@ void boss_attumen::boss_attumenAI::UpdateAI(const uint32 diff) if (pMidnight) { pMidnight->RemoveFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NON_ATTACKABLE); - pMidnight->SetVisibility(VISIBILITY_ON); + pMidnight->SetVisible(true); } Midnight = 0; - me->SetVisibility(VISIBILITY_OFF); + me->SetVisible(false); me->Kill(me); } } else ResetTimer -= diff; diff --git a/src/server/scripts/EasternKingdoms/Karazhan/boss_prince_malchezaar.cpp b/src/server/scripts/EasternKingdoms/Karazhan/boss_prince_malchezaar.cpp index d985335699c..84f8748d90a 100644 --- a/src/server/scripts/EasternKingdoms/Karazhan/boss_prince_malchezaar.cpp +++ b/src/server/scripts/EasternKingdoms/Karazhan/boss_prince_malchezaar.cpp @@ -274,7 +274,7 @@ public: if (Unit *pInfernal = Unit::GetUnit(*me, *itr)) if (pInfernal->isAlive()) { - pInfernal->SetVisibility(VISIBILITY_OFF); + pInfernal->SetVisible(false); pInfernal->setDeathState(JUST_DIED); } diff --git a/src/server/scripts/EasternKingdoms/Karazhan/karazhan.cpp b/src/server/scripts/EasternKingdoms/Karazhan/karazhan.cpp index af5fbcf005e..4835bafba3d 100644 --- a/src/server/scripts/EasternKingdoms/Karazhan/karazhan.cpp +++ b/src/server/scripts/EasternKingdoms/Karazhan/karazhan.cpp @@ -593,7 +593,7 @@ public: me->MonsterYell(SAY_DIALOG_MEDIVH_9, LANG_UNIVERSAL, NULL); return 10000; case 14: - me->SetVisibility(VISIBILITY_OFF); + me->SetVisible(false); me->ClearInCombat(); if (pMap->IsDungeon()) diff --git a/src/server/scripts/EasternKingdoms/MagistersTerrace/boss_priestess_delrissa.cpp b/src/server/scripts/EasternKingdoms/MagistersTerrace/boss_priestess_delrissa.cpp index 7f3b23142e2..74462736992 100644 --- a/src/server/scripts/EasternKingdoms/MagistersTerrace/boss_priestess_delrissa.cpp +++ b/src/server/scripts/EasternKingdoms/MagistersTerrace/boss_priestess_delrissa.cpp @@ -515,7 +515,7 @@ public: Eviscerate_Timer = 6000; Wait_Timer = 5000; InVanish = false; - me->SetVisibility(VISIBILITY_ON); + me->SetVisible(true); boss_priestess_lackey_commonAI::Reset(); } @@ -549,7 +549,7 @@ public: { DoCast(me->getVictim(), SPELL_BACKSTAB, true); DoCast(me->getVictim(), SPELL_KIDNEY_SHOT, true); - me->SetVisibility(VISIBILITY_ON); // ...? Hacklike + me->SetVisible(true); // ...? Hacklike InVanish = false; } else Wait_Timer -= diff; } diff --git a/src/server/scripts/EasternKingdoms/ScarletEnclave/chapter1.cpp b/src/server/scripts/EasternKingdoms/ScarletEnclave/chapter1.cpp index 81e29bf0092..abd9df4ef10 100644 --- a/src/server/scripts/EasternKingdoms/ScarletEnclave/chapter1.cpp +++ b/src/server/scripts/EasternKingdoms/ScarletEnclave/chapter1.cpp @@ -574,7 +574,7 @@ public: Phase = 2; break; case 2: - me->SetVisibility(VISIBILITY_OFF); + me->SetVisible(false); PhaseTimer = 2000; Phase = 3; break; diff --git a/src/server/scripts/EasternKingdoms/ScarletEnclave/chapter5.cpp b/src/server/scripts/EasternKingdoms/ScarletEnclave/chapter5.cpp index da3b4d0763c..69ea27b46cc 100644 --- a/src/server/scripts/EasternKingdoms/ScarletEnclave/chapter5.cpp +++ b/src/server/scripts/EasternKingdoms/ScarletEnclave/chapter5.cpp @@ -390,7 +390,7 @@ public: me->SetStandState(UNIT_STAND_STATE_STAND); me->Mount(25279); - me->SetVisibility(VISIBILITY_ON); + me->SetVisible(true); UpdateWorldState(me->GetMap(), WORLD_STATE_REMAINS, 0); //UpdateWorldState(me->GetMap(), WORLD_STATE_COUNTDOWN, 0); @@ -913,7 +913,7 @@ public: if (Creature* pTemp = Unit::GetCreature(*me, uiAlexandrosGUID)) // just hide him { DoScriptText(EMOTE_LIGHT_OF_DAWN09, pTemp); - pTemp->SetVisibility(VISIBILITY_OFF); + pTemp->SetVisible(false); } if (Creature* pTemp = Unit::GetCreature(*me, uiLichKingGUID)) { @@ -1321,7 +1321,7 @@ public: i->getSource()->CastSpell(i->getSource(), SPELL_THE_LIGHT_OF_DAWN_Q, false); } } - me->SetVisibility(VISIBILITY_OFF); // respawns another Darion for quest turn in + me->SetVisible(false); // respawns another Darion for quest turn in me->SummonCreature(NPC_HIGHLORD_DARION_MOGRAINE, me->GetPositionX(), me->GetPositionY(), me->GetPositionZ(), 0, TEMPSUMMON_TIMED_OR_CORPSE_DESPAWN, 180000); JumpToNextStep(1000); break; @@ -1648,7 +1648,7 @@ public: if (Creature* pTemp = Unit::GetCreature(*me, pGUID)) if (pTemp->isAlive()) { - pTemp->SetVisibility(VISIBILITY_OFF); + pTemp->SetVisible(false); pTemp->Kill(pTemp); } } diff --git a/src/server/scripts/EasternKingdoms/ScarletEnclave/the_scarlet_enclave.cpp b/src/server/scripts/EasternKingdoms/ScarletEnclave/the_scarlet_enclave.cpp index 77afd6ceba4..0dac2ac2fdd 100644 --- a/src/server/scripts/EasternKingdoms/ScarletEnclave/the_scarlet_enclave.cpp +++ b/src/server/scripts/EasternKingdoms/ScarletEnclave/the_scarlet_enclave.cpp @@ -44,7 +44,7 @@ public: void Reset() { me->setActive(true); - me->SetVisibility(VISIBILITY_OFF); + me->SetVisible(false); me->SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NON_ATTACKABLE); me->SetFlying(true); FlyBackTimer = 500; @@ -81,7 +81,7 @@ public: z += 2.5; x -= 2; y -= 1.5; me->GetMotionMaster()->MovePoint(0, x, y, z); me->SetUInt64Value(UNIT_FIELD_TARGET, plr->GetGUID()); - me->SetVisibility(VISIBILITY_ON); + me->SetVisible(true); FlyBackTimer = 4500; break; case 2: @@ -94,7 +94,7 @@ public: FlyBackTimer = 5000; break; case 3: - me->SetVisibility(VISIBILITY_OFF); + me->SetVisible(false); FlyBackTimer = 3000; break; case 4: diff --git a/src/server/scripts/EasternKingdoms/ScarletMonastery/boss_headless_horseman.cpp b/src/server/scripts/EasternKingdoms/ScarletMonastery/boss_headless_horseman.cpp index 893e381c821..3114b4c7f14 100644 --- a/src/server/scripts/EasternKingdoms/ScarletMonastery/boss_headless_horseman.cpp +++ b/src/server/scripts/EasternKingdoms/ScarletMonastery/boss_headless_horseman.cpp @@ -426,7 +426,7 @@ public: void FlyMode() { - me->SetVisibility(VISIBILITY_OFF); + me->SetVisible(false); me->SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NON_ATTACKABLE); me->AddUnitMovementFlag(MOVEMENTFLAG_ONTRANSPORT | MOVEMENTFLAG_LEVITATING); me->SetSpeed(MOVE_WALK,5.0f,true); @@ -447,7 +447,7 @@ public: switch (id) { case 0: - me->SetVisibility(VISIBILITY_ON); + me->SetVisible(true); break; case 1: { @@ -802,7 +802,7 @@ public: if (!debuffGUID) return; Unit *debuff = Unit::GetUnit((*me),debuffGUID); if (debuff) - debuff->SetVisibility(VISIBILITY_OFF); + debuff->SetVisible(false); debuffGUID = 0; } diff --git a/src/server/scripts/EasternKingdoms/SunwellPlateau/boss_felmyst.cpp b/src/server/scripts/EasternKingdoms/SunwellPlateau/boss_felmyst.cpp index f39364af81a..52d30755e63 100644 --- a/src/server/scripts/EasternKingdoms/SunwellPlateau/boss_felmyst.cpp +++ b/src/server/scripts/EasternKingdoms/SunwellPlateau/boss_felmyst.cpp @@ -512,7 +512,7 @@ public: (*i)->GetPosition(x, y, z); me->SummonCreature(MOB_DEAD, x, y, z, 0, TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT, 5000); } - (*i)->SetVisibility(VISIBILITY_OFF); + (*i)->SetVisible(false); (*i)->setDeathState(JUST_DIED); if ((*i)->getDeathState() == CORPSE) (*i)->RemoveCorpse(); diff --git a/src/server/scripts/EasternKingdoms/SunwellPlateau/boss_kalecgos.cpp b/src/server/scripts/EasternKingdoms/SunwellPlateau/boss_kalecgos.cpp index fcdec2b2b65..c0153a88582 100644 --- a/src/server/scripts/EasternKingdoms/SunwellPlateau/boss_kalecgos.cpp +++ b/src/server/scripts/EasternKingdoms/SunwellPlateau/boss_kalecgos.cpp @@ -163,7 +163,7 @@ public: { me->RemoveFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NON_ATTACKABLE + UNIT_FLAG_NOT_SELECTABLE); me->RemoveUnitMovementFlag(MOVEMENTFLAG_LEVITATING); - me->SetVisibility(VISIBILITY_ON); + me->SetVisible(true); me->SetStandState(UNIT_STAND_STATE_SLEEP); } me->SetFullHealth();//dunno why it does not resets health at evade.. @@ -185,7 +185,7 @@ public: void EnterEvadeMode() { bJustReset = true; - me->SetVisibility(VISIBILITY_OFF); + me->SetVisible(false); me->SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NON_ATTACKABLE + UNIT_FLAG_NOT_SELECTABLE); ScriptedAI::EnterEvadeMode(); } @@ -235,7 +235,7 @@ public: { me->RemoveFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NON_ATTACKABLE|UNIT_FLAG_NOT_SELECTABLE); me->RemoveUnitMovementFlag(MOVEMENTFLAG_LEVITATING); - me->SetVisibility(VISIBILITY_ON); + me->SetVisible(true); me->SetStandState(UNIT_STAND_STATE_SLEEP); ResetTimer = 10000; bJustReset = false; @@ -367,7 +367,7 @@ public: { if (type != POINT_MOTION_TYPE) return; - me->SetVisibility(VISIBILITY_OFF); + me->SetVisible(false); if (isFriendly) { me->setDeathState(JUST_DIED); diff --git a/src/server/scripts/EasternKingdoms/SunwellPlateau/boss_muru.cpp b/src/server/scripts/EasternKingdoms/SunwellPlateau/boss_muru.cpp index 7fde694879f..8bde996060b 100644 --- a/src/server/scripts/EasternKingdoms/SunwellPlateau/boss_muru.cpp +++ b/src/server/scripts/EasternKingdoms/SunwellPlateau/boss_muru.cpp @@ -239,7 +239,7 @@ public: Timer[TIMER_SENTINEL] = 31500; me->RemoveFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NOT_SELECTABLE); - me->SetVisibility(VISIBILITY_ON); + me->SetVisible(true); Summons.DespawnAll(); @@ -274,7 +274,7 @@ public: switch(summoned->GetEntry()) { case BOSS_ENTROPIUS: - me->SetVisibility(VISIBILITY_OFF); + me->SetVisible(false); break; case CREATURE_DARK_FIENDS: summoned->CastSpell(summoned,SPELL_DARKFIEND_VISUAL,false); diff --git a/src/server/scripts/EasternKingdoms/ZulAman/boss_akilzon.cpp b/src/server/scripts/EasternKingdoms/ZulAman/boss_akilzon.cpp index dfd3fb87868..e6da069f192 100644 --- a/src/server/scripts/EasternKingdoms/ZulAman/boss_akilzon.cpp +++ b/src/server/scripts/EasternKingdoms/ZulAman/boss_akilzon.cpp @@ -166,7 +166,7 @@ class boss_akilzon : public CreatureScript Unit* bird = Unit::GetUnit(*me,BirdGUIDs[i]); if (bird && bird->isAlive()) { - bird->SetVisibility(VISIBILITY_OFF); + bird->SetVisible(false); bird->setDeathState(JUST_DIED); } } diff --git a/src/server/scripts/EasternKingdoms/ZulAman/boss_zuljin.cpp b/src/server/scripts/EasternKingdoms/ZulAman/boss_zuljin.cpp index d70c4d6600c..34f0c100cb0 100644 --- a/src/server/scripts/EasternKingdoms/ZulAman/boss_zuljin.cpp +++ b/src/server/scripts/EasternKingdoms/ZulAman/boss_zuljin.cpp @@ -320,7 +320,7 @@ class boss_zuljin : public CreatureScript Temp = Unit::GetUnit(*me, SpiritGUID[i]); if (Temp) { - Temp->SetVisibility(VISIBILITY_OFF); + Temp->SetVisible(false); Temp->setDeathState(DEAD); } } diff --git a/src/server/scripts/EasternKingdoms/duskwood.cpp b/src/server/scripts/EasternKingdoms/duskwood.cpp index cbc4c45b70c..49591f7b18f 100644 --- a/src/server/scripts/EasternKingdoms/duskwood.cpp +++ b/src/server/scripts/EasternKingdoms/duskwood.cpp @@ -46,7 +46,7 @@ public: if (Unit* CorrupterSpeaker = pPlayer->SummonCreature(1,pPlayer->GetPositionX(),pPlayer->GetPositionY(),pPlayer->GetPositionZ()-1,0,TEMPSUMMON_TIMED_DESPAWN,15000)) { CorrupterSpeaker->SetName("Twilight Corrupter"); - CorrupterSpeaker->SetVisibility(VISIBILITY_ON); + CorrupterSpeaker->SetVisible(true); CorrupterSpeaker->MonsterYell("Come, $N. See what the Nightmare brings...",0,pPlayer->GetGUID()); } } |