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 Wed Jun 19, 2013 5:19 pm


All times are UTC [ DST ]





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

Joined: Sun Jun 17, 2012 8:30 pm
tiredmidget wrote:
Need for speed version (25% move speed dont know if you need it or not but you might) Selling sleep timers have been removed, pathing has been changed to make it much faster and to deal with the pesky first set of zombies. Edit your Smoke Screen with rune to move faster, Caltrops to immobilze.

Global $Paused

HotKeySet("=","Leave")
HotKeySet("-", "Pause")
HotKeySet("x", "Stop")

$default_resolutionX = 1920
$default_resolutionY = 1080
$x_ratio = @Desktopwidth / $default_resolutionX
$y_ratio = @Desktopheight / $default_resolutionY

$go = True
$Leave = False

Dim $Color, $Left, $Top, $Right, $Bottom
Local $Count = 0
$Color = 0xFFFF00   ;rare color code
$Color2 = 0x6969FF  ;blue color code     I have the ; in the 6969ff so it doesent pickup remove if you want it too!
$Color3 = 0xBF642F  ;legendary color code
$Color4 = 0x00FF00 ;SET color
$Left = 0                          ;TOP LEFT CORNER OF SCREEN 0,0
$Top = 0                           ;THESE ARE WHERE IT LOOKS FOR COLORS             
$Right = 1920                      ;BOTTOM RIGHT CORNER OF SCREEN 1920,1080
$Bottom = 1080


While $go
if($Leave) Then
$Pixel1 = PixelSearch((1482 * $x_ratio),(20 * $y_ratio),(1535 * $x_ratio),(95 * $y_ratio),0xFFF000) ;searches top right screen for yellow of broken armor
If Not @error Then
   Send ("t")
   Sleep(8000)
  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(1500)
   MouseClick("left", Round(521 * $x_ratio),Round(506 * $y_ratio)) ;button to open up repair menu
   Sleep(1500)
   MouseClick("left", Round(260 * $x_ratio),Round(595 * $y_ratio)) ;button to pay for repairs
   Sleep(1500)
   MouseClick("left", Round(480 * $x_ratio),Round(180))
   Sleep(1500)
   MouseClick("left", Round(480 * $x_ratio),Round(180))
   MouseClick("right", Round(1450 * $x_ratio),Round(447))
   MouseClick("right", Round(1500 * $x_ratio),Round(447))
   MouseClick("right", Round(1550 * $x_ratio),Round(447))
   MouseClick("right", Round(1600 * $x_ratio),Round(447))
   MouseClick("right", Round(1645 * $x_ratio),Round(447))
   MouseClick("right", Round(1690 * $x_ratio),Round(447))
   MouseClick("right", Round(1730 * $x_ratio),Round(447))
   MouseClick("right", Round(1775 * $x_ratio),Round(447))
   MouseClick("right", Round(1840 * $x_ratio),Round(447))
   MouseClick("right", Round(1885 * $x_ratio),Round(447))
   MouseClick("right", Round(1450 * $x_ratio),Round(500))
   MouseClick("right", Round(1500 * $x_ratio),Round(500))
   MouseClick("right", Round(1550 * $x_ratio),Round(500))
   MouseClick("right", Round(1600 * $x_ratio),Round(500))
   MouseClick("right", Round(1645 * $x_ratio),Round(500))
   MouseClick("right", Round(1690 * $x_ratio),Round(500))
   MouseClick("right", Round(1730 * $x_ratio),Round(500))
   MouseClick("right", Round(1775 * $x_ratio),Round(500))
   MouseClick("right", Round(1840 * $x_ratio),Round(500))
   MouseClick("right", Round(1885 * $x_ratio),Round(500))
   MouseClick("right", Round(1450 * $x_ratio),Round(568))
   MouseClick("right", Round(1500 * $x_ratio),Round(568))
   MouseClick("right", Round(1550 * $x_ratio),Round(568))
   MouseClick("right", Round(1600 * $x_ratio),Round(568))
   MouseClick("right", Round(1645 * $x_ratio),Round(568))
   MouseClick("right", Round(1690 * $x_ratio),Round(568))
   MouseClick("right", Round(1730 * $x_ratio),Round(568))
   MouseClick("right", Round(1775 * $x_ratio),Round(568))
   MouseClick("right", Round(1840 * $x_ratio),Round(568))
   MouseClick("right", Round(1885 * $x_ratio),Round(568))
   Send("{ESCAPE}") ;exits store menu
   Sleep(250)
   Send("{ESCAPE}") ;opens menu
   Sleep(1000)
   MouseClick("left", Round(956 * $x_ratio),Round(579 * $y_ratio)) ;button to leave game
   Sleep(8000)
   MouseClick("left", Round(230 * $x_ratio),Round(416 * $y_ratio)) ;button to resume game from main menu
   Sleep(8000)
