Forums WoW Modding Support Archives Azerothcore Discord Archives [DiscordArchive] Most vendors have their entire inventories set with slot = 0, the core does

[DiscordArchive] Most vendors have their entire inventories set with slot = 0, the core does

[DiscordArchive] Most vendors have their entire inventories set with slot = 0, the core does

rektbyfaith
Administrator
0
05-31-2020, 09:11 AM
#1
Archived author: MaloW • Posted: 2020-05-31T09:11:48.644000+00:00
Original source

Most vendors have their entire inventories set with slot = 0, the core does
"SELECT entry, item, maxcount, incrtime, ExtendedCost FROM npc_vendor ORDER BY entry, slot ASC"
So if both entry and slot are the same I guess it sorts by the primary key which is (entry, item, ExtendedCost), which I guess means that if you copy one vendor's inventory the ordering should in theory stay the same?
rektbyfaith
05-31-2020, 09:11 AM #1

Archived author: MaloW • Posted: 2020-05-31T09:11:48.644000+00:00
Original source

Most vendors have their entire inventories set with slot = 0, the core does
"SELECT entry, item, maxcount, incrtime, ExtendedCost FROM npc_vendor ORDER BY entry, slot ASC"
So if both entry and slot are the same I guess it sorts by the primary key which is (entry, item, ExtendedCost), which I guess means that if you copy one vendor's inventory the ordering should in theory stay the same?

Recently Browsing
 1 Guest(s)
Recently Browsing
 1 Guest(s)