if(player->GetPet())
{
m_creature->MonsterWhisper("First you must abandon your current pet.", player->GetGUID());
player->PlayerTalkClass->SendCloseGossip();
return;
}
//end
player->PlayerTalkClass->SendCloseGossip();
m_creature->MonsterWhisper("You now have a pet, you should probably feed it...", player->GetGUID());
}
if(player->getClass() != CLASS_HUNTER)
{
m_creature->MonsterWhisper("You're not a hunter, and cannot tame pets.", player->GetGUID());
return true;
}
player->ADD_GOSSIP_ITEM(4, "Tame a new Pet!" GOSSIP_SENDER_MAIN, 100);
player->ADD_GOSSIP_ITEM(2, "Show me the stables.", GOSSIP_SENDER_MAIN, GOSSIP_OPTION_STABLEPET);
player->ADD_GOSSIP_ITEM(6, "Show me your food.", GOSSIP_SENDER_MAIN, GOSSIP_OPTION_VENDOR);
player->ADD_GOSSIP_ITEM(5, "Nevermind", GOSSIP_SENDER_MAIN, 200);
player->SEND_GOSSIP_MENU(1, m_creature->GetGUID());
return true;
{
case 100: // Submenu
player->ADD_GOSSIP_ITEM(4, "I want to tame a bear!" GOSSIP_SENDER_MAIN, 1001);
player->ADD_GOSSIP_ITEM(2, "I want to tame a boar!", GOSSIP_SENDER_MAIN, 1002);
player->ADD_GOSSIP_ITEM(6, "I want to tame a crab!", GOSSIP_SENDER_MAIN, 1003);
player->ADD_GOSSIP_ITEM(5, "I want to tame a spider!", GOSSIP_SENDER_MAIN, 1004);
player->ADD_GOSSIP_ITEM(5, "Main Menu.", GOSSIP_SENDER_MAIN, 1005);
break;
case 200: // Nevermind.
player->CLOSE_GOSSIP_MENU();
break;
case GOSSIP_OPTION_STABLEPET: // Stables
player->GetSession()->SendStablePet(m_creature->GetGUID());
break;
case GOSSIP_OPTION_VENDOR: // Food
player->GetSession()->SendListInventory(m_creature->GetGUID());
break;
case 1001: // Bear
player->ADD_GOSSIP_ITEM(4, "Tame a Light Brown Bear" GOSSIP_SENDER_MAIN, 2001);
player->ADD_GOSSIP_ITEM(2, "Tame a White Bear", GOSSIP_SENDER_MAIN, 2002);
player->ADD_GOSSIP_ITEM(4, "Tame a Black Bear" GOSSIP_SENDER_MAIN, 2003);
player->ADD_GOSSIP_ITEM(2, "Tame a Dark Brown Bear", GOSSIP_SENDER_MAIN, 2004);
player->ADD_GOSSIP_ITEM(4, "Tame an Infected Bear" GOSSIP_SENDER_MAIN, 2005);
break;
case 1002: // Boar
player->ADD_GOSSIP_ITEM(4, "Tame a Spiked Red Boar" GOSSIP_SENDER_MAIN, 3001);
player->ADD_GOSSIP_ITEM(2, "Tame a Spiked Blue Boar", GOSSIP_SENDER_MAIN, 3002);
player->ADD_GOSSIP_ITEM(4, "Tame a Spiked Green Boar" GOSSIP_SENDER_MAIN, 3003);
player->ADD_GOSSIP_ITEM(2, "Tame an Armored Boar", GOSSIP_SENDER_MAIN, 3004);
player->ADD_GOSSIP_ITEM(4, "Tame a Black Boar" GOSSIP_SENDER_MAIN, 3005);
player->ADD_GOSSIP_ITEM(4, "Tame a Tan Boar" GOSSIP_SENDER_MAIN, 3006);
break;
case 1003: // Crab
player->ADD_GOSSIP_ITEM(4, "Tame a Red Crab" GOSSIP_SENDER_MAIN, 4001);
player->ADD_GOSSIP_ITEM(2, "Tame a Blue Crab", GOSSIP_SENDER_MAIN, 4002);
player->ADD_GOSSIP_ITEM(4, "Tame a Green Crab" GOSSIP_SENDER_MAIN, 4003);
player->ADD_GOSSIP_ITEM(2, "Tame a Brown Crab", GOSSIP_SENDER_MAIN, 4004);
break;
case 1004: // Spider
player->ADD_GOSSIP_ITEM(4, "Tame a Crystal Spider" GOSSIP_SENDER_MAIN, 5001);
player->ADD_GOSSIP_ITEM(2, "Tame a Black Widow Spider", GOSSIP_SENDER_MAIN, 5002);
player->ADD_GOSSIP_ITEM(4, "Tame a Brown Furry Spider" GOSSIP_SENDER_MAIN, 5003);
player->ADD_GOSSIP_ITEM(2, "Tame a Red Furry Spider", GOSSIP_SENDER_MAIN, 5004);
player->ADD_GOSSIP_ITEM(4, "Tame a White Spider" GOSSIP_SENDER_MAIN, 5005);
player->ADD_GOSSIP_ITEM(2, "Tame a Brown Spider", GOSSIP_SENDER_MAIN, 5006);
player->ADD_GOSSIP_ITEM(4, "Tame a Red Spiky Spider" GOSSIP_SENDER_MAIN, 5007);
player->ADD_GOSSIP_ITEM(2, "Tame a Green Spider", GOSSIP_SENDER_MAIN, 5008);
player->ADD_GOSSIP_ITEM(4, "Tame a Multicolored Spiky Spider" GOSSIP_SENDER_MAIN, 5009);
break;
// Here is where the "giving pets" code begins.
case: 2001 // Light Brown Bear
CreatePet(player, m_creature, 1196);
break;
case: 2002 // White Bear
CreatePet(player, m_creature, 7444);
break;
case: 2003 // Black Bear
CreatePet(player, m_creature, 1128);
break;
case: 2004 // Dark Brown Bear
CreatePet(player, m_creature, 3809);
break;