mod-mxwow-servant better vendor/auction + added stable
This commit is contained in:
parent
38a7fad6d6
commit
219e01c39f
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue