Results 1 to 13 of 13
  1. #1
    Member
    Reputation
    1
    Join Date
    Jun 2012
    Posts
    7
    CoreCoins
    0

    Trade Feedbacks

    Status
    n/a
    Positive
    0 (0%)
    Negative
    0 (0%)

    Sarkoth Gold Farm DH [AutiIT Script] - Modified by Oden2005 NO MORE STUCK IN MENUS



    Donate to Remove Ads, Get ShoutBawx - Elite Forum Access
    I had Tried notAres' DH script and a few versions modified by other board members here but eventually it would keep getting stuck in the game menu if I died or sometimes after repairing so I added a function to check that the game was at the main menu before each time the script attempts to click the resume game button. If you are not at the main menu and stuck in any of the menus I saw it get hung up in, game menu, game menu exit diablo III confirmation, banner customization menu, player menu, it will automatically exit back out to the main menu and resume game.

    I also customized the load time for my SSD and the combat times for my DH who has much less damage with my 250% GF gear on.

    Feel free to use the main menu check function in your own version if you have already customized one for yourself, just posting this up so others don't have to go through the trouble for themselves.

    pastebin

  2. #2
    Member
    Reputation
    1
    Join Date
    Jun 2012
    Posts
    9
    CoreCoins
    0

    Trade Feedbacks

    Status
    n/a
    Positive
    0 (0%)
    Negative
    0 (0%)
    Hi,

    Thanks for the script. Can you come out with one without loots finding? I'm still getting the common problem where the character will run, clicked on dank cellar but run south and teleport back to town.

    I don't need a loot findings function all i need is GF.. appreciate it man.

  3. #3
    Member
    Reputation
    1
    Join Date
    Jun 2012
    Posts
    7
    CoreCoins
    0

    Trade Feedbacks

    Status
    n/a
    Positive
    0 (0%)
    Negative
    0 (0%)
    Although I never had an issue with the looting in this version as it is very basic, doesn't stash or vendor etc. here is a version without loot:

    pastebin

  4. #4
    Member
    Reputation
    1
    Join Date
    Jun 2012
    Posts
    9
    CoreCoins
    0

    Trade Feedbacks

    Status
    n/a
    Positive
    0 (0%)
    Negative
    0 (0%)
    Hi,

    Thanks. Appreciated. Will try it out later.

    Btw, hopefully it doesn't run south and teleport again where it used to be. The only script that is working for me without any images loader/ loots findings is this.

    Code:
    Global $Paused
    
    HotKeySet("=","Leave")  ;script can START by pressing =
    HotKeySet("-", "Pause") ;script can be Pause by pressing -
    HotKeySet("x", "Stop") ;script can be Stopped by pressing x
    
    $go = True
    $Leave = False
    $runMade = 0
    
    While $go
       if($Leave) Then
       $Pixel1 = PixelSearch(1482,20,1535,95,0xFFF000) ;searches top right screen for yellow of broken armor
    	  If Not @error Then
    		 ;we need to repair
    		 Send("t")
    		 Sleep(8000)
    		 MouseClick("left", 1480, 281) ;begin movement towards merchant
    		 Sleep(1500)
    		 MouseClick("left", 1316, 206) ;moves to get merchant in screen
    		 Sleep(1500)
    		 MouseClick("left", 845, 225) ;NPC Merchant to the right of cain's home
    		 Sleep(1500)
    		 MouseClick("left", 521, 506) ;button to open up repair menu
    		 Sleep(1500)
    		 MouseClick("left", 260, 595) ;button to pay for repairs
    		 Sleep(2500)
    		 Send("{ESCAPE}") ;close windows
    		 Sleep(200);
    		 ResumeGame()
    	  Else
    		 ;starts the run
    		 MouseClick("left", 54, 129) 
    		 Sleep(1000)
    		 Send("2")
    		 Sleep(800)
    		 Send("1")
    		 Sleep(1000)
    		 MouseClick("left", 87, 429)
    		 Sleep(800)
    		 Send("1")
    		 Sleep(1500)
    		 Send("3")
    		 MouseMove(203, 186,1) ;moves cursor over to the cellar so the proper blue pixel becomes highlighted
    		 Sleep(2000)
    			$Pixel2 = PixelSearch(69,96,288,246,0xffffff) ;searches for the specific blue pixel that only occurs when mouse hovers over open cellar
    			   If Not @error Then
    				  MouseClick("left",203, 186) ;Entrance to cellar
    				  Sleep(3000)
    				  Send(2)
    				  Sleep(1800)
    				  MouseClick("left", 531, 769)
    				  Send(4) 
    				  Sleep(2000)
    				  MouseClick("left", 547, 490) ;moves to doorway leading to rare inside cellar
    				  Sleep(1500)
    				  MouseMove(624,258,1) ;hovers over the rare Sarkoth
    				  Send("{SHIFTDOWN}")
    				  MouseDown("right")
    				  Sleep(3200)
    				  MouseMove(474, 273, 1) ;attack left, add more sleep time if you can't kill minion on left
    				  Sleep(1000)
    				  MouseMove(732, 232, 1) ;attack right
    				  Sleep(500)
    				  MouseMove(624,258, 1) ;attack mid again
    				  Sleep(1000)
    				  MouseUP("right")
    				  Sleep(300)
    				  Send("{SHIFTUP}")
    				  Send(4)
    				  Sleep(500)
    				  SearchBlue()
    				  SearchYellow()
    				  SearchOrange()
    				  SearchWhite()
    				  SearchBlue()
    				  SearchYellow()
    				  SearchOrange()
    				  SearchWhite()
    				  Sleep(1500)
    				  Send("t")
    				  Sleep(10200)
    				  Town()
    				  ResumeGame()
    			   Else
    				  Send("t")
    				  Sleep(8200)
    				  ResumeGame()
    			   EndIf
    	  EndIf
       EndIf
    WEnd
    
    Func Pause()
       $Leave = False
    EndFunc
    
    Func Stop() ;to allow the script to stop
        Exit
    EndFunc 
     
    Func Leave()
        $Leave = True
     EndFunc
     
    Func SearchBlue()
       $cnt = 0
       $Searching = True
       while $Searching
    	  $Pixel3 = PixelSearch(0,0,1950,1120,0x6969ff)
    	  if Not @error Then
    		 Send("{ALTDOWN}")
    		 Send("{ALTUP}")
    		 MouseClick("left", $Pixel3[0], $Pixel3[1])
    		 Sleep(1000)
    		 $cnt = $cnt + 1
    		 if $cnt > 8 Then
    			$Searching = False
    			EndIf
    	  Else
    		 $Searching = False
    	  EndIf
       WEnd
    EndFunc
     
    Func SearchYellow()
       $cnt = 0
       $Searching = True
       while $Searching
    	  $Pixel3 = PixelSearch(0,0,1950,1120,0xe0e205)
    	  if Not @error Then
    		 Send("{ALTDOWN}")
    		 Send("{ALTUP}")
    		 MouseClick("left", $Pixel3[0], $Pixel3[1])
    		 Sleep(1000)
    		 $cnt = $cnt + 1
    		 if $cnt > 8 Then
    			$Searching = False
    			EndIf
    	  Else
    		 $Searching = False
    	  EndIf
       WEnd
       
       $cnt = 0
       $Searching = True
       while $Searching
    	  $Pixel3 = PixelSearch(0,0,1950,1120,0xc5c509)
    	  if Not @error Then
    		 Send("{ALTDOWN}")
    		 Send("{ALTUP}")
    		 MouseClick("left", $Pixel3[0], $Pixel3[1])
    		 Sleep(1000)
    		 $cnt = $cnt + 1
    		 if $cnt > 8 Then
    			$Searching = False
    			EndIf
    	  Else
    		 $Searching = False
    	  EndIf
       WEnd
       
       $cnt = 0
       $Searching = True
       while $Searching
    	  $Pixel3 = PixelSearch(0,0,1950,1120,0xd4d711)
    	  if Not @error Then
    		 Send("{ALTDOWN}")
    		 Send("{ALTUP}")
    		 MouseClick("left", $Pixel3[0], $Pixel3[1])
    		 Sleep(1000)
    		 $cnt = $cnt + 1
    		 if $cnt > 8 Then
    			$Searching = False
    			EndIf
    	  Else
    		 $Searching = False
    	  EndIf
       WEnd
       
       $cnt = 0
       $Searching = True
       while $Searching
    	  $Pixel3 = PixelSearch(0,0,1950,1120,0xdddd00)
    	  if Not @error Then
    		 Send("{ALTDOWN}")
    		 Send("{ALTUP}")
    		 MouseClick("left", $Pixel3[0], $Pixel3[1])
    		 Sleep(1000)
    		 $cnt = $cnt + 1
    		 if $cnt > 8 Then
    			$Searching = False
    			EndIf
    	  Else
    		 $Searching = False
    	  EndIf
       WEnd
    EndFunc
     
    Func SearchOrange()
       $cnt = 0
       $Searching = True
       while $Searching
    	  $Pixel3 = PixelSearch(0,0,1950,1120,0x9b5227)
    	  if Not @error Then
    		 Send("{ALTDOWN}")
    		 Send("{ALTUP}")
    		 MouseClick("left", $Pixel3[0], $Pixel3[1])
    		 Sleep(1000)
    		 $cnt = $cnt + 1
    		 if $cnt > 8 Then
    			$Searching = False
    			EndIf
    	  Else
    		 $Searching = False
    	  EndIf
       WEnd
    EndFunc
     
    Func SearchWhite()
       $cnt = 0
       $Searching = True
       while $Searching
    	  $Pixel3 = PixelSearch(350,200,1350,800,0xeeeeee)
    	  if Not @error Then
    		 Send("{ALTDOWN}")
    		 Send("{ALTUP}")
    		 MouseClick("left", $Pixel3[0], $Pixel3[1])
    		 Sleep(1000)
    		 $cnt = $cnt + 1
    		 if $cnt > 8 Then
    			$Searching = False
    			EndIf
    	  Else
    		 $Searching = False
    	  EndIf
       WEnd
    EndFunc
     
    Func Town()
       $runMade = $runMade + 1
       If $runMade > 5 Then
    	  MouseClick("left", 1064, 256)		;go to chest
    	  Sleep(2000)
    	  MouseClick("left", 517, 251)		; 1st tab
    	  Sleep(500);
    	  DropInChest();
    	  MouseClick("left", 517, 378)		; 2nd tab
    	  Sleep(500);
    	  DepositRare()
    	  MouseClick("left", 517, 500)		; 3rd tab
    	  Sleep(500);
    	  DepositRare()
    	  Sleep(500);
    	  Send("{ESCAPE}") ;close windows
    	  Sleep(500)
    	  MouseClick("left", 1515, 69)		;go half way to vendor
    	  Sleep(2000)
    	  MouseClick("left", 1105, 225)		;go half way to vendor
    	  Sleep(2000)
    	  VendorAll()
    	  ;SellBlue()
    	  ;Sleep(500)
    	  ;SellWhite()
    	  MouseClick("left", 506, 483)		;click repair tab
    	  Sleep(200)
    	  MouseClick("left", 242, 528)		;click repair
    	  Sleep(200)
    	  Send("{ESCAPE}") ;close windows
    	  Sleep(500)
       EndIf
    EndFunc
       
    Func DropInChest()
       ; Tome of secret
       $Searching = True
       while $Searching
    	  $Pixel3 = PixelSearch(1400,584,1900,874,0x507554 )			
    	  if Not @error Then
    		 MouseClick("right", $Pixel3[0], $Pixel3[1])
    		 Sleep(500)
    	  Else
    		 $Searching = False
    	  EndIf
      WEnd
      
      
       ; Yellow gems
       $Searching = True
       while $Searching
    	  $Pixel3 = PixelSearch(1400,584,1900,874,0xce8200 )			
    	  if Not @error Then
    		 MouseClick("right", $Pixel3[0], $Pixel3[1])
    		 Sleep(500)
    	  Else
    		 $Searching = False
    	  EndIf
      WEnd
      
       ; Yellow gems
       $Searching = True
       while $Searching
    	  $Pixel3 = PixelSearch(1400,584,1900,874,0xc17900 )			
    	  if Not @error Then
    		 MouseClick("right", $Pixel3[0], $Pixel3[1])
    		 Sleep(500)
    	  Else
    		 $Searching = False
    	  EndIf
      WEnd
      
      
       ; Green gems
       $Searching = True
       while $Searching
    	  $Pixel3 = PixelSearch(1400,584,1900,874,0x319e31 )			
    	  if Not @error Then
    		 MouseClick("right", $Pixel3[0], $Pixel3[1])
    		 Sleep(500)
    	  Else
    		 $Searching = False
    	  EndIf
      WEnd
      
       ; Green gems
       $Searching = True
       while $Searching
    	  $Pixel3 = PixelSearch(1400,584,1900,874,0x3db835 )			
    	  if Not @error Then
    		 MouseClick("right", $Pixel3[0], $Pixel3[1])
    		 Sleep(500)
    	  Else
    		 $Searching = False
    	  EndIf
      WEnd
      
      
       ; Red gems
       $Searching = True
       while $Searching
    	  $Pixel3 = PixelSearch(1400,584,1900,874,0xf01d1f)			
    	  if Not @error Then
    		 MouseClick("right", $Pixel3[0], $Pixel3[1])
    		 Sleep(500)
    	  Else
    		 $Searching = False
    	  EndIf
      WEnd
      
       ; Red gems
       $Searching = True
       while $Searching
    	  $Pixel3 = PixelSearch(1400,584,1900,874,0xe90b0b)			
    	  if Not @error Then
    		 MouseClick("right", $Pixel3[0], $Pixel3[1])
    		 Sleep(500)
    	  Else
    		 $Searching = False
    	  EndIf
      WEnd
      
      
       ; Purple gems
       $Searching = True
       while $Searching
    	  $Pixel3 = PixelSearch(1400,584,1900,874,0x9905db )			
    	  if Not @error Then
    		 MouseClick("right", $Pixel3[0], $Pixel3[1])
    		 Sleep(500)
    	  Else
    		 $Searching = False
    	  EndIf
      WEnd
      
       ; Purple gems
       $Searching = True
       while $Searching
    	  $Pixel3 = PixelSearch(1400,584,1900,874,0xb110f7 )			
    	  if Not @error Then
    		 MouseClick("right", $Pixel3[0], $Pixel3[1])
    		 Sleep(500)
    	  Else
    		 $Searching = False
    	  EndIf
      WEnd
    EndFunc
    
    Func VendorAll()
       For $i = 0 To 9 Step 1
    	  MouseClick("right", 1432 + (50 * $i), 609)
    	  Sleep(25)
    	  MouseClick("right", 1432 + (50 * $i), 609 + 50)
    	  Sleep(25)
    	  MouseClick("right", 1432 + (50 * $i), 609 + 100)
    	  Sleep(25)
    	  MouseClick("right", 1432 + (50 * $i), 609 + 150)
    	  Sleep(25)
    	  MouseClick("right", 1432 + (50 * $i), 609 + 200)
    	  Sleep(25)
    	  MouseClick("right", 1432 + (50 * $i), 609 + 250)
    	  Sleep(25)
       Next
    EndFunc
    
    Func SellBlue()
       
       ; 1st color
       ; 2 slots items
       $Searching = True
       while $Searching
    	  $Pixel3 = PixelSearch(1400,584,1900,874,0x161829 )			
    	  if Not @error Then
    		 MouseClick("right", $Pixel3[0], $Pixel3[1])
    		 Sleep(500)
    	  Else
    		 $Searching = False
    	  EndIf
      WEnd
      
       ; 1 slots items
       $Searching = True
       while $Searching
    	  $Pixel3 = PixelSearch(1400,584,1900,874,0x161c36 )			
    	  if Not @error Then
    		 MouseClick("right", $Pixel3[0], $Pixel3[1])
    		 Sleep(500)
    	  Else
    		 $Searching = False
    	  EndIf
      WEnd
      
       ; more color
       $Searching = True
       while $Searching
    	  $Pixel3 = PixelSearch(1400,584,1900,874,0x13233c )			
    	  if Not @error Then
    		 MouseClick("right", $Pixel3[0], $Pixel3[1])
    		 Sleep(500)
    	  Else
    		 $Searching = False
    	  EndIf
      WEnd
      
       ; more color
       $Searching = True
       while $Searching
    	  $Pixel3 = PixelSearch(1400,584,1900,874,0x182343 )			
    	  if Not @error Then
    		 MouseClick("right", $Pixel3[0], $Pixel3[1])
    		 Sleep(500)
    	  Else
    		 $Searching = False
    	  EndIf
      WEnd
      
       ; more color
       $Searching = True
       while $Searching
    	  $Pixel3 = PixelSearch(1400,584,1900,874,0x233055 )			
    	  if Not @error Then
    		 MouseClick("right", $Pixel3[0], $Pixel3[1])
    		 Sleep(500)
    	  Else
    		 $Searching = False
    	  EndIf
      WEnd
      
       ; more color
       $Searching = True
       while $Searching
    	  $Pixel3 = PixelSearch(1400,584,1900,874,0x102039 )			
    	  if Not @error Then
    		 MouseClick("right", $Pixel3[0], $Pixel3[1])
    		 Sleep(500)
    	  Else
    		 $Searching = False
    	  EndIf
      WEnd
    EndFunc
    
    Func SellWhite()
       ; more color
       $Searching = True
       while $Searching
    	  $Pixel3 = PixelSearch(1400,584,1900,874,0xffffff )			
    	  if Not @error Then
    		 MouseClick("right", $Pixel3[0], $Pixel3[1])
    		 Sleep(500)
    	  Else
    		 $Searching = False
    	  EndIf
      WEnd
    endFunc
    
    Func DepositRare()
       ;Yellow
       ;1st color
       ; 2 slots items
       $Searching = True
       while $Searching
    	  $Pixel3 = PixelSearch(1400,584,1900,874,0x604f0b )			
    	  if Not @error Then
    		 MouseClick("right", $Pixel3[0], $Pixel3[1])
    		 Sleep(500)
    	  Else
    		 $Searching = False
    	  EndIf
      WEnd
       ; 1 slots items
       $Searching = True
       while $Searching
    	  $Pixel3 = PixelSearch(1400,584,1900,874,0x5a4d10 )			
    	  if Not @error Then
    		 MouseClick("right", $Pixel3[0], $Pixel3[1])
    		 Sleep(500)
    	  Else
    		 $Searching = False
    	  EndIf
      WEnd
       ; more color
       $Searching = True
       while $Searching
    	  $Pixel3 = PixelSearch(1400,584,1900,874,0x5d4e10 )			
    	  if Not @error Then
    		 MouseClick("right", $Pixel3[0], $Pixel3[1])
    		 Sleep(500)
    	  Else
    		 $Searching = False
    	  EndIf
      WEnd
       ; more color
       $Searching = True
       while $Searching
    	  $Pixel3 = PixelSearch(1400,584,1900,874,0x66580f )			
    	  if Not @error Then
    		 MouseClick("right", $Pixel3[0], $Pixel3[1])
    		 Sleep(500)
    	  Else
    		 $Searching = False
    	  EndIf
      WEnd
       ; more color
       $Searching = True
       while $Searching
    	  $Pixel3 = PixelSearch(1400,584,1900,874,0xf5f500 )			
    	  if Not @error Then
    		 MouseClick("right", $Pixel3[0], $Pixel3[1])
    		 Sleep(500)
    	  Else
    		 $Searching = False
    	  EndIf
      WEnd
       ; more color
       $Searching = True
       while $Searching
    	  $Pixel3 = PixelSearch(1400,584,1900,874,0x554914 )			
    	  if Not @error Then
    		 MouseClick("right", $Pixel3[0], $Pixel3[1])
    		 Sleep(500)
    	  Else
    		 $Searching = False
    	  EndIf
      WEnd
      
       ;orange
       ; 2 slots items
       $Searching = True
       while $Searching
    	  $Pixel3 = PixelSearch(1400,584,1900,874,0x593212 )			
    	  if Not @error Then
    		 MouseClick("right", $Pixel3[0], $Pixel3[1])
    		 Sleep(500)
    	  Else
    		 $Searching = False
    	  EndIf
      WEnd
       ; 1 slots items
       $Searching = True
       while $Searching
    	  $Pixel3 = PixelSearch(1400,584,1900,874,0x693e12 )			
    	  if Not @error Then
    		 MouseClick("right", $Pixel3[0], $Pixel3[1])
    		 Sleep(500)
    	  Else
    		 $Searching = False
    	  EndIf
      WEnd
    EndFunc
    
    Func CheckDeath()
    	  $Pixel3 = PixelSearch(670,812,1263,881,0x0e0604 )			
    	  if Not @error Then
    		 ; dead
    	  EndIf
       EndFunc
       
    Func ResumeGame()
       Send("{ESCAPE}") ;opens menu
       Sleep(1000)
       MouseClick("left", 956, 579) ;button to leave game
       ;Sleep(13000)
       
       $Searching = True
       while $Searching
    	  $Pixel3 = PixelSearch(60,384,411,450,0x3c0700 )			
    	  if Not @error Then
    		 MouseClick("left", 230, 416) ;button to resume game from main menu
    		 Sleep(8000)
    		 $Searching = False
    	  EndIf
       WEnd
    EndFunc
    But somehow the looting isn't that perfect but it doesnt bring me to cellar without running south and teleport back to town. hopefully yours will finally work for me this time. but does your script for basic gold findings require any image loading?
    Last edited by DennisToo; 06-12-2012 at 03:32 AM.

  5. #5
    Member
    Reputation
    1
    Join Date
    Jun 2012
    Posts
    61
    CoreCoins
    0

    Trade Feedbacks

    Status
    n/a
    Positive
    0 (0%)
    Negative
    0 (0%)
    Quote Originally Posted by DennisToo View Post
    Hi,

    Thanks. Appreciated. Will try it out later.

    Btw, hopefully it doesn't run south and teleport again where it used to be. The only script that is working for me without any images loader/ loots findings is this.

    Code:
    Global $Paused
    
    HotKeySet("=","Leave")  ;script can START by pressing =
    HotKeySet("-", "Pause") ;script can be Pause by pressing -
    HotKeySet("x", "Stop") ;script can be Stopped by pressing x
    
    $go = True
    $Leave = False
    $runMade = 0
    
    While $go
       if($Leave) Then
       $Pixel1 = PixelSearch(1482,20,1535,95,0xFFF000) ;searches top right screen for yellow of broken armor
    	  If Not @error Then
    		 ;we need to repair
    		 Send("t")
    		 Sleep(8000)
    		 MouseClick("left", 1480, 281) ;begin movement towards merchant
    		 Sleep(1500)
    		 MouseClick("left", 1316, 206) ;moves to get merchant in screen
    		 Sleep(1500)
    		 MouseClick("left", 845, 225) ;NPC Merchant to the right of cain's home
    		 Sleep(1500)
    		 MouseClick("left", 521, 506) ;button to open up repair menu
    		 Sleep(1500)
    		 MouseClick("left", 260, 595) ;button to pay for repairs
    		 Sleep(2500)
    		 Send("{ESCAPE}") ;close windows
    		 Sleep(200);
    		 ResumeGame()
    	  Else
    		 ;starts the run
    		 MouseClick("left", 54, 129) 
    		 Sleep(1000)
    		 Send("2")
    		 Sleep(800)
    		 Send("1")
    		 Sleep(1000)
    		 MouseClick("left", 87, 429)
    		 Sleep(800)
    		 Send("1")
    		 Sleep(1500)
    		 Send("3")
    		 MouseMove(203, 186,1) ;moves cursor over to the cellar so the proper blue pixel becomes highlighted
    		 Sleep(2000)
    			$Pixel2 = PixelSearch(69,96,288,246,0xffffff) ;searches for the specific blue pixel that only occurs when mouse hovers over open cellar
    			   If Not @error Then
    				  MouseClick("left",203, 186) ;Entrance to cellar
    				  Sleep(3000)
    				  Send(2)
    				  Sleep(1800)
    				  MouseClick("left", 531, 769)
    				  Send(4) 
    				  Sleep(2000)
    				  MouseClick("left", 547, 490) ;moves to doorway leading to rare inside cellar
    				  Sleep(1500)
    				  MouseMove(624,258,1) ;hovers over the rare Sarkoth
    				  Send("{SHIFTDOWN}")
    				  MouseDown("right")
    				  Sleep(3200)
    				  MouseMove(474, 273, 1) ;attack left, add more sleep time if you can't kill minion on left
    				  Sleep(1000)
    				  MouseMove(732, 232, 1) ;attack right
    				  Sleep(500)
    				  MouseMove(624,258, 1) ;attack mid again
    				  Sleep(1000)
    				  MouseUP("right")
    				  Sleep(300)
    				  Send("{SHIFTUP}")
    				  Send(4)
    				  Sleep(500)
    				  SearchBlue()
    				  SearchYellow()
    				  SearchOrange()
    				  SearchWhite()
    				  SearchBlue()
    				  SearchYellow()
    				  SearchOrange()
    				  SearchWhite()
    				  Sleep(1500)
    				  Send("t")
    				  Sleep(10200)
    				  Town()
    				  ResumeGame()
    			   Else
    				  Send("t")
    				  Sleep(8200)
    				  ResumeGame()
    			   EndIf
    	  EndIf
       EndIf
    WEnd
    
    Func Pause()
       $Leave = False
    EndFunc
    
    Func Stop() ;to allow the script to stop
        Exit
    EndFunc 
     
    Func Leave()
        $Leave = True
     EndFunc
     
    Func SearchBlue()
       $cnt = 0
       $Searching = True
       while $Searching
    	  $Pixel3 = PixelSearch(0,0,1950,1120,0x6969ff)
    	  if Not @error Then
    		 Send("{ALTDOWN}")
    		 Send("{ALTUP}")
    		 MouseClick("left", $Pixel3[0], $Pixel3[1])
    		 Sleep(1000)
    		 $cnt = $cnt + 1
    		 if $cnt > 8 Then
    			$Searching = False
    			EndIf
    	  Else
    		 $Searching = False
    	  EndIf
       WEnd
    EndFunc
     
    Func SearchYellow()
       $cnt = 0
       $Searching = True
       while $Searching
    	  $Pixel3 = PixelSearch(0,0,1950,1120,0xe0e205)
    	  if Not @error Then
    		 Send("{ALTDOWN}")
    		 Send("{ALTUP}")
    		 MouseClick("left", $Pixel3[0], $Pixel3[1])
    		 Sleep(1000)
    		 $cnt = $cnt + 1
    		 if $cnt > 8 Then
    			$Searching = False
    			EndIf
    	  Else
    		 $Searching = False
    	  EndIf
       WEnd
       
       $cnt = 0
       $Searching = True
       while $Searching
    	  $Pixel3 = PixelSearch(0,0,1950,1120,0xc5c509)
    	  if Not @error Then
    		 Send("{ALTDOWN}")
    		 Send("{ALTUP}")
    		 MouseClick("left", $Pixel3[0], $Pixel3[1])
    		 Sleep(1000)
    		 $cnt = $cnt + 1
    		 if $cnt > 8 Then
    			$Searching = False
    			EndIf
    	  Else
    		 $Searching = False
    	  EndIf
       WEnd
       
       $cnt = 0
       $Searching = True
       while $Searching
    	  $Pixel3 = PixelSearch(0,0,1950,1120,0xd4d711)
    	  if Not @error Then
    		 Send("{ALTDOWN}")
    		 Send("{ALTUP}")
    		 MouseClick("left", $Pixel3[0], $Pixel3[1])
    		 Sleep(1000)
    		 $cnt = $cnt + 1
    		 if $cnt > 8 Then
    			$Searching = False
    			EndIf
    	  Else
    		 $Searching = False
    	  EndIf
       WEnd
       
       $cnt = 0
       $Searching = True
       while $Searching
    	  $Pixel3 = PixelSearch(0,0,1950,1120,0xdddd00)
    	  if Not @error Then
    		 Send("{ALTDOWN}")
    		 Send("{ALTUP}")
    		 MouseClick("left", $Pixel3[0], $Pixel3[1])
    		 Sleep(1000)
    		 $cnt = $cnt + 1
    		 if $cnt > 8 Then
    			$Searching = False
    			EndIf
    	  Else
    		 $Searching = False
    	  EndIf
       WEnd
    EndFunc
     
    Func SearchOrange()
       $cnt = 0
       $Searching = True
       while $Searching
    	  $Pixel3 = PixelSearch(0,0,1950,1120,0x9b5227)
    	  if Not @error Then
    		 Send("{ALTDOWN}")
    		 Send("{ALTUP}")
    		 MouseClick("left", $Pixel3[0], $Pixel3[1])
    		 Sleep(1000)
    		 $cnt = $cnt + 1
    		 if $cnt > 8 Then
    			$Searching = False
    			EndIf
    	  Else
    		 $Searching = False
    	  EndIf
       WEnd
    EndFunc
     
    Func SearchWhite()
       $cnt = 0
       $Searching = True
       while $Searching
    	  $Pixel3 = PixelSearch(350,200,1350,800,0xeeeeee)
    	  if Not @error Then
    		 Send("{ALTDOWN}")
    		 Send("{ALTUP}")
    		 MouseClick("left", $Pixel3[0], $Pixel3[1])
    		 Sleep(1000)
    		 $cnt = $cnt + 1
    		 if $cnt > 8 Then
    			$Searching = False
    			EndIf
    	  Else
    		 $Searching = False
    	  EndIf
       WEnd
    EndFunc
     
    Func Town()
       $runMade = $runMade + 1
       If $runMade > 5 Then
    	  MouseClick("left", 1064, 256)		;go to chest
    	  Sleep(2000)
    	  MouseClick("left", 517, 251)		; 1st tab
    	  Sleep(500);
    	  DropInChest();
    	  MouseClick("left", 517, 378)		; 2nd tab
    	  Sleep(500);
    	  DepositRare()
    	  MouseClick("left", 517, 500)		; 3rd tab
    	  Sleep(500);
    	  DepositRare()
    	  Sleep(500);
    	  Send("{ESCAPE}") ;close windows
    	  Sleep(500)
    	  MouseClick("left", 1515, 69)		;go half way to vendor
    	  Sleep(2000)
    	  MouseClick("left", 1105, 225)		;go half way to vendor
    	  Sleep(2000)
    	  VendorAll()
    	  ;SellBlue()
    	  ;Sleep(500)
    	  ;SellWhite()
    	  MouseClick("left", 506, 483)		;click repair tab
    	  Sleep(200)
    	  MouseClick("left", 242, 528)		;click repair
    	  Sleep(200)
    	  Send("{ESCAPE}") ;close windows
    	  Sleep(500)
       EndIf
    EndFunc
       
    Func DropInChest()
       ; Tome of secret
       $Searching = True
       while $Searching
    	  $Pixel3 = PixelSearch(1400,584,1900,874,0x507554 )			
    	  if Not @error Then
    		 MouseClick("right", $Pixel3[0], $Pixel3[1])
    		 Sleep(500)
    	  Else
    		 $Searching = False
    	  EndIf
      WEnd
      
      
       ; Yellow gems
       $Searching = True
       while $Searching
    	  $Pixel3 = PixelSearch(1400,584,1900,874,0xce8200 )			
    	  if Not @error Then
    		 MouseClick("right", $Pixel3[0], $Pixel3[1])
    		 Sleep(500)
    	  Else
    		 $Searching = False
    	  EndIf
      WEnd
      
       ; Yellow gems
       $Searching = True
       while $Searching
    	  $Pixel3 = PixelSearch(1400,584,1900,874,0xc17900 )			
    	  if Not @error Then
    		 MouseClick("right", $Pixel3[0], $Pixel3[1])
    		 Sleep(500)
    	  Else
    		 $Searching = False
    	  EndIf
      WEnd
      
      
       ; Green gems
       $Searching = True
       while $Searching
    	  $Pixel3 = PixelSearch(1400,584,1900,874,0x319e31 )			
    	  if Not @error Then
    		 MouseClick("right", $Pixel3[0], $Pixel3[1])
    		 Sleep(500)
    	  Else
    		 $Searching = False
    	  EndIf
      WEnd
      
       ; Green gems
       $Searching = True
       while $Searching
    	  $Pixel3 = PixelSearch(1400,584,1900,874,0x3db835 )			
    	  if Not @error Then
    		 MouseClick("right", $Pixel3[0], $Pixel3[1])
    		 Sleep(500)
    	  Else
    		 $Searching = False
    	  EndIf
      WEnd
      
      
       ; Red gems
       $Searching = True
       while $Searching
    	  $Pixel3 = PixelSearch(1400,584,1900,874,0xf01d1f)			
    	  if Not @error Then
    		 MouseClick("right", $Pixel3[0], $Pixel3[1])
    		 Sleep(500)
    	  Else
    		 $Searching = False
    	  EndIf
      WEnd
      
       ; Red gems
       $Searching = True
       while $Searching
    	  $Pixel3 = PixelSearch(1400,584,1900,874,0xe90b0b)			
    	  if Not @error Then
    		 MouseClick("right", $Pixel3[0], $Pixel3[1])
    		 Sleep(500)
    	  Else
    		 $Searching = False
    	  EndIf
      WEnd
      
      
       ; Purple gems
       $Searching = True
       while $Searching
    	  $Pixel3 = PixelSearch(1400,584,1900,874,0x9905db )			
    	  if Not @error Then
    		 MouseClick("right", $Pixel3[0], $Pixel3[1])
    		 Sleep(500)
    	  Else
    		 $Searching = False
    	  EndIf
      WEnd
      
       ; Purple gems
       $Searching = True
       while $Searching
    	  $Pixel3 = PixelSearch(1400,584,1900,874,0xb110f7 )			
    	  if Not @error Then
    		 MouseClick("right", $Pixel3[0], $Pixel3[1])
    		 Sleep(500)
    	  Else
    		 $Searching = False
    	  EndIf
      WEnd
    EndFunc
    
    Func VendorAll()
       For $i = 0 To 9 Step 1
    	  MouseClick("right", 1432 + (50 * $i), 609)
    	  Sleep(25)
    	  MouseClick("right", 1432 + (50 * $i), 609 + 50)
    	  Sleep(25)
    	  MouseClick("right", 1432 + (50 * $i), 609 + 100)
    	  Sleep(25)
    	  MouseClick("right", 1432 + (50 * $i), 609 + 150)
    	  Sleep(25)
    	  MouseClick("right", 1432 + (50 * $i), 609 + 200)
    	  Sleep(25)
    	  MouseClick("right", 1432 + (50 * $i), 609 + 250)
    	  Sleep(25)
       Next
    EndFunc
    
    Func SellBlue()
       
       ; 1st color
       ; 2 slots items
       $Searching = True
       while $Searching
    	  $Pixel3 = PixelSearch(1400,584,1900,874,0x161829 )			
    	  if Not @error Then
    		 MouseClick("right", $Pixel3[0], $Pixel3[1])
    		 Sleep(500)
    	  Else
    		 $Searching = False
    	  EndIf
      WEnd
      
       ; 1 slots items
       $Searching = True
       while $Searching
    	  $Pixel3 = PixelSearch(1400,584,1900,874,0x161c36 )			
    	  if Not @error Then
    		 MouseClick("right", $Pixel3[0], $Pixel3[1])
    		 Sleep(500)
    	  Else
    		 $Searching = False
    	  EndIf
      WEnd
      
       ; more color
       $Searching = True
       while $Searching
    	  $Pixel3 = PixelSearch(1400,584,1900,874,0x13233c )			
    	  if Not @error Then
    		 MouseClick("right", $Pixel3[0], $Pixel3[1])
    		 Sleep(500)
    	  Else
    		 $Searching = False
    	  EndIf
      WEnd
      
       ; more color
       $Searching = True
       while $Searching
    	  $Pixel3 = PixelSearch(1400,584,1900,874,0x182343 )			
    	  if Not @error Then
    		 MouseClick("right", $Pixel3[0], $Pixel3[1])
    		 Sleep(500)
    	  Else
    		 $Searching = False
    	  EndIf
      WEnd
      
       ; more color
       $Searching = True
       while $Searching
    	  $Pixel3 = PixelSearch(1400,584,1900,874,0x233055 )			
    	  if Not @error Then
    		 MouseClick("right", $Pixel3[0], $Pixel3[1])
    		 Sleep(500)
    	  Else
    		 $Searching = False
    	  EndIf
      WEnd
      
       ; more color
       $Searching = True
       while $Searching
    	  $Pixel3 = PixelSearch(1400,584,1900,874,0x102039 )			
    	  if Not @error Then
    		 MouseClick("right", $Pixel3[0], $Pixel3[1])
    		 Sleep(500)
    	  Else
    		 $Searching = False
    	  EndIf
      WEnd
    EndFunc
    
    Func SellWhite()
       ; more color
       $Searching = True
       while $Searching
    	  $Pixel3 = PixelSearch(1400,584,1900,874,0xffffff )			
    	  if Not @error Then
    		 MouseClick("right", $Pixel3[0], $Pixel3[1])
    		 Sleep(500)
    	  Else
    		 $Searching = False
    	  EndIf
      WEnd
    endFunc
    
    Func DepositRare()
       ;Yellow
       ;1st color
       ; 2 slots items
       $Searching = True
       while $Searching
    	  $Pixel3 = PixelSearch(1400,584,1900,874,0x604f0b )			
    	  if Not @error Then
    		 MouseClick("right", $Pixel3[0], $Pixel3[1])
    		 Sleep(500)
    	  Else
    		 $Searching = False
    	  EndIf
      WEnd
       ; 1 slots items
       $Searching = True
       while $Searching
    	  $Pixel3 = PixelSearch(1400,584,1900,874,0x5a4d10 )			
    	  if Not @error Then
    		 MouseClick("right", $Pixel3[0], $Pixel3[1])
    		 Sleep(500)
    	  Else
    		 $Searching = False
    	  EndIf
      WEnd
       ; more color
       $Searching = True
       while $Searching
    	  $Pixel3 = PixelSearch(1400,584,1900,874,0x5d4e10 )			
    	  if Not @error Then
    		 MouseClick("right", $Pixel3[0], $Pixel3[1])
    		 Sleep(500)
    	  Else
    		 $Searching = False
    	  EndIf
      WEnd
       ; more color
       $Searching = True
       while $Searching
    	  $Pixel3 = PixelSearch(1400,584,1900,874,0x66580f )			
    	  if Not @error Then
    		 MouseClick("right", $Pixel3[0], $Pixel3[1])
    		 Sleep(500)
    	  Else
    		 $Searching = False
    	  EndIf
      WEnd
       ; more color
       $Searching = True
       while $Searching
    	  $Pixel3 = PixelSearch(1400,584,1900,874,0xf5f500 )			
    	  if Not @error Then
    		 MouseClick("right", $Pixel3[0], $Pixel3[1])
    		 Sleep(500)
    	  Else
    		 $Searching = False
    	  EndIf
      WEnd
       ; more color
       $Searching = True
       while $Searching
    	  $Pixel3 = PixelSearch(1400,584,1900,874,0x554914 )			
    	  if Not @error Then
    		 MouseClick("right", $Pixel3[0], $Pixel3[1])
    		 Sleep(500)
    	  Else
    		 $Searching = False
    	  EndIf
      WEnd
      
       ;orange
       ; 2 slots items
       $Searching = True
       while $Searching
    	  $Pixel3 = PixelSearch(1400,584,1900,874,0x593212 )			
    	  if Not @error Then
    		 MouseClick("right", $Pixel3[0], $Pixel3[1])
    		 Sleep(500)
    	  Else
    		 $Searching = False
    	  EndIf
      WEnd
       ; 1 slots items
       $Searching = True
       while $Searching
    	  $Pixel3 = PixelSearch(1400,584,1900,874,0x693e12 )			
    	  if Not @error Then
    		 MouseClick("right", $Pixel3[0], $Pixel3[1])
    		 Sleep(500)
    	  Else
    		 $Searching = False
    	  EndIf
      WEnd
    EndFunc
    
    Func CheckDeath()
    	  $Pixel3 = PixelSearch(670,812,1263,881,0x0e0604 )			
    	  if Not @error Then
    		 ; dead
    	  EndIf
       EndFunc
       
    Func ResumeGame()
       Send("{ESCAPE}") ;opens menu
       Sleep(1000)
       MouseClick("left", 956, 579) ;button to leave game
       ;Sleep(13000)
       
       $Searching = True
       while $Searching
    	  $Pixel3 = PixelSearch(60,384,411,450,0x3c0700 )			
    	  if Not @error Then
    		 MouseClick("left", 230, 416) ;button to resume game from main menu
    		 Sleep(8000)
    		 $Searching = False
    	  EndIf
       WEnd
    EndFunc
    But somehow the looting isn't that perfect but it doesnt bring me to cellar without running south and teleport back to town. hopefully yours will finally work for me this time. but does your script for basic gold findings require any image loading?

    Did you try the script I posted in the original wizard forum? Its somewhere on page 15-17. There are 2 and I would suggest the second one. The difference is that it casts the knockback skill which is keepin my death rate REALLY low. Maybe it will work for you with some minor adjustment to the sleep timer for your dps.

  6. #6
    Member
    Reputation
    1
    Join Date
    Jun 2012
    Posts
    61
    CoreCoins
    0

    Trade Feedbacks

    Status
    n/a
    Positive
    0 (0%)
    Negative
    0 (0%)
    Quote Originally Posted by oden2005 View Post
    I had Tried notAres' DH script and a few versions modified by other board members here but eventually it would keep getting stuck in the game menu if I died or sometimes after repairing so I added a function to check that the game was at the main menu before each time the script attempts to click the resume game button. If you are not at the main menu and stuck in any of the menus I saw it get hung up in, game menu, game menu exit diablo III confirmation, banner customization menu, player menu, it will automatically exit back out to the main menu and resume game.

    I also customized the load time for my SSD and the combat times for my DH who has much less damage with my 250% GF gear on.

    Feel free to use the main menu check function in your own version if you have already customized one for yourself, just posting this up so others don't have to go through the trouble for themselves.

    pastebin


    OMG BRO I LOVE YOU. I have been trying to work this issue out forever as have many people. I have a wizard code that I need to put this in I just can't figure out exactly where the code for the stuck in menu part begins and ends. If you could post just the part for the stuck in menu area or if its easier I can post the code several ppl including myself are using in the wizard forum and add it in yourself. Sorry for being so needy but it would be greatly appreciated.

    travincall123 - Pastebin.com

  7. #7
    Member
    Reputation
    1
    Join Date
    Jun 2012
    Posts
    7
    CoreCoins
    0

    Trade Feedbacks

    Status
    n/a
    Positive
    0 (0%)
    Negative
    0 (0%)
    Quote Originally Posted by Travincall View Post
    OMG BRO I LOVE YOU. I have been trying to work this issue out forever as have many people. I have a wizard code that I need to put this in I just can't figure out exactly where the code for the stuck in menu part begins and ends. If you could post just the part for the stuck in menu area or if its easier I can post the code several ppl including myself are using in the wizard forum and add it in yourself. Sorry for being so needy but it would be greatly appreciated.

    travincall123 - Pastebin.com
    this should do it

  8. #8
    Member
    Reputation
    1
    Join Date
    Jun 2012
    Posts
    7
    CoreCoins
    0

    Trade Feedbacks

    Status
    n/a
    Positive
    0 (0%)
    Negative
    0 (0%)
    Quote Originally Posted by DennisToo View Post
    Hi,
    But somehow the looting isn't that perfect but it doesnt bring me to cellar without running south and teleport back to town. hopefully yours will finally work for me this time. but does your script for basic gold findings require any image loading?

    This version does not require any image loading.

  9. #9
    Member
    Reputation
    1
    Join Date
    Jun 2012
    Posts
    61
    CoreCoins
    0

    Trade Feedbacks

    Status
    n/a
    Positive
    0 (0%)
    Negative
    0 (0%)
    Quote Originally Posted by oden2005 View Post
    Damn you beat me to it. I already figured it out and posted in wizard forum. I gave credits to you because you're a ****ing champ for solving that problem and you deserve it. Now peeps can run all night lol. <------ probably not a good thing

  10. #10
    Member
    Reputation
    1
    Join Date
    Jun 2012
    Posts
    9
    CoreCoins
    0

    Trade Feedbacks

    Status
    n/a
    Positive
    0 (0%)
    Negative
    0 (0%)
    Hi Oden,

    Tired the script, as usual the hero will run south after bypass the first monster and teleport back to town.

    the only version that work is this http://www.ownedcore.com/forums/diab...imized-dh.html (Sharing my autoIt script :: Sarkoth (loot and optimized for DH))

    but whenever cellar is open it doesnt teleport back and continue to do as per the script and it doesnt resume game.

    could you take a look at the above thread script and input his and mixed with yours in it?

    Code:
    Global $Paused
    
    HotKeySet("=","Leave")  ;script can START by pressing =
    HotKeySet("-", "Pause") ;script can be Pause by pressing -
    HotKeySet("x", "Stop") ;script can be Stopped by pressing x
    
    $go = True
    $Leave = False
    $runMade = 0
    
    While $go
       if($Leave) Then
       $Pixel1 = PixelSearch(1482,20,1535,95,0xFFF000) ;searches top right screen for yellow of broken armor
    	  If Not @error Then
    		 ;we need to repair
    		 Send("t")
    		 Sleep(8000)
    		 MouseClick("left", 1480, 281) ;begin movement towards merchant
    		 Sleep(1500)
    		 MouseClick("left", 1316, 206) ;moves to get merchant in screen
    		 Sleep(1500)
    		 MouseClick("left", 845, 225) ;NPC Merchant to the right of cain's home
    		 Sleep(1500)
    		 MouseClick("left", 521, 506) ;button to open up repair menu
    		 Sleep(1500)
    		 MouseClick("left", 260, 595) ;button to pay for repairs
    		 Sleep(2500)
    		 Send("{ESCAPE}") ;close windows
    		 Sleep(200);
    		 ResumeGame()
    	  Else
    		 ;starts the run
    		 MouseClick("left", 54, 129) 
    		 Sleep(1000)
    		 Send("2")
    		 Sleep(800)
    		 Send("1")
    		 Sleep(1000)
    		 MouseClick("left", 87, 429)
    		 Sleep(800)
    		 Send("1")
    		 Sleep(1500)
    		 Send("3")
    		 MouseMove(203, 186,1) ;moves cursor over to the cellar so the proper blue pixel becomes highlighted
    		 Sleep(2000)
    			$Pixel2 = PixelSearch(69,96,288,246,0xffffff) ;searches for the specific blue pixel that only occurs when mouse hovers over open cellar
    			   If Not @error Then
    				  MouseClick("left",203, 186) ;Entrance to cellar
    				  Sleep(3000)
    				  Send(2)
    				  Sleep(1800)
    				  MouseClick("left", 531, 769)
    				  Send(4) 
    				  Sleep(2000)
    				  MouseClick("left", 547, 490) ;moves to doorway leading to rare inside cellar
    				  Sleep(1500)
    				  MouseMove(624,258,1) ;hovers over the rare Sarkoth
    				  Send("{SHIFTDOWN}")
    				  MouseDown("right")
    				  Sleep(3200)
    				  MouseMove(474, 273, 1) ;attack left, add more sleep time if you can't kill minion on left
    				  Sleep(1000)
    				  MouseMove(732, 232, 1) ;attack right
    				  Sleep(500)
    				  MouseMove(624,258, 1) ;attack mid again
    				  Sleep(1000)
    				  MouseUP("right")
    				  Sleep(300)
    				  Send("{SHIFTUP}")
    				  Send(4)
    				  Sleep(500)
    				  SearchBlue()
    				  SearchYellow()
    				  SearchOrange()
    				  SearchWhite()
    				  SearchBlue()
    				  SearchYellow()
    				  SearchOrange()
    				  SearchWhite()
    				  Sleep(1500)
    				  Send("t")
    				  Sleep(10200)
    				  Town()
    				  ResumeGame()
    			   Else
    				  Send("t")
    				  Sleep(8200)
    				  ResumeGame()
    			   EndIf
    	  EndIf
       EndIf
    WEnd
    
    Func Pause()
       $Leave = False
    EndFunc
    
    Func Stop() ;to allow the script to stop
        Exit
    EndFunc 
     
    Func Leave()
        $Leave = True
     EndFunc
     
    Func SearchBlue()
       $cnt = 0
       $Searching = True
       while $Searching
    	  $Pixel3 = PixelSearch(0,0,1950,1120,0x6969ff)
    	  if Not @error Then
    		 Send("{ALTDOWN}")
    		 Send("{ALTUP}")
    		 MouseClick("left", $Pixel3[0], $Pixel3[1])
    		 Sleep(1000)
    		 $cnt = $cnt + 1
    		 if $cnt > 8 Then
    			$Searching = False
    			EndIf
    	  Else
    		 $Searching = False
    	  EndIf
       WEnd
    EndFunc
     
    Func SearchYellow()
       $cnt = 0
       $Searching = True
       while $Searching
    	  $Pixel3 = PixelSearch(0,0,1950,1120,0xe0e205)
    	  if Not @error Then
    		 Send("{ALTDOWN}")
    		 Send("{ALTUP}")
    		 MouseClick("left", $Pixel3[0], $Pixel3[1])
    		 Sleep(1000)
    		 $cnt = $cnt + 1
    		 if $cnt > 8 Then
    			$Searching = False
    			EndIf
    	  Else
    		 $Searching = False
    	  EndIf
       WEnd
       
       $cnt = 0
       $Searching = True
       while $Searching
    	  $Pixel3 = PixelSearch(0,0,1950,1120,0xc5c509)
    	  if Not @error Then
    		 Send("{ALTDOWN}")
    		 Send("{ALTUP}")
    		 MouseClick("left", $Pixel3[0], $Pixel3[1])
    		 Sleep(1000)
    		 $cnt = $cnt + 1
    		 if $cnt > 8 Then
    			$Searching = False
    			EndIf
    	  Else
    		 $Searching = False
    	  EndIf
       WEnd
       
       $cnt = 0
       $Searching = True
       while $Searching
    	  $Pixel3 = PixelSearch(0,0,1950,1120,0xd4d711)
    	  if Not @error Then
    		 Send("{ALTDOWN}")
    		 Send("{ALTUP}")
    		 MouseClick("left", $Pixel3[0], $Pixel3[1])
    		 Sleep(1000)
    		 $cnt = $cnt + 1
    		 if $cnt > 8 Then
    			$Searching = False
    			EndIf
    	  Else
    		 $Searching = False
    	  EndIf
       WEnd
       
       $cnt = 0
       $Searching = True
       while $Searching
    	  $Pixel3 = PixelSearch(0,0,1950,1120,0xdddd00)
    	  if Not @error Then
    		 Send("{ALTDOWN}")
    		 Send("{ALTUP}")
    		 MouseClick("left", $Pixel3[0], $Pixel3[1])
    		 Sleep(1000)
    		 $cnt = $cnt + 1
    		 if $cnt > 8 Then
    			$Searching = False
    			EndIf
    	  Else
    		 $Searching = False
    	  EndIf
       WEnd
    EndFunc
     
    Func SearchOrange()
       $cnt = 0
       $Searching = True
       while $Searching
    	  $Pixel3 = PixelSearch(0,0,1950,1120,0x9b5227)
    	  if Not @error Then
    		 Send("{ALTDOWN}")
    		 Send("{ALTUP}")
    		 MouseClick("left", $Pixel3[0], $Pixel3[1])
    		 Sleep(1000)
    		 $cnt = $cnt + 1
    		 if $cnt > 8 Then
    			$Searching = False
    			EndIf
    	  Else
    		 $Searching = False
    	  EndIf
       WEnd
    EndFunc
     
    Func SearchWhite()
       $cnt = 0
       $Searching = True
       while $Searching
    	  $Pixel3 = PixelSearch(350,200,1350,800,0xeeeeee)
    	  if Not @error Then
    		 Send("{ALTDOWN}")
    		 Send("{ALTUP}")
    		 MouseClick("left", $Pixel3[0], $Pixel3[1])
    		 Sleep(1000)
    		 $cnt = $cnt + 1
    		 if $cnt > 8 Then
    			$Searching = False
    			EndIf
    	  Else
    		 $Searching = False
    	  EndIf
       WEnd
    EndFunc
     
    Func Town()
       $runMade = $runMade + 1
       If $runMade > 5 Then
    	  MouseClick("left", 1064, 256)		;go to chest
    	  Sleep(2000)
    	  MouseClick("left", 517, 251)		; 1st tab
    	  Sleep(500);
    	  DropInChest();
    	  MouseClick("left", 517, 378)		; 2nd tab
    	  Sleep(500);
    	  DepositRare()
    	  MouseClick("left", 517, 500)		; 3rd tab
    	  Sleep(500);
    	  DepositRare()
    	  Sleep(500);
    	  Send("{ESCAPE}") ;close windows
    	  Sleep(500)
    	  MouseClick("left", 1515, 69)		;go half way to vendor
    	  Sleep(2000)
    	  MouseClick("left", 1105, 225)		;go half way to vendor
    	  Sleep(2000)
    	  VendorAll()
    	  ;SellBlue()
    	  ;Sleep(500)
    	  ;SellWhite()
    	  MouseClick("left", 506, 483)		;click repair tab
    	  Sleep(200)
    	  MouseClick("left", 242, 528)		;click repair
    	  Sleep(200)
    	  Send("{ESCAPE}") ;close windows
    	  Sleep(500)
    	  $runMade = 0
       EndIf
    EndFunc
       
    Func DropInChest()
       ; Tome of secret
       $Searching = True
       while $Searching
    	  $Pixel3 = PixelSearch(1400,584,1900,874,0x507554 )			
    	  if Not @error Then
    		 MouseClick("right", $Pixel3[0], $Pixel3[1])
    		 Sleep(500)
    	  Else
    		 $Searching = False
    	  EndIf
      WEnd
      
      
       ; Yellow gems
       $Searching = True
       while $Searching
    	  $Pixel3 = PixelSearch(1400,584,1900,874,0xce8200 )			
    	  if Not @error Then
    		 MouseClick("right", $Pixel3[0], $Pixel3[1])
    		 Sleep(500)
    	  Else
    		 $Searching = False
    	  EndIf
      WEnd
      
       ; Yellow gems
       $Searching = True
       while $Searching
    	  $Pixel3 = PixelSearch(1400,584,1900,874,0xc17900 )			
    	  if Not @error Then
    		 MouseClick("right", $Pixel3[0], $Pixel3[1])
    		 Sleep(500)
    	  Else
    		 $Searching = False
    	  EndIf
      WEnd
      
      
       ; Green gems
       $Searching = True
       while $Searching
    	  $Pixel3 = PixelSearch(1400,584,1900,874,0x319e31 )			
    	  if Not @error Then
    		 MouseClick("right", $Pixel3[0], $Pixel3[1])
    		 Sleep(500)
    	  Else
    		 $Searching = False
    	  EndIf
      WEnd
      
       ; Green gems
       $Searching = True
       while $Searching
    	  $Pixel3 = PixelSearch(1400,584,1900,874,0x3db835 )			
    	  if Not @error Then
    		 MouseClick("right", $Pixel3[0], $Pixel3[1])
    		 Sleep(500)
    	  Else
    		 $Searching = False
    	  EndIf
      WEnd
      
      
       ; Red gems
       $Searching = True
       while $Searching
    	  $Pixel3 = PixelSearch(1400,584,1900,874,0xf01d1f)			
    	  if Not @error Then
    		 MouseClick("right", $Pixel3[0], $Pixel3[1])
    		 Sleep(500)
    	  Else
    		 $Searching = False
    	  EndIf
      WEnd
      
       ; Red gems
       $Searching = True
       while $Searching
    	  $Pixel3 = PixelSearch(1400,584,1900,874,0xe90b0b)			
    	  if Not @error Then
    		 MouseClick("right", $Pixel3[0], $Pixel3[1])
    		 Sleep(500)
    	  Else
    		 $Searching = False
    	  EndIf
      WEnd
      
      
       ; Purple gems
       $Searching = True
       while $Searching
    	  $Pixel3 = PixelSearch(1400,584,1900,874,0x9905db )			
    	  if Not @error Then
    		 MouseClick("right", $Pixel3[0], $Pixel3[1])
    		 Sleep(500)
    	  Else
    		 $Searching = False
    	  EndIf
      WEnd
      
       ; Purple gems
       $Searching = True
       while $Searching
    	  $Pixel3 = PixelSearch(1400,584,1900,874,0xb110f7 )			
    	  if Not @error Then
    		 MouseClick("right", $Pixel3[0], $Pixel3[1])
    		 Sleep(500)
    	  Else
    		 $Searching = False
    	  EndIf
      WEnd
    EndFunc
    
    Func VendorAll()
       For $i = 0 To 9 Step 1
    	  MouseClick("right", 1432 + (50 * $i), 609)
    	  Sleep(25)
    	  MouseClick("right", 1432 + (50 * $i), 609 + 50)
    	  Sleep(25)
    	  MouseClick("right", 1432 + (50 * $i), 609 + 100)
    	  Sleep(25)
    	  MouseClick("right", 1432 + (50 * $i), 609 + 150)
    	  Sleep(25)
    	  MouseClick("right", 1432 + (50 * $i), 609 + 200)
    	  Sleep(25)
    	  MouseClick("right", 1432 + (50 * $i), 609 + 250)
    	  Sleep(25)
       Next
    EndFunc
    
    Func SellBlue()
       
       ; 1st color
       ; 2 slots items
       $Searching = True
       while $Searching
    	  $Pixel3 = PixelSearch(1400,584,1900,874,0x161829 )			
    	  if Not @error Then
    		 MouseClick("right", $Pixel3[0], $Pixel3[1])
    		 Sleep(500)
    	  Else
    		 $Searching = False
    	  EndIf
      WEnd
      
       ; 1 slots items
       $Searching = True
       while $Searching
    	  $Pixel3 = PixelSearch(1400,584,1900,874,0x161c36 )			
    	  if Not @error Then
    		 MouseClick("right", $Pixel3[0], $Pixel3[1])
    		 Sleep(500)
    	  Else
    		 $Searching = False
    	  EndIf
      WEnd
      
       ; more color
       $Searching = True
       while $Searching
    	  $Pixel3 = PixelSearch(1400,584,1900,874,0x13233c )			
    	  if Not @error Then
    		 MouseClick("right", $Pixel3[0], $Pixel3[1])
    		 Sleep(500)
    	  Else
    		 $Searching = False
    	  EndIf
      WEnd
      
       ; more color
       $Searching = True
       while $Searching
    	  $Pixel3 = PixelSearch(1400,584,1900,874,0x182343 )			
    	  if Not @error Then
    		 MouseClick("right", $Pixel3[0], $Pixel3[1])
    		 Sleep(500)
    	  Else
    		 $Searching = False
    	  EndIf
      WEnd
      
       ; more color
       $Searching = True
       while $Searching
    	  $Pixel3 = PixelSearch(1400,584,1900,874,0x233055 )			
    	  if Not @error Then
    		 MouseClick("right", $Pixel3[0], $Pixel3[1])
    		 Sleep(500)
    	  Else
    		 $Searching = False
    	  EndIf
      WEnd
      
       ; more color
       $Searching = True
       while $Searching
    	  $Pixel3 = PixelSearch(1400,584,1900,874,0x102039 )			
    	  if Not @error Then
    		 MouseClick("right", $Pixel3[0], $Pixel3[1])
    		 Sleep(500)
    	  Else
    		 $Searching = False
    	  EndIf
      WEnd
    EndFunc
    
    Func SellWhite()
       ; more color
       $Searching = True
       while $Searching
    	  $Pixel3 = PixelSearch(1400,584,1900,874,0xffffff )			
    	  if Not @error Then
    		 MouseClick("right", $Pixel3[0], $Pixel3[1])
    		 Sleep(500)
    	  Else
    		 $Searching = False
    	  EndIf
      WEnd
    endFunc
    
    Func DepositRare()
       ;Yellow
       ;1st color
       ; 2 slots items
       $Searching = True
       while $Searching
    	  $Pixel3 = PixelSearch(1400,584,1900,874,0x604f0b )			
    	  if Not @error Then
    		 MouseClick("right", $Pixel3[0], $Pixel3[1])
    		 Sleep(500)
    	  Else
    		 $Searching = False
    	  EndIf
      WEnd
       ; 1 slots items
       $Searching = True
       while $Searching
    	  $Pixel3 = PixelSearch(1400,584,1900,874,0x5a4d10 )			
    	  if Not @error Then
    		 MouseClick("right", $Pixel3[0], $Pixel3[1])
    		 Sleep(500)
    	  Else
    		 $Searching = False
    	  EndIf
      WEnd
       ; more color
       $Searching = True
       while $Searching
    	  $Pixel3 = PixelSearch(1400,584,1900,874,0x5d4e10 )			
    	  if Not @error Then
    		 MouseClick("right", $Pixel3[0], $Pixel3[1])
    		 Sleep(500)
    	  Else
    		 $Searching = False
    	  EndIf
      WEnd
       ; more color
       $Searching = True
       while $Searching
    	  $Pixel3 = PixelSearch(1400,584,1900,874,0x66580f )			
    	  if Not @error Then
    		 MouseClick("right", $Pixel3[0], $Pixel3[1])
    		 Sleep(500)
    	  Else
    		 $Searching = False
    	  EndIf
      WEnd
       ; more color
       $Searching = True
       while $Searching
    	  $Pixel3 = PixelSearch(1400,584,1900,874,0xf5f500 )			
    	  if Not @error Then
    		 MouseClick("right", $Pixel3[0], $Pixel3[1])
    		 Sleep(500)
    	  Else
    		 $Searching = False
    	  EndIf
      WEnd
       ; more color
       $Searching = True
       while $Searching
    	  $Pixel3 = PixelSearch(1400,584,1900,874,0x554914 )			
    	  if Not @error Then
    		 MouseClick("right", $Pixel3[0], $Pixel3[1])
    		 Sleep(500)
    	  Else
    		 $Searching = False
    	  EndIf
      WEnd
      
       ;orange
       ; 2 slots items
       $Searching = True
       while $Searching
    	  $Pixel3 = PixelSearch(1400,584,1900,874,0x593212 )			
    	  if Not @error Then
    		 MouseClick("right", $Pixel3[0], $Pixel3[1])
    		 Sleep(500)
    	  Else
    		 $Searching = False
    	  EndIf
      WEnd
       ; 1 slots items
       $Searching = True
       while $Searching
    	  $Pixel3 = PixelSearch(1400,584,1900,874,0x693e12 )			
    	  if Not @error Then
    		 MouseClick("right", $Pixel3[0], $Pixel3[1])
    		 Sleep(500)
    	  Else
    		 $Searching = False
    	  EndIf
      WEnd
    EndFunc
    
    Func CheckDeath()
    	  $Pixel3 = PixelSearch(670,812,1263,881,0x0e0604 )			
    	  if Not @error Then
    		 ; dead
    	  EndIf
       EndFunc
       
    Func ResumeGame()
       Send("{ESCAPE}") ;opens menu
       Sleep(1000)
       MouseClick("left", 956, 579) ;button to leave game
       ;Sleep(13000)
       
       $Searching = True
       while $Searching
    	  $Pixel3 = PixelSearch(60,384,411,450,0x3c0700 )			
    	  if Not @error Then
    		 MouseClick("left", 230, 416) ;button to resume game from main menu
    		 Sleep(8000)
    		 $Searching = False
    	  EndIf
       WEnd
    EndFunc
    Last edited by DennisToo; 06-12-2012 at 07:46 AM.

  11. #11
    Member
    Reputation
    1
    Join Date
    Jun 2012
    Posts
    61
    CoreCoins
    0

    Trade Feedbacks

    Status
    n/a
    Positive
    0 (0%)
    Negative
    0 (0%)
    Quote Originally Posted by Travincall View Post
    Damn you beat me to it. I already figured it out and posted in wizard forum. I gave credits to you because you're a ****ing champ for solving that problem and you deserve it. Now peeps can run all night lol. <------ probably not a good thing
    Hey I tried the script you sent which was a version of mine with your exit menu script thrown in.....It didn't work. Apparently I thought it was working but some others tested and claimed it still wasn't working so instead of trying mine I decided to test yours and it was even worse. Once it got into the menu area it would give an error

    Line 149
    Call MainMenu()
    ^ERROR

    error: Error parsing function call.



    Anyway not sure what that means but that's what happens if it ends up on the exit diablo screen

  12. #12
    Member
    Reputation
    1
    Join Date
    Jun 2012
    Posts
    7
    CoreCoins
    0

    Trade Feedbacks

    Status
    n/a
    Positive
    0 (0%)
    Negative
    0 (0%)
    Quote Originally Posted by Travincall View Post
    Hey I tried the script you sent which was a version of mine with your exit menu script thrown in.....It didn't work. Apparently I thought it was working but some others tested and claimed it still wasn't working so instead of trying mine I decided to test yours and it was even worse. Once it got into the menu area it would give an error

    Line 149
    Call MainMenu()
    ^ERROR

    error: Error parsing function call.



    Anyway not sure what that means but that's what happens if it ends up on the exit diablo screen
    well line 149 of my script isnt even a call to Main Menu it is a sleep but i took another look at the version you posted try this

  13. #13
    Member
    Reputation
    1
    Join Date
    Jun 2012
    Posts
    6
    CoreCoins
    0

    Trade Feedbacks

    Status
    n/a
    Positive
    0 (0%)
    Negative
    0 (0%)
    Im having the same problem as u used to have,oden.I was using a version for 1280x720 since my max res is 1440x900.
    Could you pls make a working one for this resolution?Im pretty sure there are lots who will be gratefull..

 

 

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -4. The time now is 05:46 AM. Powered by vBulletin® Version 4.2.0
Copyright © 2014 vBulletin Solutions, Inc. All rights reserved.
Content Relevant URLs by vBSEO Resources saved on this page: MySQL 21.43%
vBulletin Optimisation provided by vB Optimise (Pro) - vBulletin Mods & Addons Copyright © 2014 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112