Browse Source

test rune vendor

lakebane-master
FatBoy-DOTC 9 months ago
parent
commit
40290bdf97
  1. 45
      src/engine/server/world/WorldServer.java

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

@ -617,6 +617,11 @@ public class WorldServer {
for (NPC n : npcs) { for (NPC n : npcs) {
n.setObjectTypeMask(MBServerStatics.MASK_NPC); n.setObjectTypeMask(MBServerStatics.MASK_NPC);
if(n.contract.getContractID() == 1200) {
DbManager.NPCQueries.DELETE_NPC(n);
continue;
}
n.setLoc(n.getLoc()); n.setLoc(n.getLoc());
} }
@ -632,26 +637,26 @@ 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);
// Zone sdr = sdrHut.parentZone; Zone sdr = sdrHut.parentZone;
// boolean exists = false; boolean exists = false;
// for(NPC merchant : sdr.zoneNPCSet) for(NPC merchant : sdr.zoneNPCSet)
// if(merchant.contract.getContractID() == 1200) if(merchant.contract.getContractID() == 1200)
// exists = true; exists = true;
// if (!exists) { if (!exists) {
// 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 = 9999.00f; runeMerchant.sellPercent = 9999.00f;
// 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);
// runeMerchant.updateDatabase(); runeMerchant.updateDatabase();
// } }
//} }
//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