Else
ToolTip($count)
MouseClick("left", Round(587 * $x_ratio),Round(333 * $y_ratio)) ;starts the main run
Sleep(1000)
Send("2")
MouseClick("left", Round(96 * $x_ratio),Round(383 * $y_ratio))
Send("2")
Sleep(1500)
Send("3")
MouseClick("left", Round(417 * $x_ratio),Round(422 * $y_ratio)) ;middle of area outside of cellar
Send("1")
Sleep(1000)
MouseMove(Round(115 * $x_ratio),Round(210 * $y_ratio),1) ;moves cursor over to the cellar so the proper blue pixel becomes highlighted
Sleep(1000)
$Pixel2 = PixelSearch(0,0,(960 * $x_ratio),(540 * $y_ratio),0x3B62E3,3) ;searches for the specific blue pixel that only occurs when mouse hovers over open cellar
If Not @error Then
MouseClick("left",Round(115 *$x_ratio),Round(210 * $y_ratio)) ;Entrance to cellar
              Sleep(1900)
              Send(2)
              Sleep(1800)
              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(1000)
Send("{SHIFTDOWN}")
MouseDown("right") ;attack middle
Sleep(3800)
MouseMove(Round(467 * $x_ratio),Round(269 * $y_ratio),1) ;attack left, add more sleep time if you can't kill minion on left
Sleep(3000)
MouseMove(Round(682 * $x_ratio),Round(147 * $y_ratio),1) ;attack right
Sleep(800)
MouseMove(Round(579 * $x_ratio),Round(209 * $y_ratio),1) ;move back to middle
Sleep(1000)
MouseUP("right")
Sleep(300)
Send("{SHIFTUP}")
Sleep(500)
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(1500)
call ("Search")
Sleep(1500)
Send("t")
$Count = $Count + 1
If $Count > 10 Then
   Sleep(8000)
     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(1500)
   MouseClick("left", Round(521 * $x_ratio),Round(506 * $y_ratio)) ;button to open up repair menu
   Sleep(1500)
   MouseClick("left", Round(260 * $x_ratio),Round(595 * $y_ratio)) ;button to pay for repairs
   Sleep(1500)
   MouseClick("left", Round(480 * $x_ratio),Round(180))
   Sleep(800)
   MouseClick("left", Round(480 * $x_ratio),Round(180))
   MouseClick("right", Round(1450 * $x_ratio),Round(447))
   MouseClick("right", Round(1500 * $x_ratio),Round(447))
   MouseClick("right", Round(1550 * $x_ratio),Round(447))
   MouseClick("right", Round(1600 * $x_ratio),Round(447))
   MouseClick("right", Round(1645 * $x_ratio),Round(447))
   MouseClick("right", Round(1690 * $x_ratio),Round(447))
   MouseClick("right", Round(1730 * $x_ratio),Round(447))
   MouseClick("right", Round(1775 * $x_ratio),Round(447))
   MouseClick("right", Round(1840 * $x_ratio),Round(447))
   MouseClick("right", Round(1885 * $x_ratio),Round(447))
   MouseClick("right", Round(1450 * $x_ratio),Round(500))
   MouseClick("right", Round(1500 * $x_ratio),Round(500))
   MouseClick("right", Round(1550 * $x_ratio),Round(500))
   MouseClick("right", Round(1600 * $x_ratio),Round(500))
   MouseClick("right", Round(1645 * $x_ratio),Round(500))
   MouseClick("right", Round(1690 * $x_ratio),Round(500))
   MouseClick("right", Round(1730 * $x_ratio),Round(500))
   MouseClick("right", Round(1775 * $x_ratio),Round(500))
   MouseClick("right", Round(1840 * $x_ratio),Round(500))
   MouseClick("right", Round(1885 * $x_ratio),Round(500))
   MouseClick("right", Round(1450 * $x_ratio),Round(568))
   MouseClick("right", Round(1500 * $x_ratio),Round(568))
   MouseClick("right", Round(1550 * $x_ratio),Round(568))
   MouseClick("right", Round(1600 * $x_ratio),Round(568))
   MouseClick("right", Round(1645 * $x_ratio),Round(568))
   MouseClick("right", Round(1690 * $x_ratio),Round(568))
   MouseClick("right", Round(1730 * $x_ratio),Round(568))
   MouseClick("right", Round(1775 * $x_ratio),Round(568))
   MouseClick("right", Round(1840 * $x_ratio),Round(568))
   MouseClick("right", Round(1885 * $x_ratio),Round(568))
   $Count = $Count - 10
   Sleep(2500)
   Send("{ESCAPE}") ;exits store menu
   Sleep(250)
   Send("{ESCAPE}") ;opens menu
   Sleep(1000)
   MouseClick("left", Round(956 * $x_ratio),Round(579 * $y_ratio)) ;button to leave game
   Sleep(8000)
   MouseClick("left", Round(230 * $x_ratio),Round(416 * $y_ratio)) ;button to resume game from main menu
   Sleep(8000)
