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
931 return true;
932 }
std::uint32_t uint32
Definition: Define.h:107
@ 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
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
@ GOSSIP_ICON_CHAT
Definition: GossipDef.h:61
uint32 GetEntry() const
Definition: Object.h:115
static ObjectGuid GetGUID(Object const *o)
Definition: Object.h:112
bool HasSkill(uint32 skill) const
Definition: Player.cpp:5447
uint32 GetGossipTextId(uint32 menuId, WorldObject *source)
Definition: PlayerGossip.cpp:404
bool CanLearn(Player *player, uint32 textId, uint32 altTextId, uint32 skillValue, uint32 reqSpellId, uint32 spellId, uint32 &npcTextId)
Definition: npc_professions.cpp:880