Core/WorldPacket: Add support for generic (type 5) GOs sparkling if objective
of quest. Author: NoFantasy --HG-- branch : trunk
This commit is contained in:
@@ -872,6 +872,12 @@ bool GameObject::ActivateToQuest(Player *pTarget) const
|
||||
}
|
||||
break;
|
||||
}
|
||||
case GAMEOBJECT_TYPE_GENERIC:
|
||||
{
|
||||
if (pTarget->GetQuestStatus(GetGOInfo()->_generic.questID) == QUEST_STATUS_INCOMPLETE || GetGOInfo()->_generic.questID == -1)
|
||||
return true;
|
||||
break;
|
||||
}
|
||||
case GAMEOBJECT_TYPE_GOOBER:
|
||||
{
|
||||
if (pTarget->GetQuestStatus(GetGOInfo()->goober.questId) == QUEST_STATUS_INCOMPLETE || GetGOInfo()->goober.questId == -1)
|
||||
|
||||
@@ -686,6 +686,10 @@ void Object::_BuildValuesUpdate(uint8 updatetype, ByteBuffer * data, UpdateMask
|
||||
*data << uint16(9);
|
||||
*data << uint16(-1);
|
||||
break;
|
||||
case GAMEOBJECT_TYPE_GENERIC:
|
||||
*data << uint16(8);
|
||||
*data << uint16(-1);
|
||||
break;
|
||||
case GAMEOBJECT_TYPE_GOOBER:
|
||||
*data << uint16(9);
|
||||
*data << uint16(-1);
|
||||
|
||||
@@ -7876,6 +7876,15 @@ void ObjectMgr::LoadGameObjectForQuests()
|
||||
}
|
||||
break;
|
||||
}
|
||||
case GAMEOBJECT_TYPE_GENERIC:
|
||||
{
|
||||
if (goInfo->_generic.questID) //quests objects
|
||||
{
|
||||
mGameObjectForQuestSet.insert(go_entry);
|
||||
count++;
|
||||
}
|
||||
break;
|
||||
}
|
||||
case GAMEOBJECT_TYPE_GOOBER:
|
||||
{
|
||||
if (goInfo->goober.questId) //quests objects
|
||||
|
||||
Reference in New Issue
Block a user