Works fine but doesn't loop, it stop on class selection.
Thx in advance.
Hello qwerz123. What did not try to make it work, it didn't lead to success, pictures altered 3 times and Jpg and Bmp tried, everything is ineffectual, totally spent 7 hours. But it still goes to the main menu and presses ESC. = (
I understand that this is my problem, but maybe you'll be kind enough to cut a piece of script is responsible only for entering numbers in the price and buy the lot when it appears? And all search options, were introduced to direct by hands in the game. If not difficult, please do.
With respect.
P.S. sorry for mistakes, English is't my native language.
function checkIfWeInMenu:
The only thing bot does is checks for AuctionHouse.jpg and if it is not found presses ESC button. So the problem is only that bot can't find the picture. Try different pictures. If "AUCTION HOUSE" picture is not working then try "UCTION HOU" or "CTION HOUSE" or "AUCTIO". Just something that is unique on the page. And use my script to check the images you made. Use Snipping Tools from Windows (Start-All Programs-Accessories).Code:Func checkIfWeInMenu() WinActivate("Diablo III") Sleep(200) $x=0 $y=0 While 1 $res= _ImageSearch("D3AHImages\AuctionHouse.jpg",0,$x,$y,100) If $res=1 Then ExitLoop Else Send("{ESC}") Sleep(200) EndIf WEnd EndFunc
I uploaded the video: how to make imagesearch work - YouTube
Well... i can't really say more. Just make sure that test script is finding the picture. That's it.
So this is based on ppl mistake while they posting items or they set low price cuz they are noobs? or what? i dont get it from videos.
I have your AH bot working (I remade and checked new screenshots for me), is amazing and works but i have a problem. When bot finish check all items in AH from INI read (item1, item2, etc), bot don't start again and stop working and close :S. I would like looping again AHoptions.ini.
What is the problem here closing bot after finish search in AH? Thx in advance.Code:While 1 logStart() $abc=0 Do $abc=$abc+1 If ProcessExists("Diablo III.exe") Then CheckItem($abc) Else Exit 0 EndIf Until $abc=$itemsCount logEnd() Sleep(Random(10000,60000)) ;Random time to sleep between checking WEnd
Sorry for my english.
qwerz123, thanks a lot! All turned.After four attempt began to see AuctionHouse.jpg
One more question if it is possible.
The script does't specify such parameters as lvlitem and Rarity.
How it can be realized?
P.S. Hoping for an answer.
This is a bawt i could get behind. i'll start poking around with this after raid tonight.
(don't post things I post to Patreon.)
Yah I'm gonna remake thisthanks for inspiration.
I finally got the images to detect. I turned up my brightness and gamma. The only problem now is that after it detects auctionhouse it just opens up the quest page. So I guess all the cord are off for some reason. I am running 1024x768 Fullscreen Windowed. Might because my desktop resolution is not that though. I am currently going through and changing coordinates. Making some progress.
Last edited by Gardettos; 06-13-2012 at 03:09 PM.
So after messing with the coordinates I realize this might not be worth it. Would be easiest if your post your D3Pref exactly like this
PreferencesVersion "42"
PlayedCutscene0 "1"
PlayedCutscene1 "0"
PlayedCutscene2 "0"
PlayedCutscene3 "0"
DisplayModeFlags "0"
DisplayModeWindowMode "1"
DisplayModeWinLeft "584"
DisplayModeWinTop "246"
DisplayModeWinWidth "816"
DisplayModeWinHeight "638"
DisplayModeUIOptWidth "1280"
DisplayModeUIOptHeight "768"
DisplayModeWidth "1680"
DisplayModeHeight "1050"
DisplayModeRefreshRate "75"
DisplayModeBitDepth "32"
Gamma "1.100000"
MipOffset "0"
ShadowQuality "3"
PhysicsQuality "1"
ClutterQuality "3"
Vsync "1"
Letterbox "0"
Antialiasing "1"
LowFX "0"
EDIT: I found out how it worked.. but im still only getting a lot of ESC's... if anyone have some other pictures that works it would be appreciated!
Last edited by m0llef0ot; 06-13-2012 at 08:05 PM.
Does not work. presses Escape alot. I R Teh Disappoint.
(don't post things I post to Patreon.)
Strange. The loop in infinite, so the bot must be checking items until you will turn it off. Or if it totally quits then some error occurs. Do you have correct number in "Options .ini":
So if you have the last one "item21" then in "HowManyItems" variable must be 21. Also check all "Exit 0" functions in the script. Lines are 34, 165, 189, 669. Try raise checks on 165,189 and 669 lines. For example notCode:[general] HowManyItems="21"
but:Code:If $a=10 Then exit 0
Maybe bot can't find the stuff on 10 checks and quits. All exit functions are made to prevent errors. Because this is auction and if bot does something stupid (like buying useless things for 10 mil.) by clicking randomly... maybe you will have different opinion about meCode:If $a=20 Then exit 0You can also comment Exit functions and look if bot continues the loop and then try to find the error.
Thanks very much for your contribution.
I have stripped your code down to its bare functions and am using it as buying machine while I'm sitting at the computer.
The only problem I've had is that when an item does appear to buy, it takes forever to actually purchase it. Normally it's sold before the script can even click it.
I've tried reducing the sleep before the image check for NoItemsFound.jpg and it seems it doesn't give imagesearch enough time to look for the jpg.
Any ideas on why imagesearch would be so slow?