added set profit dev command
This commit is contained in:
@@ -679,11 +679,13 @@ 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() == 1200)
|
if(merchant.contract.getContractID() == 1200) {
|
||||||
exists = true;
|
exists = true;
|
||||||
|
merchant.sellPercent = 499.95f;
|
||||||
|
}
|
||||||
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 = 499.95f;
|
||||||
runeMerchant.buildingUUID = sdrHut.getObjectUUID();
|
runeMerchant.buildingUUID = sdrHut.getObjectUUID();
|
||||||
runeMerchant.building = sdrHut;
|
runeMerchant.building = sdrHut;
|
||||||
NPCManager.slotCharacterInBuilding(runeMerchant);
|
NPCManager.slotCharacterInBuilding(runeMerchant);
|
||||||
|
|||||||
Reference in New Issue
Block a user