Aller au contenu


Photo

{Tutoriel} [Autoit ]{Dh} Sarkoth Acte 1


  • Ce sujet est fermé Ce sujet est fermé
717 réponses à ce sujet

#321 Azerty75

Azerty75

    Newbie lvl 2

  • Membres
  • 7 messages

Posté 30 June 2012 - 09:41

C'est encore moi :D

Tout est nickel de mon coté mais un souci sur un petit détail... Ca ne vend pas ce que je veux et ça bug au moment ou mon inventaire s'ouvre :/ Que faire?

Ty d'avance!


Help lol

#322 blurp

blurp

    Newbie lvl 3

  • Membres
  • 21 messages

Posté 30 June 2012 - 12:10


à mon humble avis tu vas devoir refaire toutes les images via paint et remplacer les existantes par les tiennes nouvellement créer.


j'ai un beau "Can't find Resume button" (que ce soit avec mes screen, ou ceux de base)



Oui j'avais bien visualisé le fait qu'il les avait déjà refaites.
J'ai du en refaire une car cela ne fonctionnai pas.

Sinon par tout hasard, tu as essayer de mettre tous les dossiers directement dans C:

essaye aussi de faire en sorte que t'es noms de dossiers ne comporte pas d'espace.

as tu mien mis les contreslach à la fin du chemin du dossier des pnj et dans la ligne 52 du Bot.au3?

voilà c'est tout ce qui me viens à l'idée pour le moment.

#323 malébolgia

malébolgia

    Newbie lvl 4

  • Membres
  • 31 messages

Posté 30 June 2012 - 12:12

Salut à tous,

Merci pour le boulot effectué! Vraiment sympa! Tu as bien mérité tes vacances :P

Plus sérieusement,j'ai reglé au départ le bot de façon à ce qu'il vende les bleus,jusque la rien de dérangeant.Sauf qu a un moment donné j'étais entrain de l'observer et il m'a vendu un arc à 1150 de dps avec chasse,n'ayant pas ses reflexes,je n'ai pu interrompre le bot avant sa déco.

Ma question est,Y a t il une possibilité afin qu'il ne vende que le stuff en dessous de 62?

Merci

#324 Speedy02

Speedy02

    Débutant lvl 2

  • Membres
  • 46 messages

Posté 30 June 2012 - 12:59

as tu mien mis les contreslach à la fin du chemin du dossier des pnj et dans la ligne 52 du Bot.au3?


Je ne vois pas où tu veux le mettre... Peux tu faire une copie de ta ligne 52 ?

Voici l'erreur :

FATAL ERROR: Cannot find: C:\gudei\ ;Répertoire de vos PNGMainMenu.png
Make sure your directory is set properly in the script

#325 Speedy02

Speedy02

    Débutant lvl 2

  • Membres
  • 46 messages

Posté 30 June 2012 - 13:15

as tu mien mis les contreslach à la fin du chemin du dossier des pnj et dans la ligne 52 du Bot.au3?


Je ne vois pas où tu veux le mettre... Peux tu faire une copie de ta ligne 52 ?

Voici l'erreur :

FATAL ERROR: Cannot find: C:\gudei\ ;Répertoire de vos PNGMainMenu.png
Make sure your directory is set properly in the script


Résolu !

Allez dans DH.ini puis supprimez le commentaire en francais "Répertoire de vos PNG"

Cela donne (ligne 2)

PNG Location=C:\DOSSIER\



#326 cpz38

cpz38

    Fragger débutant

  • Membres
  • 522 messages

Posté 30 June 2012 - 13:40

nn rien

Modifié par cpz38, 30 June 2012 - 16:41.

5fn9dt.jpg☺☺☺☺☻☻♥☻☻☺☺☺☺ 2irasmd.jpgExpendables 2 de retour le 22 Août 2012 !! avec Chuck Norris :D


#327 pi_ce

pi_ce

    Hard Gamer

  • Membres
  • 426 messages
  • Hobbies :Aider Reggio a se debarasser de ses items invendables
    Le pvp sous didi 2, ex-hobby (soupir...)

Posté 30 June 2012 - 14:20

