From 7168813ba5da3a0afea106ae7eabea094243281c Mon Sep 17 00:00:00 2001 From: MagicBot Date: Tue, 9 May 2023 15:16:24 -0400 Subject: [PATCH] Tweak to set model logic. --- src/engine/objects/NPC.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/engine/objects/NPC.java b/src/engine/objects/NPC.java index 720b8db4..00642a37 100644 --- a/src/engine/objects/NPC.java +++ b/src/engine/objects/NPC.java @@ -184,9 +184,12 @@ public class NPC extends AbstractCharacter { if (this.contract != null) this.loadID = this.contract.getMobbaseID(); else - this.loadID = 2011; //default to human + this.loadID = rs.getInt("npc_raceID"); - this.loadID = rs.getInt("npc_raceID"); + // Default to human male + + if (loadID == 0) + loadID = 2100; this.mobBase = MobBase.getMobBase(this.loadID); this.level = rs.getByte("npc_level");