if(player->getClass() != CLASS_HUNTER) {
m_creature->MonsterWhisper("You are not a Hunter!", player->GetGUID());
player->PlayerTalkClass->SendCloseGossip();
return;
}
if(player->GetPet()) {
m_creature->MonsterWhisper("First drop your current Pet!", player->GetGUID());
player->PlayerTalkClass->SendCloseGossip();
return;
}
if(player->getClass() != CLASS_HUNTER)
{
m_creature->MonsterWhisper("You are not a Hunter!", player->GetGUID());
return true;
}
player->ADD_GOSSIP_ITEM(7, "Get a New Pet.", GOSSIP_SENDER_MAIN, 1000);
if (player->CanTameExoticPets())
{
player->ADD_GOSSIP_ITEM(7, "Get a New Exotic Pet.", GOSSIP_SENDER_MAIN, 50);
}
player->ADD_GOSSIP_ITEM(2, "Take me to the Stable.", GOSSIP_SENDER_MAIN, GOSSIP_OPTION_STABLEPET);
player->ADD_GOSSIP_ITEM(1, "Sell me some Food for my Pet.", GOSSIP_SENDER_MAIN, GOSSIP_OPTION_VENDOR);
player->ADD_GOSSIP_ITEM(4, "Close Beastmaster Window.", GOSSIP_SENDER_MAIN, 150);
player->SEND_GOSSIP_MENU(1, m_creature->GetGUID());
return true;
}
case 100:
player->ADD_GOSSIP_ITEM(7, "Get a New Pet.", GOSSIP_SENDER_MAIN, 1000);
if (player->CanTameExoticPets())
{
player->ADD_GOSSIP_ITEM(7, "Get a New Exotic Pet.", GOSSIP_SENDER_MAIN, 50);
}
player->ADD_GOSSIP_ITEM(2, "Take me to the Stable.", GOSSIP_SENDER_MAIN, GOSSIP_OPTION_STABLEPET);
player->ADD_GOSSIP_ITEM(1, "Sell me some Food for my Pet.", GOSSIP_SENDER_MAIN, GOSSIP_OPTION_VENDOR);
player->ADD_GOSSIP_ITEM(4, "Close Beastmaster Window.", GOSSIP_SENDER_MAIN, 150);
player->SEND_GOSSIP_MENU(1, m_creature->GetGUID());
break;
case 150:
player->CLOSE_GOSSIP_MENU();
break;
case 1000: // Submenu
player->ADD_GOSSIP_ITEM(4, "<- [Main Menu]", GOSSIP_SENDER_MAIN, 100);
player->ADD_GOSSIP_ITEM(5, "[Next Page] ->", GOSSIP_SENDER_MAIN, 10000);
player->ADD_GOSSIP_ITEM(4, "Tame a Bat!", GOSSIP_SENDER_MAIN, 1001);
player->ADD_GOSSIP_ITEM(4, "Tame a Bear!", GOSSIP_SENDER_MAIN, 1002);
player->ADD_GOSSIP_ITEM(4, "Tame a Bird of Prey!", GOSSIP_SENDER_MAIN, 1003);
player->ADD_GOSSIP_ITEM(4, "Tame a Boar!", GOSSIP_SENDER_MAIN, 1004);
player->ADD_GOSSIP_ITEM(4, "Tame a Carrion Bird!", GOSSIP_SENDER_MAIN, 1005);
player->ADD_GOSSIP_ITEM(4, "Tame a Cat!", GOSSIP_SENDER_MAIN, 1006);
player->ADD_GOSSIP_ITEM(4, "Tame a Crab!", GOSSIP_SENDER_MAIN, 1007);
player->ADD_GOSSIP_ITEM(4, "Tame a Crocolisk!", GOSSIP_SENDER_MAIN, 1008);
player->ADD_GOSSIP_ITEM(4, "Tame a Dragonhawk!", GOSSIP_SENDER_MAIN, 1009);
player->ADD_GOSSIP_ITEM(4, "Tame a Gorilla!", GOSSIP_SENDER_MAIN, 1010);
player->ADD_GOSSIP_ITEM(4, "Tame a Hyena!", GOSSIP_SENDER_MAIN, 1011);
player->ADD_GOSSIP_ITEM(4, "Tame a Moth!", GOSSIP_SENDER_MAIN, 1012);
player->ADD_GOSSIP_ITEM(4, "Tame a Nether Ray!", GOSSIP_SENDER_MAIN, 1013);
player->ADD_GOSSIP_ITEM(4, "Tame a Raptor!", GOSSIP_SENDER_MAIN, 1014);
player->SEND_GOSSIP_MENU(1, m_creature->GetGUID());
break;