Avé populace automatisée,
J'espere en faire partie un jour et je m'y emploie mais sans succes.
J'utilise la version que gudei a adapté, je l'ai recupérée sur le site ownedcore. Je la fais fonctionner en 1600x900 en mode fenetré. Le bot trouve le bouton resume, le dh fait sa course tant bien que mal et s'arrete trop tot, le cellar apparait juste dans l'angle superieur gauche mais il n est pas vu par le bot, du coup, tele en ville et balles neuves. Ou se trouve mon probleme, a part entre le clavier et le dossier du siege ?

Merci par avance de vos reponses.
voila le script que j'utilise

;notAres' DH Gold Script 1.9.3 - 6/18/2012 - New INI option: Identify. Added VendItems() and StashItems() to simplify code and added 2 colors of legendaries to stash (highlighted/not highlighted). Trimmed down all "Area" CheckFor() calls. Fixed CheckFor("ExitGame"). Moves mouse out of the way while looting. Added deaths/cellars to PAUSED tooltip.
;YOU MUST START THE BOT AT THE RESUME GAME SCREEN!
;Thread: http://ownedcore.com/forums/diablo-3/diablo-3-bots-programs/354464-goldfarming-notares-sarkoth-dh-gold-script-autoit-script-1920x1080.html
;;;;;
;WONT WORK UNLESS MOVE IS BOUND TO MIDDLE MOUSE (Mouse 3) -- NOT MOVE/INTERACT
;Suggested build: http://us.battle.net/d3/en/calculator/demon-hunter#aRYXVT!aYW!YaaabY
;Required display mode for cellar detection: "FULLSCREEN WINDOWED"
;Official supported resolution: 1920x1080
;;;;;
;Original by mackus101 @ ownedcore
;ImageSearch contributions by rvbfreak, goofinator, and asuRob
;Refactoring and additional functions by Shimizoki

;=========== DO NOT TOUCH ===========;
#RequireAdmin
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
Opt('MouseCoordMode', 2)
Opt('PixelCoordMode', 2)
Global $size = WinGetClientSize("[CLASS:D3 Main Window Class]"), $ver = "1.9.3", $ini = "DH.ini", $hFont = 0, $title, $Paused, $Go = False, $i = 0, $gX = 0, $gY = 0, $LegendaryCount = 0, $SetCount = 0, $RareCount = 0, $MagicCount = 0, $GemCount = 0, $TomeCount = 0, $deathCount = 0, $cellarCount = 0, $t = TimerInit(), $rt = 0, $run = 0, $yellow = 0xFFF000, $red = 0xD90000, $lblRun, $lblLocation, $lblStatus, $lblLast, $lblRuntime, $lblGear, $lblItems
For $i = 0 To Random(0, 7, 1)
	$title &= Chr(Random(97, 122, 1))
Next
For $i = 0 To Random(5, 10, 1)
	$title &= Chr(Random(65, 90, 1))
Next
$title &= " "
Global $gems[8] = ["Ru1.png", "Ru2.png", "Em1.png", "Em2.png", "To1.png", "To2.png", "Am1.png", "Am2.png"]
If @OSArch = "X64" Then DllCall("kernel32.dll", "int", "Wow64DisableWow64FsRedirection", "int", 1)
If @OSArch = "X64" And Not @AutoItX64 Then MsgBox(16, "ERROR", "Why aren't you running the 64-bit AutoIt??? Expect bugs!")
If $size = 0 Then
	MsgBox(16, "Error", "Diablo III is not running, cannot grab resolution!" & @CRLF & "Exiting...")
	Exit
EndIf
;====================================;

;============= SETTINGS: DONT CHANGE HERE, CHANGE DH.INI =============;
HotKeySet("=", "Begin") ;script toggled on/off by pressing =
HotKeySet("{PAUSE}", "TogglePause") ;script toggle pause by pressing Pause/Break key
HotKeySet("x", "Stop") ;script stopped by pressing x

;Change to match your abilities (1-4 by default)z
$skillCaltrops = "1"
$skillSmokeScreen = "2"
$skillPreparation = "3"
$skillCompanion = "4"

$movementSpeed = 25 ;This is the % increase movement speed you have. 25 = 25%, 0 = 0% (25% is the movement cap but SS + Displacement avg = 32%)

;Custom Loot
$pngLoc = "@C:\Users\jp\Downloads\d3\BotFiles\BotFiles\pics\1600x900\" ;Location of the .PNGs (NO SUBFOLDERS - ALL PNGS GO HERE)
$totalItems = 1 ;Number of items in the pick array
Global $pick[$totalItems] ;DONT CHANGE THIS

