Merge branch 'master' of github.com:TrinityCore/TrinityCore into 4.3.4
Conflicts: src/server/game/Globals/ObjectMgr.cpp
This commit is contained in:
commit
5bb19ce017
27 files changed
+164291
-120
No files matched your search
@@ -91,13 +91,8 @@ public:
|
||||
|
||||
// ok, normal (creature/GO starting) quest
|
||||
if (player->CanAddQuest(quest, true))
|
||||
{
|
||||
player->AddQuestAndCheckCompletion(quest, NULL);
|
||||
|
||||
if (player->CanCompleteQuest(entry))
|
||||
player->CompleteQuest(entry);
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
@@ -24,17 +24,13 @@ Script Data End */
|
||||
|
||||
#include "ScriptMgr.h"
|
||||
#include "ScriptedCreature.h"
|
||||
#include "ScriptedGossip.h"
|
||||
#include "gnomeregan.h"
|
||||
#include "ScriptedEscortAI.h"
|
||||
#include "ScriptedGossip.h"
|
||||
#include "Player.h"
|
||||
|
||||
#define GOSSIP_START_EVENT "I am ready to being"
|
||||
#include "gnomeregan.h"
|
||||
|
||||
enum BlastmasterEmi
|
||||
{
|
||||
GOSSIP_TEXT_EMI = 1693,
|
||||
|
||||
SAY_BLASTMASTER_0 = 0,
|
||||
SAY_BLASTMASTER_1 = 1,
|
||||
SAY_BLASTMASTER_2 = 2,
|
||||
@@ -93,34 +89,6 @@ public:
|
||||
return GetInstanceAI<npc_blastmaster_emi_shortfuseAI>(creature);
|
||||
}
|
||||
|
||||
bool OnGossipSelect(Player* player, Creature* creature, uint32 /*sender*/, uint32 action) OVERRIDE
|
||||
{
|
||||
player->PlayerTalkClass->ClearMenus();
|
||||
if (action == GOSSIP_ACTION_INFO_DEF+1)
|
||||
{
|
||||
if (npc_escortAI* pEscortAI = CAST_AI(npc_blastmaster_emi_shortfuse::npc_blastmaster_emi_shortfuseAI, creature->AI()))
|
||||
pEscortAI->Start(true, false, player->GetGUID());
|
||||
|
||||
creature->setFaction(player->getFaction());
|
||||
creature->AI()->SetData(1, 0);
|
||||
|
||||
player->CLOSE_GOSSIP_MENU();
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
bool OnGossipHello(Player* player, Creature* creature) OVERRIDE
|
||||
{
|
||||
InstanceScript* instance = creature->GetInstanceScript();
|
||||
|
||||
if (instance && instance->GetData(TYPE_EVENT) == NOT_STARTED)
|
||||
player->ADD_GOSSIP_ITEM(GOSSIP_ICON_CHAT, GOSSIP_START_EVENT, GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF+1);
|
||||
|
||||
player->SEND_GOSSIP_MENU(GOSSIP_TEXT_EMI, creature->GetGUID());
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
struct npc_blastmaster_emi_shortfuseAI : public npc_escortAI
|
||||
{
|
||||
npc_blastmaster_emi_shortfuseAI(Creature* creature) : npc_escortAI(creature)
|
||||
@@ -152,6 +120,19 @@ public:
|
||||
}
|
||||
}
|
||||
|
||||
void sGossipSelect(Player* player, uint32 /*menuId*/, uint32 gossipListId) OVERRIDE
|
||||
{
|
||||
if (gossipListId == 0)
|
||||
{
|
||||
Start(true, false, player->GetGUID());
|
||||
|
||||
me->setFaction(player->getFaction());
|
||||
SetData(1, 0);
|
||||
|
||||
player->PlayerTalkClass->SendCloseGossip();
|
||||
}
|
||||
}
|
||||
|
||||
void NextStep(uint32 uiTimerStep, bool bNextStep = true, uint8 uiPhaseStep = 0)
|
||||
{
|
||||
uiTimer = uiTimerStep;
|
||||
|
||||
+1
-1
@@ -586,7 +586,7 @@ class instance_trial_of_the_crusader : public InstanceMapScript
|
||||
case 5060:
|
||||
case 5070:
|
||||
case 5080:
|
||||
return NPC_LICH_KING_1;
|
||||
return NPC_LICH_KING;
|
||||
break;
|
||||
case 120:
|
||||
case 122:
|
||||
|
||||
+2
-2
@@ -275,7 +275,7 @@ class boss_lich_king_toc : public CreatureScript
|
||||
if (!_instance)
|
||||
return;
|
||||
|
||||
if (_instance->GetData(TYPE_EVENT_NPC) != NPC_LICH_KING_1)
|
||||
if (_instance->GetData(TYPE_EVENT_NPC) != NPC_LICH_KING)
|
||||
return;
|
||||
|
||||
_updateTimer = _instance->GetData(TYPE_EVENT_TIMER);
|
||||
@@ -764,7 +764,7 @@ class npc_tirion_toc : public CreatureScript
|
||||
case 5005:
|
||||
_updateTimer = 8*IN_MILLISECONDS;
|
||||
_instance->SetData(TYPE_EVENT, 5010);
|
||||
me->SummonCreature(NPC_LICH_KING_1, ToCCommonLoc[2].GetPositionX(), ToCCommonLoc[2].GetPositionY(), ToCCommonLoc[2].GetPositionZ(), 5);
|
||||
me->SummonCreature(NPC_LICH_KING, ToCCommonLoc[2].GetPositionX(), ToCCommonLoc[2].GetPositionY(), ToCCommonLoc[2].GetPositionZ(), 5);
|
||||
break;
|
||||
case 5020:
|
||||
Talk(SAY_STAGE_4_03);
|
||||
|
||||
+1
-2
@@ -184,8 +184,7 @@ enum CreatureIds
|
||||
NPC_FIZZLEBANG = 35458,
|
||||
NPC_GARROSH = 34995,
|
||||
NPC_VARIAN = 34990,
|
||||
NPC_LICH_KING_0 = 16980,
|
||||
NPC_LICH_KING_1 = 35877,
|
||||
NPC_LICH_KING = 35877,
|
||||
|
||||
NPC_THRALL = 34994,
|
||||
NPC_PROUDMOORE = 34992,
|
||||
|
||||
Reference in new issue
Block a user