Added support for merchant item filtering by class

Added column classes_required to merchantlist to allow
the merchant to only sell items to specified classes

Ex. (only example I know from live) To only allow poison supplies
to be sell able to only rogues, you would set classes_required
to 256.
classes_required defaults to 65535 (all/any class)

Remember to run the new SQL!
This commit is contained in:
Michael Cook (mackal)
2013-12-26 16:29:09 -05:00
parent 30e8eac46e
commit 13fcccefd5
5 changed files with 17 additions and 4 deletions
+5 -2
View File
@@ -3428,15 +3428,18 @@ struct LevelAppearance_Struct { //Sends a little graphic on level up
uint32 value5b;
/*64*/
};
struct MerchantList{
struct MerchantList {
uint32 id;
uint32 slot;
uint32 item;
int16 faction_required;
int8 level_required;
uint16 alt_currency_cost;
uint32 classes_required;
};
struct TempMerchantList{
struct TempMerchantList {
uint32 npcid;
uint32 slot;
uint32 item;