@Override
protected void runImpl()
{
L2PcInstance player = getClient().getActiveChar();
if (player == null || player.getPet() == null || !(player.getPet() instanceof L2PetInstance)) return;
L2PetInstance pet = (L2PetInstance)player.getPet();
if(_amount < 0)
{
Util.handleIllegalPlayerAction(player,"[RequestGetItemFromPet] count < 0! ban! oid: "+_objectId+" owner: "+player.getName(),Config.DEFAULT_PUNISH);
return;
}
else if(_amount == 0)
return;
if (pet.transferItem("Transfer", _objectId, _amount, player.getInventory(), player, pet) == null)
{
_log.warning("Invalid item transfer request: " + pet.getName() + "(pet) --> " + player.getName());
}
}