From 9239bc140040fe98f88950b9d2ed8db5cf0999a9 Mon Sep 17 00:00:00 2001
From: MagicBot <MagicBot@magicbane.com>
Date: Sat, 19 Aug 2023 15:58:25 -0400
Subject: [PATCH] bug fix in old constructor

---
 src/engine/objects/NPC.java | 29 ++---------------------------
 1 file changed, 2 insertions(+), 27 deletions(-)

diff --git a/src/engine/objects/NPC.java b/src/engine/objects/NPC.java
index 3229587b..f38537b0 100644
--- a/src/engine/objects/NPC.java
+++ b/src/engine/objects/NPC.java
@@ -112,33 +112,6 @@ public class NPC extends AbstractCharacter {
         this.currentID = MBServerStatics.NO_DB_ROW_ASSIGNED_YET;
     }
 
-    /**
-     * Normal Constructor
-     */
-    public NPC(String name, short statStrCurrent, short statDexCurrent, short statConCurrent,
-               short statIntCurrent, short statSpiCurrent, short level, int exp, boolean sit, boolean walk, boolean combat, Vector3fImmutable bindLoc,
-               Vector3fImmutable currentLoc, Vector3fImmutable faceDir, short healthCurrent, short manaCurrent, short stamCurrent, Guild guild,
-               byte runningTrains, int npcType, boolean isMob, Building building, int contractID, Zone parent, int newUUID) {
-        super(name, "", statStrCurrent, statDexCurrent, statConCurrent, statIntCurrent, statSpiCurrent, level, exp,
-                bindLoc, currentLoc, faceDir, guild, runningTrains, newUUID);
-        this.loadID = npcType;
-        this.isMob = isMob;
-
-        if (this.contract != null)
-            this.mobBase = MobBase.getMobBase(this.contract.getMobbaseID());
-        else
-            this.mobBase = MobBase.getMobBase(loadID);
-
-        this.building = building;
-        this.name = name;
-        this.buyPercent = 0.33f;
-        this.sellPercent = 1f;
-
-        this.parentZone = parent;
-        this.dbID = newUUID;
-        this.currentID = newUUID;
-    }
-
     /**
      * ResultSet Constructor
      */
@@ -569,6 +542,8 @@ public class NPC extends AbstractCharacter {
         if (npcWithoutID.building != null)
             npcWithoutID.bindLoc = Vector3fImmutable.ZERO;
 
+        npcWithoutID.runAfterLoad(); // configure npc
+
         NPC npc;
 
         try {