EndIf

Sleep(8200)
Send("{Escape}") ;menu
MouseClick("left",Round(956 *$x_ratio),Round(579 * $y_ratio)) ;button to leave game
Sleep(13000)
MouseClick("left",Round(230 *$x_ratio),Round(416 * $y_ratio)) ;button to resume game from main menu
Sleep(7000)
Else
Send("1")
Send("t")
Sleep(8300)
Send("{ESCAPE}") ;menu
MouseClick("left",Round(956 *$x_ratio),Round(579 * $y_ratio)) ;button to leave game
Sleep(13000)
MouseClick("left",Round(230 *$x_ratio),Round(416 * $y_ratio)) ;button to resume game from main menu
Sleep(8000)
EndIf
EndIf
EndIf
WEnd

Func Search()
    $SearchResult = PixelSearch($Left, $Top, $Right, $Bottom, $Color)  ;searches for rares
    If Not @error Then
      MouseClick("left", $SearchResult[0], $SearchResult[1], 1, 10)  ;IF ITS THERE IT CLICKS IT.
    EndIf
   $SearchResult = PixelSearch($Left, $Top, $Right, $Bottom, $Color2 )  ;searches for magics
   If Not @error Then
      MouseClick("left", $SearchResult[0], $SearchResult[1], 1, 10)    ;clicks magic
    EndIf
   
       $SearchResult = PixelSearch($Left, $Top, $Right, $Bottom, $Color3 ) ;searches for legendarys
   If Not @error Then
      MouseClick("left", $SearchResult[0], $SearchResult[1], 1, 10)         ;clicks legendary
    EndIf   
    $SearchResult = PixelSearch($Left, $Top, $Right, $Bottom, $Color4)  ;searches for SETS
    If Not @error Then
      MouseClick("left", $SearchResult[0], $SearchResult[1], 1, 10)  ;IF ITS THERE IT CLICKS IT.
     EndIf
EndFunc

Func Pause()
$Leave = False
EndFunc

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

Func Leave()
$Leave = True
EndFunc


Thank you very much! The script has been running perfectly for me until this edit. When the bot went to sell the blue items it sold my weapon off-hand and boots instead. Thank god I was watching it :)

Almost got it fixed now! Edited the numbers so it correctly sells the first row of items in the inventory. Now for the second one :p


