The safespot is handled by a shortcut button (F6 hotkey), so you first need to stand on whichever tile you wanna safespot at, then hit f6, then the script will use that tile as your safespot ^^ Optional: set fight bounds for more accurate npc filtering too
Let me know how it goes, please confirm if this helped or not ^^