[DiscordArchive] Is there a reason why npc_vendor dont have item quantity? Not supported by client?
[DiscordArchive] Is there a reason why npc_vendor dont have item quantity? Not supported by client?
Archived author: OUTRAKE • Posted: 2025-02-12T08:11:39.040000+00:00
Original source
yea.. something like this but in npc_vendor would be cool
Archived author: OUTRAKE • Posted: 2025-02-12T08:11:49.026000+00:00
Original source
and BuyCount to remain as fallback
Archived author: Ryan Turner • Posted: 2025-02-12T08:13:18.050000+00:00
Original source
You mean npc vendor having a overwritten column for the buycount, idk if the client would accept it but im not knowledable enough
Archived author: OUTRAKE • Posted: 2025-02-12T08:13:38.856000+00:00
Original source
yea
Archived author: OUTRAKE • Posted: 2025-02-12T08:25:21.815000+00:00
Original source
i can do it if you don't come again with the magic sentence
Archived author: Ryan Turner • Posted: 2025-02-12T08:26:45.847000+00:00
Original source
If you open a PR someone more knowledge with probably give more input or you can ask in the dev-core
Archived author: OUTRAKE • Posted: 2025-02-12T08:26:57.958000+00:00
Original source
`How would as user would use this?`
Archived author: OUTRAKE • Posted: 2025-02-12T08:27:03.581000+00:00
Original source
thats the magic sentence
Archived author: Ryan Turner • Posted: 2025-02-12T08:29:54.294000+00:00
Original source
But with this scenario of adding the same behaviour to another table, if npc vendor has that value set overwrites the item_template value, otherwise always fallsback to it.
The PR with the multi-trainer how does the user uses it (not in-game beacuse youve a video) on the server side, since people have to test it is what i told you in the pr
Archived author: OUTRAKE • Posted: 2025-02-12T08:35:05.342000+00:00
Original source
can't be used pretty much in game, it is mostly an eluna hook
in-game can be used as following, you can open an *external trainer* interface from any creature even if that doens't have a trainer flag
```
bool OnGossipSelect(Player* player, Creature* creature, uint32 /*sender*/, uint32 action) override
{
ClearGossipMenuFor(player);
switch (action)
{
case GOSSIP_ACTION_TRAIN:
player->GetSession()->SendTrainerList(creature->GetGUID(), $targetTrainer);
break;
}
return true;
}
```