Bot For Excavation QTE

03/06/2022 21:53 Concretepete#16
Quote:
Originally Posted by Millionairez View Post
I'm getting an error in line 15. Is this a autoit script or ahk?

The problem seems to be
if @[Only registered and activated users can see links. Click Here To Register...] = 0 then
if ^ ERROR

Wow, i figured it out. It has to say @[Only registered and activated users can see links. Click Here To Register...]
How did you fix this? Same error but I cannot work it out :/
03/06/2022 23:19 Herzlos95#17
Elitepvpers tries to convert the "@ error" without a space between @ and error to a user mention. Stupid to do that in a code block, but whatever.
I edited the original code to make it more obvious. Just remove the space between @ and error.
03/07/2022 02:16 Concretepete#18
Quote:
Originally Posted by Herzlos95 View Post
Elitepvpers tries to convert the "@ error" without a space between @ and error to a user mention. Stupid to do that in a code block, but whatever.
I edited the original code to make it more obvious. Just remove the space between @ and error.
Thankyou its working now, but misses the blue markers, I am on 2k monitor, 2560x1440 and forcing widescreen
03/07/2022 06:38 Millionairez#19
Quote:
Originally Posted by Concretepete View Post
Thankyou its working now, but misses the blue markers, I am on 2k monitor, 2560x1440 and forcing widescreen
You will need to edit the script slightly depending on if it's too early or too late. I managed to get this to hit in the middle as well as hit all 3 with no mini game level decrease
03/07/2022 19:51 Concretepete#20
Quote:
Originally Posted by Millionairez View Post
You will need to edit the script slightly depending on if it's too early or too late. I managed to get this to hit in the middle as well as hit all 3 with no mini game level decrease
Complete noob here, but which values should I be editing to alter the time it would press? :)

EDIT: Managed to work it out by editing the sleep section of the script :D
03/10/2022 14:01 wASQ#21
Quote:
Originally Posted by Herzlos95 View Post
great script.
Hey man. Itīs my first time with autoit (Iīm kind of used to AutoHotkey with basic scripts for games). Iīm able to edit the coordinates from my screenshot, but the program is running weirdly.

It looks like itīs lagging, pause is not working, when I rclick in notification area and want to pause / exit script it does nothing most of the time. Sometimes it opens the menu like 10s after I tried..

Do you have idea what is going on please?

edit: I tried this script on 2 computers and the behavior is the same. Terminate with +! sometimes work, but pause donīt. I tried different hotkey and changed tooltip to MsgBox to be sure and nothing
03/11/2022 06:29 TheBlindLeader#22
Quote:
Originally Posted by wASQ View Post
Hey man. Itīs my first time with autoit (Iīm kind of used to AutoHotkey with basic scripts for games). Iīm able to edit the coordinates from my screenshot, but the program is running weirdly.

It looks like itīs lagging, pause is not working, when I rclick in notification area and want to pause / exit script it does nothing most of the time. Sometimes it opens the menu like 10s after I tried..

Do you have idea what is going on please?

edit: I tried this script on 2 computers and the behavior is the same. Terminate with +! sometimes work, but pause donīt. I tried different hotkey and changed tooltip to MsgBox to be sure and nothing
Had the same issue at first. It takes a short time to start up and it seems you have to press "Pause" once to activate it. I usually wait like 10 seconds, press "Pause" once and a few seconds later the tooltip appears in the top left. After that the script works.

And in case anybody here wants to make Herzlos95's script work for the old-school 1920x1080 (16:9) here are the values that work for me:

Code:
Func FindPixels()
   $Search1 = Pixelsearch(741, 720, 1168, 739, $Color1, 100)
   if  @ error = 0 then
	  $Search2 = Pixelsearch($Search1[0], 744, $Search1[0], 760, $Color2, 50)
	  if  @ error = 0 then
		 Sleep(25) ;Delay before the space press. Delay depends on your excavation tool. This works for minigame difficulty decrease 3.
		 Send("{SPACE}")
		 Sleep(1000) ; Pause after success to prevent spamming spacebar
	  ENDIF
   ENDIF
EndFunc
Just replace the corresponding lines in his original code with the above ones. And remove the space between both @ error, had to add it so epvp doesn't fuck up the code.

The Sleep(25) works for my Minigame Difficulty -2 tool. If you have a -1 or -3 you might need to adjust that value up or down.

Again, credit goes to @[Only registered and activated users can see links. Click Here To Register...], I just adjusted the values for my own use and wanted to share for others on 1920x1080.
03/11/2022 07:27 wASQ#23
Quote:
Originally Posted by TheBlindLeader View Post
Had the same issue at first. It takes a short time to start up and it seems you have to press "Pause" once to activate it. I usually wait like 10 seconds, press "Pause" once and a few seconds later the tooltip appears in the top left. After that the script works.