;Array of items to loot (GEMS AND TOMES ALREADY INCLUDED)
$pick[0] = "mythic.png|40" ;png|Tolerance
;$pick[1] = "item2.png|0"
;$pick[2] = "item3.png|0"

;Looting
$LootSets = "True" ;True if you want to pick up Sets
$LootLegendaries = "True";True if you want to pick up Legendaries
$LootRares = "True" ;True if you want to pick up Rares
$LootMagic = "True" ;True if you want to pick up Magic
$LootGems = "True" ;True if you want to pick up Gems
$LootTomes = "True" ;True if you want to pick up Tome of Secrets
$LootCustom = "False" ;True if you want to pick up Custom Items (The items in the $pick array above)

;Manage Loot
$Identify = "True" ;True to enable identifying items before stashing/vendoring
$mLoot = 5 ;Nuber of successful runs until Stash and Vendor
$mLootOff = 2 ;Stash and Vendor after mLoot +- X number of runs (Variability)

;Stashing
$StashLoot = "True" ;True if you want to store Items in the stash
;---
$StashLegendary = "True";True if you want to store Legendary items in the stash
$StashRare = "True" ;True if you want to store Rare items in the stash
$StashMagic = "False" ;True if you want to store Magic items in the stash
$StashTomes = "True" ;True if you want to store Tomes items in the stash
$StashGems = "True" ;True if you want to store Gems items in the stash

;Vendoring ==NEW SETTINGS==
$VendorLoot = "True" ;True if you want to vendor anything
;---
$VendorRare = "True" ;True if you want to vendor Rares
$VendorMagic = "True" ;True if you want to vendor Magic
$vendorAll = "False" ;True if you want to right click all items when talking to vendor
$vendorRows = 5 ;# of rows to vendor, starting from the top (default = 5: bottom row is safe)
$vendorCols = 10 ;# of columns to vendor, starting from left

;Variability ==NEW SETTINGS==
$Timer = "True" ;True and the bot will add random sleep intervals
;---
$attackTime = 3900 ;Time (in ms) the script will shoot sarkoth with the right button
$attackMulti = "True" ;True if you want to shoot both left and right in addition to the middle (False for Lightning Ball)
$walktime = 2800 ;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 = 3400 ;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
;====================================;

$x_ratio = $size[0] / 1920
$y_ratio = $size[1] / 1080
If FileExists($ini) Then
	Call("ReadINI")
	Call("CreateINI")
Else
	Call("CreateINI")
EndIf

If $pngLoc == "@ScriptDir" Then $pngLoc = @ScriptDir & "\pics\"
If $totalItems < 1 Then $LootCustom = "False"
$mLootIn = $mLoot
$movementSpeed = 1 + ($movementSpeed / 100)
$VersionsInfo = "http://dl.dropbox.com/u/9955791/version.ini"
$oldVersion = IniRead("updater.ini", "Version", "Version", $ver)
$newVersion = "0.0"

If Not FileExists($pngLoc & "MainMenu.png") Then
	MsgBox(16, "Fatal Error", "FATAL ERROR: Cannot find: " & $pngLoc & "MainMenu.png" & @CRLF & "Make sure your directory is set properly in the script")
	Exit
EndIf

Call("SetupGUI")
Call("DoUpdate")

While 1
	Call("RestartRun")
WEnd

