|
|
@ -1518,6 +1518,8 @@ public class Mob extends AbstractIntelligenceAgent { |
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public void runAfterLoad() { |
|
|
|
public void runAfterLoad() { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.setObjectTypeMask(MBServerStatics.MASK_MOB | this.getTypeMasks()); |
|
|
|
|
|
|
|
|
|
|
|
this.charItemManager = new CharacterItemManager(this); |
|
|
|
this.charItemManager = new CharacterItemManager(this); |
|
|
|
|
|
|
|
|
|
|
|
if (ConfigManager.serverType.equals(ServerType.LOGINSERVER)) |
|
|
|
if (ConfigManager.serverType.equals(ServerType.LOGINSERVER)) |
|
|
@ -1525,7 +1527,7 @@ public class Mob extends AbstractIntelligenceAgent { |
|
|
|
|
|
|
|
|
|
|
|
this.mobBase = MobBase.getMobBase(loadID); |
|
|
|
this.mobBase = MobBase.getMobBase(loadID); |
|
|
|
|
|
|
|
|
|
|
|
this.setObjectTypeMask(MBServerStatics.MASK_MOB | this.getTypeMasks()); |
|
|
|
this.building = BuildingManager.getBuilding(this.buildingUUID); |
|
|
|
|
|
|
|
|
|
|
|
// Configure AI related values
|
|
|
|
// Configure AI related values
|
|
|
|
|
|
|
|
|
|
|
@ -1550,8 +1552,6 @@ public class Mob extends AbstractIntelligenceAgent { |
|
|
|
if (this.behaviourType == null) |
|
|
|
if (this.behaviourType == null) |
|
|
|
this.behaviourType = MobBehaviourType.None; |
|
|
|
this.behaviourType = MobBehaviourType.None; |
|
|
|
|
|
|
|
|
|
|
|
this.building = BuildingManager.getBuilding(this.buildingUUID); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (this.contractUUID == 0) |
|
|
|
if (this.contractUUID == 0) |
|
|
|
this.contract = null; |
|
|
|
this.contract = null; |
|
|
|
else |
|
|
|
else |
|
|
|