134 {
137
138
139 if (creature)
140 {
142 pObjectQIR =
sObjectMgr->GetCreatureQuestInvolvedRelationBounds(creature->
GetEntry());
143 }
144 else
145 return true;
146
149
150 for (QuestRelations::const_iterator i = pObjectQIR.first; i != pObjectQIR.second; ++i)
151 {
152 uint32 quest_id = i->second;
154 if (!quest)
155 continue;
156
158 {
161 }
162 else
163 {
166 }
167 }
168
169 return true;
170 }
std::uint32_t uint32
Definition: Define.h:108
std::pair< QuestRelations::const_iterator, QuestRelations::const_iterator > QuestRelationBounds
Definition: ObjectMgr.h:519
#define sObjectMgr
Definition: ObjectMgr.h:1640
@ QUEST_FISHING_DERBY
Definition: npcs_special.cpp:53
@ DATA_DERBY_FINISHED
Definition: npcs_special.cpp:55
virtual uint32 GetData(uint32) const
Definition: UnitAI.h:202
CreatureAI * AI() const
Definition: Creature.h:136
Definition: GossipDef.h:228
void ClearMenu()
Definition: GossipDef.cpp:312
QuestMenu & GetQuestMenu()
Definition: GossipDef.h:264
void SendQuestGiverRequestItems(Quest const *quest, ObjectGuid npcGUID, bool canComplete, bool closeOnCancel) const
Definition: GossipDef.cpp:752
uint32 GetEntry() const
Definition: Object.h:109
static ObjectGuid GetGUID(Object const *o)
Definition: Object.h:106
bool CanRewardQuest(Quest const *quest, bool msg)
Definition: PlayerQuest.cpp:384
PlayerMenu * PlayerTalkClass
Definition: Player.h:2201
Definition: QuestDef.h:207