Func RestartRun()
	If ($Go) Then
		$i = 0
		WinSetTitle($title, "", $title & $ver & " - Running")
		MouseMove(Round(Random(0, 400) * $x_ratio), Round(Random(700, 1080) * $y_ratio), 3) ;Moves mouse out of the way
		;Checks if the player is Dead/Logout/Window, then if in Main Menu, etc.
		If CheckDead() Then
			Return
		ElseIf CheckFor("ExitGame", "", Round(860 * $x_ratio), Round(400 * $y_ratio), Round(1040 * $x_ratio), Round(450 * $y_ratio), 0.5, 140) Then
			GUICtrlSetData($lblStatus, "Status: Exit window up")
			MouseClick("left", Round(1064 * $x_ratio), Round(632 * $y_ratio))
			Sleep(100)
			Send("{SPACE}")
			Return
		ElseIf CheckFor("MainMenu", "", Round(40 * $x_ratio), Round(300 * $y_ratio), Round(440 * $x_ratio), Round(550 * $y_ratio)) Then
			GUICtrlSetData($lblRun, "Run Number: " & $run & " - Runs till vendor: " & $mLootIn)
			GUICtrlSetData($lblLocation, "Location: Main Menu")
			GUICtrlSetData($lblStatus, "Status: Starting Game")
			RandClick("left", Round(230 * $x_ratio), Round(416 * $y_ratio), 120, 20, 1, 6) ;Random Click on the resume button
			Sleep($loadtime)
			$rt = TimerInit()
			$run += 1
		ElseIf CheckFor("OldRuins", "Area") Or CheckFor("NewTristram", "Area") Or CheckFor("DankCellar", "Area") Then
			Call("TownPortal")
			Call("LeaveGame")
			Return
		ElseIf CheckFor("LimitError", "", Round(700 * $x_ratio), Round(340 * $y_ratio), Round(1200 * $x_ratio), Round(600 * $y_ratio), 1, 140) Then
			MouseClick("left", Round(960 * $y_ratio), Round(635 * $x_ratio))
			$rand = Random(40000, 80000)
			GUICtrlSetData($lblStatus, "Status: Input Limit - Waiting " & Round($rand / 1000) & " seconds.")
			Sleep($rand)
			Send("{SPACE}")
			Return
		ElseIf CheckFor("Disconnect", "", Round(700 * $x_ratio), Round(340 * $y_ratio), Round(1200 * $x_ratio), Round(600 * $y_ratio), 1, 140) Then
			GUICtrlSetData($lblStatus, "Status: Network Disconnect window up")
			MouseClick("left", Round(960 * $x_ratio), Round(632 * $y_ratio))
			Sleep(100)
			Send("{SPACE}")
			Return
		Else
			GUICtrlSetData($lblStatus, "ERROR: Cannot find Resume button")
			Return
		EndIf
		;Make sure we are in the right area before beginning run
		If CheckFor("OldRuins", "Area") Then
			Sleep(200)
			GUICtrlSetData($lblLocation, "Location: Old Ruins")
			Call("CheckRepair")
			;Start Run
			RandClick("middle", Round(500 * $x_ratio), Round(250 * $y_ratio), 2, 2) ;starts the run [waypoint 1]
			Moving(900)
			Send($skillSmokeScreen)
			Moving(600)
			RandClick("middle", Round(3 * $y_ratio), Round(370 * $y_ratio), 2, 2) ;waits ~1 second then [waypoint 2]
			Moving(1850)
			RandClick("middle", Round(400 * $x_ratio), Round(600 * $y_ratio), 2, 2) ;middle of courtyard [waypoint 3]
			Moving(100)
			RandClick("middle", Round(650 * $x_ratio), Round(850 * $y_ratio), 2, 2)
			Moving(100)
			Send($skillSmokeScreen)
			Moving(100)
			Send($skillPreparation)
			Moving(750)
			Send($skillCaltrops)
			Moving(100)
			RandMove(Round(300 * $x_ratio), Round(70 * $y_ratio), 1, 1) ;moves cursor over to the cellar so the proper blue pixel becomes highlighted
			Sleep(350)
			If CheckDead() Then
				Return
			EndIf

			;Checks if Dank Cellar is Open
			$Pixel2 = PixelSearch(0, 0, Round(600 * $x_ratio), Round(600 * $y_ratio), 0x334FB7, 3)
			If Not @error Then
				GUICtrlSetData($lblStatus, "Status: Cellar - Found")
				$cellarCount += 1
				MouseClick("left", Round(300 * $x_ratio), Round(70 * $y_ratio), 1) ;Entrance to cellar
				Sleep(800 * $movementSpeed)
				Send($skillSmokeScreen)
				Moving($walktime)
			Else ;ABORT RUN
				GUICtrlSetData($lblStatus, "Status: Cellar - Not Found" & @CRLF)
				Sleep(10)
				RandClick("middle", Round(1100 * $x_ratio), Round(600 * $y_ratio)) ;moves between caltrops for safety before teleporting back to town
				Moving(250)
				Send($skillCaltrops)
				Sleep(620)
				Send($skillSmokeScreen)
				Sleep(40)
				Call("TownPortal")
				If Not CheckDead() Then
					Call("LeaveGame")
				EndIf
				Return
			EndIf
		Else
			Call("TownPortal")
			If Not CheckDead() Then
				Call("LeaveGame")
			EndIf
			Return
		EndIf

		;Checks that the player is in the Dank Cellar
		If CheckFor("DankCellar", "Area") Then
			GUICtrlSetData($lblLocation, "Location: Dank Cellar")
			RandClick("middle", Round(110 * $x_ratio), Round(1000 * $y_ratio), 1, 1) ;moves to doorway leading to rare inside cellar
			Sleep(Random(2200, 2800))
			RandMove(Round(460 * $x_ratio), Round(80 * $y_ratio), 1, 1) ;hovers over the rare Sarkoth
			Sleep(10)
			Send("{SHIFTDOWN}")
			GUICtrlSetData($lblStatus, "Status: Attacking Sarkoth")
			MouseDown("right") ;ATTACK
			Sleep(1100)
			Send($skillCompanion)
			Sleep($attackTime)
			MouseUp("right")
			RandClick("left", Round(460 * $x_ratio), Round(80 * $y_ratio), 1, 1)
			RandMove(Round(240 * $x_ratio), Round(75 * $y_ratio), 1, 1) ;attack left
			Sleep(40)
			MouseDown("right")
			If $attackMulti == True Then Sleep($attackTime / 2)
			MouseUp("right")
			MouseMove(Round(590 * $x_ratio), Round(50 * $y_ratio), 1) ;attack right
			MouseDown("right")
			If $attackMulti == True Then Sleep($attackTime / 2)
			MouseUp("right")
			MouseDown("left")
			MouseMove(Round(Random(240, 260) * $x_ratio), Round(75 * $y_ratio), 1) ;attack left
			If $attackMulti == True Then Sleep($attackTime / 2.5)
			MouseMove(Round(Random(560, 600) * $x_ratio), Round(50 * $y_ratio), 1) ;attack right
			If $attackMulti == True Then Sleep($attackTime / 2.5)
			MouseUp("left")
			Sleep(400)
			MouseClick("right", Round(630 * $x_ratio), Round(18 * $y_ratio), 1, 8) ;break the table & chair
			Sleep(200)
			Send("{SHIFTUP}")
			Moving(200)
			RandClick("middle", Round(530 * $x_ratio), Round(190 * $y_ratio)) ;location of sarkoth after death
			Moving(2700)
			GUICtrlSetData($lblStatus, "Status: Looting")
			Send($skillCompanion)
			Call("Loot")
			RandSleep(0, 6, 30)
			Send($skillCompanion)
			Call("TownPortal")
		Else
			Send($skillCaltrops)
			Sleep(400)
			Send($skillSmokeScreen)
			Sleep(40)
			Call("TownPortal")
			If Not CheckDead() Then
				Call("LeaveGame")
			EndIf
			Return
		EndIf
		;After successful run
		If Not CheckDead() Then
			Sleep(600)
			If $mLootIn = 1 And CheckFor("NewTristram", "Area") Then ;If its time to manage loot and we are in town
				If $Identify == True Then Call("Identify")
				If $StashLoot == True Then
					Call("StashLoot")
				EndIf
				If $VendorLoot == True Then
					Call("VendorLoot")
				EndIf
				$mLootIn = Round(Random($mLoot - $mLootOff, $mLoot + $mLootOff)) ;Reset Counter
			ElseIf Not CheckFor("NewTristram", "Area") Then
				GUICtrlSetData($lblStatus, "Status: Skipping vendor, not in New Tristram")
				Sleep(3000)
			ElseIf $mLootIn <= 0 Then
				$mLootIn = 1
			Else
				$mLootIn -= 1
			EndIf
			If Not CheckDead() Then
				Call("LeaveGame")
			EndIf
			Return
		Else
			Return
		EndIf
	EndIf
