}
@Override
public void doBusiness() throws Exception {
if (client.getWorld() != null) {
GameEngine gameEngine = client.getWorld().getGameEngine();
if (gameEngine != null) {
Zone zone = gameEngine.getZone(zoneID);
if (zone != null && zone.isEnable()) {
if (client.getPlayer().getID() == client.getWorld().getEnvByID(zone.getEnvID()).getOwnerID()) {
int tempMoney = client.getAvatar().getCurrency();
short status = gameEngine.buyOrganism(Constants.ORGANISM_TYPE_ANIMAL, client.getPlayer().getID(), animalTypeID, amount, zoneID, xCoor, yCoor);
responseBuyAnimal.setStatus(status);
responseBuyAnimal.setAnimalTypeID(animalTypeID);
responseBuyAnimal.setSpentAmount(tempMoney - client.getAvatar().getCurrency());
}
}