mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-25 06:36:24 +00:00
refactor(Core/Game): restyle game lib with astyle (#3466)
This commit is contained in:
@@ -49,8 +49,8 @@ Quest::Quest(Field* questRecord)
|
||||
|
||||
for (int i = 0; i < QUEST_REWARDS_COUNT; ++i)
|
||||
{
|
||||
RewardItemId[i] = questRecord[27+i*2].GetUInt32();
|
||||
RewardItemIdCount[i] = questRecord[28+i*2].GetUInt16();
|
||||
RewardItemId[i] = questRecord[27 + i * 2].GetUInt32();
|
||||
RewardItemIdCount[i] = questRecord[28 + i * 2].GetUInt16();
|
||||
|
||||
if (RewardItemId[i])
|
||||
++_rewItemsCount;
|
||||
@@ -58,8 +58,8 @@ Quest::Quest(Field* questRecord)
|
||||
|
||||
for (int i = 0; i < QUEST_REWARD_CHOICES_COUNT; ++i)
|
||||
{
|
||||
RewardChoiceItemId[i] = questRecord[35+i*2].GetUInt32();
|
||||
RewardChoiceItemCount[i] = questRecord[36+i*2].GetUInt16();
|
||||
RewardChoiceItemId[i] = questRecord[35 + i * 2].GetUInt32();
|
||||
RewardChoiceItemCount[i] = questRecord[36 + i * 2].GetUInt16();
|
||||
|
||||
if (RewardChoiceItemId[i])
|
||||
++_rewChoiceItemsCount;
|
||||
@@ -67,9 +67,9 @@ Quest::Quest(Field* questRecord)
|
||||
|
||||
for (int i = 0; i < QUEST_REPUTATIONS_COUNT; ++i)
|
||||
{
|
||||
RewardFactionId[i] = questRecord[47+i*3].GetUInt16();
|
||||
RewardFactionValueId[i] = questRecord[48+i*3].GetInt32();
|
||||
RewardFactionValueIdOverride[i] = questRecord[49+i*3].GetInt32();
|
||||
RewardFactionId[i] = questRecord[47 + i * 3].GetUInt16();
|
||||
RewardFactionValueId[i] = questRecord[48 + i * 3].GetInt32();
|
||||
RewardFactionValueIdOverride[i] = questRecord[49 + i * 3].GetInt32();
|
||||
}
|
||||
|
||||
POIContinent = questRecord[62].GetUInt16();
|
||||
@@ -84,8 +84,8 @@ Quest::Quest(Field* questRecord)
|
||||
|
||||
for (int i = 0; i < QUEST_OBJECTIVES_COUNT; ++i)
|
||||
{
|
||||
RequiredNpcOrGo[i] = questRecord[71+i].GetInt32();
|
||||
RequiredNpcOrGoCount[i] = questRecord[75+i].GetUInt16();
|
||||
RequiredNpcOrGo[i] = questRecord[71 + i].GetInt32();
|
||||
RequiredNpcOrGoCount[i] = questRecord[75 + i].GetUInt16();
|
||||
ObjectiveText[i] = questRecord[100 + i].GetString();
|
||||
|
||||
if (RequiredNpcOrGo[i])
|
||||
@@ -94,8 +94,8 @@ Quest::Quest(Field* questRecord)
|
||||
|
||||
for (int i = 0; i < QUEST_SOURCE_ITEM_IDS_COUNT; ++i)
|
||||
{
|
||||
ItemDrop[i] = questRecord[79+i].GetUInt32();
|
||||
ItemDropQuantity[i] = questRecord[83+i].GetUInt16();
|
||||
ItemDrop[i] = questRecord[79 + i].GetUInt32();
|
||||
ItemDropQuantity[i] = questRecord[83 + i].GetUInt16();
|
||||
}
|
||||
|
||||
for (int i = 0; i < QUEST_ITEM_OBJECTIVES_COUNT; ++i)
|
||||
@@ -117,17 +117,17 @@ Quest::Quest(Field* questRecord)
|
||||
OfferRewardEmote[i] = 0;
|
||||
OfferRewardEmoteDelay[i] = 0;
|
||||
}
|
||||
|
||||
|
||||
_eventIdForQuest = 0;
|
||||
}
|
||||
|
||||
void Quest::LoadQuestDetails(Field* fields)
|
||||
{
|
||||
for (int i = 0; i < QUEST_EMOTE_COUNT; ++i)
|
||||
DetailsEmote[i] = fields[1+i].GetUInt16();
|
||||
DetailsEmote[i] = fields[1 + i].GetUInt16();
|
||||
|
||||
for (int i = 0; i < QUEST_EMOTE_COUNT; ++i)
|
||||
DetailsEmoteDelay[i] = fields[5+i].GetUInt32();
|
||||
DetailsEmoteDelay[i] = fields[5 + i].GetUInt32();
|
||||
}
|
||||
|
||||
void Quest::LoadQuestRequestItems(Field* fields)
|
||||
|
||||
@@ -192,198 +192,198 @@ struct QuestOfferRewardLocale
|
||||
class Quest
|
||||
{
|
||||
friend class ObjectMgr;
|
||||
public:
|
||||
Quest(Field* questRecord);
|
||||
void LoadQuestDetails(Field* fields);
|
||||
void LoadQuestRequestItems(Field* fields);
|
||||
void LoadQuestOfferReward(Field* fields);
|
||||
void LoadQuestTemplateAddon(Field* fields);
|
||||
public:
|
||||
Quest(Field* questRecord);
|
||||
void LoadQuestDetails(Field* fields);
|
||||
void LoadQuestRequestItems(Field* fields);
|
||||
void LoadQuestOfferReward(Field* fields);
|
||||
void LoadQuestTemplateAddon(Field* fields);
|
||||
|
||||
uint32 XPValue(Player* player) const;
|
||||
uint32 XPValue(Player* player) const;
|
||||
|
||||
bool HasFlag(uint32 flag) const { return (Flags & flag) != 0; }
|
||||
void SetFlag(uint32 flag) { Flags |= flag; }
|
||||
bool HasFlag(uint32 flag) const { return (Flags & flag) != 0; }
|
||||
void SetFlag(uint32 flag) { Flags |= flag; }
|
||||
|
||||
bool HasSpecialFlag(uint32 flag) const { return (SpecialFlags & flag) != 0; }
|
||||
void SetSpecialFlag(uint32 flag) { SpecialFlags |= flag; }
|
||||
bool HasSpecialFlag(uint32 flag) const { return (SpecialFlags & flag) != 0; }
|
||||
void SetSpecialFlag(uint32 flag) { SpecialFlags |= flag; }
|
||||
|
||||
// table data accessors:
|
||||
uint32 GetQuestId() const { return Id; }
|
||||
uint32 GetQuestMethod() const { return Method; }
|
||||
int32 GetZoneOrSort() const { return ZoneOrSort; }
|
||||
uint32 GetMinLevel() const { return MinLevel; }
|
||||
uint32 GetMaxLevel() const { return MaxLevel; }
|
||||
int32 GetQuestLevel() const { return Level; }
|
||||
uint32 GetType() const { return Type; }
|
||||
uint32 GetRequiredClasses() const { return RequiredClasses; }
|
||||
uint32 GetAllowableRaces() const { return AllowableRaces; }
|
||||
uint32 GetRequiredSkill() const { return RequiredSkillId; }
|
||||
uint32 GetRequiredSkillValue() const { return RequiredSkillPoints; }
|
||||
uint32 GetRepObjectiveFaction() const { return RequiredFactionId1; }
|
||||
int32 GetRepObjectiveValue() const { return RequiredFactionValue1; }
|
||||
uint32 GetRepObjectiveFaction2() const { return RequiredFactionId2; }
|
||||
int32 GetRepObjectiveValue2() const { return RequiredFactionValue2; }
|
||||
uint32 GetRequiredMinRepFaction() const { return RequiredMinRepFaction; }
|
||||
int32 GetRequiredMinRepValue() const { return RequiredMinRepValue; }
|
||||
uint32 GetRequiredMaxRepFaction() const { return RequiredMaxRepFaction; }
|
||||
int32 GetRequiredMaxRepValue() const { return RequiredMaxRepValue; }
|
||||
uint32 GetSuggestedPlayers() const { return SuggestedPlayers; }
|
||||
uint32 GetTimeAllowed() const { return TimeAllowed; }
|
||||
int32 GetPrevQuestId() const { return PrevQuestId; }
|
||||
uint32 GetNextQuestId() const { return NextQuestId; }
|
||||
int32 GetExclusiveGroup() const { return ExclusiveGroup; }
|
||||
uint32 GetNextQuestInChain() const { return RewardNextQuest; }
|
||||
uint32 GetCharTitleId() const { return RewardTitleId; }
|
||||
uint32 GetPlayersSlain() const { return RequiredPlayerKills; }
|
||||
uint32 GetBonusTalents() const { return RewardTalents; }
|
||||
int32 GetRewArenaPoints() const {return RewardArenaPoints; }
|
||||
uint32 GetXPId() const { return RewardXPDifficulty; }
|
||||
uint32 GetSrcItemId() const { return StartItem; }
|
||||
uint32 GetSrcItemCount() const { return StartItemCount; }
|
||||
uint32 GetSrcSpell() const { return SourceSpellid; }
|
||||
std::string const& GetTitle() const { return Title; }
|
||||
std::string const& GetDetails() const { return Details; }
|
||||
std::string const& GetObjectives() const { return Objectives; }
|
||||
std::string const& GetOfferRewardText() const { return OfferRewardText; }
|
||||
std::string const& GetRequestItemsText() const { return RequestItemsText; }
|
||||
std::string const& GetAreaDescription() const { return AreaDescription; }
|
||||
std::string const& GetCompletedText() const { return CompletedText; }
|
||||
int32 GetRewOrReqMoney() const;
|
||||
uint32 GetRewHonorAddition() const { return RewardHonor; }
|
||||
float GetRewHonorMultiplier() const { return RewardKillHonor; }
|
||||
uint32 GetRewMoneyMaxLevel() const; // use in XP calculation at client
|
||||
uint32 GetRewSpell() const { return RewardDisplaySpell; }
|
||||
int32 GetRewSpellCast() const { return RewardSpell; }
|
||||
uint32 GetRewMailTemplateId() const { return RewardMailTemplateId; }
|
||||
uint32 GetRewMailDelaySecs() const { return RewardMailDelay; }
|
||||
uint32 GetRewMailSenderEntry() const { return RewardMailSenderEntry; }
|
||||
uint32 GetPOIContinent() const { return POIContinent; }
|
||||
float GetPOIx() const { return POIx; }
|
||||
float GetPOIy() const { return POIy; }
|
||||
uint32 GetPointOpt() const { return POIPriority; }
|
||||
uint32 GetIncompleteEmote() const { return EmoteOnIncomplete; }
|
||||
uint32 GetCompleteEmote() const { return EmoteOnComplete; }
|
||||
bool IsRepeatable() const { return SpecialFlags & QUEST_SPECIAL_FLAGS_REPEATABLE; }
|
||||
bool IsAutoAccept() const;
|
||||
bool IsAutoComplete() const;
|
||||
uint32 GetFlags() const { return Flags; }
|
||||
bool IsDaily() const { return Flags & QUEST_FLAGS_DAILY; }
|
||||
bool IsWeekly() const { return Flags & QUEST_FLAGS_WEEKLY; }
|
||||
bool IsMonthly() const { return SpecialFlags & QUEST_SPECIAL_FLAGS_MONTHLY; }
|
||||
bool IsSeasonal() const { return (ZoneOrSort == -QUEST_SORT_SEASONAL || ZoneOrSort == -QUEST_SORT_SPECIAL || ZoneOrSort == -QUEST_SORT_LUNAR_FESTIVAL || ZoneOrSort == -QUEST_SORT_MIDSUMMER || ZoneOrSort == -QUEST_SORT_BREWFEST || ZoneOrSort == -QUEST_SORT_LOVE_IS_IN_THE_AIR || ZoneOrSort == -QUEST_SORT_NOBLEGARDEN) && !IsRepeatable(); }
|
||||
bool IsDailyOrWeekly() const { return Flags & (QUEST_FLAGS_DAILY | QUEST_FLAGS_WEEKLY); }
|
||||
bool IsRaidQuest(Difficulty difficulty) const;
|
||||
bool IsAllowedInRaid(Difficulty difficulty) const;
|
||||
bool IsDFQuest() const { return SpecialFlags & QUEST_SPECIAL_FLAGS_DF_QUEST; }
|
||||
bool IsPVPQuest() const { return Type == QUEST_TYPE_PVP; }
|
||||
uint32 CalculateHonorGain(uint8 level) const;
|
||||
// table data accessors:
|
||||
uint32 GetQuestId() const { return Id; }
|
||||
uint32 GetQuestMethod() const { return Method; }
|
||||
int32 GetZoneOrSort() const { return ZoneOrSort; }
|
||||
uint32 GetMinLevel() const { return MinLevel; }
|
||||
uint32 GetMaxLevel() const { return MaxLevel; }
|
||||
int32 GetQuestLevel() const { return Level; }
|
||||
uint32 GetType() const { return Type; }
|
||||
uint32 GetRequiredClasses() const { return RequiredClasses; }
|
||||
uint32 GetAllowableRaces() const { return AllowableRaces; }
|
||||
uint32 GetRequiredSkill() const { return RequiredSkillId; }
|
||||
uint32 GetRequiredSkillValue() const { return RequiredSkillPoints; }
|
||||
uint32 GetRepObjectiveFaction() const { return RequiredFactionId1; }
|
||||
int32 GetRepObjectiveValue() const { return RequiredFactionValue1; }
|
||||
uint32 GetRepObjectiveFaction2() const { return RequiredFactionId2; }
|
||||
int32 GetRepObjectiveValue2() const { return RequiredFactionValue2; }
|
||||
uint32 GetRequiredMinRepFaction() const { return RequiredMinRepFaction; }
|
||||
int32 GetRequiredMinRepValue() const { return RequiredMinRepValue; }
|
||||
uint32 GetRequiredMaxRepFaction() const { return RequiredMaxRepFaction; }
|
||||
int32 GetRequiredMaxRepValue() const { return RequiredMaxRepValue; }
|
||||
uint32 GetSuggestedPlayers() const { return SuggestedPlayers; }
|
||||
uint32 GetTimeAllowed() const { return TimeAllowed; }
|
||||
int32 GetPrevQuestId() const { return PrevQuestId; }
|
||||
uint32 GetNextQuestId() const { return NextQuestId; }
|
||||
int32 GetExclusiveGroup() const { return ExclusiveGroup; }
|
||||
uint32 GetNextQuestInChain() const { return RewardNextQuest; }
|
||||
uint32 GetCharTitleId() const { return RewardTitleId; }
|
||||
uint32 GetPlayersSlain() const { return RequiredPlayerKills; }
|
||||
uint32 GetBonusTalents() const { return RewardTalents; }
|
||||
int32 GetRewArenaPoints() const {return RewardArenaPoints; }
|
||||
uint32 GetXPId() const { return RewardXPDifficulty; }
|
||||
uint32 GetSrcItemId() const { return StartItem; }
|
||||
uint32 GetSrcItemCount() const { return StartItemCount; }
|
||||
uint32 GetSrcSpell() const { return SourceSpellid; }
|
||||
std::string const& GetTitle() const { return Title; }
|
||||
std::string const& GetDetails() const { return Details; }
|
||||
std::string const& GetObjectives() const { return Objectives; }
|
||||
std::string const& GetOfferRewardText() const { return OfferRewardText; }
|
||||
std::string const& GetRequestItemsText() const { return RequestItemsText; }
|
||||
std::string const& GetAreaDescription() const { return AreaDescription; }
|
||||
std::string const& GetCompletedText() const { return CompletedText; }
|
||||
int32 GetRewOrReqMoney() const;
|
||||
uint32 GetRewHonorAddition() const { return RewardHonor; }
|
||||
float GetRewHonorMultiplier() const { return RewardKillHonor; }
|
||||
uint32 GetRewMoneyMaxLevel() const; // use in XP calculation at client
|
||||
uint32 GetRewSpell() const { return RewardDisplaySpell; }
|
||||
int32 GetRewSpellCast() const { return RewardSpell; }
|
||||
uint32 GetRewMailTemplateId() const { return RewardMailTemplateId; }
|
||||
uint32 GetRewMailDelaySecs() const { return RewardMailDelay; }
|
||||
uint32 GetRewMailSenderEntry() const { return RewardMailSenderEntry; }
|
||||
uint32 GetPOIContinent() const { return POIContinent; }
|
||||
float GetPOIx() const { return POIx; }
|
||||
float GetPOIy() const { return POIy; }
|
||||
uint32 GetPointOpt() const { return POIPriority; }
|
||||
uint32 GetIncompleteEmote() const { return EmoteOnIncomplete; }
|
||||
uint32 GetCompleteEmote() const { return EmoteOnComplete; }
|
||||
bool IsRepeatable() const { return SpecialFlags & QUEST_SPECIAL_FLAGS_REPEATABLE; }
|
||||
bool IsAutoAccept() const;
|
||||
bool IsAutoComplete() const;
|
||||
uint32 GetFlags() const { return Flags; }
|
||||
bool IsDaily() const { return Flags & QUEST_FLAGS_DAILY; }
|
||||
bool IsWeekly() const { return Flags & QUEST_FLAGS_WEEKLY; }
|
||||
bool IsMonthly() const { return SpecialFlags & QUEST_SPECIAL_FLAGS_MONTHLY; }
|
||||
bool IsSeasonal() const { return (ZoneOrSort == -QUEST_SORT_SEASONAL || ZoneOrSort == -QUEST_SORT_SPECIAL || ZoneOrSort == -QUEST_SORT_LUNAR_FESTIVAL || ZoneOrSort == -QUEST_SORT_MIDSUMMER || ZoneOrSort == -QUEST_SORT_BREWFEST || ZoneOrSort == -QUEST_SORT_LOVE_IS_IN_THE_AIR || ZoneOrSort == -QUEST_SORT_NOBLEGARDEN) && !IsRepeatable(); }
|
||||
bool IsDailyOrWeekly() const { return Flags & (QUEST_FLAGS_DAILY | QUEST_FLAGS_WEEKLY); }
|
||||
bool IsRaidQuest(Difficulty difficulty) const;
|
||||
bool IsAllowedInRaid(Difficulty difficulty) const;
|
||||
bool IsDFQuest() const { return SpecialFlags & QUEST_SPECIAL_FLAGS_DF_QUEST; }
|
||||
bool IsPVPQuest() const { return Type == QUEST_TYPE_PVP; }
|
||||
uint32 CalculateHonorGain(uint8 level) const;
|
||||
|
||||
// multiple values
|
||||
std::string ObjectiveText[QUEST_OBJECTIVES_COUNT];
|
||||
uint32 RequiredItemId[QUEST_ITEM_OBJECTIVES_COUNT];
|
||||
uint32 RequiredItemCount[QUEST_ITEM_OBJECTIVES_COUNT];
|
||||
uint32 ItemDrop[QUEST_SOURCE_ITEM_IDS_COUNT];
|
||||
uint32 ItemDropQuantity[QUEST_SOURCE_ITEM_IDS_COUNT];
|
||||
int32 RequiredNpcOrGo[QUEST_OBJECTIVES_COUNT]; // >0 Creature <0 Gameobject
|
||||
uint32 RequiredNpcOrGoCount[QUEST_OBJECTIVES_COUNT];
|
||||
uint32 RewardChoiceItemId[QUEST_REWARD_CHOICES_COUNT];
|
||||
uint32 RewardChoiceItemCount[QUEST_REWARD_CHOICES_COUNT];
|
||||
uint32 RewardItemId[QUEST_REWARDS_COUNT];
|
||||
uint32 RewardItemIdCount[QUEST_REWARDS_COUNT];
|
||||
uint32 RewardFactionId[QUEST_REPUTATIONS_COUNT];
|
||||
int32 RewardFactionValueId[QUEST_REPUTATIONS_COUNT];
|
||||
int32 RewardFactionValueIdOverride[QUEST_REPUTATIONS_COUNT];
|
||||
uint32 DetailsEmote[QUEST_EMOTE_COUNT];
|
||||
uint32 DetailsEmoteDelay[QUEST_EMOTE_COUNT];
|
||||
uint32 OfferRewardEmote[QUEST_EMOTE_COUNT];
|
||||
uint32 OfferRewardEmoteDelay[QUEST_EMOTE_COUNT];
|
||||
// multiple values
|
||||
std::string ObjectiveText[QUEST_OBJECTIVES_COUNT];
|
||||
uint32 RequiredItemId[QUEST_ITEM_OBJECTIVES_COUNT];
|
||||
uint32 RequiredItemCount[QUEST_ITEM_OBJECTIVES_COUNT];
|
||||
uint32 ItemDrop[QUEST_SOURCE_ITEM_IDS_COUNT];
|
||||
uint32 ItemDropQuantity[QUEST_SOURCE_ITEM_IDS_COUNT];
|
||||
int32 RequiredNpcOrGo[QUEST_OBJECTIVES_COUNT]; // >0 Creature <0 Gameobject
|
||||
uint32 RequiredNpcOrGoCount[QUEST_OBJECTIVES_COUNT];
|
||||
uint32 RewardChoiceItemId[QUEST_REWARD_CHOICES_COUNT];
|
||||
uint32 RewardChoiceItemCount[QUEST_REWARD_CHOICES_COUNT];
|
||||
uint32 RewardItemId[QUEST_REWARDS_COUNT];
|
||||
uint32 RewardItemIdCount[QUEST_REWARDS_COUNT];
|
||||
uint32 RewardFactionId[QUEST_REPUTATIONS_COUNT];
|
||||
int32 RewardFactionValueId[QUEST_REPUTATIONS_COUNT];
|
||||
int32 RewardFactionValueIdOverride[QUEST_REPUTATIONS_COUNT];
|
||||
uint32 DetailsEmote[QUEST_EMOTE_COUNT];
|
||||
uint32 DetailsEmoteDelay[QUEST_EMOTE_COUNT];
|
||||
uint32 OfferRewardEmote[QUEST_EMOTE_COUNT];
|
||||
uint32 OfferRewardEmoteDelay[QUEST_EMOTE_COUNT];
|
||||
|
||||
uint32 GetReqItemsCount() const { return _reqItemsCount; }
|
||||
uint32 GetReqCreatureOrGOcount() const { return _reqCreatureOrGOcount; }
|
||||
uint32 GetRewChoiceItemsCount() const { return _rewChoiceItemsCount; }
|
||||
uint32 GetRewItemsCount() const { return _rewItemsCount; }
|
||||
uint32 GetReqItemsCount() const { return _reqItemsCount; }
|
||||
uint32 GetReqCreatureOrGOcount() const { return _reqCreatureOrGOcount; }
|
||||
uint32 GetRewChoiceItemsCount() const { return _rewChoiceItemsCount; }
|
||||
uint32 GetRewItemsCount() const { return _rewItemsCount; }
|
||||
|
||||
typedef std::vector<int32> PrevQuests;
|
||||
PrevQuests prevQuests;
|
||||
typedef std::vector<uint32> PrevChainQuests;
|
||||
PrevChainQuests prevChainQuests;
|
||||
typedef std::vector<int32> PrevQuests;
|
||||
PrevQuests prevQuests;
|
||||
typedef std::vector<uint32> PrevChainQuests;
|
||||
PrevChainQuests prevChainQuests;
|
||||
|
||||
WorldPacket queryData; // pussywizard
|
||||
void InitializeQueryData(); // pussywizard
|
||||
WorldPacket queryData; // pussywizard
|
||||
void InitializeQueryData(); // pussywizard
|
||||
|
||||
void SetEventIdForQuest(uint16 eventId) { _eventIdForQuest = eventId; }
|
||||
uint16 GetEventIdForQuest() const { return _eventIdForQuest; }
|
||||
void SetEventIdForQuest(uint16 eventId) { _eventIdForQuest = eventId; }
|
||||
uint16 GetEventIdForQuest() const { return _eventIdForQuest; }
|
||||
|
||||
// cached data
|
||||
private:
|
||||
uint32 _reqItemsCount;
|
||||
uint32 _reqCreatureOrGOcount;
|
||||
uint32 _rewChoiceItemsCount;
|
||||
uint32 _rewItemsCount;
|
||||
// cached data
|
||||
private:
|
||||
uint32 _reqItemsCount;
|
||||
uint32 _reqCreatureOrGOcount;
|
||||
uint32 _rewChoiceItemsCount;
|
||||
uint32 _rewItemsCount;
|
||||
|
||||
uint16 _eventIdForQuest; // pussywizard
|
||||
uint16 _eventIdForQuest; // pussywizard
|
||||
|
||||
// table data
|
||||
protected:
|
||||
uint32 Id;
|
||||
uint32 Method;
|
||||
int32 ZoneOrSort;
|
||||
uint32 MinLevel;
|
||||
int32 Level;
|
||||
uint32 Type;
|
||||
uint32 AllowableRaces;
|
||||
uint32 RequiredFactionId1;
|
||||
int32 RequiredFactionValue1;
|
||||
uint32 RequiredFactionId2;
|
||||
int32 RequiredFactionValue2;
|
||||
uint32 SuggestedPlayers;
|
||||
uint32 TimeAllowed;
|
||||
uint32 Flags;
|
||||
uint32 RewardTitleId;
|
||||
uint32 RequiredPlayerKills;
|
||||
uint32 RewardTalents;
|
||||
int32 RewardArenaPoints;
|
||||
uint32 RewardNextQuest;
|
||||
uint32 RewardXPDifficulty;
|
||||
uint32 StartItem;
|
||||
std::string Title;
|
||||
std::string Details;
|
||||
std::string Objectives;
|
||||
std::string OfferRewardText;
|
||||
std::string RequestItemsText;
|
||||
std::string AreaDescription;
|
||||
std::string CompletedText;
|
||||
uint32 RewardHonor;
|
||||
float RewardKillHonor;
|
||||
int32 RewardMoney;
|
||||
uint32 RewardBonusMoney;
|
||||
uint32 RewardDisplaySpell;
|
||||
int32 RewardSpell;
|
||||
uint32 POIContinent;
|
||||
float POIx;
|
||||
float POIy;
|
||||
uint32 POIPriority;
|
||||
uint32 EmoteOnIncomplete;
|
||||
uint32 EmoteOnComplete;
|
||||
// table data
|
||||
protected:
|
||||
uint32 Id;
|
||||
uint32 Method;
|
||||
int32 ZoneOrSort;
|
||||
uint32 MinLevel;
|
||||
int32 Level;
|
||||
uint32 Type;
|
||||
uint32 AllowableRaces;
|
||||
uint32 RequiredFactionId1;
|
||||
int32 RequiredFactionValue1;
|
||||
uint32 RequiredFactionId2;
|
||||
int32 RequiredFactionValue2;
|
||||
uint32 SuggestedPlayers;
|
||||
uint32 TimeAllowed;
|
||||
uint32 Flags;
|
||||
uint32 RewardTitleId;
|
||||
uint32 RequiredPlayerKills;
|
||||
uint32 RewardTalents;
|
||||
int32 RewardArenaPoints;
|
||||
uint32 RewardNextQuest;
|
||||
uint32 RewardXPDifficulty;
|
||||
uint32 StartItem;
|
||||
std::string Title;
|
||||
std::string Details;
|
||||
std::string Objectives;
|
||||
std::string OfferRewardText;
|
||||
std::string RequestItemsText;
|
||||
std::string AreaDescription;
|
||||
std::string CompletedText;
|
||||
uint32 RewardHonor;
|
||||
float RewardKillHonor;
|
||||
int32 RewardMoney;
|
||||
uint32 RewardBonusMoney;
|
||||
uint32 RewardDisplaySpell;
|
||||
int32 RewardSpell;
|
||||
uint32 POIContinent;
|
||||
float POIx;
|
||||
float POIy;
|
||||
uint32 POIPriority;
|
||||
uint32 EmoteOnIncomplete;
|
||||
uint32 EmoteOnComplete;
|
||||
|
||||
// quest_template_addon table (custom data)
|
||||
uint32 MaxLevel = 0;
|
||||
uint32 RequiredClasses = 0;
|
||||
uint32 SourceSpellid = 0;
|
||||
int32 PrevQuestId = 0;
|
||||
uint32 NextQuestId = 0;
|
||||
int32 ExclusiveGroup = 0;
|
||||
uint32 RewardMailTemplateId = 0;
|
||||
uint32 RewardMailDelay = 0;
|
||||
uint32 RequiredSkillId = 0;
|
||||
uint32 RequiredSkillPoints = 0;
|
||||
uint32 RequiredMinRepFaction = 0;
|
||||
int32 RequiredMinRepValue = 0;
|
||||
uint32 RequiredMaxRepFaction = 0;
|
||||
int32 RequiredMaxRepValue = 0;
|
||||
uint32 StartItemCount = 0;
|
||||
uint32 RewardMailSenderEntry = 0;
|
||||
uint32 SpecialFlags = 0; // custom flags, not sniffed/WDB
|
||||
// quest_template_addon table (custom data)
|
||||
uint32 MaxLevel = 0;
|
||||
uint32 RequiredClasses = 0;
|
||||
uint32 SourceSpellid = 0;
|
||||
int32 PrevQuestId = 0;
|
||||
uint32 NextQuestId = 0;
|
||||
int32 ExclusiveGroup = 0;
|
||||
uint32 RewardMailTemplateId = 0;
|
||||
uint32 RewardMailDelay = 0;
|
||||
uint32 RequiredSkillId = 0;
|
||||
uint32 RequiredSkillPoints = 0;
|
||||
uint32 RequiredMinRepFaction = 0;
|
||||
int32 RequiredMinRepValue = 0;
|
||||
uint32 RequiredMaxRepFaction = 0;
|
||||
int32 RequiredMaxRepValue = 0;
|
||||
uint32 StartItemCount = 0;
|
||||
uint32 RewardMailSenderEntry = 0;
|
||||
uint32 SpecialFlags = 0; // custom flags, not sniffed/WDB
|
||||
};
|
||||
|
||||
struct QuestStatusData
|
||||
|
||||
Reference in New Issue
Block a user