EndFunc   ;==>RestartRun

;Helper Functions

Func SetupGUI()
	$frmBot = GUICreate($title & $ver & " - Updating", 280, 121, Round(1540 * $x_ratio), Round(920 * $y_ratio), -1, BitOR($WS_EX_TOPMOST, $WS_EX_TOOLWINDOW), 0)
	GUISetBkColor(0xC0C0C0)
	$lblRun = GUICtrlCreateLabel("Run Number: 0 - Runs till vendor: 0", 4, 0, 280, 24)
	GUICtrlSetFont(-1, 10, 600, 0, "Segoe UI")
	GUICtrlSetColor(-1, 0xFF0000)
	$lblLocation = GUICtrlCreateLabel("Location: Main Menu", 12, 20, 240, 17)
	$lblStatus = GUICtrlCreateLabel("Status: ", 12, 35, 240, 17)
	$lblLast = GUICtrlCreateLabel("Last Runtime: 0 seconds", 12, 50, 240, 17)
	$lblRuntime = GUICtrlCreateLabel("Total Runtime: 0 hours, 0 minutes", 12, 65, 240, 17)
	$lblGear = GUICtrlCreateLabel("Legendary: 0 - Set: 0 - Rare: 0", 12, 80, 240, 17)
	$lblItems = GUICtrlCreateLabel("Magic: 0 - Gems: 0 - Tomes: 0", 12, 95, 240, 17)
	GUISetState(@SW_SHOW)
