I made a simple script so I can afk farm a dungeon. However, an automated event messes things up as the server warps players within the area back into town every 2-3 hours.
Is it possible to detect a specific color ONLY on that specific position? Say, the mini-map for example. Can I warp my character back into the dungeon as soon as a small portion of it changes into a specific color?
Here's the first part of my script (for afk farming):
Code: Select all
#MaxThreadsperHotkey 2
~f1::
Previouskey:= !PreviousKey
loop
{
if PreviousKey
{
sleep, 400
mousemove 405, 325
send, {f1}
sleep, 150
mouseclick, left
sleep, 400
send, {f3}
}
else
break
}
return
...and the 2nd part (after getting warped back into town):
Code: Select all
send, {enter}@warp prontera 162 165{enter}
sleep, 3000
mousemove 500, 320
sleep, 3000
mouseclick, left
sleep, 3000
send, {enter}
I hope that you guys understand what I'm trying to say, and I hope someone's willing to make the code for me. It'll help me out a lot.
I've already tried a couple of things myself but it didn't worked out.