diff --git a/modules/mod-mxwow-servant/src/mxwow_servant.cpp b/modules/mod-mxwow-servant/src/mxwow_servant.cpp index ca0d608..45de43f 100644 --- a/modules/mod-mxwow-servant/src/mxwow_servant.cpp +++ b/modules/mod-mxwow-servant/src/mxwow_servant.cpp @@ -54,13 +54,14 @@ public: AddGossipItemFor(player, 10, "|TInterface/Icons/inv_misc_coin_17:30:30:-18|t Enchère", GOSSIP_SENDER_MAIN, 7); AddGossipItemFor(player, 10, "|TInterface/Icons/Ability_paladin_beaconoflight:30:30:-18|t Transmo", GOSSIP_SENDER_MAIN, 8); AddGossipItemFor(player, 10, "|TInterface/Icons/inv_crate_01:30:30:-18|t Matériaux", GOSSIP_SENDER_MAIN, 9); + AddGossipItemFor(player, 10, "|TInterface/Icons/spell_nature_polymorph:30:30:-18|t Étable", GOSSIP_SENDER_MAIN, 10); SendGossipMenuFor(player, 20000000, creature->GetGUID()); return true; } - bool OnGossipSelect(Player* player, Creature* /*creature*/, uint32 /*sender*/, uint32 action) override + bool OnGossipSelect(Player* player, Creature* creature, uint32 /*sender*/, uint32 action) override { player->PlayerTalkClass->ClearMenus(); uint32 pLevel = player->GetLevel(); @@ -179,12 +180,13 @@ public: break; case 6: CloseGossipMenuFor(player); - SummonTempNPC(player, 32639, 300000); + player->GetSession()->SendListInventory(creature->GetGUID()); player->CastSpell(player, 31726); break; case 7: CloseGossipMenuFor(player); - SummonTempNPC(player, 8670, 300000); + //SummonTempNPC(player, 8670, 300000); + player->GetSession()->SendAuctionHello(creature->GetGUID(), creature); player->CastSpell(player, 31726); break; case 8: @@ -197,6 +199,11 @@ public: SummonTempNPC(player, 190011, 300000); player->CastSpell(player, 31726); break; + case 10: + CloseGossipMenuFor(player); + player->GetSession()->SendStablePet(creature->GetGUID()); + player->CastSpell(player, 31726); + break; } return true; }