436 bool need_save =
false;
437 if (
uint64 creator = fields[2].GetUInt64())
439 if (
uint64 giftCreator = fields[3].GetUInt64())
446 if ((proto->
GetDuration() == 0) != (duration == 0))
453 if (tokens.size() == proto->
Effects.size())
465 std::string enchants = fields[8].
GetString();
483 SetText(fields[12].GetString());
485 if (
uint32 transmogEntry = fields[13].GetUInt32())
497 Tokenizer bonusListIDs(fields[20].GetString(),
' ');
498 for (
char const* token : bonusListIDs)
Definition: UpdateFields.h:47
void Execute(const char *sql)
Definition: DatabaseWorkerPool.h:87
Definition: UpdateFields.h:44
uint32 GetUInt32Value(uint16 index) const
Definition: Object.cpp:300
Definition: ItemTemplate.h:135
void _Create(ObjectGuid const &guid)
Definition: Object.cpp:125
void Initialize(ItemTemplate const *proto)
Definition: Item.cpp:1941
bool IsSoulBound() const
Definition: Item.h:277
void SetInt32Value(uint16 index, int32 value)
Definition: Object.cpp:983
Definition: UpdateFields.h:49
Definition: UpdateFields.h:53
uint32 GetDuration() const
Definition: ItemTemplate.h:699
void SetUInt32Value(uint16 index, uint32 value)
Definition: Object.cpp:996
void SetCount(uint32 value)
Definition: Item.cpp:794
void SetGuidValue(uint16 index, ObjectGuid const &value)
Definition: Object.cpp:1120
void SetEntry(uint32 entry)
Definition: Object.h:108
int32 GetItemRandomPropertyId() const
Definition: Item.h:342
Definition: PreparedStatement.h:74
void UpdateItemSuffixFactor()
Definition: Item.cpp:678
Definition: ItemTemplate.h:119
std::vector< ItemEffectEntry const * > Effects
Definition: ItemTemplate.h:707
void AddBonuses(uint32 bonusListID)
Definition: Item.cpp:1931
unsigned long atoul(char const *str)
Definition: Common.h:90
#define MAX_ENCHANTMENT_OFFSET
Definition: Item.h:204
uint32_t uint32
Definition: Define.h:150
uint64_t uint64
Definition: Define.h:149
BonusData _bonusData
Definition: Item.h:444
uint16 GetUInt16() const
Definition: Field.h:108
PreparedStatement * GetPreparedStatement(PreparedStatementIndex index)
Definition: DatabaseWorkerPool.h:263
Definition: UpdateFields.h:55
void setUInt32(const uint8 index, const uint32 value)
Definition: PreparedStatement.cpp:115
void SetModifier(ItemModifier modifier, uint32 value)
Definition: Item.cpp:1909
uint32 MaxDurability
Definition: ItemTemplate.h:706
void SetSpellCharges(uint8 index, int32 value)
Definition: Item.h:365
void ApplyModFlag(uint16 index, uint32 flag, bool apply)
Definition: Object.cpp:1247
ItemBondingType GetBonding() const
Definition: ItemTemplate.h:683
Definition: ItemTemplate.h:647
virtual void SetObjectScale(float scale)
Definition: Object.h:111
uint32 GetUInt32() const
Definition: Field.h:146
void setUInt64(const uint8 index, const uint64 value)
Definition: PreparedStatement.cpp:124
uint8_t uint8
Definition: Define.h:152
void SetOwnerGUID(ObjectGuid guid)
Definition: Item.h:273
CharacterDatabaseWorkerPool CharacterDatabase
Accessor to the character database.
Definition: DatabaseEnv.cpp:21
Definition: UpdateFields.h:45
Definition: UpdateFields.h:54
void _LoadIntoDataField(std::string const &data, uint32 startOffset, uint32 count)
Definition: Object.cpp:966
std::string GetString() const
Definition: Field.h:276
Definition: UpdateFields.h:52
Definition: UpdateFields.h:50
Definition: CharacterDatabase.h:144
bool IsEmpty() const
Definition: ObjectGuid.h:242
void SetText(std::string const &text)
Definition: Item.h:356
ItemTemplate const * GetTemplate() const
Definition: Item.cpp:547