Stop bot / trade if thief player found in town

image

I couldn’t find any post related to this but if there is, kindly point me to that post.
I’m not sure if this feature still works or i missed out something else, the thief player were found in range of the trader in town but the bot wouldn’t stop botting and just continue the trade script.

Is there any option i gotta amend to make it works, or possible to add those feature in Condition instead so we could customize the action thereafter?

Appreciate any help and insights.