What was your ammonia at? What kind of octo and how big? His behavior could be related to senescence, though it could also be water quality related. Keep offering a variety of LIVE foods, once he starts eating you can try frozen. Offer the food with a feeding stick or with your hand and make sure your octopus sees it and recognizes it as food. I hope he makes it.