stewards sell things at proper ranks

This commit is contained in:
2024-09-09 20:59:56 -05:00
parent a426b773d3
commit eaa70f43c0
3 changed files with 67 additions and 1 deletions
+3 -1
View File
@@ -15,7 +15,6 @@ import engine.exception.MsgSendException;
import engine.gameManager.*;
import engine.job.JobContainer;
import engine.job.JobScheduler;
import engine.jobs.LogoutCharacterJob;
import engine.jobs.RefreshGroupJob;
import engine.jobs.StuckJob;
import engine.math.Vector3fImmutable;
@@ -1403,6 +1402,9 @@ public class ClientMessagePump implements NetMsgHandler {
Item buy = null;
if (msg.getItemType() == GameObjectType.MobEquipment.ordinal()) {
ArrayList<MobEquipment> sellInventory = npc.getContract().getSellInventory();
if(npc.contract.getName().toLowerCase().equals("steward")){
sellInventory = npc.getSellInventorySteward();
}
if (sellInventory == null) {
return;
}