And in case anybody here wants to make Herzlos95's script work for the old-school 1920x1080 (16:9) here are the values that work for me:
I found (almost) same setup on FHD monitor, but it still doesnīt work. Seems like itīs weirdly laging. Itīs pressing space even without the minigame and I canīt pause it. When I somehow manage to pause the script (multiple tries) it minimize my game.

I tough that the pixel search is maybe taking to much processor power, but nope thatīs not the case.

I want this scrip to work, because my reflexes are so bad with the minigame :feelsbadman:
03/11/2022 11:49 TheBlindLeader#24
Quote:
Originally Posted by wASQ View Post
I found (almost) same setup on FHD monitor, but it still doesnīt work. Seems like itīs weirdly laging. Itīs pressing space even without the minigame and I canīt pause it. When I somehow manage to pause the script (multiple tries) it minimize my game.

I tough that the pixel search is maybe taking to much processor power, but nope thatīs not the case.

I want this scrip to work, because my reflexes are so bad with the minigame :feelsbadman:
Then I don't know, thought it is the same issue, because it definitely is very laggy at first for me too, and the same issues with right clicking it in the system tray. But for me, waiting 10-20 seconds after starting it and then pressing pause once and then waiting again until the tooltip shows up definitely got it to work.

I guess you could try compiling it and try this process then, as a last idea I have. Right click the script, compile and it generates an .exe file in the same folder. Maybe try running that with admin rights. Also make sure that there is always only once instance of the script running, close the other via task manager if needed.
03/11/2022 12:51 wASQ#25
Quote:
Originally Posted by TheBlindLeader View Post
Then I don't know, thought it is the same issue, because it definitely is very laggy at first for me too, and the same issues with right clicking it in the system tray. But for me, waiting 10-20 seconds after starting it and then pressing pause once and then waiting again until the tooltip shows up definitely got it to work.

I guess you could try compiling it and try this process then, as a last idea I have. Right click the script, compile and it generates an .exe file in the same folder. Maybe try running that with admin rights. Also make sure that there is always only once instance of the script running, close the other via task manager if needed.
I already tried all of this, but thanks for the info!

edit: seems like it kinda works now, I can finally see "Script is "Paused" in the top left corner, but I I cant go back to the game. When I alt tab back it will automatically minimize game window again

edit2: it works wit borderless finally. Now Iīm going to try it. Oh man! :)
03/11/2022 13:35 TheBlindLeader#26
Quote:
Originally Posted by wASQ View Post
I already tried all of this, but thanks for the info!

edit: seems like it kinda works now, I can finally see "Script is "Paused" in the top left corner, but I I cant go back to the game. When I alt tab back it will automatically minimize game window again

edit2: it works wit borderless finally. Now Iīm going to try it. Oh man! :)
Oh, I just assumed you would be on borderless lol. Have been using AHK and AutoIt for so long that I didn't even think about asking if you are on borderless. It is basically required for any scripts to work.
03/11/2022 13:46 wASQ#27
Quote:
Originally Posted by TheBlindLeader View Post
Oh, I just assumed you would be on borderless lol. Have been using AHK and AutoIt for so long that I didn't even think about asking if you are on borderless. It is basically required for any scripts to work.
Yea same. I donīt even know why I had full screen on. Rookie mistake!
03/18/2022 12:24 Littledagger#28
Thanks for the Script, was looking for that, my excavation is 50 by now, so I doing shit lot of gold with.
03/21/2022 17:57 Zanion#29
Hello all, long time lurker but never really a poster.

Would someone be able to share the basics of using autscript (coding) to level up mining?
03/24/2022 15:20 sum4141s#30
Quote:
Originally Posted by TheBlindLeader View Post
Had the same issue at first. It takes a short time to start up and it seems you have to press "Pause" once to activate it. I usually wait like 10 seconds, press "Pause" once and a few seconds later the tooltip appears in the top left. After that the script works.

And in case anybody here wants to make Herzlos95's script work for the old-school 1920x1080 (16:9) here are the values that work for me:

Code:
Func FindPixels()
   $Search1 = Pixelsearch(741, 720, 1168, 739, $Color1, 100)
   if  @ error = 0 then
	  $Search2 = Pixelsearch($Search1[0], 744, $Search1[0], 760, $Color2, 50)
	  if  @ error = 0 then
		 Sleep(25) ;Delay before the space press. Delay depends on your excavation tool. This works for minigame difficulty decrease 3.
		 Send("{SPACE}")
		 Sleep(1000) ; Pause after success to prevent spamming spacebar
	  ENDIF
   ENDIF
EndFunc
Just replace the corresponding lines in his original code with the above ones. And remove the space between both @ error, had to add it so epvp doesn't fuck up the code.

The Sleep(25) works for my Minigame Difficulty -2 tool. If you have a -1 or -3 you might need to adjust that value up or down.

Again, credit goes to @[Only registered and activated users can see links. Click Here To Register...], I just adjusted the values for my own use and wanted to share for others on 1920x1080.
Thanks for the help, I have zero knowledge of coding but your post helped me.