Browse Source

test rune vendor

lakebane-master
FatBoy-DOTC 9 months ago
parent
commit
c9428d2b56
  1. 34
      src/engine/server/world/WorldServer.java

34
src/engine/server/world/WorldServer.java

@ -631,23 +631,23 @@ public class WorldServer {
} }
//add extra vendors for lakebane //add extra vendors for lakebane
//try { try {
// Building sdrHut = BuildingManager.getBuilding(27979); Building sdrHut = BuildingManager.getBuilding(27979);
// if (sdrHut.getHirelings().size() < 1) { if (sdrHut.getHirelings() == null || sdrHut.getHirelings().size() != 1) {
// NPC runeMerchant = NPC.createNPC("Runey", 1200, Vector3fImmutable.ZERO, Guild.getGuild(6), ZoneManager.getZoneByUUID(656), (short) 70, null); NPC runeMerchant = NPC.createNPC("Runey", 1200, Vector3fImmutable.ZERO, Guild.getGuild(6), ZoneManager.getZoneByUUID(656), (short) 70, null);
// runeMerchant.sellPercent = 0; runeMerchant.sellPercent = 0;
// runeMerchant.buildingUUID = sdrHut.getObjectUUID(); runeMerchant.buildingUUID = sdrHut.getObjectUUID();
// runeMerchant.building = sdrHut; runeMerchant.building = sdrHut;
// NPCManager.slotCharacterInBuilding(runeMerchant); NPCManager.slotCharacterInBuilding(runeMerchant);
// runeMerchant.setLoc(runeMerchant.bindLoc); runeMerchant.setLoc(runeMerchant.bindLoc);
// for (MobEquipment item : runeMerchant.contract.getSellInventory()) { for (MobEquipment item : runeMerchant.contract.getSellInventory()) {
// item.magicValue = 10000000; item.magicValue = 10000000;
// } }
// } }
//} }
//catch(Exception e){ catch(Exception e){
// Logger.error("FAILED TO ADD RUNE MERCHANT"); Logger.error("FAILED TO ADD RUNE MERCHANT");
//} }
Logger.info("time to load World Objects: " + (System.currentTimeMillis() - start) + " ms"); Logger.info("time to load World Objects: " + (System.currentTimeMillis() - start) + " ms");
} }

Loading…
Cancel
Save