You can add multi threading support which would make it "constant" anti-pk.
Teleblock detector should be done by adding a message listener and don't forget about the timing of the tb when it is off(parse that from the chatbox message)!
I don't think so a misclick, cause if they attack u while walking it would attack them back(what i noticed) and would say something in logger like "Attacking at x,y,z)
@Molly the loading prices error is from rsbuddy, i would suggest u to use offical GE api, cause i also been thro some errors like this loading prices in my private script, other than that all good