* Rename InstanceData to InstanceScript
* Rename *mgr to their new names in scripts project * Mass convert all the scripts (NEEDS THOROUGH TESTING, because it was done automatically) Please, report bugs on issue tracker. --HG-- branch : trunk rename : src/server/game/Instances/InstanceData.cpp => src/server/game/Instances/InstanceScript.cpp rename : src/server/game/Instances/InstanceData.h => src/server/game/Instances/InstanceScript.h
This commit is contained in:
@@ -1003,7 +1003,7 @@ public:
|
||||
if (!pPrisoner || !pPrisoner->isAlive())
|
||||
return true;
|
||||
|
||||
Quest const* qInfo = objmgr.GetQuestTemplate(QUEST_PRISONERS_OF_WYRMSKULL);
|
||||
Quest const* qInfo = sObjectMgr.GetQuestTemplate(QUEST_PRISONERS_OF_WYRMSKULL);
|
||||
if (qInfo)
|
||||
{
|
||||
//TODO: prisoner should help player for a short period of time
|
||||
|
||||
@@ -380,7 +380,7 @@ public:
|
||||
bool OnQuestAccept(Player* /*pPlayer*/, Creature* pCreature, const Quest *_Quest)
|
||||
{
|
||||
if (_Quest->GetQuestId() == QUEST_CLUCK)
|
||||
CAST_AI(npc_chicken_cluckAI, pCreature->AI())->Reset();
|
||||
CAST_AI(npc_chicken_cluck::npc_chicken_cluckAI, pCreature->AI())->Reset();
|
||||
|
||||
return true;
|
||||
}
|
||||
@@ -388,7 +388,7 @@ public:
|
||||
bool OnQuestComplete(Player* /*pPlayer*/, Creature* pCreature, const Quest *_Quest)
|
||||
{
|
||||
if (_Quest->GetQuestId() == QUEST_CLUCK)
|
||||
CAST_AI(npc_chicken_cluckAI, pCreature->AI())->Reset();
|
||||
CAST_AI(npc_chicken_cluck::npc_chicken_cluckAI, pCreature->AI())->Reset();
|
||||
|
||||
return true;
|
||||
}
|
||||
@@ -676,7 +676,7 @@ public:
|
||||
bool OnQuestAccept(Player* pPlayer, Creature* pCreature, Quest const *quest)
|
||||
{
|
||||
if ((quest->GetQuestId() == 6624) || (quest->GetQuestId() == 6622))
|
||||
CAST_AI(npc_doctorAI, pCreature->AI())->BeginEvent(pPlayer);
|
||||
CAST_AI(npc_doctor::npc_doctorAI, pCreature->AI())->BeginEvent(pPlayer);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user