Blizzhackers

Return of the Jedi

* Login   * Register    * FAQ    * Search

Join us on IRC: #bh@irc.synirc.net (or Mibbit Web IRC)


MuleFactory


It is currently Tue Jun 18, 2013 6:54 am


All times are UTC [ DST ]





Post new topic Reply to topic  [ 297 posts ]  Go to page Previous  1 ... 16, 17, 18, 19, 20
Author Message
 Post subject: Re: [Goldfarming] AFK 150k-200k Gold Per Hour [AutoIT Script
PostPosted: Sun Jul 01, 2012 3:22 pm 
 
User
User

Joined: Thu Jun 14, 2012 4:47 pm
Here, my DH is not getting in the cellar but go belows and teleports to town.

Top
 Profile  
 Post subject: Re: [Goldfarming] AFK 150k-200k Gold Per Hour [AutoIT Script
PostPosted: Sun Jul 01, 2012 8:38 pm 
 
User
User

Joined: Sat Jun 09, 2012 4:40 am
I'm having the same problem on my DH >>> Script gets screwed when my Inventory is full D:

It was working perfectly fine about a week or 2 ago; it would drop rares in my chest and sell blues. But now its not working properly any help would be awesome :D

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
$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
$default_resolutionX = 1920
$default_resolutionY = 1080
$x_ratio = @Desktopwidth / $default_resolutionX
$y_ratio = @Desktopheight / $default_resolutionY
$i = 0

While $go
   if($Leave) Then
   Call("CheckDead")
   Call("CheckLogout")
   Call("CheckBag")
   Call("Logout")
   $Pixel1 = PixelSearch(1482,20,1535,95,0xFFF000) ;searches top right screen for yellow of broken armor
     If Not @error Then
       Send("t")
       Sleep(7200)
       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}") ;opens menu
        Sleep(10)
        Send("{ESCAPE}") ;opens menu
        Sleep(1000)
        MouseClick("left", 956, 579) ;button to leave game
        Sleep(4000)
        MouseClick("left", 230, 416) ;button to resume game from main menu
        Sleep(4000)
      Else
      $i = 0
       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")
       Call("CheckLogout")
         $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(2900)
               MouseClick("left",Round(531 *$x_ratio),Round(769 * $y_ratio))
              Sleep(2000)
              MouseClick("left",Round(547 *$x_ratio),Round(490 * $y_ratio)) ;moves to doorway leading to rare inside cellar
              Sleep(1500)
              MouseMove(Round(579 * $x_ratio),Round(209 * $y_ratio),1) ;hovers over the rare Sarkoth
              Send(4)
              Sleep(600)
              Send("{SHIFTDOWN}")
              MouseDown("right") ;attack middle   
              Sleep(2100)
              MouseDown("left")
              Sleep(2100)
              Send(2)
              MouseDown("left")
              Sleep(1700)
              MouseDown("right") ;attack middle   
              Sleep(2100)
              MouseUP("right")
             
              Sleep(10)
              Send("{SHIFTUP}")
              Sleep(400)
              MouseClick("left",Round(579 *$x_ratio),Round(209 * $y_ratio)) ;location of sarkoth after death
              Sleep(2500)
              MouseClick("left",Round(866 *$x_ratio),Round(324 * $y_ratio)) ;moves to right top corner for gold
              Sleep(1500)
              MouseClick("left",Round(902 *$x_ratio),Round(954 * $y_ratio)) ;moves to bottom middle for gold          
              Sleep(1500)
              MouseClick("left",Round(687 *$x_ratio),Round(413 * $y_ratio)) ;moves to left top corner for gold
         Sleep(1100)
              Send("4")
              MouseClick("middle",Round(1420*$x_ratio),Round(485*$y_ratio)) ;move to middle before looting
           Call("CheckLoot")
           Sleep(800)
           Call("CheckBag")
           Sleep(800)
           Send("t")
           Sleep(7200)
           Call("CheckDead")
           Call("Logout")
            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")
           Call("Logout")
            EndIf
     EndIf
   EndIf
WEnd

Func CheckLoot()
   If ($i < 8) Then
     Sleep(Random(300,600))
     Call("CheckBag")
     $Pixel12 = PixelSearch(378, 317, 1412, 731, 0x6969FF); magic loot
     If Not @error Then
          MouseClick ('left', $Pixel12[0], $Pixel12[1])
          Sleep(Random(400,800))
            Call("CheckLoot")
          EndIf
     $Pixel4 = PixelSearch(378, 317, 1412, 731,0xBF642F,1) ; legendary lootz
     If Not @error Then
          MouseClick ('left', $Pixel4[0], $Pixel4[1])
          Sleep(Random(400,800))
            Call("CheckLoot")
          EndIf

     $Pixel5 = PixelSearch(378, 317, 1412, 731, 0xFFFF00,1) ; rare lootz
     If Not @error Then
          MouseClick ('left', $Pixel5[0], $Pixel5[1])
          Sleep(Random(400,800))
            Call("CheckLoot")
          EndIf

     $Pixel10 = PixelSearch(378, 317, 1412, 731, 0x00FF00,1); set loot
     If Not @error Then
          MouseClick ('left', $Pixel10[0], $Pixel10[1])
          Sleep(Random(400,800))
            Call("CheckLoot")
          EndIf

     $Pixel11 = PixelSearch(378, 317, 1412, 731, 0x6969FF); magic loot 2
     If Not @error Then
          MouseClick ('left', $Pixel11[0], $Pixel11[1])
          Sleep(Random(400,800))
            Call("CheckLoot")
          EndIf
          $i = $i + 1
   EndIf
EndFunc

Func CheckDead()
$Pixeltest = PixelGetColor(740, 850)
If Hex($Pixeltest, 6) == "0C0404" OR Hex($Pixeltest, 6) == "310000" Then
   Sleep(100)
   Send("{Escape}")
   Sleep(10)
   MouseClick("left", 956,579) ;button to leave game
   Sleep(10000)
   Sleep(4000)
   MouseClick("left", 230,416) ;button to resume game from main menu
   Sleep(4000)
EndIf
EndFunc

Func Logout()
$Pixeltest1 = PixelGetColor(704, 918)
If Hex($Pixeltest1, 6) == "598A8D" Then
   Sleep(100)
   Send("{Escape}")
   Sleep(10)
   MouseClick("left", 956,579) ;button to leave game
   Sleep(4000)
   MouseClick("left", 230,416) ;button to resume game from main menu
   Sleep(4000)
EndIf
EndFunc

Func CheckLogout()
$Pixeltest3 = PixelGetColor(960, 290)
If Hex($Pixeltest3, 6) == "400400" Then
   Sleep(10000)
   Sleep(4000)
   MouseClick("left", 230, 416) ;button to resume game from main menu
   Sleep(4000)
EndIf
EndFunc

Func CheckBag()
Send("i")
Sleep(500)
$Pixel7 = PixelSearch(1651, 82, 1655, 78, 0xC8C55D)
If Not @error Then
   Sleep(300)
   $Pixel7 = PixelSearch(1869, 794, 1871, 815, 0x140C08, 1)
     If Not @error Then
       Send("i")
       Sleep(500)
     Else
       Send("i")
        Sleep(100)
        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)
        ;selling items
        MouseClick("right", 1436, 612);1
        Sleep(Random(80, 200))
        MouseClick("right", 1436, 680);1.5
        Sleep(Random(80, 200))
        MouseClick("right", 1478, 613);2
        Sleep(Random(80, 200))
        MouseClick("right", 1530, 615);3
        Sleep(Random(80, 200))
        MouseClick("right", 1573, 608);4
        Sleep(Random(80, 200))
        MouseClick("right", 1622, 607);5
        Sleep(Random(80, 200))
        MouseClick("right", 1670, 610);6
        Sleep(Random(80, 200))
        MouseClick("right", 1722, 609);7
        Sleep(Random(80, 200))
        MouseClick("right", 1786, 610);8
        Sleep(Random(80, 200))
        MouseClick("right", 1809, 612);9
        Sleep(Random(80, 200))
        MouseClick("right", 1886, 612);10
        Sleep(Random(80, 200))
        MouseClick("right", 1869, 703);11
        Sleep(Random(80, 200))
        MouseClick("right", 1818, 703);12
        Sleep(Random(80, 200))
        MouseClick("right", 1759, 706);13
        Sleep(Random(80, 200))
        MouseClick("right", 1728, 706);14
        Sleep(Random(80, 200))
        MouseClick("right", 1672, 706);15
        Sleep(Random(80, 200))
        MouseClick("right", 1628, 703);16
        Sleep(Random(80, 200))
        MouseClick("right", 1578, 705);17
        Sleep(Random(80, 200))
        MouseClick("right", 1529, 703);18
        Sleep(Random(80, 200))
        MouseClick("right", 1481, 707);19
        Sleep(Random(80, 200))
        MouseClick("right", 1432, 705);20
        Sleep(Random(80, 200))
        MouseClick("right", 1432, 804);21
        Sleep(Random(80, 200))
        MouseClick("right", 1483, 802);22
        Sleep(Random(80, 200))
        MouseClick("right", 1530, 802);23
        Sleep(Random(80, 200))
        MouseClick("right", 1582, 804);24
        Sleep(Random(80, 200))
        MouseClick("right", 1625, 808);25
        Sleep(Random(80, 200))
        MouseClick("right", 1675, 799);26
        Sleep(Random(80, 200))
        MouseClick("right", 1722, 802);27
        Sleep(Random(80, 200))
        MouseClick("right", 1775, 799);28
        Sleep(Random(80, 200))
        MouseClick("right", 1821, 802);29
        Sleep(Random(80, 200))
        MouseClick("right", 1865, 799);30
        Sleep(Random(80, 200))
        MouseClick("right", 1434, 748);25
        Sleep(Random(80, 200))
        MouseClick("right", 1483, 752);26
        Sleep(Random(80, 200))
        MouseClick("right", 1532, 752);27
        Sleep(Random(80, 200))
        MouseClick("right", 1437, 846);28
        Sleep(Random(80, 200))
        MouseClick("right", 1484, 846);29
        Sleep(Random(80, 200))
        MouseClick("right", 1531, 850);30
        Sleep(Random(80, 200))
        MouseClick("left", 521, 506) ;button to open up repair menu
        Sleep(1000)
        MouseClick("left", 260, 595) ;button to pay for repairs
        Sleep(2000)
        Send("{ESCAPE}") ;menu
        Sleep(500)
        MouseClick("left", 257, 1044)
        Sleep(2300)
        MouseClick("left", 756, 684)
        Sleep(1700)
        MouseClick ('left', 810, 545)
        Sleep(500)
        ;storing items
        MouseClick("right", 1436, 612);1
        Sleep(Random(80, 200))
        MouseClick("right", 1436, 680);1.5
        Sleep(Random(80, 200))
        MouseClick("right", 1478, 613);2
        Sleep(Random(80, 200))
        MouseClick("right", 1530, 615);3
        Sleep(Random(80, 200))
        MouseClick("right", 1573, 608);4
        Sleep(Random(80, 200))
        MouseClick("right", 1622, 607);5
        Sleep(Random(80, 200))
        MouseClick("right", 1670, 610);6
        Sleep(Random(80, 200))
        MouseClick("right", 1722, 609);7
        Sleep(Random(80, 200))
        MouseClick("right", 1786, 610);8
        Sleep(Random(80, 200))
        MouseClick("right", 1809, 612);9
        Sleep(Random(80, 200))
        MouseClick("right", 1886, 612);10
        Sleep(Random(80, 200))
        MouseClick("right", 1869, 703);11
        Sleep(Random(80, 200))
        MouseClick("right", 1818, 703);12
        Sleep(Random(80, 200))
        MouseClick("right", 1759, 706);13
        Sleep(Random(80, 200))
        MouseClick("right", 1728, 706);14
        Sleep(Random(80, 200))
        MouseClick("right", 1672, 706);15
        Sleep(Random(80, 200))
        MouseClick("right", 1628, 703);16
        Sleep(Random(80, 200))
        MouseClick("right", 1578, 705);17
        Sleep(Random(80, 200))
        MouseClick("right", 1529, 703);18
        Sleep(Random(80, 200))
        MouseClick("right", 1481, 707);19
        Sleep(Random(80, 200))
        MouseClick("right", 1432, 705);20
        Sleep(Random(80, 200))
        MouseClick("right", 1432, 804);21
        Sleep(Random(80, 200))
        MouseClick("right", 1483, 802);22
        Sleep(Random(80, 200))
        MouseClick("right", 1530, 802);23
        Sleep(Random(80, 200))
        MouseClick("right", 1582, 804);24
        Sleep(Random(80, 200))
        MouseClick("right", 1625, 808);25
        Sleep(Random(80, 200))
        MouseClick("right", 1675, 799);26
        Sleep(Random(80, 200))
        MouseClick("right", 1722, 802);27
        Sleep(Random(80, 200))
        MouseClick("right", 1775, 799);28
        Sleep(Random(80, 200))
        MouseClick("right", 1821, 802);29
        Sleep(Random(80, 200))
        MouseClick("right", 1865, 799);30
        Sleep(Random(80, 200))
        MouseClick("right", 1434, 748);25
        Sleep(Random(80, 200))
        MouseClick("right", 1483, 752);26
        Sleep(Random(80, 200))
        MouseClick("right", 1532, 752);27
        Sleep(Random(80, 200))
        MouseClick("right", 1437, 846);28
        Sleep(Random(80, 200))
        MouseClick("right", 1484, 846);29
        Sleep(Random(80, 200))
        MouseClick("right", 1531, 850);30
        Sleep(Random(80, 200))
        Send("{ESCAPE}") ;menu
        Sleep(500)
   EndIf
