53 TC_LOG_DEBUG(
"network",
"WORLD: HandleTabardVendorActivateOpcode - {} not found or you can not interact with him.", tabardVendorActivate.
Vendor.
ToString());
71 npcInteraction.
Npc = guid;
91 npcInteraction.
Npc = guid;
102 TC_LOG_DEBUG(
"network",
"WorldSession::SendTrainerList - {} not found or you can not interact with him.", packet.
Unit.
ToString());
109 TC_LOG_DEBUG(
"network",
"WorldSession::SendTrainerList - Creature id {} has no trainer data.", npc->
GetEntry());
121 TC_LOG_DEBUG(
"network",
"WorldSession::SendTrainerList - trainer spells not found for trainer {} id {}", npc->
GetGUID().
ToString(), trainerId);
164 TC_LOG_DEBUG(
"network",
"WORLD: HandleGossipHelloOpcode - {} not found or you can not interact with him.", packet.
Unit.
ToString());
237 TC_LOG_DEBUG(
"network",
"WORLD: HandleGossipSelectOptionOpcode - Script reloaded while in use, ignoring and set new scipt id");
280 TC_LOG_DEBUG(
"network",
"WORLD: HandleSpiritHealerActivateOpcode - {} not found or you can not interact with him.", packet.
Healer.
ToString());
312 if (corpseGrave != ghostGrave)
325 TC_LOG_DEBUG(
"network",
"WORLD: HandleBinderActivateOpcode - {} not found or you can not interact with him.", packet.
Unit.
ToString());
339 if (
GetPlayer()->GetMap()->Instanceable())
386 TC_LOG_DEBUG(
"network",
"WORLD: CMSG_REPAIR_ITEM: Npc {}, Item {}, UseGuildBank: {}",
392 TC_LOG_DEBUG(
"network",
"WORLD: HandleRepairItemOpcode - {} not found or you can not interact with him.", packet.
NpcGUID.
ToString());
DB2Storage< FactionTemplateEntry > sFactionTemplateStore("FactionTemplate.db2", &FactionTemplateLoadInfo::Instance)
#define TC_LOG_DEBUG(filterType__,...)
@ PET_SAVE_LAST_STABLE_SLOT
@ UNIT_NPC_FLAG_TABARDDESIGNER
@ UNIT_NPC_FLAG_SPIRIT_HEALER
@ UNIT_NPC_FLAG_INNKEEPER
constexpr std::underlying_type< E >::type AsUnderlyingType(E enumValue)
virtual bool OnGossipHello(Player *)
virtual bool OnGossipSelectCode(Player *, uint32, uint32, char const *)
virtual bool OnGossipSelect(Player *, uint32, uint32)
void SetHomePosition(float x, float y, float z, float o)
uint32 GetTrainerId() const
uint32 GetScriptId() const
CreatureMovementData const & GetMovementTemplate() const
virtual bool OnGossipSelect(Player *, uint32, uint32)
virtual bool OnGossipSelectCode(Player *, uint32, uint32, char const *)
GameObjectAI * AI() const
uint32 GetScriptId() const
std::string ToString() const
bool IsGameObject() const
bool IsCreatureOrVehicle() const
static ObjectGuid GetGUID(Object const *o)
void OnGossipSelect(WorldObject *source, int32 gossipOptionId, uint32 menuId)
Creature * GetNPCIfCanInteractWith(ObjectGuid const &guid, NPCFlags npcFlags, NPCFlags2 npcFlags2) const
bool TeleportTo(uint32 mapid, float x, float y, float z, float orientation, TeleportToOptions options=TELE_TO_NONE, Optional< uint32 > instanceId={})
GameObject * GetGameObjectIfCanInteractWith(ObjectGuid const &guid) const
void DurabilityLossAll(double percent, bool inventory)
void DurabilityRepair(uint16 pos, bool takeCost, float discountMod)
void SpawnCorpseBones(bool triggerSave=true)
void SendPreparedGossip(WorldObject *source)
float GetReputationPriceDiscount(Creature const *creature) const
void DurabilityRepairAll(bool takeCost, float discountMod, bool guildBank)
void SetStableMaster(ObjectGuid stableMaster)
void SendAreaSpiritHealerTime(Unit *spiritHealer) const
WorldLocation GetCorpseLocation() const
void SetAreaSpiritHealer(Creature *creature)
void PrepareGossipMenu(WorldObject *source, uint32 menuId, bool showQuests=false)
Item * GetItemByGuid(ObjectGuid guid) const
std::unique_ptr< PlayerMenu > PlayerTalkClass
ReputationMgr & GetReputationMgr()
void SetPetSlot(uint32 petNumber, PetSaveMode dstPetSlot)
uint32 GetGossipMenuForSource(WorldObject const *source) const
void ResurrectPlayer(float restore_percent, bool applySickness=false)
void SetVisible(FactionTemplateEntry const *factionTemplateEntry)
void SendSpells(Creature const *npc, Player *player, LocaleConstant locale) const
void TeachSpell(Creature const *npc, Player *player, uint32 spellId) const
void RemoveAurasByType(AuraType auraType, std::function< bool(AuraApplication const *)> const &check, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT)
bool IsAreaSpiritHealer() const
void PauseMovement(uint32 timer=0, uint8 slot=0, bool forced=true)
uint32 GetFaction() const override
void RemoveAurasWithInterruptFlags(InterruptFlags flag, SpellInfo const *source=nullptr)
SpellCastResult CastSpell(CastSpellTargetArg const &targets, uint32 spellId, CastSpellExtraArgs const &args={ })
std::string PromotionCode
PlayerInteractionType InteractionType
WorldPacket const * Write() override
WorldPacket const * Write() override
bool CheckStableMaster(ObjectGuid guid)
void HandleGossipSelectOptionOpcode(WorldPackets::NPC::GossipSelectOption &packet)
LocaleConstant GetSessionDbLocaleIndex() const
void HandleRequestStabledPets(WorldPackets::NPC::RequestStabledPets &packet)
void HandleTrainerListOpcode(WorldPackets::NPC::Hello &packet)
void HandleTrainerBuySpellOpcode(WorldPackets::NPC::TrainerBuySpell &packet)
void SendPetStableResult(StableResult result)
void HandleGossipHelloOpcode(WorldPackets::NPC::Hello &packet)
Player * GetPlayer() const
void SendBindPoint(Creature *npc)
void SendSpiritResurrect()
void SendTabardVendorActivate(ObjectGuid guid, TabardVendorType type)
void HandleRepairItemOpcode(WorldPackets::Item::RepairItem &packet)
void SendPacket(WorldPacket const *packet, bool forced=false)
Send a packet to the client.
void HandleSetPetSlot(WorldPackets::NPC::SetPetSlot &setPetSlot)
void SendShowMailBox(ObjectGuid guid)
void SendTrainerList(Creature *npc, uint32 trainerId)
void HandleBinderActivateOpcode(WorldPackets::NPC::Hello &packet)
void HandleSpiritHealerActivate(WorldPackets::NPC::SpiritHealerActivate &packet)
void HandleTabardVendorActivateOpcode(WorldPackets::NPC::TabardVendorActivate const &tabardVendorActivate)
uint32 GetInteractionPauseTimer() const
constexpr void GetPosition(float &x, float &y) const