333{
335 {
336 LOG_ERROR(
"sql.sql",
"Table '{}' Entry {} Item {}: GroupId ({}) must be less {} - skipped", store.GetName(), entry,
itemid,
groupid, 1 << 7);
337 return false;
338 }
339
341 {
342 LOG_ERROR(
"sql.sql",
"Table '{}' Entry {} Item {}: wrong MinCount ({}) - skipped", store.GetName(), entry,
itemid,
mincount);
343 return false;
344 }
345
347 {
349 if (!proto)
350 {
351 LOG_ERROR(
"sql.sql",
"Table '{}' Entry {} Item {}: item entry not listed in `item_template` - skipped", store.GetName(), entry,
itemid);
352 return false;
353 }
354
356 {
357 LOG_ERROR(
"sql.sql",
"Table '{}' Entry {} Item {}: equal-chanced grouped entry, but group not defined - skipped", store.GetName(), entry,
itemid);
358 return false;
359 }
360
362 {
363 LOG_ERROR(
"sql.sql",
"Table '{}' Entry {} Item {}: low chance ({}) - skipped",
365 return false;
366 }
367
369 {
371 return false;
372 }
373 }
374 else
375 {
377 LOG_ERROR(
"sql.sql",
"Table '{}' Entry {} Item {}: quest required will be ignored", store.GetName(), entry,
itemid);
379 {
380 LOG_ERROR(
"sql.sql",
"Table '{}' Entry {} Item {}: zero chance is specified for a reference, skipped", store.GetName(), entry,
itemid);
381 return false;
382 }
383 }
384 return true;
385}
#define LOG_ERROR(filterType__,...)
Definition: Log.h:157
std::int32_t int32
Definition: Define.h:103
#define sObjectMgr
Definition: ObjectMgr.h:1635
Definition: ItemTemplate.h:619