Browse Source

New npc creation work.

master
MagicBot 1 year ago
parent
commit
291cb97a22
  1. 5
      src/engine/objects/NPC.java

5
src/engine/objects/NPC.java

@ -470,7 +470,12 @@ public class NPC extends AbstractCharacter {
newNPC.parentZoneID = parent.getObjectUUID(); newNPC.parentZoneID = parent.getObjectUUID();
newNPC.guildUUID = guild.getObjectUUID(); newNPC.guildUUID = guild.getObjectUUID();
if (building == null)
newNPC.buildingUUID = 0;
else
newNPC.buildingUUID = building.getObjectUUID(); newNPC.buildingUUID = building.getObjectUUID();
newNPC.level = level; newNPC.level = level;
newNPC.buyPercent = .33f; newNPC.buyPercent = .33f;

Loading…
Cancel
Save