Browse Source

Resource Merchant

lakebane-master
FatBoy-DOTC 9 months ago
parent
commit
6e14f723da
  1. 4
      src/engine/server/world/WorldServer.java

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

@ -662,10 +662,10 @@ public class WorldServer {
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() == 12287) if(merchant.contract.getContractID() == 900)
exists = true; exists = true;
if (!exists) { if (!exists) {
NPC runeMerchant = NPC.createNPC("Stocky", 12287, Vector3fImmutable.ZERO, Guild.getGuild(6), ZoneManager.getZoneByUUID(656), (short) 70, null); NPC runeMerchant = NPC.createNPC("Stocky", 900, 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;

Loading…
Cancel
Save