A guide to get notAres's script running on various 16:10 and above resolutions. menu

Shout-Out

User Tag List

Page 3 of 4 FirstFirst 1234 LastLast
Results 31 to 45 of 55
  1. #31
    Simonzi's Avatar Active Member
    Reputation
    20
    Join Date
    Jun 2012
    Posts
    147
    Thanks G/R
    0/0
    Trade Feedback
    1 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Drumcode View Post
    Would appreciate a 1920x1200 code!! Thanks!
    1920x1200 is a 16:10 resolution. It would take a very serious overhaul (pretty much rewriting the entire code), to run on 1920x1200. Which is why I did this to get it to run in various resolution window modes. My resolution as well is 1920x1200 on a single monitor, you can use the 1920x1080 one perfectly fine.


    Originally Posted by AWilson013 View Post
    Simonzi, first off I want to thank you for editing this script to run on this resolution.

    Now, I am having a problem pretty regularly. Whenever I come to check on the script to make sure everything is working (usually after an hour or two of running) I find the script just clicking around my profile page, or my banner page. Any thoughts on this, or how I could fix it? I have a feeling it has something to do with deaths... I haven't been able to watch the problem occur yet.

    The other problem that's only happened twice is that I come to check on it, and D3 will be closed, with the script stopped. Again, any thoughts?

    Thanks for your time!

    Alex
    The problem with the script clicking around the banner and profile page is due to the way the game scales the buttons and whatnot in that small of a resolution. There is a function in the script that is supposed to check if one of those windows is open by looking for the red X, and if it's open, close the window. On those resolutions and smaller, it's not finding the red X. The fix should be simple enough, just a few more edits of some code, I'll get it done in a few minutes (hopefully).

    D3 closing and the script stopped? That I have absolutely no idea, sorry. Even if the script accidentally closed the game, the script should still be running.

    A guide to get notAres's script running on various 16:10 and above resolutions.
  2. #32
    AWilson013's Avatar Member
    Reputation
    1
    Join Date
    Jun 2012
    Posts
    7
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Simonzi View Post

    The problem with the script clicking around the banner and profile page is due to the way the game scales the buttons and whatnot in that small of a resolution. There is a function in the script that is supposed to check if one of those windows is open by looking for the red X, and if it's open, close the window. On those resolutions and smaller, it's not finding the red X. The fix should be simple enough, just a few more edits of some code, I'll get it done in a few minutes (hopefully).

    D3 closing and the script stopped? That I have absolutely no idea, sorry. Even if the script accidentally closed the game, the script should still be running.
    Thanks for the hasty response!

    I watched it do a few runs and noticed a slight delay on my end with the "Resume" screen loading. I added half a second to the wait time, we'll see if it helps.

    Also, I watched it do ~10 runs wherein 6 of the runs, the cellar was open. Twice I watched it check for the cellar (when it was open) and then port town town, and leave game.

    I can live with it missing the cellar a couple times, as long as it keeps running, I just thought it was a bit curious.

    Thanks again for all of your work.

    Alex

  3. #33
    Xstreme's Avatar Private
    Reputation
    2
    Join Date
    Jun 2012
    Posts
    7
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Dude I honestly can't thank you enough. I've been trying to get notAres's one to work for a few days now but because my computer was so old and laggy it just wouldn't run. With yours it runs perfectly, thanks again!

    EDIT: only one thing that would probably happen with the other scripts is the off chance that there is a risen right where you set the two traps and teleport when the cellar is closed. When this happens he may kill you if you have not so good GF gear like me and this stuffs up the script a little. Just wanted to let everyone know.
    Last edited by Xstreme; 06-11-2012 at 08:32 PM.

  4. #34
    tehpwnage34's Avatar Member
    Reputation
    1
    Join Date
    Jun 2012
    Posts
    2
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thank you so much Simonzi, this works like a charm! I used 1280x720 and instantly worked! I hate the fact almost every other bot requires a 1920x1080 resolution because my GPU cannot take up a resolution that high. Once again, thank you so much! You are a God.

  5. #35
    AWilson013's Avatar Member
    Reputation
    1
    Join Date
    Jun 2012
    Posts
    7
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by AWilson013 View Post
    The other problem that's only happened twice is that I come to check on it, and D3 will be closed, with the script stopped. Again, any thoughts?

    Alex
    I was wrong. When D3 is closed, the script is still running. I guess I was just not paying much attention. Any suggestions now?

    Thanks again!

    Alex

  6. #36
    meta23's Avatar Sergeant
    Reputation
    2
    Join Date
    Jun 2012
    Posts
    53
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Does anyone has this working in 1280x780 for the new version 14a?

  7. #37
    kelvinblade's Avatar Member
    Reputation
    1
    Join Date
    Mar 2007
    Posts
    20
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    deleted.....
    Last edited by kelvinblade; 06-12-2012 at 02:22 AM.

  8. #38
    Fumi's Avatar Contributor CoreCoins Purchaser
    Reputation
    207
    Join Date
    Feb 2008
    Posts
    561
    Thanks G/R
    0/6
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    mine works fine, but when there is a cellar, it dosent detect it and just teleports back as if there was no cellar

  9. #39
    suffocater's Avatar Private
    Reputation
    1
    Join Date
    Jun 2012
    Posts
    6
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Simonzi View Post
    Here's the info for 1280x720.

    I'll be back with an even lower res one hopefully in a few minutes.
    thx for this,the 1st script i managed to run,not everyone has that large screens :s.
    Now the problem is that if i die while teleporting/or even the teleporting gets interupted,it results in a loop of eternal banner/stats watching,at the main menu.

  10. #40
    l1zard's Avatar Member
    Reputation
    16
    Join Date
    Dec 2007
    Posts
    58
    Thanks G/R
    0/0
    Trade Feedback
    1 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Simonzi View Post
    And this is the lowest it will go while functioning, 1366x768. This still has the same issue, with detecting the red X of the in game windows, so you'll still have to hit space bar that first time when it pulls up the character stat page.

    Code:
        ;notAres' Sarkoth DH Gold Script 1.3a - 6/9/2012 - Holy shit look how beautiful this code is. Utilized ExitLoop to perfect the efficiency when dead/logging out/in need of repair
        ;Thread: http://ownedcore.com/forums/diablo-3/diablo-3-bots-programs/354464-goldfarming-notares-sarkarth-dh-gold-script-autoit-script-1920x1080.html
        ;Please notice I changed some variable names around and added a variable for teleport time. $waittime is now appropriately named $loadtime.
        ;WONT WORK UNLESS MOVE IS BOUND TO MIDDLE MOUSE (Mouse 3) -- NOT MOVE/INTERACT
        ;Required build: http://us.battle.net/d3/en/calculator/demon-hunter#aRYXVT!aTW!YcaZbY
        ;Required movement speed: 25% (10% boots + 15% passive 'Hot Pursuit')
        ;Required display mode for cellar detection: "FULLSCREEN WINDOWED"
        ;Official supported resolution: 1920x1080
        ;;;;;
        ;Features:
        ;Loot scanning. Will only pick up rare/legendary/set pieces [IMPROVED]
        ;Randomized aiming coordinates (but still static path)
        ;Randomized pickup timers for variation in runs
        ;Automatic repair on yellow status icon
        ;Automatic resolution adjustment (16:9 only) [BUGGY - need someone to tweak coords]
        ;Death check
        ;Open window check (in rare case it gets stuck in menu)
        ;;;;;
        ;Original:
        ;[Goldfarming] AFK 150k-200k Gold Per Hour by mackus101 @ ownedcore
        
        Opt('MouseCoordMode', 2)
        Opt('PixelCoordMode', 2) 
    
        Global $Paused
        HotKeySet("=","Leave")  ;script started by pressing =
        HotKeySet("-", "Pause") ;script paused by pressing -
        HotKeySet("x", "Stop") ;script stopped by pressing x
         
        $walktime = 3000 ; time in ms the script waits for you to enter and load the cellar. Slow this down for slower move speeds and loading times
        $loadtime = 3200 ; time in ms the script waits for the game to load before it starts pathfinding. Slow this down for slower hard drives
        $tptime =       6900 ; time in ms the script waits for teleport before exiting the game
        $yellow =       0xFFF000 ; yellow color code (repair icon)
        $red =          0xD90000 ; red color code (repair icon)
         
        $LootRares = True ; Change this to false if you don't want the bot to pick up rares (good for legendary/set only, recommend setting LootGems to False)
        $LootGems = False ; Change this to true if you want to pick up gems (messy, can fill up bag with whites/blues)
        $Amethyst = 0xAC7FFF
        $Ruby = 0xB01D2D
        $Emerald = 0x58EE33
        $Topaz = 0xFFFF59
         
        $go = True
        $Leave = False
        $Dead = False
        $Logout = False
        $Window = False
        $default_resolutionX = 1920
        $default_resolutionY = 1080
        $x_ratio = 1366 / $default_resolutionX
        $y_ratio = 768 / $default_resolutionY
        $i = 0
         
        Call("RestartRun")
         
        Func RestartRun()
           While $go
                  if($Leave) Then
                         $i = 0
                         Sleep(800) ;had to add this since the icon doesn't show up RIGHT away in game
                         Call("CheckDead")
                         Call("CheckRepair")
                         If $Window Then
                                MouseClick("left", Round(230*$x_ratio),Round(416*$y_ratio)) ;button to resume game from main menu
                                Sleep($loadtime)
                                $Window = False
                                ExitLoop
                         ElseIf $Dead or $Logout Then
                                ExitLoop
                         EndIf
                         MouseClick("middle", Round(500*$x_ratio), Round(250*$y_ratio)) ;starts the run [waypoint 1]
                         Sleep(900)
                         Send("2")
                         Sleep(250)
                         MouseClick("middle", 1, Round(370*$y_ratio)) ;waits ~1 second then [waypoint 2]
                         Sleep(1500)
                         MouseClick("middle", Round(400*$x_ratio), Round(600*$y_ratio)) ;middle of courtyard [waypoint 3]
                         Sleep(40)
                         Send("2")
                         Sleep(20)
                         Send("3")
                         Sleep(600)
                         Send("1")
                         Sleep(300)
                         MouseMove(Round(300*$x_ratio),Round(100*$y_ratio),1) ;moves cursor over to the cellar so the proper blue pixel becomes highlighted
                         Sleep(790)
                         Call("CheckDead")
                         If $Window Then
                                MouseClick("left", Round(230*$x_ratio),Round(416*$y_ratio)) ;button to resume game from main menu
                                Sleep($loadtime)
                                $Window = False
                                ExitLoop
                         ElseIf $Dead or $Logout Then
                                ExitLoop
                         EndIf
                         $Pixel2 = PixelSearch(0,0, Round(600*$x_ratio), Round(600*$y_ratio),0x334FB7,3) ;checks for open cellar (in a 600x400 box from the top left - where it should always be)
                                   If Not @error Then
                                          MouseClick("left",Round(300*$x_ratio),Round(100*$y_ratio)) ;Entrance to cellar
                                          Sleep(300)
                                          Send("2")
                                          Sleep($walktime)
                                          MouseClick("middle",Round(110*$x_ratio),Round(1000*$y_ratio)) ;moves to doorway leading to rare inside cellar
                                          Sleep(2500)
                                          MouseMove(Round(440*$x_ratio),Round(80*$y_ratio),1) ;hovers over the rare Sarkoth
                                          Sleep(10)
                                          Send("{SHIFTDOWN}")
                                          MouseDown("right") ;attack middle
                                          Sleep(1200)
                                          Send("4")
                                          Sleep(3000)
                                          MouseUp("right")
                                          MouseClick("left",Round(440*$x_ratio),Round(80*$y_ratio),2)
                                          MouseMove(Round(240*$x_ratio),Round(75*$y_ratio),1) ;attack left
                                          Sleep(40)
                                          MouseDown("right")
                                          Sleep(2800)
                                          MouseUp("right")
                                          MouseMove(Round(590*$x_ratio),Round(50*$y_ratio),1) ;attack right
                                          MouseDown("right")
                                          Sleep(1800)
                                          MouseUp("right")
                                          MouseDown("left")
                                          MouseMove(Round(Random(240,260)*$x_ratio),Round(75*$y_ratio),1) ;attack left
                                          Sleep(1200)
                                          MouseMove(Round(Random(560,600)*$x_ratio),Round(50*$y_ratio),1) ;attack right
                                          Sleep(1200)
                                          MouseUP("left")
                                          Sleep(10)
                                          MouseClick("right",Round(620*$x_ratio),Round(20*$y_ratio),2) ;break the table & chair
                                          Sleep(10)
                                          Send("{SHIFTUP}")
                                          Sleep(400)
                                          MouseClick("middle",Round(530*$x_ratio),Round(170*$y_ratio)) ;location of sarkoth after death
                                          Sleep(2100)
                                          MouseClick("middle",Round(580*$x_ratio),Round(460*$y_ratio)) ;move to left top corner for gold
                                          Sleep(1100)
                                          MouseClick("middle",Round(1330*$x_ratio),Round(330*$y_ratio)) ;move to right top corner for gold
                                          Sleep(1100)
                                          Send("4")
                                          MouseClick("middle",Round(1010*$x_ratio),Round(940*$y_ratio)) ;move to middle before looting
                                          Call("CheckLoot")
                                          Send("t")
                                          Sleep($tptime)
                                          Call("CheckDead")
                                          If Not $Logout And Not $Dead And Not $Window Then
                                                 Sleep(300)
                                                 Send("{ESCAPE}") ;menu
                                                 Sleep(200)
                                                 MouseClick("left", Round(956*$x_ratio),Round(579*$y_ratio)) ;button to leave game
                                                 Sleep($loadtime)
                                                 Call("CheckDead")
                                                 If Not $Logout Then
                                                        MouseClick("left", Round(230*$x_ratio),Round(416*$y_ratio)) ;button to resume game from main menu
                                                        Sleep($loadtime)
                                                 EndIf
                                          Else
                                                 MouseClick("left", Round(230*$x_ratio),Round(416*$y_ratio)) ;button to resume game from main menu
                                                 Sleep($loadtime)
                                                 $Window = False ; reset the flag so it doesn't think a window is always up
                                          EndIf
                                   Else
                                          Sleep(10)
                                          MouseClick("middle",Round(1100*$x_ratio),Round(600*$y_ratio)) ;moves between caltrops for safety before teleporting back to town
                                          Sleep(200)
                                          Send("1")
                                          Sleep(620)
                                          Send("2")
                                          Sleep(40)
                                          Send("t")
                                          Sleep($tptime)
                                          Call("CheckDead")
                                          If Not $Logout And Not $Dead And Not $Window Then
                                                 Sleep(300)
                                                 Send("{ESCAPE}") ;menu
                                                 Sleep(200)
                                                 MouseClick("left", Round(956*$x_ratio),Round(579*$y_ratio)) ;button to leave game
                                                 Sleep($loadtime)
                                                 Call("CheckDead")
                                                 If Not $Logout Then
                                                        MouseClick("left", Round(230*$x_ratio),Round(416*$y_ratio)) ;button to resume game from main menu
                                                        Sleep($loadtime)
                                                 EndIf
                                          Else
                                                 MouseClick("left", Round(230*$x_ratio),Round(416*$y_ratio)) ;button to resume game from main menu
                                                 Sleep($loadtime)
                                                 $Window = False ; reset the flag so it doesn't think a window is always up
                                          EndIf
                                EndIf
                  EndIf
           WEnd
           Call("RestartRun")
        EndFunc
         
        Func CheckDead()
        Call("CheckWindow")
        $YouHaveDied = PixelSearch(Round(620*$x_ratio), Round(325*$y_ratio), Round(625*$x_ratio), Round(330*$y_ratio), 0xFFFFFF) ; checks for white text "YOU HAVE DIED"
        If Not @error Then
           If Not $Window Then
                  $Dead = True
                  Sleep(100)
                  Send("{Escape}")
                  Sleep(10)
                  MouseClick("left", Round(956*$x_ratio),Round(579*$y_ratio)) ;button to leave game
                  Sleep(11000)
                  Sleep($loadtime)
                  MouseClick("left", Round(230*$x_ratio),Round(416*$y_ratio)) ;button to resume game from main menu
                  Sleep($loadtime)
           Else
                  MouseClick("left", Round(230*$x_ratio),Round(416*$y_ratio)) ;button to resume game from main menu
                  Sleep($loadtime)
                  $Dead = False
           EndIf
        Else
           $Dead = False
        EndIf
        $LogoutTimerCancel = PixelSearch(Round(900*$x_ratio), Round(240*$y_ratio), Round(1010*$x_ratio), Round(290*$y_ratio), 0x993827) ; checks for cancel button on logout timer
        If Not @error Then
           Sleep(11000)
           Sleep($loadtime)
           If Not $Window Then
                  $Dead = True
                  $Logout = True
                  Sleep($loadtime)
                  MouseClick("left", Round(230*$x_ratio),Round(416*$y_ratio)) ;button to resume game from main menu
                  Sleep($loadtime)
           Else
                  MouseClick("left", Round(230*$x_ratio),Round(416*$y_ratio)) ;button to resume game from main menu
                  Sleep($loadtime)
                  $Logout = False
           EndIf
        Else
           $Logout = False
        EndIf
        EndFunc
         
        Func CheckWindow()
        $CloseButton = PixelSearch(Round(1570*$x_ratio), Round(110*$y_ratio), Round(1590*$x_ratio), Round(120*$y_ratio), 0x8C2300) ; checks for the red color of the "X" on an open window
        If Not @error Then
           Sleep(200)
           Send("{SPACE}") ;close any open windows
           $Window = True
        Else
           $Window = False
        EndIf
        EndFunc
         
        Func CheckRepair()
        $RepairArea = PixelSearch(Round(1480*$x_ratio), 0, Round(1570*$x_ratio), Round(100*$y_ratio), $yellow)
           If Not @error Then
                  Call("DoRepair")
           EndIf
        $RepairAreaRed = PixelSearch(Round(1480*$x_ratio), 0, Round(1570*$x_ratio), Round(100*$y_ratio), $red)
           If Not @error Then
                  Call("DoRepair")
           EndIf
        EndFunc
         
        Func DoRepair()
        Sleep(100)
        Send("t")
        Sleep($tptime)
        MouseClick("left", Round(1480*$x_ratio),Round(281*$y_ratio)) ;begin movement towards merchant
        Sleep(1500)
        MouseClick("left", Round(1316*$x_ratio),Round(206*$y_ratio)) ;moves to get merchant in screen
        Sleep(1500)
        MouseClick("left", Round(845*$x_ratio),Round(225*$y_ratio)) ;NPC Merchant to the right of cain's home
        Sleep(1200)
        MouseClick("left", Round(521*$x_ratio),Round(506*$y_ratio)) ;button to open up repair menu
        Sleep(400)
        MouseClick("left", Round(260*$x_ratio),Round(595*$y_ratio)) ;button to pay for repairs
        Sleep(200)
        Call("CheckDead")
        If Not $Dead and Not $Logout Then
           Send("{ESCAPE}") ;closes repair tab
           Sleep(100)
           Send("{ESCAPE}") ;menu
           Sleep(10)
           MouseClick("left", Round(956*$x_ratio),Round(579*$y_ratio)) ;button to leave game
           Sleep($loadtime)
           MouseClick("left", Round(230*$x_ratio),Round(416*$y_ratio)) ;button to resume game from main menu
           Sleep($loadtime)
        EndIf
        EndFunc
         
        Func CheckLoot()
        Sleep(Random(500,2000))
        $SetLoot = PixelSearch(Round(400*$x_ratio), 0, Round(1690*$x_ratio), Round(900*$y_ratio), 0x02CE01, 2) ; set loot
        If Not @error Then
           MouseClick ('left', $SetLoot[0], $SetLoot[1])
           Sleep(Random(800,1200))
           $i+= 1
           If $i <= 6 Then
                  Call("CheckLoot")
           EndIf
        EndIf
        $LegendaryLoot= PixelSearch(Round(400*$x_ratio), 0, Round(1690*$x_ratio), Round(900*$y_ratio), 0xBF642F, 2) ; legendary loot
        If Not @error Then
           MouseClick ('left', $LegendaryLoot[0], $LegendaryLoot[1])
           Sleep(Random(800,1200))
           $i+= 1
           If $i <= 6 Then
                  Call("CheckLoot")
           EndIf
        EndIf
        If $LootRares Then
           $RareLoot = PixelSearch(Round(400*$x_ratio), 0, Round(1690*$x_ratio), Round(900*$y_ratio), 0xBBBB00, 2) ; rare loot (darker for compatibility)
           If Not @error Then
                  MouseClick ('left', $RareLoot[0], $RareLoot[1])
                  Sleep(Random(700,900))
                  $i+= 1
                  If $i <= 6 Then
                         Call("CheckLoot")
                  EndIf
           EndIf
        EndIf
        If $LootGems Then
           $AmethystDrop = PixelSearch(Round(400*$x_ratio), 0, Round(1690*$x_ratio), Round(900*$y_ratio), $Amethyst,8)
           If Not @error Then
                  MouseClick("left", $AmethystDrop[0], $AmethystDrop[1])
                  Sleep(Random(900,1400))
                  $i+= 1
                  If $i <= 10 Then
                         Call("CheckLoot")
                  EndIf
           EndIf
           $RubyDrop = PixelSearch(Round(400*$x_ratio), 0, Round(1690*$x_ratio), Round(900*$y_ratio), $Ruby,6)
           If Not @error Then
                  MouseClick("left", $RubyDrop[0], $RubyDrop[1])
                  Sleep(Random(900,1400))
                  $i+= 1
                  If $i <= 10 Then
                         Call("CheckLoot")
                  EndIf
           EndIf
           $EmeraldDrop = PixelSearch(Round(400*$x_ratio), 0, Round(1690*$x_ratio), Round(900*$y_ratio), $Emerald,11)
           If Not @error Then
                  MouseClick("left", $EmeraldDrop[0], $EmeraldDrop[1])
                  Sleep(Random(900,1400))
                  $i+= 1
                  If $i <= 10 Then
                         Call("CheckLoot")
                  EndIf
           EndIf
           $TopazDrop = PixelSearch(Round(400*$x_ratio), 0, Round(1690*$x_ratio), Round(900*$y_ratio), $Topaz,2)
           If Not 1 = 1 Then ; change to 'If Not @error Then' if you want to search for topazes
                  MouseClick("left", $TopazDrop[0], $TopazDrop[1])
                  Sleep(Random(900,1400))
                  $i+= 1
                  If $i <= 10 Then
                         Call("CheckLoot")
                  EndIf
           EndIf
        EndIf
        EndFunc
         
        Func Pause()
           $Leave = False
        EndFunc
         
        Func Stop() ;to allow the script to stop
            Exit
        EndFunc
         
        Func Leave()
           $Leave = True
        EndFunc
    D3Prefs.txt

    Code:
    DisplayModeWindowMode "1"
    DisplayModeWinLeft "1"
    DisplayModeWinTop "1"
    DisplayModeWinWidth "1382"
    DisplayModeWinHeight "806"
    DisplayModeUIOptWidth "1366"
    DisplayModeUIOptHeight "768"
    DisplayModeWidth "1366"
    DisplayModeHeight "768"
    And... I'm done. Hopefully this helps some people.

    Thanks a lot! works for me can you do this with new version? (item pick) ty good job

  11. #41
    garados's Avatar Corporal
    Reputation
    1
    Join Date
    Jun 2012
    Posts
    28
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    hiya, jsut wanna ask if this method works for all other scripts written for 1920x1080?
    thanks

  12. #42
    Simonzi's Avatar Active Member
    Reputation
    20
    Join Date
    Jun 2012
    Posts
    147
    Thanks G/R
    0/0
    Trade Feedback
    1 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by l1zard View Post
    Thanks a lot! works for me can you do this with new version? (item pick) ty good job
    I stopped doing this for versions when the 1.3b update came out. It's much more difficult to get running on the versions that use the .pngs for loot or locations.

    Originally Posted by garados View Post
    hiya, jsut wanna ask if this method works for all other scripts written for 1920x1080?
    thanks
    This method can work on other scripts depending on how it's coded. Which script were you looking at?

  13. #43
    LoverBoy24's Avatar Sergeant
    Reputation
    1
    Join Date
    Jun 2012
    Posts
    39
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Don't get it.
    I tryed but i'm a noob.It's the first time i download AutoIt.
    I made the changes.My desktop resolution is 1440x900 the highest I can get and in mi diablo 3 options i turned fullsceen windowed.

    My scrips whith the modification look like this :

    #include-once
    ; ------------------------------------------------------------------------------
    ;
    ; AutoIt Version: 3.0
    ; Language: English
    ; Description: Functions that assist with Image Search
    ; Require that the ImageSearchDLL.dll be loadable
    ;
    ; ------------------------------------------------------------------------------

    ;===============================================================================
    ;
    ; Description: Find the position of an image on the desktop
    ; Syntax: _ImageSearchArea, _ImageSearch
    ; Parameter(s):
    ; $findImage - the image to locate on the desktop
    ; $tolerance - 0 for no tolerance (0-255). Needed when colors of
    ; image differ from desktop. e.g GIF
    ; $resultPosition - Set where the returned x,y location of the image is.
    ; 1 for centre of image, 0 for top left of image
    ; $x $y - Return the x and y location of the image
    ;
    ; Return Value(s): On Success - Returns 1
    ; On Failure - Returns 0
    ;
    ; Note: Use _ImageSearch to search the entire desktop, _ImageSearchArea to specify
    ; a desktop region to search
    ;
    ;===============================================================================
    Opt('MouseCoordMode', 2)
    Opt('PixelCoordMode', 2)
    Func _ImageSearch($findImage,$resultPosition,ByRef $x, ByRef $y,$tolerance)
    return _ImageSearchArea($findImage,$resultPosition,0,0,@DesktopWidth,@DesktopHeight,$x, $y,$tolerance)
    EndFunc

    Func _ImageSearchArea($findImage,$resultPosition,$x1,$y1,$right,$bottom,ByRef $x, ByRef $y, $tolerance)
    if $tolerance>0 then $findImage = "*" & $tolerance & " " & $findImage
    $result = DllCall("ImageSearchDLL.dll","str","ImageSearch","int",$x1,"int",$y1,"int",$righ t,"int",$bottom,"str",$findImage)
    if $result = "0" then return 0

    ; Otherwise get the x,y location of the match and the size of the image to
    ; compute the centre of search
    $array = StringSplit($result[0],"|")
    If(UBound($array) >= 4) Then
    $x=Int(Number($array[2]))
    $y=Int(Number($array[3]))
    if $resultPosition=1 then
    $x=$x + Int(Number($array[4])/2)
    $y=$y + Int(Number($array[5])/2)
    endif
    return 1
    EndIf
    EndFunc

    ;===============================================================================
    ;
    ; Description: Wait for a specified number of seconds for an image to appear
    ;
    ; Syntax: _WaitForImageSearch, _WaitForImagesSearch
    ; Parameter(s):
    ; $waitSecs - seconds to try and find the image
    ; $findImage - the image to locate on the desktop
    ; $tolerance - 0 for no tolerance (0-255). Needed when colors of
    ; image differ from desktop. e.g GIF
    ; $resultPosition - Set where the returned x,y location of the image is.
    ; 1 for centre of image, 0 for top left of image
    ; $x $y - Return the x and y location of the image
    ;
    ; Return Value(s): On Success - Returns 1
    ; On Failure - Returns 0
    ;
    ;
    ;===============================================================================
    Func _WaitForImageSearch($findImage,$waitSecs,$resultPosition,ByRef $x, ByRef $y,$tolerance)
    $waitSecs = $waitSecs * 1000
    $startTime=TimerInit()
    While TimerDiff($startTime) < $waitSecs
    sleep(100)
    $result=_ImageSearch($findImage,$resultPosition,$x, $y,$tolerance)
    if $result > 0 Then
    return 1
    EndIf
    WEnd
    return 0
    EndFunc

    ;===============================================================================
    ;
    ; Description: Wait for a specified number of seconds for any of a set of
    ; images to appear
    ;
    ; Syntax: _WaitForImagesSearch
    ; Parameter(s):
    ; $waitSecs - seconds to try and find the image
    ; $findImage - the ARRAY of images to locate on the desktop
    ; - ARRAY[0] is set to the number of images to loop through
    ; ARRAY[1] is the first image
    ; $tolerance - 0 for no tolerance (0-255). Needed when colors of
    ; image differ from desktop. e.g GIF
    ; $resultPosition - Set where the returned x,y location of the image is.
    ; 1 for centre of image, 0 for top left of image
    ; $x $y - Return the x and y location of the image
    ;
    ; Return Value(s): On Success - Returns the index of the successful find
    ; On Failure - Returns 0
    ;
    ;
    ;===============================================================================
    Func _WaitForImagesSearch($findImage,$waitSecs,$resultPosition,ByRef $x, ByRef $y,$tolerance)
    $waitSecs = $waitSecs * 1000
    $startTime=TimerInit()
    While TimerDiff($startTime) < $waitSecs
    for $i = 1 to $findImage[0]
    sleep(100)
    $result=_ImageSearch($findImage[$i],$resultPosition,$x, $y,$tolerance)
    if $result > 0 Then
    return $i
    EndIf
    Next
    WEnd
    return 0
    EndFunc



    My D3Prefs.txt look like this :

    PreferencesVersion "42"
    PlayedCutscene0 "15"
    PlayedCutscene1 "15"
    PlayedCutscene2 "23"
    PlayedCutscene3 "143"
    DisplayModeFlags "0"
    DisplayModeWindowMode "2"
    DisplayModeWinLeft "0"
    DisplayModeWinTop "0"
    DisplayModeWinWidth "1282"
    DisplayModeWinHeight "788"
    DisplayModeUIOptWidth "1280"
    DisplayModeUIOptHeight "768"
    DisplayModeWidth "1280"
    DisplayModeHeight "768"
    DisplayModeRefreshRate "60"
    DisplayModeBitDepth "32"
    Gamma "1.000000"
    MipOffset "0"
    ShadowQuality "3"
    PhysicsQuality "0"
    ClutterQuality "3"
    Vsync "0"
    Letterbox "0"
    Antialiasing "0"
    LowFX "1"
    LimitForegroundFPS "1"
    MaxForegroundFPS "150"
    LimitBackgroundFPS "1"
    MaxBackgroundFPS "8"
    DisableTrilinearFiltering "0"
    ColorCorrection "1"
    MipBias "0.000000"
    ReflectionQuality "0"
    TonemapExposure "1.900000"
    TonemapContrast "1.500000"
    TonemapSaturation "1.000000"
    TonemapGain "1.000000"
    HardwareClass "2"
    PCIVendor "4098"
    PCIDevice "38273"
    MasterVolume "0.140000"
    EffectVolume "0.800000"
    MusicVolume "0.800000"
    NarrationVolume "0.800000"
    AmbientVolume "0.800000"
    ChannelsToUse "32"
    ReverseSpeakers "0"
    QuestSubtitlesEnabled "1"
    CinematicsSubtitlesEnabled "1"
    EchoQuestDialogToChat "1"
    MuteSound "0"
    MuteEffects "0"
    MuteAmbient "0"
    MuteVoice "0"
    MuteMusic "0"



    So i enter the game then and after i whent to Act 1, part 2 legacy of cain- Explore cellar (on hell because inferno is to hard )I executed the ImageSearch.au3 with double click.
    Is this what i had to do ?

    There is no good bot wich i can't get ban (Hell Baddy got baned and Immortal is offline ) so i can farm with 5 nephalen stack in hell or even inferno ?

    Thanks to all for the help !

  14. #44
    deudodideudeu's Avatar Private
    Reputation
    1
    Join Date
    Aug 2011
    Posts
    4
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I tried the solution for 1280x720 and it works so far, but i´m playing a sorc and this script seems to be for DH.
    So i wanted to ask, if someone got this one to work for a sorc?

  15. #45
    TanookiLover's Avatar Member
    Reputation
    11
    Join Date
    May 2012
    Posts
    172
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    If you have 1920x1200 and want to use the bot, it's very easy. This is what you do: right click desktop -> screen resolution/properties -> set it to 1920x1080, click ok. Done.

    It looks stretched but who cares, you're botting any way lmao, and it works!

Page 3 of 4 FirstFirst 1234 LastLast

Similar Threads

  1. Failing to get my scripts running
    By Peterk426 in forum Diablo 3 Bots Questions & Requests
    Replies: 1
    Last Post: 07-08-2012, 07:04 PM
  2. I need help getting notAres 1.9.3 to 800x600 or a 800x600 similar to his script
    By notAres800x600 in forum Diablo 3 Bots Questions & Requests
    Replies: 0
    Last Post: 06-28-2012, 04:29 AM
  3. The Complete Guide to Getting the PTR
    By Alkhara Majere in forum World of Warcraft Guides
    Replies: 4
    Last Post: 07-27-2007, 03:32 AM
  4. looking for a guide to get me from 300 to 375 in enchanting
    By bait in forum World of Warcraft General
    Replies: 2
    Last Post: 01-22-2007, 06:33 PM
  5. Imperial Armor (guide to get)
    By oninuva in forum World of Warcraft Guides
    Replies: 7
    Last Post: 05-05-2006, 03:17 PM
All times are GMT -5. The time now is 06:43 PM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search