EndIf
EndFunc

Func Pause()
   $Leave = False
EndFunc

Func Stop() ;to allow the script to stop
    Exit
EndFunc

Func Leave()
    $Leave = True
EndFunc



EDIT: I'm wondering if the 'pixelsearch' function isn't working properly after a blizz update? Not sure..

Top
 Profile  
 Post subject: Re: [Goldfarming] AFK 150k-200k Gold Per Hour [AutoIT Script
PostPosted: Mon Jul 02, 2012 1:56 pm 
 
User
User

Joined: Mon Jul 02, 2012 1:43 pm
Hey guys,

First - i don't know if there is a threat of explaining my question (didn't find any).

My question is, how do i have to use Auto it in general ?
I mean okay - we got a simple code here, which uses mouseclicks on pixels on the resolution 1920x1080 here.

But do i have to start the script first or the game ? and does the script need to be in a defined diablo 3 folder or path?

or do i just have to start the script with "=" while iam running d3 and it should work ?

Would be nice to get an answer soon !
Greetings

Top
 Profile  
 Post subject: Re: [Goldfarming] AFK 150k-200k Gold Per Hour [AutoIT Script
PostPosted: Mon Jul 02, 2012 6:11 pm 
 
User
User

Joined: Thu Jun 21, 2012 5:53 pm
@iihieiii
Make your move button to middle mouse click. There is a move only setting in keybindings. Every time a mouseclick is clicked to move use "middle" instead of "left" mouse

@blizztardz
Make sure you are in Windowed Fullscreen mode. After blizz updates a lot of times it resets this setting. Still don't understand why lol.

Top
 Profile  
 Post subject: Re: [Goldfarming] AFK 150k-200k Gold Per Hour [AutoIT Script
PostPosted: Tue Jul 03, 2012 2:15 am 
 
User
User

Joined: Thu Jun 28, 2012 11:59 pm
Hey guys,

First - i don't know if there is a threat of explaining my question (didn't find any).

My question is, how do i have to use Auto it in general ?
I mean okay - we got a simple code here, which uses mouseclicks on pixels on the resolution 1920x1080 here.

But do i have to start the script first or the game ? and does the script need to be in a defined diablo 3 folder or path?

or do i just have to start the script with "=" while iam running d3 and it should work ?

Would be nice to get an answer soon !
Greetings


Start D3 first. The script expects D3 to be open and running. The script may or may not expect you to have the game already open and ready to go at the specific checkpoint. The script definitely expects you to have your hero selected, geared, with appropriate skills selected.

Top
 Profile  
 Post subject: Re: [Goldfarming] AFK 150k-200k Gold Per Hour [AutoIT Script
PostPosted: Tue Jul 03, 2012 4:59 am 
 
User
User

Joined: Fri Jun 29, 2012 12:59 am
@iihieiii
Make your move button to middle mouse click. There is a move only setting in keybindings. Every time a mouseclick is clicked to move use "middle" instead of "left" mouse

@blizztardz
Make sure you are in Windowed Fullscreen mode. After blizz updates a lot of times it resets this setting. Still don't understand why lol.



LOL...thx in adv =D

Top
 Profile  
 Post subject: Re: [Goldfarming] AFK 150k-200k Gold Per Hour [AutoIT Script
PostPosted: Tue Jul 03, 2012 5:01 am 
 
User
User

Joined: Fri Jun 29, 2012 12:59 am
btw....i wanna know if there is any kind of program or software that calculet the x,y position in the screen...so far im doing all manualy =/

Top
 Profile  
 Post subject: Re: [Goldfarming] AFK 150k-200k Gold Per Hour [AutoIT Script
PostPosted: Tue Jul 03, 2012 4:59 pm 
 
User
User

Joined: Mon Aug 25, 2008 8:58 am
I have everything compiled into autoit and I have the resolution set up properly


how u have fixed the fatal error?

I HAVE COPIED AND PASTE ALL SCRIPT THEN I USE RUN SCRIPT AND I ALWAYS GET THIS
Quote:
FATAL ERROR
CANNOT FIND C:\USER\HEC\DESKTOP\PICS\MAINMENU.PNG
MAKE SURE YOUR DIRECTORY IS SET PROPERLY IN THE SCRIPT


What more i need? where is the mainmenu.png file?

is this a part of the code of the scrip? or the script has to be in a special directory? or i have missed a file to include in some directory? or i have missed to change something in a d3 file or in a autoit program ?

plz some help would be apreciated


I get the very same problem, i run it when diablo in resume screen, but in vain. Any explanation and a guide to fix it?

If $pngLoc == "@ScriptDir" Then $pngLoc = @ScriptDir & "\pics\"

Has it anything to do with this line? What do i need to change/or maybe im doing something wrong and i just missed it

thanks in advance

Top
 Profile  
 Post subject: Re: [Goldfarming] AFK 150k-200k Gold Per Hour [AutoIT Script
PostPosted: Wed Jul 04, 2012 9:51 pm 
 
User
User

Joined: Wed Jul 04, 2012 9:46 pm
*Fixed*

Top
 Profile  
 Post subject: Re: [Goldfarming] AFK 150k-200k Gold Per Hour [AutoIT Script
PostPosted: Thu Jul 05, 2012 4:37 am 
 
User
User
User avatar

Joined: Tue Jan 18, 2005 7:16 pm
For people getting the error using the new script for the missing files here you go.

http://dl.dropbox.com/u/9955791/BotFiles.zip

FYI if you cared to read the script you would have found the link IN THE SCRIPT.

_________________
binny wrote:
you really need to change your sig.

there used to be a dragon like this that would hit on me and I now want to puke every time i see this

Top
 Profile  
 Post subject: Re: [Goldfarming] AFK 150k-200k Gold Per Hour [AutoIT Script
PostPosted: Wed Jul 11, 2012 5:18 pm 
 
User
User

Joined: Mon Jul 25, 2011 10:54 am
For people getting the error using the new script for the missing files here you go.

http://dl.dropbox.com/u/9955791/BotFiles.zip

FYI if you cared to read the script you would have found the link IN THE SCRIPT.

does this script supports all resolutions i wanna run it in 1280x720

is this posible?

Top
 Profile  
 Post subject: Re: [Goldfarming] AFK 150k-200k Gold Per Hour [AutoIT Script
PostPosted: Wed Jul 25, 2012 11:21 am 
 
User
User

Joined: Sun Nov 16, 2008 7:33 pm
Any progress on this?

let me know!

Top
 Profile  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 297 posts ]  Go to page Previous  1 ... 16, 17, 18, 19, 20

All times are UTC [ DST ]


Who is online

Users browsing this forum: Google [Bot] and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
cron