class MTG_Mount_Vendor : public CreatureScript
{
public: MTG_Mount_Vendor() : CreatureScript("MTG_Mount_Vendor") {}
bool OnGossipHello(Player* player, Creature* creature)
{
player->ADD_GOSSIP_ITEM(0, "|TInterface\\icons\\INV_Misc_SymbolofKings_01:40:40:-14|t Trainer Riding", GOSSIP_SENDER_MAIN, 100000); // General Goods
player->ADD_GOSSIP_ITEM(0, "|TInterface\\icons\\Spell_Frost_WizardMark:40:40:-14|t Mounts", GOSSIP_SENDER_MAIN, 200040); // Pvp Goods
player->ADD_GOSSIP_ITEM(0, "|TInterface\\icons\\INV_Alchemy_EndlessFlask_06:40:40:-14|t Fly Mounts", GOSSIP_SENDER_MAIN, 200041); // Flask & Potions
player->SEND_GOSSIP_MENU(60000, creature->GetGUID());
return true;
}
bool OnGossipSelect(Player* player, Creature* creature, uint32 uiSender, uint32 uiAction)
{
player->PlayerTalkClass->ClearMenus();
player->GetSession()->SendTrainerList(creature->GetGUID(), uiAction);
player->GetSession()->SendListInventory(creature->GetGUID(), uiAction);
return true;
}
};
void AddSC_MTG_Mount_Vendor()
{
new MTG_Mount_Vendor;
}