I looked up that error, seems like something wrong with p_DesiredColor,p_PosX area.. not sure what
Holy ****, made it so it completes quest in 10 seconds.
+5 or +6
Nice one, yea i had it set up to do it more slowly because not everyones computers can load and react that fast did u just change wait times?
It's sees a part of the sand as the same pixelcolor, I'm not sure if it's just luck or only with certain settings though.
Setting pixelsearch to use 0 variation fixes it for me it seems.
Pixelsearch, Px, Py, Ax, 8, Ax2, Ay2, color, 0, fast ;Searches for adria, change color is needed
If it only works sometimes remove this line from the else block.
"Send, {ESC} ;Skips the chat"
You can not rejoin with the ESC menu open so this makes it try again.
If u take that out the quest chat log for completion may not complete intime before u join the new game. I will add a safeguard in the next version to check if the option menu is up, will be late tomorrow as im travelling
Yeah I had that problem, thought of another way now.
I now use space to skip chat, this guarantees no menu.
Send, {Space} ;Skips the chat
Send, {Space} ;Skips the chat
Send, {Space} ;Skips the chat
Send, {Space} ;Skips the chat
Still goes to the right sometimes though. Not sure how this can happen as it seems you only pixelsearch in an area.
Edit: Space somehow doesn't seem to work but I know why its runs to the right. If no coords are given with the click command it clicks the current position which is to the right. I guess this is because the pixelsearch didn't find anything which is a result of the color of adria's dress being pretty dynamic.
Last edited by Mikevin; 06-22-2012 at 10:50 AM.
haha I feel so dumb, thanks
Spaces does work you need to add a delay timer between about 500ms each, change the {esc} -> {space}s.
As for the clicking on the right side of the screen, you are correct that it does not find the pixel. This problem is due to the time it is given to find the pixel within 500ms, I changed mine a bit longer to 750ms which works good for me, here's what I have changed:
You can delete some of the {spaces} or you can make it random by adding a random variable and make a switch statement, not sure if autohotkey have any switch statement, if not just do an if else statement works the same way.Code:Loop { Sleep, 200 if WaitPixelColor(globe, Gx, Gy) = 0 ;White blip on health globe { Sleep, 1000 Pixelsearch, Px, Py, Ax, 8, Ax2, Ay2, color, 3, fast ;Searches for adria, change color is needed Sleep, 750 ;Longer delay time to search for pixel originally 500ms MouseClick, left, %Px%, %Py% ;Click on adria if % WaitPixelColor(0, Chatx, Chaty, 5000) = 2 ;Waits for the black background of the chat box that pops up { Pixelsearch, Px, Py, CBx2, CBy2, CBx, CBy,color, 4, fast Sleep, 200 MouseClick, left, %Px%, %Py% WaitPixelColor(0, Chatx, Chaty, 5000) Send, {Space} ;Skips the chat Sleep, 500 Send, {Space} ;Skips the chat Sleep, 500 Send, {Space} ;Skips the chat Sleep, 500 Send, {Space} ;Skips the chat Sleep, 500 Send, {Space} ;Skips the chat Sleep, 2500 Send, o ;Open friends Sleep, 3500 ;Increase this depending on how long it takes host to create his game and "Join game" come available MouseClick, right, Hostx, Hosty ; Right click on top friend Sleep, 1000 MouseClick, left , JGx, JGy ; Left click on join game and repeat; Sleep, 7000 } else { Send, {Space} ;Skips the chat Sleep, 500 Send, {Space} ;Skips the chat Sleep, 500 Send, {Space} ;Skips the chat Sleep, 500 Send, {Space} ;Skips the chat Sleep, 500 Send, {Space} ;Skips the chat Sleep, 2500 Send, o ;Open friends Sleep, 3000 ;Increase this depending on how long it takes host to create his game and "Join game" come available MouseClick, right, Hostx, Hosty ; Right click on top friend Sleep, 1000 MouseClick, left , JGx, JGy ; Left click on join game and repeat; Sleep, 5000 } } } return
Edit: To make it random space pounding instead of constant 4 spaces every time which makes it suspicious.
Add: (Either on top of the script or above the loop (I put mine at the top of the script kind of a habit putting instance variables on top)
Optional: Add a function for randomsleep time:Code:Random rnd, 3,5
Change those spaces to:Code:RandS(x,y) { Random, rnds, %x%, %y% Sleep %rnds% }
I am not sure if I need the %rnd% == 3 etc in the if statement or just keep it the way I have it. If anyone with more experiences autohotkey can confirm which is correct that would be appreciated. Other than that I think the if statement is functioning correctly.Code:if(rnd = 3) { Send, {Space} ;Skips the chat RandS(500,750) Send, {Space} ;Skips the chat RandS(500,750) Send, {Space} ;Skips the chat } else if(rnd = 4) { Send, {Space} ;Skips the chat RandS(500,750) Send, {Space} ;Skips the chat RandS(500,750) Send, {Space} ;Skips the chat RandS(500,750) Send, {Space} ;Skips the chat } else if(rnd = 5) { Send, {Space} ;Skips the chat RandS(500,750) Send, {Space} ;Skips the chat RandS(500,750) Send, {Space} ;Skips the chat RandS(500,750) Send, {Space} ;Skips the chat RandS(500,750) Send, {Space} ;Skips the chat }
Cheers
Last edited by 12Seconds; 06-22-2012 at 01:44 PM. Reason: Random sleep/ifstatement for spaces
I found that I keep clicking to the right of the screen. So what I did was modify the pixel search, get it to go to WP first (This seems to always center your character). Then the distance from the WP to adria is always the same. So I just put a static location for that.
Why does it say party locked after a few games when I have auto join enabled?
Thanks, I finally fixed mine by using:
Pixelsearch, Px, Py, 0, 0, 400, 300, color, 3, fast ;Searches for adria, change color is needed
at 800x600 resolution. Works like a charm and has for a couple of hours. Don't need the spaces anymore since it doesn't go to the right anymore.
I think the spaces are better but the randomization is probably overkill. I think monitoring that kind of behavior would be too much work for blizzard.
I used to have it clicking the wp but it just took too long. Mikevine there was an option in there to use for smaller screens, have no idea how it worked because i didnt really have any one to test iot lol. I am going to put in a safeguard so that it wont press esc to bring up the menu. The update wont come untill tonight or so though.
do i have to save the code as a certain file? first time using autohotkey and im kinda lost