895 {
897 std::string gossipItem;
898 bool canLearn = false;
899
901 {
903 {
906 if (canLearn)
908 break;
911 if (canLearn)
913 break;
916 if (canLearn)
918 break;
921 if (canLearn)
923 break;
924 }
925 }
926
927 if (canLearn)
929
930 SendGossipMenuFor(player, npcTextId ? npcTextId : player->GetGossipTextId(creature), creature->GetGUID());
931 return true;
932 }
std::uint32_t uint32
Definition Define.h:107
@ GOSSIP_ICON_CHAT
Definition GossipDef.h:61
void SendGossipMenuFor(Player *player, uint32 npcTextID, ObjectGuid const guid)
Definition ScriptedGossip.cpp:45
void AddGossipItemFor(Player *player, uint32 icon, std::string const &text, uint32 sender, uint32 action)
Definition ScriptedGossip.cpp:28
@ GOSSIP_ACTION_INFO_DEF
Definition ScriptedGossip.h:68
uint32 GetEntry() const
Definition Object.h:115
bool HasSkill(uint32 skill) const
Definition Player.cpp:5457
bool CanLearn(Player *player, uint32 textId, uint32 altTextId, uint32 skillValue, uint32 reqSpellId, uint32 spellId, uint32 &npcTextId)
Definition npc_professions.cpp:880
@ S_GNOMISH
Definition npc_professions.cpp:152
@ S_GOBLIN
Definition npc_professions.cpp:151
#define GOSSIP_ITEM_KABLAM
Definition npc_professions.cpp:873
@ NPC_SMILES
Definition npc_professions.cpp:858
@ SPELL_TO_GADGET
Definition npc_professions.cpp:866
@ NPC_ZAP
Definition npc_professions.cpp:855
@ NPC_JHORDY
Definition npc_professions.cpp:856
@ SPELL_TO_EVERLOOK
Definition npc_professions.cpp:865
@ SPELL_TO_AREA52
Definition npc_professions.cpp:867
@ SPELL_TO_TOSHLEY
Definition npc_professions.cpp:868
@ NPC_KABLAM
Definition npc_professions.cpp:857
#define GOSSIP_ITEM_ZAP
Definition npc_professions.cpp:871
#define GOSSIP_ITEM_JHORDY
Definition npc_professions.cpp:872