mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-25 19:31:59 +01:00
Scripts/Northrend: Remove now deprecated (remade with SmartAI) script for npc_inquisitor_hallard
This commit is contained in:
@@ -0,0 +1 @@
|
||||
DELETE FROM `script_waypoint` WHERE `entry`=27316;
|
||||
@@ -69,206 +69,7 @@ public:
|
||||
}
|
||||
};
|
||||
|
||||
/*######
|
||||
## npc_inquisitor_hallard. Quest 12321
|
||||
######*/
|
||||
|
||||
enum eInquisitor
|
||||
{
|
||||
NPC_GODFREY = 27577,
|
||||
SPELL_HOLY_FIRE = 39323,
|
||||
|
||||
SAY_WP_0 = -1800014,
|
||||
SAY_WP_1 = -1800015,
|
||||
SAY_WP_2 = -1800016,
|
||||
SAY_WP_3 = -1800017,
|
||||
SAY_WP_4 = -1800018,
|
||||
SAY_WP_5 = -1800019,
|
||||
SAY_WP_6 = -1800020,
|
||||
SAY_WP_7 = -1800021,
|
||||
SAY_WP_8 = -1800022,
|
||||
SAY_WP_9 = -1800023,
|
||||
SAY_WP_10 = -1800024,
|
||||
SAY_WP_11 = -1800025,
|
||||
SAY_WP_12 = -1800026,
|
||||
SAY_WP_13 = -1800027,
|
||||
SAY_WP_14 = -1800028,
|
||||
SAY_WP_15 = -1800029,
|
||||
SAY_WP_16 = -1800030,
|
||||
SAY_WP_17 = -1800031,
|
||||
SAY_WP_18 = -1800032,
|
||||
SAY_WP_19 = -1800033,
|
||||
SAY_WP_20 = -1800034,
|
||||
SAY_WP_21 = -1800035,
|
||||
SAY_WP_22 = -1800036,
|
||||
SAY_WP_23 = -1800037,
|
||||
SAY_WP_24 = -1800038,
|
||||
SAY_WP_25 = -1800039,
|
||||
SAY_WP_26 = -1800040,
|
||||
SAY_WP_27 = -1800041
|
||||
};
|
||||
|
||||
#define QUEST_A_RIGHTEOUS_SERMON 12321
|
||||
|
||||
class npc_inquisitor_hallard : public CreatureScript
|
||||
{
|
||||
public:
|
||||
npc_inquisitor_hallard() : CreatureScript("npc_inquisitor_hallard") { }
|
||||
|
||||
struct npc_inquisitor_hallardAI : public npc_escortAI
|
||||
{
|
||||
npc_inquisitor_hallardAI(Creature* pCreature) : npc_escortAI(pCreature) { }
|
||||
|
||||
bool Completed;
|
||||
|
||||
void WaypointReached(uint32 i)
|
||||
{
|
||||
Player* pPlayer = GetPlayerForEscort();
|
||||
if (!pPlayer)
|
||||
return;
|
||||
Creature* Godfrey = me->FindNearestCreature(NPC_GODFREY, 50, true);
|
||||
if (!Godfrey)
|
||||
return;
|
||||
switch (i)
|
||||
{
|
||||
case 1:
|
||||
DoScriptText(SAY_WP_1, me, Godfrey);
|
||||
me->SetUInt64Value(UNIT_FIELD_TARGET, Godfrey->GetGUID());
|
||||
me->HandleEmoteCommand(5);
|
||||
me->RemoveFlag(UNIT_NPC_FLAGS, UNIT_NPC_FLAG_QUESTGIVER);
|
||||
me->RemoveFlag(UNIT_NPC_FLAGS, UNIT_NPC_FLAG_GOSSIP);
|
||||
break;
|
||||
case 2:
|
||||
Godfrey->HandleEmoteCommand(434);
|
||||
DoScriptText(SAY_WP_2, me, Godfrey);
|
||||
me->HandleEmoteCommand(15);
|
||||
break;
|
||||
case 3:
|
||||
DoScriptText(SAY_WP_3, me, Godfrey);
|
||||
me->HandleEmoteCommand(1);
|
||||
break;
|
||||
case 4:
|
||||
DoScriptText(SAY_WP_4, Godfrey);
|
||||
break;
|
||||
case 5:
|
||||
DoScriptText(SAY_WP_5, Godfrey);
|
||||
break;
|
||||
case 6:
|
||||
DoScriptText(SAY_WP_6, Godfrey);
|
||||
break;
|
||||
case 7:
|
||||
DoScriptText(SAY_WP_7, me, Godfrey);
|
||||
me->HandleEmoteCommand(1);
|
||||
break;
|
||||
case 8:
|
||||
DoScriptText(SAY_WP_8, me, Godfrey);
|
||||
me->HandleEmoteCommand(16);
|
||||
break;
|
||||
case 9:
|
||||
DoScriptText(SAY_WP_9, me, Godfrey);
|
||||
me->HandleEmoteCommand(5);
|
||||
break;
|
||||
case 10:
|
||||
DoScriptText(SAY_WP_10, me, Godfrey);
|
||||
DoCast(Godfrey, SPELL_HOLY_FIRE);
|
||||
break;
|
||||
case 11:
|
||||
Godfrey->HandleEmoteCommand(434);
|
||||
DoScriptText(SAY_WP_11, Godfrey);
|
||||
break;
|
||||
case 12:
|
||||
DoScriptText(SAY_WP_12, me, Godfrey);
|
||||
DoCast(Godfrey, SPELL_HOLY_FIRE);
|
||||
break;
|
||||
case 13:
|
||||
DoScriptText(SAY_WP_13, me, Godfrey);
|
||||
DoCast(Godfrey, SPELL_HOLY_FIRE);
|
||||
break;
|
||||
case 14:
|
||||
Godfrey->HandleEmoteCommand(434);
|
||||
DoScriptText(SAY_WP_14, Godfrey);
|
||||
break;
|
||||
case 15:
|
||||
DoScriptText(SAY_WP_15, me, Godfrey);
|
||||
DoCast(Godfrey, SPELL_HOLY_FIRE);
|
||||
break;
|
||||
case 16:
|
||||
DoScriptText(SAY_WP_16, me, Godfrey);
|
||||
break;
|
||||
case 17:
|
||||
DoScriptText(SAY_WP_17, me, Godfrey);
|
||||
break;
|
||||
case 18:
|
||||
DoScriptText(SAY_WP_18, Godfrey);
|
||||
break;
|
||||
case 19:
|
||||
DoScriptText(SAY_WP_19, me, Godfrey);
|
||||
break;
|
||||
case 20:
|
||||
DoScriptText(SAY_WP_20, Godfrey);
|
||||
break;
|
||||
case 21:
|
||||
DoScriptText(SAY_WP_21, Godfrey);
|
||||
break;
|
||||
case 22:
|
||||
DoScriptText(SAY_WP_22, me, Godfrey);
|
||||
break;
|
||||
case 23:
|
||||
DoScriptText(SAY_WP_23, Godfrey);
|
||||
break;
|
||||
case 24:
|
||||
DoScriptText(SAY_WP_24, Godfrey);
|
||||
break;
|
||||
case 25:
|
||||
DoScriptText(SAY_WP_25, me, Godfrey);
|
||||
break;
|
||||
case 26:
|
||||
DoScriptText(SAY_WP_26, me);
|
||||
me->SetUInt64Value(UNIT_FIELD_TARGET, pPlayer->GetGUID());
|
||||
break;
|
||||
case 27:
|
||||
DoScriptText(SAY_WP_27, me, Godfrey);
|
||||
me->SetUInt64Value(UNIT_FIELD_TARGET, Godfrey->GetGUID());
|
||||
Completed = true;
|
||||
if (pPlayer)
|
||||
pPlayer->GroupEventHappens(QUEST_A_RIGHTEOUS_SERMON, me);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
void Reset()
|
||||
{
|
||||
Completed = false;
|
||||
}
|
||||
|
||||
void UpdateAI(const uint32 diff)
|
||||
{
|
||||
npc_escortAI::UpdateAI(diff);
|
||||
}
|
||||
};
|
||||
|
||||
bool OnQuestAccept(Player* pPlayer, Creature* pCreature, Quest const* quest)
|
||||
{
|
||||
if (quest->GetQuestId() == QUEST_A_RIGHTEOUS_SERMON)
|
||||
{
|
||||
DoScriptText(SAY_WP_0, pCreature, pPlayer);
|
||||
if (npc_escortAI* pEscortAI = CAST_AI(npc_inquisitor_hallard::npc_inquisitor_hallardAI, pCreature->AI()))
|
||||
{
|
||||
pEscortAI->Start(true, false, pPlayer->GetGUID(), 0, true);
|
||||
pCreature->GetMotionMaster()->MovePoint(0, 3801.543f, -679.350f, 213.75f);
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
CreatureAI *GetAI(Creature *creature) const
|
||||
{
|
||||
return new npc_inquisitor_hallardAI(creature);
|
||||
}
|
||||
};
|
||||
|
||||
void AddSC_dragonblight()
|
||||
{
|
||||
new npc_alexstrasza_wr_gate;
|
||||
new npc_inquisitor_hallard;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user