131 LootTemplateMap::const_iterator tab;
146 Field* fields = result->Fetch();
151 float chance = fields[3].
GetFloat();
152 bool needsquest = fields[4].
GetBool();
158 if (groupid >= 1 << 7)
160 TC_LOG_ERROR(
"sql.sql",
"Table '%s' Entry %d Item %d: GroupId (%u) must be less %u - skipped",
GetName(), entry, item, groupid, 1 << 7);
166 if (!storeitem->
IsValid(*
this, entry))
188 tab->second->AddEntry(storeitem);
191 while (result->NextRow());
float GetFloat() const
Definition: Field.h:222
QueryResult PQuery(Format &&sql, T *conn, Args &&...args)
Definition: DatabaseWorkerPool.h:165
Definition: LootMgr.h:134
Class used to access individual fields of database query result.
Definition: Field.h:56
WorldDatabaseWorkerPool WorldDatabase
Accessor to the world database.
Definition: DatabaseEnv.cpp:20
uint8 GetUInt8() const
Definition: Field.h:70
void Verify() const
Definition: LootMgr.cpp:121
LootTemplateMap m_LootTemplates
Definition: LootMgr.h:244
uint32_t uint32
Definition: Define.h:150
std::shared_ptr< ResultSet > QueryResult
Definition: QueryResult.h:61
uint16_t uint16
Definition: Define.h:151
uint16 GetUInt16() const
Definition: Field.h:108
char const * GetName() const
Definition: LootMgr.h:237
void Clear()
Definition: LootMgr.cpp:112
bool IsValid(LootStore const &store, uint32 entry) const
Definition: LootMgr.cpp:302
Definition: LootMgr.h:250
uint32 GetUInt32() const
Definition: Field.h:146
uint8_t uint8
Definition: Define.h:152
#define TC_LOG_ERROR(filterType__,...)
Definition: Log.h:207
bool GetBool() const
Definition: Field.h:65