401402403404405406407408409410411
} if(actor.isInRange(target, 30) && Math.abs(actor.getZ() - target.getZ()) < 50) { if(actor.isPlayer() || actor.isPet()) { actor.doPickupItem(target); } setIntention(AI_INTENTION_ACTIVE); } else {
649650651652653654655656657658659
} if (actor.isInRange(target, 30) && (Math.abs(actor.getZ() - target.getZ()) < 50)) { if (actor.isPlayer() || actor.isPet()) { actor.doPickupItem(target); } setIntention(AI_INTENTION_ACTIVE); } else {