EndFunc   ;==>SetupGUI

Func CheckDead()
	$LogoutTimerCancel = PixelSearch(Round(900 * $x_ratio), Round(240 * $y_ratio), Round(1010 * $x_ratio), Round(290 * $y_ratio), 0x993827) ; checks for cancel button on logout timer
	If Not @error Then
		GUICtrlSetData($lblStatus, "Status: Logging out")
		Sleep(11000)
		Sleep($loadtime)
		Return 1
	EndIf

	$CloseButton = PixelSearch(Round(1570 * $x_ratio), Round(110 * $y_ratio), Round(1590 * $x_ratio), Round(120 * $y_ratio), 0x8C2300) ; checks for the red color of the "X" on an open window
	If Not @error Then
		GUICtrlSetData($lblStatus, "Status: Open Window")
		Sleep(200)
		Send("{SPACE}") ;close any open windows
		Return 1
	EndIf

	$YouHaveDied = PixelSearch(Round(620 * $x_ratio), Round(325 * $y_ratio), Round(625 * $x_ratio), Round(330 * $y_ratio), 0xFFFFFF) ; checks for white text "YOU HAVE DIED"
	If Not @error Then
		GUICtrlSetData($lblStatus, "Status: Dead")
		$deathCount += 1
		Call("LeaveGame")
		Sleep(11000)
		Sleep($loadtime)
		Return 1
	Else
		Return 0
	EndIf
EndFunc   ;==>CheckDead

Func CheckRepair()
	$RepairArea = PixelSearch(Round(1480 * $x_ratio), 0, Round(1570 * $x_ratio), Round(100 * $y_ratio), $yellow)
	If Not @error Then
		Call("DoRepair")
	EndIf
	$RepairAreaRed = PixelSearch(Round(1480 * $x_ratio), 0, Round(1570 * $x_ratio), Round(100 * $y_ratio), $red)
	If Not @error Then
		Call("DoRepair")
	EndIf
EndFunc   ;==>CheckRepair

Func DoRepair()
	Sleep(Random(75, 150))
	Call("TownPortal")
	If CheckDead() Then
		Return
	EndIf
	If CheckFor("NewTristram", "Area") Then
		RandClick("left", Round(1480 * $x_ratio), Round(281 * $y_ratio), 1, 1) ;begin movement towards merchant
		Moving(1875)
		RandClick("left", Round(1316 * $x_ratio), Round(206 * $y_ratio), 1, 1) ;moves to get merchant in screen
		Moving(1875)
		RandClick("left", Round(845 * $x_ratio), Round(225 * $y_ratio), 1, 1) ;NPC Merchant to the right of cain's home
		Sleep(1200)
		RandClick("left", Round(521 * $x_ratio), Round(506 * $y_ratio), 1, 1) ;button to open up repair menu
		Sleep(400)
		RandClick("left", Round(260 * $x_ratio), Round(595 * $y_ratio), 1, 1) ;button to pay for repairs
		Sleep(200)
		Send("{Escape}")
		If Not CheckDead() Then
			Call("LeaveGame")
		EndIf
	EndIf
EndFunc   ;==>DoRepair

