|
|
@ -565,6 +565,7 @@ public class Mob extends AbstractIntelligenceAgent { |
|
|
|
petMinion.runAfterLoad(); |
|
|
|
petMinion.runAfterLoad(); |
|
|
|
//DbManager.addToCache(petMinion);
|
|
|
|
//DbManager.addToCache(petMinion);
|
|
|
|
Mob.dynamic_pets.put(petMinion.getObjectUUID(),petMinion); |
|
|
|
Mob.dynamic_pets.put(petMinion.getObjectUUID(),petMinion); |
|
|
|
|
|
|
|
Logger.info("Added Pet To dynamic_pets with UUID: " + petMinion.getObjectUUID()); |
|
|
|
petMinion.setLoc(petMinion.bindLoc); |
|
|
|
petMinion.setLoc(petMinion.bindLoc); |
|
|
|
|
|
|
|
|
|
|
|
return petMinion; |
|
|
|
return petMinion; |
|
|
@ -937,8 +938,10 @@ public class Mob extends AbstractIntelligenceAgent { |
|
|
|
WorldGrid.RemoveWorldObject(this); |
|
|
|
WorldGrid.RemoveWorldObject(this); |
|
|
|
|
|
|
|
|
|
|
|
//DbManager.removeFromCache(this);
|
|
|
|
//DbManager.removeFromCache(this);
|
|
|
|
if(Mob.dynamic_pets.containsKey(this.getObjectUUID())) |
|
|
|
if(Mob.dynamic_pets.containsKey(this.getObjectUUID())) { |
|
|
|
Mob.dynamic_pets.remove(this.getObjectUUID()); |
|
|
|
Mob.dynamic_pets.remove(this.getObjectUUID()); |
|
|
|
|
|
|
|
Logger.info("Removed Pet From dynamic_pets with UUID: " + this.getObjectUUID()); |
|
|
|
|
|
|
|
} |
|
|
|
PlayerCharacter petOwner = (PlayerCharacter) this.guardCaptain; |
|
|
|
PlayerCharacter petOwner = (PlayerCharacter) this.guardCaptain; |
|
|
|
|
|
|
|
|
|
|
|
if (petOwner != null) { |
|
|
|
if (petOwner != null) { |
|
|
|