Some faggots like to build fires / flowers / other traps underneath a bots traps the bot must be able to detect it and move the traps. The way I did it in wHunter is by checking for a chat log saying you can't build a trap here etc. and then moving the trap location using a recursive function that looked at adjacent tiles that were less than 1 tile from old location and less than 5 tiles from home location.
Some faggots like to build fires / flowers / other traps underneath a bots traps the bot must be able to detect it and move the traps. The way I did it in wHunter is by checking for a chat log saying you can't build a trap here etc. and then moving the trap location using a recursive function that looked at adjacent tiles that were less than 1 tile from old location and less than 5 tiles from home location.