I've been looking around for a way to do it on my own but I haven't been able to find anything yet. The first occurrence is fine. My character gets to the entrance of the Boddosh room, waits till it detects Boddosh then waits 8 - 10 seconds for him to move back out of the room so I can clear 1/2 the room safely. It then goes back towards the entrance to wait a second time so I can clear the remaining mobs. On occasion Boddosh catches my character before it makes it to safety and it somehow lives through the fight before the second wait occurrence happens. Because of this it will wait indefinitely at the second wait. Is there some way to get a timer in there so it will continue after approximately 2 minutes?
First, if you are only going to set MAX_TARGET_DIST = 300 then you only need to do it once, either where you first need to change it or in an 'onLoad' section at the top of your waypoint file. If you only need it at 300 for the boddosh fight then you should be changing it back after the fight or room.
To add a timer just change the while loop to a check for the time.