Think of it logically, when you interact, the character will move closer to the npc and attack it. In the time that it takes to do that, the script already passed the conditional sleep because it's not yet under attack the millisecond after it interacts
Hey! been having an issue with ZMI, seems to be having issues interacting with the pouches while banking, and doesn't close the bank before trying to fill them or use staminas
Logger output here: https://pastebin.com/ESJQJuKe
All of these just seem like SF issues, make a post on the thread, project is an amazing guy and will probably fix the issues as long as you can provide info (like the logger outputs)
Seems to just not be null checking a method