|
|
@ -184,10 +184,13 @@ public class NPC extends AbstractCharacter { |
|
|
|
if (this.contract != null) |
|
|
|
if (this.contract != null) |
|
|
|
this.loadID = this.contract.getMobbaseID(); |
|
|
|
this.loadID = this.contract.getMobbaseID(); |
|
|
|
else |
|
|
|
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.mobBase = MobBase.getMobBase(this.loadID); |
|
|
|
this.level = rs.getByte("npc_level"); |
|
|
|
this.level = rs.getByte("npc_level"); |
|
|
|
this.isMob = false; |
|
|
|
this.isMob = false; |
|
|
|