Func CalcTime()
	$srt = TimerDiff($rt)
	GUICtrlSetData($lblLast, "Last Runtime: " & Round($srt / 1000, 2) & " seconds.")
	$trt = TimerDiff($t)
	$total = Round((($trt / 1000) / 60) / 60, 4)

	;Total runtime calculation.
	$hours = Floor((($trt / 1000) / 60) / 60)
	$minutes = (($trt / 1000) / 60)
	;trim minutes if runtime is more then 1 hour.
	If $minutes > 60 Then
		While $minutes > 60
			$minutes -= 60
		WEnd
	EndIf
	GUICtrlSetData($lblRuntime, "Total Runtime: " & $hours & " hours, " & Ceiling($minutes) & " minutes")
EndFunc   ;==>CalcTime

Func CheckFor($img, $type = "", $startX = 0, $startY = 0, $endX = @DesktopWidth, $endY = @DesktopHeight, $seconds = 6, $tolerance = 140)
	If $type = "Area" Then
		$startX = 1500 * $x_ratio
		$startY = 0 * $y_ratio
		$endX = 1920 * $x_ratio
		$endY = 90 * $y_ratio
		$seconds = 2.5
	EndIf
	$c = 0
	$string = $pngLoc & $img & ".png"
	Do
		$c += 1
		Sleep(100)
		If $c > ($seconds * 10) Then ;Make sure we never get stuck here for infinity.
			If $type = "Area" Then
				GUICtrlSetData($lblStatus, "Status: Area not found - " & $img)
			EndIf
			Return False
		EndIf
	Until _ImageSearchArea($string, 1, $startX, $startY, $endX, $endY, $gX, $gY, $tolerance)
	Return True
EndFunc   ;==>CheckFor

Image IPBImage IPB

#328 Speedy02

Speedy02

    Débutant lvl 2

  • Membres
  • 46 messages

Posté 30 June 2012 - 14:28

Merci de répondre :)
J'ai bien 25% de vitesse de déplacement et j'ai pris exactement le même build.

Le bot :
avance
lance "Ecran de fumée"
puis lance la page de skill
cours jusqu'à cette zone
et ça écrit dans la zone de conversion ce qu'il devrait faire...

J'ai aussi refait les images ;)

Je vais essayer de supprimer complétement le bot et AUTOIT et de réinstaller :)

EDIT : J'ai regardé il clique a côté de la "porte" de cave.

EDIT2 : En fait quelqu'un a mon problème aussi :


Hello,

Tout s'installe correctement mais dès le lancement du 1er sort il ouvre la page de sort et écrit: "smoke screen" en party.. et continue sa routine (donc fait n'importe quoi)

;Start Run
RandClick("middle", Round(500 * $x_ratio), Round(250 * $y_ratio), 2, 2) ;starts the run [waypoint 1]
Moving(900)
Send($skillSmokeScreen)
Moving(600)

Le run commence comme ça, je n'y ai pas touché pourtant.. on dirait que le "send" lui fait ouvrir une discussion et c/c le nom des sorts :(

Qlqun a une idée ?

Merci


J'ai le même problème, personne n'a une idée ?
Le nom des skills se mettent dans la chat

#329 malébolgia

malébolgia

    Newbie lvl 4

  • Membres
  • 31 messages

Posté 30 June 2012 - 15:46

Re all,

Petite question. Est ce normal que les gemmes/objet ne prenant qu'une case (anneau,amulette...) se trouvant dans le bas de mon inventaire,ne sont jamais vendu?

Merci.

#330 dzhan

dzhan

    Gamer lvl 1

  • Membres
  • 139 messages

Posté 30 June 2012 - 16:30

salut, perso je viens de tenter de faire marcher le bot mais, une fois que je lance le bot sur le menu, le bot appuis sur echap et tente de bouger la sourie dans le coin en haut a gauche...

j'ai mal fait quelque chose ?

#331 cpz38

cpz38

    Fragger débutant

  • Membres
  • 522 messages

Posté 30 June 2012 - 16:43

apres avoir tué sarkoth il tire a droite et a gauche alors que j'ai bien mis false. Sa lui fait perdre tu temps et le temps c'est du gold (>.<)

Attack Multiple=false ;Mettre True/False si vous voulez attaquer à gauche et droite en plus du milieu

5fn9dt.jpg☺☺☺☺☻☻♥☻☻☺☺☺☺ 2irasmd.jpgExpendables 2 de retour le 22 Août 2012 !! avec Chuck Norris :D


