|
|
@ -893,15 +893,16 @@ public class Mob extends AbstractIntelligenceAgent { |
|
|
|
|
|
|
|
|
|
|
|
try { |
|
|
|
try { |
|
|
|
//resync corpses
|
|
|
|
//resync corpses
|
|
|
|
//this.setLoc(this.getMovementLoc());
|
|
|
|
|
|
|
|
if (this.behaviourType.equals(MobBehaviourType.SiegeEngine)) { |
|
|
|
if (this.behaviourType.equals(MobBehaviourType.SiegeEngine)) { |
|
|
|
this.deathTime = System.currentTimeMillis(); |
|
|
|
this.deathTime = System.currentTimeMillis(); |
|
|
|
//this.state = STATE.Dead;
|
|
|
|
|
|
|
|
try { |
|
|
|
try { |
|
|
|
this.clearEffects(); |
|
|
|
this.clearEffects(); |
|
|
|
} catch (Exception e) { |
|
|
|
} catch (Exception e) { |
|
|
|
Logger.error(e.getMessage()); |
|
|
|
Logger.error(e.getMessage()); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
this.setCombatTarget(null); |
|
|
|
this.setCombatTarget(null); |
|
|
|
this.hasLoot = false; |
|
|
|
this.hasLoot = false; |
|
|
|
this.playerAgroMap.clear(); |
|
|
|
this.playerAgroMap.clear(); |
|
|
@ -911,7 +912,6 @@ public class Mob extends AbstractIntelligenceAgent { |
|
|
|
|
|
|
|
|
|
|
|
if (this.isPet()) { |
|
|
|
if (this.isPet()) { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
PlayerCharacter petOwner = (PlayerCharacter) this.guardCaptain; |
|
|
|
PlayerCharacter petOwner = (PlayerCharacter) this.guardCaptain; |
|
|
|
|
|
|
|
|
|
|
|
if (petOwner != null) { |
|
|
|
if (petOwner != null) { |
|
|
@ -927,25 +927,21 @@ public class Mob extends AbstractIntelligenceAgent { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} else if (this.isPet() || this.isNecroPet()) { |
|
|
|
} else if (this.isPet() || this.isNecroPet()) { |
|
|
|
//this.state = STATE.Disabled;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.setCombatTarget(null); |
|
|
|
this.setCombatTarget(null); |
|
|
|
this.hasLoot = false; |
|
|
|
this.hasLoot = false; |
|
|
|
|
|
|
|
|
|
|
|
//if (this.parentZone != null)
|
|
|
|
|
|
|
|
//this.parentZone.zoneMobSet.remove(this);
|
|
|
|
|
|
|
|
ZoneManager.getSeaFloor().zoneMobSet.remove(this); |
|
|
|
ZoneManager.getSeaFloor().zoneMobSet.remove(this); |
|
|
|
|
|
|
|
|
|
|
|
try { |
|
|
|
try { |
|
|
|
this.clearEffects(); |
|
|
|
this.clearEffects(); |
|
|
|
} catch (Exception e) { |
|
|
|
} catch (Exception e) { |
|
|
|
Logger.error(e.getMessage()); |
|
|
|
Logger.error(e.getMessage()); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
this.playerAgroMap.clear(); |
|
|
|
this.playerAgroMap.clear(); |
|
|
|
WorldGrid.RemoveWorldObject(this); |
|
|
|
WorldGrid.RemoveWorldObject(this); |
|
|
|
|
|
|
|
|
|
|
|
DbManager.removeFromCache(this); |
|
|
|
DbManager.removeFromCache(this); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
PlayerCharacter petOwner = (PlayerCharacter) this.guardCaptain; |
|
|
|
PlayerCharacter petOwner = (PlayerCharacter) this.guardCaptain; |
|
|
|
|
|
|
|
|
|
|
|
if (petOwner != null) { |
|
|
|
if (petOwner != null) { |
|
|
@ -959,6 +955,7 @@ public class Mob extends AbstractIntelligenceAgent { |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
|
|
|
|
|
|
|
|
//cleanup effects
|
|
|
|
//cleanup effects
|
|
|
|
|
|
|
|
|
|
|
|
playerAgroMap.clear(); |
|
|
|
playerAgroMap.clear(); |
|
|
|
|
|
|
|
|
|
|
|
if (!this.isPlayerGuard && this.equip != null) |
|
|
|
if (!this.isPlayerGuard && this.equip != null) |
|
|
@ -1055,7 +1052,6 @@ public class Mob extends AbstractIntelligenceAgent { |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public void updateDatabase() { |
|
|
|
public void updateDatabase() { |
|
|
|
// DbManager.MobQueries.updateDatabase(this);
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public void refresh() { |
|
|
|
public void refresh() { |
|
|
@ -1837,9 +1833,6 @@ public class Mob extends AbstractIntelligenceAgent { |
|
|
|
return isPlayerGuard; |
|
|
|
return isPlayerGuard; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public void setPatrolPointIndex(int patrolPointIndex) { |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public int getLastMobPowerToken() { |
|
|
|
public int getLastMobPowerToken() { |
|
|
|
return lastMobPowerToken; |
|
|
|
return lastMobPowerToken; |
|
|
|
} |
|
|
|
} |
|
|
|