What happens if you press F9? How is an AutoIT script supposed to "know" when exactly you enter a new location? Also, what exactly do you mean by location? An area?
you would allmost have to rewrite a bot framework to memory read the location and then to make a function, i don't think anybody would do that work for you, sorry.
Seriously, why would you want to use AutoIt if you are already using the best D2 Botting Framework there is? The solution to your problem is not AutoIt, but a simple D2BS script written in JS.
Autoit Script als nicht Autoit erkennbar machen 02/22/2013 - AutoIt - 22 Replies Hallo
es haben wiele bestimmt schon gesehn das w0uter mal eine Anleitung gepostet hat wie man ein Autoit script so umbaut das es keins mehr ist.
Die anleitung ist aber leider weg :(
Dann habe ich mich selber rangesetz und was ausprobiert aber hat nichts gebracht.
Dann habe ich geguckt bis wohin sein script geht als ... (kA wie man das nent halt das im hex editor ganz links diese 0x zahlen) und davor habe ich ein ha genauso eins gemacht und verglichen.
Am anfang habe ich bemerkt es fengt...