New npc creation work.

This commit is contained in:
2023-08-21 13:34:42 -04:00
parent 740e75f8e4
commit 291cb97a22
+6 -1
View File
@@ -470,7 +470,12 @@ public class NPC extends AbstractCharacter {
newNPC.parentZoneID = parent.getObjectUUID();
newNPC.guildUUID = guild.getObjectUUID();
newNPC.buildingUUID = building.getObjectUUID();
if (building == null)
newNPC.buildingUUID = 0;
else
newNPC.buildingUUID = building.getObjectUUID();
newNPC.level = level;
newNPC.buyPercent = .33f;