Alright so i started using the Return amulet option and i ran into some problems with it:
sometimes the bot wont use the return amulet and tries to reach waypoint 1, getting stuck in the process. a "if waypoint 1 cant be reached after using return amulet, use amulet again after X seconds, or X seconds after killing mob" function would probably fix this issue. i think its because the bot tries to use the return amulet right after killing a mob or right after reaching a waypoint wich both (?) activate (i think) a small cooldown on amulets. maybe putting a delay on the amulet would solve the problem too, idk
edit 1: i tried setting a few waypoints behind my route ending so i would walk for about 2 seconds back and the problem still persists, so it must be the cooldown thing i mentioned
edit 2: i think i found the real problem. the usage of the amulet gets blocked because the bot is currently using snacks/potts. i will try this later and update this post
edit 3: it's as i thought. potts/snacks block the amulet. there needs to be a priority option for amulets so items dont overshadow the input. i turned them off and it works fine now, well almost... getting hit by spawning enemies still interupts the whole botting process :/
Also another thing i found, turning "after trigger prevent next detection for the same player for X seconds" on and setting X to 9999999 for example will still trigger the trigger when you use return amulets while having another char on the same map. it only works when players enter, leave and then reenter the map. a whitelist function would probably solve the problem