64 if (
_items[slot] == itemGuid && !update)
@ EQUIP_ERR_NOT_ENOUGH_MONEY
@ TRADE_STATUS_UNACCEPTED
static ObjectGuid const Empty
static ObjectGuid GetGUID(Object const *o)
WorldSession * GetSession() const
TradeData * GetTradeData() const
Item * GetItemByGuid(ObjectGuid guid) const
bool HasEnoughMoney(uint64 amount) const
Item * GetSpellCastItem() const
TradeSlots GetTradeSlotForItem(ObjectGuid itemGuid) const
void SetSpell(uint32 spell_id, Item *castItem=nullptr)
void SetMoney(uint64 money)
bool HasItem(ObjectGuid itemGuid) const
void SetItem(TradeSlots slot, Item *item, bool update=false)
void SetAccepted(bool state, bool forTrader=false)
Item * GetItem(TradeSlots slot) const
ObjectGuid _items[TRADE_SLOT_COUNT]
TradeData * GetTraderData() const
ObjectGuid _spellCastItem
void Update(bool for_trader=true) const
void UpdateServerStateIndex()
void SendTradeStatus(WorldPackets::Trade::TradeStatus &status)
void SendUpdateTrade(bool trader_data=true)