Eluna: Remove on quest end hook because it doesnt function correctly and there is a replacement

This commit is contained in:
Rochet2
2014-09-15 10:04:42 +03:00
parent d9ff37d78d
commit 28a06b88fc
3 changed files with 24 additions and 24 deletions

View File

@@ -1403,16 +1403,16 @@ bool Eluna::OnQuestAccept(Player* pPlayer, Creature* pCreature, Quest const* pQu
return true;
}
bool Eluna::OnQuestComplete(Player* pPlayer, Creature* pCreature, Quest const* pQuest)
{
ENTRY_BEGIN(CreatureEventBindings, pCreature->GetEntry(), CREATURE_EVENT_ON_QUEST_COMPLETE, return false);
Push(L, pPlayer);
Push(L, pCreature);
Push(L, pQuest);
ENTRY_EXECUTE(0);
ENDCALL();
return true;
}
//bool Eluna::OnQuestComplete(Player* pPlayer, Creature* pCreature, Quest const* pQuest)
//{
// ENTRY_BEGIN(CreatureEventBindings, pCreature->GetEntry(), CREATURE_EVENT_ON_QUEST_COMPLETE, return false);
// Push(L, pPlayer);
// Push(L, pCreature);
// Push(L, pQuest);
// ENTRY_EXECUTE(0);
// ENDCALL();
// return true;
//}
bool Eluna::OnQuestReward(Player* pPlayer, Creature* pCreature, Quest const* pQuest)
{
@@ -1822,16 +1822,16 @@ bool Eluna::OnQuestAccept(Player* pPlayer, GameObject* pGameObject, Quest const*
return true;
}
bool Eluna::OnQuestComplete(Player* pPlayer, GameObject* pGameObject, Quest const* pQuest)
{
ENTRY_BEGIN(GameObjectEventBindings, pGameObject->GetEntry(), GAMEOBJECT_EVENT_ON_QUEST_COMPLETE, return false);
Push(L, pPlayer);
Push(L, pGameObject);
Push(L, pQuest);
ENTRY_EXECUTE(0);
ENDCALL();
return true;
}
//bool Eluna::OnQuestComplete(Player* pPlayer, GameObject* pGameObject, Quest const* pQuest)
//{
// ENTRY_BEGIN(GameObjectEventBindings, pGameObject->GetEntry(), GAMEOBJECT_EVENT_ON_QUEST_COMPLETE, return false);
// Push(L, pPlayer);
// Push(L, pGameObject);
// Push(L, pQuest);
// ENTRY_EXECUTE(0);
// ENDCALL();
// return true;
//}
void Eluna::UpdateAI(GameObject* pGameObject, uint32 diff)
{