if (!force)
player.destroyItemByItemId("siege", 6673, 250, player, true);
startAutoTask(true);
}
Here isn't any check like what system does if FA < to 250?? Or what if item not existing?
You should add something like this:
ItemInstance item = player.getInventory().getItemByItemId(6673);
If (item == null || item.getCount() < 250)
{
player.sendMessage("Not enough Items for register");
return;
}
else
// destroy item and start the action.