So, first the issue was on Drop the Flag. It might have had a bug, as I had a string of code that it kept rejecting until one day, I clicked submit and it worked. The same thing is happening on Rich Forager. If it is not a bug and just my code, here is what I have:
loop:
flag = self.findFlag()
enemy = self.findNearestEnemy()
item = self.findNearestItem()
if flag:
self.pickUpFlag(flag)
elif enemy:
self.attack(enemy)
elif item:
self.pickUpItem(item)
Please help ASAP! Thanks, Owen21.