mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-10 19:10:25 +00:00
[Feature] Add Min/Max Status to Merchants (#2806)
# Notes - Allows operators to set a minimum and maximum status that an item will show for players. - Allows operators to have items on a merchant that only a GM can see. - Some servers may use status for different things, so having a minimum and a maximum will allow for more functionality. - Default of `min_status` is `0` (Player) and default of `max_status` is `255` (Max).
This commit is contained in:
@@ -872,6 +872,9 @@ void Client::BulkSendMerchantInventory(int merchant_id, int npcid) {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (!EQ::ValueWithin(Admin(), static_cast<int16>(ml.min_status), static_cast<int16>(ml.max_status))) {
|
||||
continue;
|
||||
}
|
||||
|
||||
int32 faction_id = npc ? npc->GetPrimaryFaction() : 0;
|
||||
int32 faction_level = (
|
||||
|
||||
Reference in New Issue
Block a user