33 TC_LOG_ERROR(
"network",
"WORLD: HandleAutoBankItemOpcode - Unit ({}) not found or you can't interact with him.",
_player->
PlayerTalkClass->GetInteractionData().SourceGuid.ToString());
49 if (dest.size() == 1 && dest[0].pos == item->
GetPos())
65 TC_LOG_ERROR(
"network",
"WORLD: HandleBankerActivateOpcode - {} not found or you can not interact with him.", packet.
Unit.
ToString());
84 TC_LOG_ERROR(
"network",
"WORLD: HandleAutoStoreBankItemOpcode - Unit ({}) not found or you can't interact with him.",
_player->
PlayerTalkClass->GetInteractionData().SourceGuid.ToString());
126 TC_LOG_ERROR(
"network",
"WORLD: HandleBuyBankSlotOpcode - {} not found or you can't interact with him.", packet.
Guid.
ToString());
135 TC_LOG_INFO(
"network",
"PLAYER: Buy bank bag slot, slot number = {}", slot);
156 TC_LOG_DEBUG(
"network",
"WORLD: HandleBuyReagentBankOpcode - {} not found or you can't interact with him.", reagentBank.
Banker.
ToString());
182 TC_LOG_DEBUG(
"network",
"WORLD: HandleReagentBankDepositOpcode - {} not found or you can't interact with him.", reagentBank.
Banker.
ToString());
193 bool anyDeposited =
false;
205 if (dest.size() == 1 && dest[0].pos == item->GetPos())
222 TC_LOG_DEBUG(
"network",
"WORLD: HandleAutoBankReagentOpcode - {} not found or you can't interact with him.",
_player->
PlayerTalkClass->GetInteractionData().SourceGuid.ToString());
244 if (dest.size() == 1 && dest[0].pos == item->
GetPos())
258 TC_LOG_DEBUG(
"network",
"WORLD: HandleAutoBankReagentOpcode - {} not found or you can't interact with him.",
_player->
PlayerTalkClass->GetInteractionData().SourceGuid.ToString());
305 npcInteraction.
Npc = guid;
DB2Storage< BankBagSlotPricesEntry > sBankBagSlotPricesStore("BankBagSlotPrices.db2", &BankBagSlotPricesLoadInfo::Instance)
@ EQUIP_ERR_REAGENT_BANK_FULL
@ EQUIP_ERR_REAGENT_BANK_LOCKED
#define TC_LOG_DEBUG(filterType__,...)
#define TC_LOG_ERROR(filterType__,...)
#define TC_LOG_INFO(filterType__,...)
std::vector< ItemPosCount > ItemPosCountVec
std::string ToString() const
static ObjectGuid GetGUID(Object const *o)
void SendEquipError(InventoryResult msg, Item const *item1=nullptr, Item const *item2=nullptr, uint32 itemId=0) const
void ItemRemovedQuestCheck(uint32 entry, uint32 count)
bool ModifyMoney(int64 amount, bool sendError=true)
Creature * GetNPCIfCanInteractWith(ObjectGuid const &guid, NPCFlags npcFlags, NPCFlags2 npcFlags2) const
Item * BankItem(ItemPosCountVec const &dest, Item *pItem, bool update)
InventoryResult CanStoreItem(uint8 bag, uint8 slot, ItemPosCountVec &dest, Item *pItem, bool swap=false) const
uint8 GetBankBagSlotCount() const
InventoryResult CanBankItem(uint8 bag, uint8 slot, ItemPosCountVec &dest, Item *pItem, bool swap, bool not_loading=true, bool reagentBankOnly=false) const
Item * StoreItem(ItemPosCountVec const &pos, Item *pItem, bool update)
Item * GetItemByPos(uint16 pos) const
static bool IsReagentBankPos(uint16 pos)
void UpdateCriteria(CriteriaType type, uint64 miscValue1=0, uint64 miscValue2=0, uint64 miscValue3=0, WorldObject *ref=nullptr)
std::vector< Item * > GetCraftingReagentItemsToDeposit()
bool IsReagentBankUnlocked() const
void ItemAddedQuestCheck(uint32 entry, uint32 count, Optional< bool > boundItemFlagRequirement={}, bool *hadBoundItemObjective=nullptr)
static bool IsBankPos(uint16 pos)
void RemoveItem(uint8 bag, uint8 slot, bool update)
void SetBankBagSlotCount(uint8 count)
std::unique_ptr< PlayerMenu > PlayerTalkClass
bool HasEnoughMoney(uint64 amount) const
void RemoveAurasByType(AuraType auraType, std::function< bool(AuraApplication const *)> const &check, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT)
std::string const & GetName() const
PlayerInteractionType InteractionType
WorldPacket const * Write() override
void HandleAutoBankReagentOpcode(WorldPackets::Bank::AutoBankReagent &autoBankRegent)
void HandleBuyBankSlotOpcode(WorldPackets::Bank::BuyBankSlot &packet)
Player * GetPlayer() const
void HandleBuyReagentBankOpcode(WorldPackets::Bank::ReagentBank &reagentBank)
void HandleReagentBankDepositOpcode(WorldPackets::Bank::ReagentBank &reagentBank)
void SendPacket(WorldPacket const *packet, bool forced=false)
Send a packet to the client.
void HandleAutoBankItemOpcode(WorldPackets::Bank::AutoBankItem &packet)
void SendShowBank(ObjectGuid guid)
void HandleBankerActivateOpcode(WorldPackets::NPC::Hello &packet)
void HandleAutoStoreBankReagentOpcode(WorldPackets::Bank::AutoStoreBankReagent &autoStoreBankReagent)
bool CanUseBank(ObjectGuid bankerGUID=ObjectGuid::Empty) const
void HandleAutoStoreBankItemOpcode(WorldPackets::Bank::AutoStoreBankItem &packet)