Use hearthstone and check if not attacked by mobs, if attacked wait 5 seconds and check again. (if you want to use hearthstone after grind area) If no mobs go home       <QuestsSorted Action="None" NameClass="TELEPORT HOME" />     <QuestsSorted Action="None" NameClass="detect if player is attacked" />     <QuestsSorted Action="If" NameClass="ObjectManager.GetNumberAttackPlayer() &gt; 0" />     <QuestsSorted Action="Wait" NameClass="5000" />