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:107
@ QUEST_FISHING_DERBY
Definition: npcs_special.cpp:53
@ DATA_DERBY_FINISHED
Definition: npcs_special.cpp:55
std::pair< QuestRelations::const_iterator, QuestRelations::const_iterator > QuestRelationBounds
Definition: ObjectMgr.h:525
#define sObjectMgr
Definition: ObjectMgr.h:1635
virtual uint32 GetData(uint32) const
Definition: UnitAI.h:213
CreatureAI * AI() const
Definition: Creature.h:140
Definition: GossipDef.h:229
void ClearMenu()
Definition: GossipDef.cpp:310
QuestMenu & GetQuestMenu()
Definition: GossipDef.h:265
void SendQuestGiverRequestItems(Quest const *quest, ObjectGuid npcGUID, bool canComplete, bool closeOnCancel) const
Definition: GossipDef.cpp:752
uint32 GetEntry() const
Definition: Object.h:115
static ObjectGuid GetGUID(Object const *o)
Definition: Object.h:112
bool CanRewardQuest(Quest const *quest, bool msg)
Definition: PlayerQuest.cpp:384
PlayerMenu * PlayerTalkClass
Definition: Player.h:2239
Definition: QuestDef.h:210