So I am playing an ot, and when you kill a creature it randomly will pop up an event on screen to pick up a special item, the id for the event is "50"... I have tried numerous times to do this and cant get it right so i was hoping for some help!

So i need it to pause the cavebot and targeting, then walk to the tile where the event is happening until there is no events on screen for 15 seconds, then turn targeting and the cavebot back on. I would really appreciate some help!