Last edited by lorefire on Mon Jun 18, 2012 9:22 am, edited 1 time in total.
Top
 Profile  
 Post subject: Re: [Goldfarming] AFK 150k-200k Gold Per Hour [AutoIT Script
PostPosted: Mon Jun 18, 2012 4:03 am 
 
User
User

Joined: Sun Aug 22, 2004 4:42 pm
You have to be careful with edits because people use different resolutions. I edited the original code myself and it only runs (well) in 720p

Top
 Profile  
 Post subject: Re: [Goldfarming] AFK 150k-200k Gold Per Hour [AutoIT Script
PostPosted: Mon Jun 18, 2012 4:20 am 
 
User
User

Joined: Tue Apr 10, 2012 4:06 pm
ta it is so close it soetimes works but sometimes it is a half an inch from blue piels t hover ofer when there are a barrel in fron then just leaves geame? Hit me up and lets work throuh this! Notareas has a nice mgr showing games , gold runs ect its cool but right control button woulldnt work!

Top
 Profile  
 Post subject: Re: [Goldfarming] AFK 150k-200k Gold Per Hour [AutoIT Script
PostPosted: Mon Jun 18, 2012 4:26 am 
 
User
User

Joined: Fri Jun 08, 2012 5:09 am
I have further updated my barb variation of this script. I have changed the start key to "g" instead of "=" because it is easier to get to on my keyboard in the dark. I have also changed some path problems. The repair function is still a little wonky, so I bought a full set of indestructible armor as well as weapons. This script is working perfectly for me. Please note that you need to be in windowed mode and have a resolution of 1920 x 1080. Here is the code.
Global $Paused

HotKeySet("g","Leave")
HotKeySet("-", "Pause")
HotKeySet("x", "Stop")

$default_resolutionX = 1920
$default_resolutionY = 1080
$x_ratio = @Desktopwidth / $default_resolutionX
$y_ratio = @Desktopheight / $default_resolutionY

$go = True
$Leave = False

While $go
if($Leave) Then
MouseMove(Round(1514 * $x_ratio),Round(41 * $y_ratio),1)
sleep(1000)
$Pixel1 = PixelSearch((1482 * $x_ratio),(20 * $y_ratio),(1535 * $x_ratio),(95 * $y_ratio),0xFFF000) ;searches top right screen for yellow of broken armor
If Not @error Then
Send("t")
Sleep(8000)
MouseClick("left", Round(124 * $x_ratio),Round(603 * $y_ratio));begin movement towards merchant
Sleep(1500)
MouseClick("left", Round(40 * $x_ratio),Round(161 * $y_ratio)) ;moves to get merchant in screen
Sleep(1500)
MouseClick("left", Round(506 * $x_ratio),Round(614 * $y_ratio)) ;button to open up repair menu
Sleep(1500)
MouseClick("left", Round(283 * $x_ratio),Round(596 * $y_ratio)) ;button to pay for repairs
Sleep(2500)
Send("{ESCAPE}") ;opens menu
Sleep(1000)
MouseClick("left", Round(956 * $x_ratio),Round(579 * $y_ratio)) ;button to leave game
Sleep(8000)
MouseClick("left", Round(230 * $x_ratio),Round(416 * $y_ratio)) ;button to resume game from main menu
Sleep(8000)
Else
MouseClick("left", Round(587 * $x_ratio),Round(333 * $y_ratio)) ;starts the main run
Sleep(1800)
Send("2")
MouseClick("left", Round(96 * $x_ratio),Round(383 * $y_ratio))
Sleep(1500)
Send("0")
Sleep(1500)
MouseClick("left", Round(417 * $x_ratio),Round(422 * $y_ratio)) ;middle of area outside of cellar
Send("0")
Sleep(2000)
Send("0")
Send("0")
MouseMove(Round(115 * $x_ratio),Round(210 * $y_ratio),1) ;moves cursor over to the cellar so the proper blue pixel becomes highlighted
Sleep(2000)
$Pixel2 = PixelSearch(0,0,(960 * $x_ratio),(540 * $y_ratio),0x3B62E3,3) ;searches for the specific blue pixel that only occurs when mouse hovers over open cellar
If Not @error Then
MouseClick("left",Round(115 *$x_ratio),Round(210 * $y_ratio)) ;Entrance to cellar
Sleep(1900)
Send(0)
Sleep(1800)
MouseClick("right",Round(604 *$x_ratio),Round (527 * $y_ratio)) ;moves up and right for gold
Sleep(1500)
MouseClick("left",Round(339 *$x_ratio),Round(899 * $y_ratio))
Sleep(1900)
Send(0)
MouseClick("left",Round(723 *$x_ratio),Round(412 * $y_ratio))
Sleep(2000)
MouseClick("left",Round(587 *$x_ratio),Round(199 * $y_ratio))
Sleep(1500)
Send("{SHIFTDOWN}")
sleep(1500)
MouseClick("left")
sleep(500)
MouseClick("left")
sleep(500)
MouseClick("left")
sleep(500)
MouseClick("left")
sleep(500)
MouseClick("left")
sleep(500)
MouseClick("left")
sleep(500)
MouseClick("left")
Send("{SHIFTUP}")
sleep(2000)
MouseClick("right",Round(865 *$x_ratio),Round(833 * $y_ratio))
sleep(1000)
MouseClick("right",Round(1418 *$x_ratio),Round(509 * $y_ratio))
sleep(1000)
MouseClick("right",Round(522 *$x_ratio),Round(450 * $y_ratio))
sleep(1500)

MouseClick("left",Round(523 *$x_ratio),Round(441 * $y_ratio))
sleep(1500)
MouseClick("left",Round(985 *$x_ratio),Round(639 * $y_ratio)) ;location of sarkoth after death
Sleep(2500)
MouseClick("left",Round(1120 *$x_ratio),Round(808 * $y_ratio)) ;moves to right top corner for gold
Sleep(1500)
MouseClick("left",Round(1178 *$x_ratio),Round(66 * $y_ratio)) ;moves to bottom middle for gold
Sleep(1500)
MouseClick("left",Round(596 *$x_ratio),Round(728 * $y_ratio)) ;moves to left top corner for gold
Sleep(1500)
MouseClick("left",Round(1441 *$x_ratio),Round (590 * $y_ratio)) ;moves down and left for gold
Sleep(1500)
MouseClick("left",Round(835 *$x_ratio),Round (856 * $y_ratio)) ;moves up and right for gold
Sleep(1500)

MouseClick("left",Round(887 *$x_ratio),Round (59 * $y_ratio)) ;moves up and right for gold
Sleep(1500)
MouseClick("left",Round(852 *$x_ratio),Round (967 * $y_ratio)) ;moves up and right for gold
Sleep(1500)
MouseClick("left",Round(977 *$x_ratio),Round (841 * $y_ratio)) ;moves up and right for gold
Sleep(1500)

Send("t")
Sleep(8200)
Send("{Escape}") ;menu
MouseClick("left",Round(956 * $x_ratio),Round(579 * $y_ratio)) ;button to leave game
Sleep(13000)
MouseClick("left",Round(230 * $x_ratio),Round(416 * $y_ratio)) ;button to resume game from main menu
Sleep(7000)
Else
MouseClick("left",Round(900 * $x_ratio),Round(900 * $y_ratio)) ;moves down screen away from cellar in attempt for safety before teleporting back to town
Sleep(1200)
Send("t")
Sleep(8200)
Send("{ESCAPE}") ;menu
MouseClick("left",Round(956 * $x_ratio),Round(579 * $y_ratio)) ;button to leave game
Sleep(13000)
MouseClick("left",Round(230 * $x_ratio),Round(416 * $y_ratio)) ;button to resume game from main menu
Sleep(8000)
EndIf
EndIf
EndIf
WEnd

Func Pause()
$Leave = False
EndFunc

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

Func Leave()
$Leave = True
EndFunc


You must use AutoIt to run this script, and make sure you have seismic slam mapped to mouse button 2, as well as War Cry mapped to the 2 key. I hope if works for you. Enjoy!

Top
 Profile  
 Post subject: Re: [Goldfarming] AFK 150k-200k Gold Per Hour [AutoIT Script
PostPosted: Mon Jun 18, 2012 6:31 am 
 
User
User

Joined: Wed Jun 13, 2012 3:12 am
1.2.8 Changelog:
Added gem pickup
Refined and tested rare/set/legendary drop pickups (saw you guys were missing rares)
Changed summon location of ferrets and added an additional summon at the end
Starting using PixelSearch again for most of the checks, instead of PixelGetColor (compatibility)
Fixed some timers and waypoints for sarkarth fight/loot
Changed scan area for red/yellow armor (smaller/more accurate)
Rehauled CheckDead() to check for YOU HAVE DIED text as well as the logout cancel button


http://pastebin.com/hV4L3dXR


hey, how do you run this script? are you still using AutoIt? As I try to run it, I get two errors. one telling me to run in x64 mode, and another saying that it can't find C:\games\Diablo III\pics\MainMenu.png.. wooot.

Top
 Profile  
 Post subject: Re: [Goldfarming] AFK 150k-200k Gold Per Hour [AutoIT Script
PostPosted: Mon Jun 18, 2012 11:08 am 
 
User
User

Joined: Sun Jun 17, 2012 8:30 pm
Next patch I believe there will be a limit to the number of games you can create over a certain amount of time kinda like diablo 2.

Any considerations what consequences this will have regarding this script?

Top
 Profile  
 Post subject: Re: [Goldfarming] AFK 150k-200k Gold Per Hour [AutoIT Script
PostPosted: Mon Jun 18, 2012 2:17 pm 
 
User
User

Joined: Mon Jun 11, 2012 6:41 am
If Blizz incorporates a max games per time limit, that would be the end of D3 for me.
There's little enough fun to it already, only botting gives me an incentive, reaching the goal of a cetain amount of gold within a timeframe by optimizing stuff.

It's not as if you need the gold for anything, gear is relatively cheap to come by (unless you want a 10 million gold belt with that 3 extra dexterity ofc), and sets/uniques are so underpowered compared to rares that only the vain go for them.

Replay value of D3 is a lot lower to me than D2 (especially the group thing as prgress gets reset ridiculously far if you don't finish an act), but that might be just me...

As for the consequences of the script, incorporating a simple run-counter and pausing it for a few minutes every x runs will solve it, but yield less gold in the same amount of time of course. More optimizing :-)

Top
 Profile  
 Post subject: Re: [Goldfarming] AFK 150k-200k Gold Per Hour [AutoIT Script
PostPosted: Tue Jun 19, 2012 1:25 am 
 
User
User

Joined: Wed Jun 13, 2012 7:46 am
Now working?

Top
 Profile  
 Post subject: Re: [Goldfarming] AFK 150k-200k Gold Per Hour [AutoIT Script
PostPosted: Tue Jun 19, 2012 1:27 am 
 
User
User

Joined: Mon Jul 25, 2011 10:54 am
Quote:
In the INI, you may set PNG Location to @ScriptDir to just call /pics/ in the current directory. Added a bit more of a pause when leaving game to avoid loops.


i dont understand how to do this

i got my scrip in desktop and i have created a pic directory inside desktop
then i run script and i always get :

Quote:
FATAL ERROR
CANNOT FIND C:\USER\HEC\DESKTOP\PICS\MAINMENU.PNG
MAKE SURE YOUR DIRECTORY IS SET PROPERLY IN THE SCRIPT


what i am making wrong orwhat i miss?

Top
 Profile  
 Post subject: Re: [Goldfarming] AFK 150k-200k Gold Per Hour [AutoIT Script
PostPosted: Tue Jun 19, 2012 1:48 am 
 
User Gold
User Gold
User avatar

Joined: Thu Jul 16, 2009 2:44 am
Having some trouble with this. I have everything compiled into autoit and I have the resolution set up properly but when i go to run it I don't know how to take it off pause. I've tried pressing the "-" key to avail. The little badge at the bottom of my start menu keeps alternating between the autoit logo and a little red "x." I'm not sure if that means the script has an error in it somewhere or not. Any help would be appreciated.

_________________
Image

Top
 Profile  
 Post subject: Re: [Goldfarming] AFK 150k-200k Gold Per Hour [AutoIT Script
PostPosted: Tue Jun 19, 2012 7:56 am 
 
User
User

Joined: Sun Jun 17, 2012 8:30 pm
Quote:
As for the consequences of the script, incorporating a simple run-counter and pausing it for a few minutes every x runs will solve it, but yield less gold in the same amount of time of course. More optimizing


Ye that should do it :) Solution will probally be to run multiple bots at the same time.

The increased repair cost in the next patch is an interesting factor as well. If the repair cost is multiplied by 6 in the next patch it might be necessary to by indestructable gold find gear or else all the money is spent on repairs.

TriiT wrote:
Having some trouble with this. I have everything compiled into autoit and I have the resolution set up properly but when i go to run it I don't know how to take it off pause. I've tried pressing the "-" key to avail. The little badge at the bottom of my start menu keeps alternating between the autoit logo and a little red "x." I'm not sure if that means the script has an error in it somewhere or not. Any help would be appreciated.


Press "=" which on my keyboard means "SHIFT 0"

Top
 Profile  
 Post subject: Re: [Goldfarming] AFK 150k-200k Gold Per Hour [AutoIT Script
PostPosted: Tue Jun 19, 2012 12:24 pm 
 
User
User

Joined: Mon Jul 25, 2011 10:54 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

Top
 Profile  
 Post subject: Re: [Goldfarming] AFK 150k-200k Gold Per Hour [AutoIT Script
PostPosted: Tue Jun 19, 2012 12:39 pm 
 
User
User

Joined: Sat Jun 16, 2012 3:12 am
Need for speed version (25% move speed dont know if you need it or not but you might) Selling sleep timers have been removed, pathing has been changed to make it much faster and to deal with the pesky first set of zombies. Edit your Smoke Screen with rune to move faster, Caltrops to immobilze.

Global $Paused

HotKeySet("=","Leave")
HotKeySet("-", "Pause")
HotKeySet("x", "Stop")

$default_resolutionX = 1920
$default_resolutionY = 1080
$x_ratio = @Desktopwidth / $default_resolutionX
$y_ratio = @Desktopheight / $default_resolutionY

$go = True
$Leave = False

Dim $Color, $Left, $Top, $Right, $Bottom
Local $Count = 0
$Color = 0xFFFF00   ;rare color code
$Color2 = 0x6969FF  ;blue color code     I have the ; in the 6969ff so it doesent pickup remove if you want it too!
$Color3 = 0xBF642F  ;legendary color code
$Color4 = 0x00FF00 ;SET color
$Left = 0                          ;TOP LEFT CORNER OF SCREEN 0,0
$Top = 0                           ;THESE ARE WHERE IT LOOKS FOR COLORS             
$Right = 1920                      ;BOTTOM RIGHT CORNER OF SCREEN 1920,1080
$Bottom = 1080


While $go
if($Leave) Then
$Pixel1 = PixelSearch((1482 * $x_ratio),(20 * $y_ratio),(1535 * $x_ratio),(95 * $y_ratio),0xFFF000) ;searches top right screen for yellow of broken armor
If Not @error Then
   Send ("t")
   Sleep(8000)
  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(1500)
   MouseClick("left", Round(521 * $x_ratio),Round(506 * $y_ratio)) ;button to open up repair menu
   Sleep(1500)
   MouseClick("left", Round(260 * $x_ratio),Round(595 * $y_ratio)) ;button to pay for repairs
   Sleep(1500)
   MouseClick("left", Round(480 * $x_ratio),Round(180))
   Sleep(1500)
   MouseClick("left", Round(480 * $x_ratio),Round(180))
   MouseClick("right", Round(1450 * $x_ratio),Round(447))
   MouseClick("right", Round(1500 * $x_ratio),Round(447))
   MouseClick("right", Round(1550 * $x_ratio),Round(447))
   MouseClick("right", Round(1600 * $x_ratio),Round(447))
   MouseClick("right", Round(1645 * $x_ratio),Round(447))
   MouseClick("right", Round(1690 * $x_ratio),Round(447))
   MouseClick("right", Round(1730 * $x_ratio),Round(447))
   MouseClick("right", Round(1775 * $x_ratio),Round(447))
   MouseClick("right", Round(1840 * $x_ratio),Round(447))
   MouseClick("right", Round(1885 * $x_ratio),Round(447))
   MouseClick("right", Round(1450 * $x_ratio),Round(500))
   MouseClick("right", Round(1500 * $x_ratio),Round(500))
   MouseClick("right", Round(1550 * $x_ratio),Round(500))
   MouseClick("right", Round(1600 * $x_ratio),Round(500))
   MouseClick("right", Round(1645 * $x_ratio),Round(500))
   MouseClick("right", Round(1690 * $x_ratio),Round(500))
   MouseClick("right", Round(1730 * $x_ratio),Round(500))
   MouseClick("right", Round(1775 * $x_ratio),Round(500))
   MouseClick("right", Round(1840 * $x_ratio),Round(500))
   MouseClick("right", Round(1885 * $x_ratio),Round(500))
   MouseClick("right", Round(1450 * $x_ratio),Round(568))
   MouseClick("right", Round(1500 * $x_ratio),Round(568))
   MouseClick("right", Round(1550 * $x_ratio),Round(568))
   MouseClick("right", Round(1600 * $x_ratio),Round(568))
   MouseClick("right", Round(1645 * $x_ratio),Round(568))
   MouseClick("right", Round(1690 * $x_ratio),Round(568))
   MouseClick("right", Round(1730 * $x_ratio),Round(568))
   MouseClick("right", Round(1775 * $x_ratio),Round(568))
   MouseClick("right", Round(1840 * $x_ratio),Round(568))
   MouseClick("right", Round(1885 * $x_ratio),Round(568))
   Send("{ESCAPE}") ;exits store menu
   Sleep(250)
   Send("{ESCAPE}") ;opens menu
   Sleep(1000)
   MouseClick("left", Round(956 * $x_ratio),Round(579 * $y_ratio)) ;button to leave game
   Sleep(8000)
   MouseClick("left", Round(230 * $x_ratio),Round(416 * $y_ratio)) ;button to resume game from main menu
   Sleep(8000)
Else
ToolTip($count)
MouseClick("left", Round(587 * $x_ratio),Round(333 * $y_ratio)) ;starts the main run
Sleep(1000)
Send("2")
MouseClick("left", Round(96 * $x_ratio),Round(383 * $y_ratio))
Send("2")
Sleep(1500)
Send("3")
MouseClick("left", Round(417 * $x_ratio),Round(422 * $y_ratio)) ;middle of area outside of cellar
Send("1")
Sleep(1000)
MouseMove(Round(115 * $x_ratio),Round(210 * $y_ratio),1) ;moves cursor over to the cellar so the proper blue pixel becomes highlighted
Sleep(1000)
$Pixel2 = PixelSearch(0,0,(960 * $x_ratio),(540 * $y_ratio),0x3B62E3,3) ;searches for the specific blue pixel that only occurs when mouse hovers over open cellar
If Not @error Then
MouseClick("left",Round(115 *$x_ratio),Round(210 * $y_ratio)) ;Entrance to cellar
              Sleep(1900)
              Send(2)
              Sleep(1800)
              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(1000)
Send("{SHIFTDOWN}")
MouseDown("right") ;attack middle
Sleep(3800)
MouseMove(Round(467 * $x_ratio),Round(269 * $y_ratio),1) ;attack left, add more sleep time if you can't kill minion on left
Sleep(3000)
MouseMove(Round(682 * $x_ratio),Round(147 * $y_ratio),1) ;attack right
Sleep(800)
MouseMove(Round(579 * $x_ratio),Round(209 * $y_ratio),1) ;move back to middle
Sleep(1000)
MouseUP("right")
Sleep(300)
Send("{SHIFTUP}")
Sleep(500)
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(1500)
call ("Search")
Sleep(1500)
Send("t")
$Count = $Count + 1
If $Count > 10 Then
   Sleep(8000)
     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(1500)
   MouseClick("left", Round(521 * $x_ratio),Round(506 * $y_ratio)) ;button to open up repair menu
   Sleep(1500)
   MouseClick("left", Round(260 * $x_ratio),Round(595 * $y_ratio)) ;button to pay for repairs
   Sleep(1500)
   MouseClick("left", Round(480 * $x_ratio),Round(180))
   Sleep(800)
   MouseClick("left", Round(480 * $x_ratio),Round(180))
   MouseClick("right", Round(1450 * $x_ratio),Round(447))
   MouseClick("right", Round(1500 * $x_ratio),Round(447))
   MouseClick("right", Round(1550 * $x_ratio),Round(447))
   MouseClick("right", Round(1600 * $x_ratio),Round(447))
   MouseClick("right", Round(1645 * $x_ratio),Round(447))
   MouseClick("right", Round(1690 * $x_ratio),Round(447))
   MouseClick("right", Round(1730 * $x_ratio),Round(447))
   MouseClick("right", Round(1775 * $x_ratio),Round(447))
   MouseClick("right", Round(1840 * $x_ratio),Round(447))
   MouseClick("right", Round(1885 * $x_ratio),Round(447))
   MouseClick("right", Round(1450 * $x_ratio),Round(500))
   MouseClick("right", Round(1500 * $x_ratio),Round(500))
   MouseClick("right", Round(1550 * $x_ratio),Round(500))
   MouseClick("right", Round(1600 * $x_ratio),Round(500))
   MouseClick("right", Round(1645 * $x_ratio),Round(500))
   MouseClick("right", Round(1690 * $x_ratio),Round(500))
   MouseClick("right", Round(1730 * $x_ratio),Round(500))
   MouseClick("right", Round(1775 * $x_ratio),Round(500))
   MouseClick("right", Round(1840 * $x_ratio),Round(500))
   MouseClick("right", Round(1885 * $x_ratio),Round(500))
   MouseClick("right", Round(1450 * $x_ratio),Round(568))
   MouseClick("right", Round(1500 * $x_ratio),Round(568))
   MouseClick("right", Round(1550 * $x_ratio),Round(568))
   MouseClick("right", Round(1600 * $x_ratio),Round(568))
   MouseClick("right", Round(1645 * $x_ratio),Round(568))
   MouseClick("right", Round(1690 * $x_ratio),Round(568))
   MouseClick("right", Round(1730 * $x_ratio),Round(568))
   MouseClick("right", Round(1775 * $x_ratio),Round(568))
   MouseClick("right", Round(1840 * $x_ratio),Round(568))
   MouseClick("right", Round(1885 * $x_ratio),Round(568))
   $Count = $Count - 10
   Sleep(2500)
   Send("{ESCAPE}") ;exits store menu
   Sleep(250)
   Send("{ESCAPE}") ;opens menu
   Sleep(1000)
   MouseClick("left", Round(956 * $x_ratio),Round(579 * $y_ratio)) ;button to leave game
   Sleep(8000)
   MouseClick("left", Round(230 * $x_ratio),Round(416 * $y_ratio)) ;button to resume game from main menu
   Sleep(8000)
EndIf

Sleep(8200)
Send("{Escape}") ;menu
MouseClick("left",Round(956 *$x_ratio),Round(579 * $y_ratio)) ;button to leave game
Sleep(13000)
MouseClick("left",Round(230 *$x_ratio),Round(416 * $y_ratio)) ;button to resume game from main menu
Sleep(7000)
Else
Send("1")
Send("t")
Sleep(8300)
Send("{ESCAPE}") ;menu
MouseClick("left",Round(956 *$x_ratio),Round(579 * $y_ratio)) ;button to leave game
Sleep(13000)
MouseClick("left",Round(230 *$x_ratio),Round(416 * $y_ratio)) ;button to resume game from main menu
Sleep(8000)
EndIf
EndIf
EndIf
WEnd

Func Search()
    $SearchResult = PixelSearch($Left, $Top, $Right, $Bottom, $Color)  ;searches for rares
    If Not @error Then
      MouseClick("left", $SearchResult[0], $SearchResult[1], 1, 10)  ;IF ITS THERE IT CLICKS IT.
    EndIf
   $SearchResult = PixelSearch($Left, $Top, $Right, $Bottom, $Color2 )  ;searches for magics
   If Not @error Then
      MouseClick("left", $SearchResult[0], $SearchResult[1], 1, 10)    ;clicks magic
    EndIf
   
       $SearchResult = PixelSearch($Left, $Top, $Right, $Bottom, $Color3 ) ;searches for legendarys
   If Not @error Then
      MouseClick("left", $SearchResult[0], $SearchResult[1], 1, 10)         ;clicks legendary
    EndIf   
    $SearchResult = PixelSearch($Left, $Top, $Right, $Bottom, $Color4)  ;searches for SETS
    If Not @error Then
      MouseClick("left", $SearchResult[0], $SearchResult[1], 1, 10)  ;IF ITS THERE IT CLICKS IT.
     EndIf
EndFunc

Func Pause()
$Leave = False
EndFunc

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

Func Leave()
$Leave = True
EndFunc


After monitoring the runs, I Found there something different with this script.
When the ping comes to high ping (red) the delay will effect the whole script.
Am I right? Please correct me if I'm wrong.

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

Joined: Sat Jun 16, 2012 3:12 am
Here is the new patch update~
New patch update, can we still continue using AutoIt?
Will get caught after their update?

Top
 Profile  
 Post subject: Re: [Goldfarming] AFK 150k-200k Gold Per Hour [AutoIT Script
PostPosted: Tue Jun 19, 2012 6:28 pm 
 
User
User

Joined: Sat May 26, 2012 9:57 pm
Here is the new patch update~
New patch update, can we still continue using AutoIt?
Will get caught after their update?


It's Autoit. it's not memory reading.. you can still use it and there is always a chance of getting caught, just need to use the latest updated scripts.

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

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 2 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