From 0437f10bf98eb2f30814f885723fa3adb37842e8 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Sun, 18 Feb 2024 16:06:09 -0600 Subject: [PATCH] runey work > profit slider --- src/engine/objects/MobEquipment.java | 2 +- src/engine/server/world/WorldServer.java | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/engine/objects/MobEquipment.java b/src/engine/objects/MobEquipment.java index d15b6274..b9caec70 100644 --- a/src/engine/objects/MobEquipment.java +++ b/src/engine/objects/MobEquipment.java @@ -34,7 +34,7 @@ public class MobEquipment extends AbstractGameObject { private AbstractPowerAction suffix; private int pValue; private int sValue; - private int magicValue; + public int magicValue; private float dropChance = 0; diff --git a/src/engine/server/world/WorldServer.java b/src/engine/server/world/WorldServer.java index 0f8dec71..14d417a4 100644 --- a/src/engine/server/world/WorldServer.java +++ b/src/engine/server/world/WorldServer.java @@ -633,12 +633,15 @@ public class WorldServer { //add extra vendors for lakebane try { NPC runeMerchant = NPC.createNPC("Runey", 1200, new Vector3fImmutable(88862f, 33f, 44997f), Guild.getGuild(6), ZoneManager.getZoneByUUID(656), (short) 70, null); - runeMerchant.sellPercent = 10000; + runeMerchant.sellPercent = 0; Building sdrHut = BuildingManager.getBuilding(27979); runeMerchant.buildingUUID = sdrHut.getObjectUUID(); runeMerchant.building = sdrHut; NPCManager.slotCharacterInBuilding(runeMerchant); runeMerchant.setLoc(runeMerchant.bindLoc); + for(MobEquipment item : runeMerchant.contract.getSellInventory()){ + item.magicValue = 10000000; + } } catch(Exception e){ Logger.error("FAILED TO ADD RUNE MERCHANT");