rune merchant cleanup
This commit is contained in:
@@ -649,6 +649,28 @@ public class WorldServer {
|
|||||||
ZoneManager.populateWorldZones(zone);
|
ZoneManager.populateWorldZones(zone);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
//add extra vendors for lakebane
|
||||||
|
//
|
||||||
|
try {
|
||||||
|
Building sdrHut = BuildingManager.getBuilding(180430);
|
||||||
|
Zone sdr = sdrHut.parentZone;
|
||||||
|
boolean exists = false;
|
||||||
|
for(NPC merchant : sdr.zoneNPCSet)
|
||||||
|
if(merchant.contract.getContractID() == 1200)
|
||||||
|
exists = true;
|
||||||
|
if (!exists) {
|
||||||
|
NPC runeMerchant = NPC.createNPC("Runey", 1200, Vector3fImmutable.ZERO, Guild.getGuild(6), ZoneManager.getZoneByUUID(656), (short) 70, null);
|
||||||
|
runeMerchant.sellPercent = 9999.00f;
|
||||||
|
runeMerchant.buildingUUID = sdrHut.getObjectUUID();
|
||||||
|
runeMerchant.building = sdrHut;
|
||||||
|
NPCManager.slotCharacterInBuilding(runeMerchant);
|
||||||
|
runeMerchant.setLoc(runeMerchant.bindLoc);
|
||||||
|
runeMerchant.updateDatabase();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
catch(Exception e){
|
||||||
|
Logger.error("FAILED TO ADD RUNE MERCHANT");
|
||||||
|
}
|
||||||
try {
|
try {
|
||||||
Building sdrHut = BuildingManager.getBuilding(27978);
|
Building sdrHut = BuildingManager.getBuilding(27978);
|
||||||
Zone sdr = sdrHut.parentZone;
|
Zone sdr = sdrHut.parentZone;
|
||||||
|
|||||||
Reference in New Issue
Block a user