mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-11 07:38:36 +00:00
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:
@@ -984,6 +984,9 @@ void Client::BulkSendMerchantInventory(int merchant_id, int npcid) {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (!(ml.classes_required & (1 << (GetClass() - 1))))
|
||||
continue;
|
||||
|
||||
int32 fac = merch ? merch->GetPrimaryFaction() : 0;
|
||||
if(fac != 0 && GetModCharacterFactionLevel(fac) < ml.faction_required) {
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user