Hello, I am trying to duplicate some of the profession trainers and I copied the data from an existing profession trainer from creature_template, I also copied the data from npc_trainer table but the trainer doesn’t work. When I click on the trainer nothing happens.
EDIT: I even tried to make a custom trainer with a gossip menu in c++ :
…
player->PlayerTalkClass->ClearMenus();
player->ADD_GOSSIP_ITEM(0, “Inscription Trainer”, GOSSIP_SENDER_MAIN, 1000);
player->ADD_GOSSIP_ITEM(0, “Goods”, GOSSIP_SENDER_MAIN, 2000);
player->SEND_GOSSIP_MENU(DEFAULT_GOSSIP_MESSAGE, npc->GetGUID());
}
else
{
ChatHandler(player->GetSession()).PSendSysMessage(COMBAT_MSG);
player->PlayerTalkClass->SendCloseGossip();
}
return true;
}
}
bool OnGossipSelect(Player* player, Creature* npc, uint32 sender, uint32 action)
{
if (npc->GetEntry() == INSCRIPTION_TRAINER)
{
if (!player)
return false;
player->PlayerTalkClass->ClearMenus();
switch (action)
{
case 1000:
player->PlayerTalkClass->SendCloseGossip();
player->GetSession()->SendTrainerList(npc->GetGUID());
break;
...
and no luck, the gossip shows but when I select the option, nothing happens.
Is there anything that I missed ? Please help.