#332 docteur snake

docteur snake

    Newbie lvl 3

  • Membres
  • 16 messages

Posté 30 June 2012 - 18:05

À "cpz38" il faut mettre False avec le F en majuscule voilà tout ! =)
  • cpz38 aime ceci

#333 cpz38

cpz38

    Fragger débutant

  • Membres
  • 522 messages

Posté 30 June 2012 - 18:19

À "cpz38" il faut mettre False avec le F en majuscule voilà tout ! =)

a ok mdr
merci beaucoup man :D

5fn9dt.jpg☺☺☺☺☻☻♥☻☻☺☺☺☺ 2irasmd.jpgExpendables 2 de retour le 22 Août 2012 !! avec Chuck Norris :D


#334 ryancrunchi

ryancrunchi

    Débutant lvl 2

  • Membres
  • 62 messages

Posté 30 June 2012 - 18:37

Oui j'avais bien visualisé le fait qu'il les avait déjà refaites.
J'ai du en refaire une car cela ne fonctionnai pas.

Sinon par tout hasard, tu as essayer de mettre tous les dossiers directement dans C:

essaye aussi de faire en sorte que t'es noms de dossiers ne comporte pas d'espace.

as tu mien mis les contreslach à la fin du chemin du dossier des pnj et dans la ligne 52 du Bot.au3?

voilà c'est tout ce qui me viens à l'idée pour le moment.


Oui, c'est tout fait comme il faut. Pendant que certains s'en mettent plein les poches, moi je ne joue même plus à D3 parce que c'est trop galère sans gold et tout est trop cher.
Je ne peut même pas utiliser un bot... C'est peut être un signe pour me dire que je vais me faire ban et qu'il faudrait pas que je bot :P

#335 Speedy02

Speedy02

    Débutant lvl 2

  • Membres
  • 46 messages

Posté 30 June 2012 - 18:47

Voilà, après quelques recherches, j'ai un peu chipoté au code...

Comme il écrivait le nom des skills et ne les lancait pas... J'ai modifié le code de lancement des skills...

Sachant par exemple que la touche "1" ou "&" = au piège, j'ai remplacé la commande :

send ($skillCaltrops)


par

send ("{1}")


Je l'ai ensuite fait pour les autres skills...

Je ne m'y connais pas trop en programmation, mais j'ai utilisé notepad pour remplacer facilement.

Maintenant, il n'ouvre plus la fenêtre des skills, n'écrit plus dans le chat, et va correctement dans la cave.

Je suis en 1920*1080, pour ceux qui veulent le code remplacé, faites une petite demande, je le posterai volontiers ;)

#336 baka80

baka80

    Newbie lvl 3

  • Membres
  • 24 messages

Posté 30 June 2012 - 21:20

@Speedy02 : MERCIIIII !!!!

Ca fonctionne, il rentre dans la grotte maintenant, par contre il ne ramasse rien..
Je vais de ce pas relire les pages du tutos ;)

#337 qcrozo

qcrozo

    Newbie lvl 2

  • Membres
  • 5 messages

Posté 30 June 2012 - 21:49

bonjours si quelqun pourrai m'aider a configurer se bot par skype sa serai gentil mon skype est bouchee007

#338 baka80

baka80

    Newbie lvl 3

  • Membres
  • 24 messages

Posté 30 June 2012 - 22:50

J'ai réussi à trouver pourquoi il ne looter pas, j'avais laissé les commentaires dans le fichier DH.ini ;)

#339 clemoo

clemoo

    Newbie lvl 2

  • Membres
  • 5 messages

Posté 30 June 2012 - 23:45

Bonsoir,

Est ce que quelqu'un pourrait me traduire les chiffres de cette ligne de mon sricpt ?

$PIXEL_MAGICITEM = PixelSearch(0, 0, 800, 600, 6908415, 3, 0, 0)

Merci :)

#340 Speedy02

Speedy02

    Débutant lvl 2

  • Membres
  • 46 messages

Posté 30 June 2012 - 23:54

@ Baka : Derien et merci à toi !

Il ne collectait pas les objets, j'ai supprimé les commentaires et les ";" qui faussaient le .ini

Je ne sais pas si cela fonctionne ;)

Ravi d'avoir pu aider certains, je ne regrette pas de m'être inscrit sur ce fofo ^^