/ / WoW Pesca Bot v1.1 / / Made by QuietKnight / / Cambiamenti / / V1.1 / / + Aggiunta l'opzione per disattivare AFK Killer / / + Aggiunto nei cambiamenti di registro / / / / V1.0 / / + Versione iniziale / / Istruzioni speciali: / / - Metti la tua abilità di pesca nello slot '0 ' / / - Zoom in prima persona modalità / / - In Opzioni Video, deselezionare 'hardware cursor' World SetActiveWindow di Warcraft Costanti ///////////////////////// / / COSTANTI VARIABILE / / ///////////////////////// / / Esegue conteggio / / Quante volte lo script dovrebbe cercare di pesce RunCount = 10 / / Velocità / / Questa è l'iniziale velocità di scansione. Più basso è il numero, più veloce la scansione va, / / E più alto è il numero, più lenta è la scansione va. Se hai problemi / / Dove il isnt scansione iniziale trovare il bobber e proprio diritto di scansione è finita, / / Provare ad aumentare questo numero lentamente. velocità di scansione = 60 / / Casella Scansione delle distanze / / Queste sono le distanze dai lati dello schermo per la ricerca di un richiamo / / Questi sono misurati come percentuale della schermata nella direzione appropriata scanLeftDist = 0,3 scanRightDist = 0,3 scanTopDist = 0,4 scanBottomDist = 0,25 / / Campo di luminosità / / Questo è il numero dei valori RGB sopra e sotto la 'macchia' che è la / / Richiamo a cercare. In sostanza, se stai ricevendo il messaggio 'No a pesce gancio', / / Provare ad aumentare un po 'entrambi i numeri, e se il bob galleggiante, ma tu non ti cattura / / Qualcosa, provare a diminuire entrambi i numeri un po '. Questo può cambiare da ambiente / / Per l'ambiente. Inoltre, in linea generale shouldnt brightRangeUp essere molto elevato. brightRangeDown = 50 brightRangeUp = 10 / / Luminosità distanza / / Non importa quello che fa, ma in fondo, lascia stare se non hai / / Problemi in realtà la cattura del pesce. Se hai problemi e vuoi / / Per modificarlo, la regola generale è, maggiore è la risoluzione, maggiore è il numero, / / Il numero di serie, ma dovrebbe essere ovunque da 2 a 6 MIN MAX. Se si avvia / / Diventando troppo fuori wack con questo, non sarai mai prendere un pesce brightDist = 3 / / AFK Away / / Imposta a 1 per usare AFK Away (che preme Invio due volte prima di ogni getto) o / / A 0 per disabilitare AFK Away completamente. Questo viene in aiuto se ti piace / / Chat su WoW durante la pesca. afkAway = 0 ///////////////////////////// / / Costanti non CHANGABLE / / ///////////////////////////// / / Scansione ottimale rapporti di step widthToWindowRatio = 0,056 heightToWindowRatio = 0,075 / / Scanbox scanTop = 0 scanBottom = 0 scanLeft = 0 scanRight = 0 scanStepX = 0 scanStepY = 0 scanSuccess = 0 / / The Box boxMinX = 0 boxMaxX = 0 boxMinY = 0 boxMaxY = 0 boxCenterY = 0 boxCenterX = 0 boxScanStep = 4 boxAvgWidth = 0 boxAvgHeight = 0 / / Misc Vars x = 0 y = 0 i = 0 j = 0 / / Mouse Vars isMouseOrange = 0 mouseX = 0 mouseY = 0 / / Lure posizione lureInitLocX = 0 lureInitLocY = 0 / / RGB Info brightX = 0 Brighty = 0 brightTotal = 0 brightR = 0 brightG = 0 brightB = 0 brightRMin = 0 brightRMax = 0 brightGMin = 0 brightGMax = 0 brightBMin = 0 brightBMax = 0 curTotal = 0 / / Splash schizzato = 0 Fine /////////////// / / Proc Main / / /////////////// Ritardo 1000 Call CalculateScanBoxConstants Loop $ RunCount Tasti da 0 Ritardo 1000 Call FindLureInitial Call FindBoxCenter Calcolare x = $ boxMaxX-10 MousePos $ x, $ boxCenterY Ritardo $ velocità di scansione Call GetRGBValue Call WaitForSplash Se afkAway $ = 1 Ritardo 2500 KeyDown {return} 250 KeyDown {return} 250 Ritardo 2000 Altro Ritardo 5.000 Fine Fine //////////////// / / Procedure / / //////////////// Procedura CalculateScanBoxConstants Calcola scanTop = {} + WindowTop Tronco ({} * $ WindowHeight scanTopDist) Compute scanBottom = ({WindowTop} + {} WindowHeight) - Tronco ({} * $ WindowHeight scanBottomDist) Calcola scanLeft = {} + WindowLeft Tronco ({} * $ WindowWidth scanLeftDist) Compute scanRight = ({WindowLeft} + {} WindowWidth) - Tronco ({} * $ WindowWidth scanRightDist) Calcola boxAvgWidth = Tronco ({} * $ WindowWidth widthToWindowRatio) Calcola boxAvgHeight = Tronco ({} * $ WindowHeight heightToWindowRatio) Calcola scanStepX $ = boxAvgWidth Calcola scanStepY = Tronco ($ boxAvgHeight / 2) Fine Procedura FindLureInitial SetConst scanSuccess = 0 Calcolare y = $ scanTop Mentre $ y <= $ E $ scanBottom scanSuccess = 0 Calcolare i = {} LoopNo MOD 2 Se $ i = 0 Timestamp anche nelle Calcolare x = $ scanLeft Altro Timestamp In Odd Calcolare x = $ scanLeft + Tronco ($ boxAvgWidth / 2) Fine Mentre $ x <= $ E $ scanRight scanSuccess = 0 / / Sposta il mouse e attendere un secondo (attesa è richiesto!) MousePos $ x, $ y Ritardo $ velocità di scansione Call isMouseOrange / / Se il mouse è di colore arancione Se isMouseOrange $ = 1 SetConst lureInitLocX $ = x SetConst lureInitLocY = $ y SetConst scanSuccess = 1 Fine Calcolare x = $ x + $ scanStepX Fine Calcolare y = $ y + $ scanStepY Fine Fine Procedura FindBoxCenter / / Trova X min SetConst scanSuccess = 0 Calcolare x = $ lureInitLocX Compute y = $lureInitLocY
While $scanSuccess = 0
// Move the mouse and wait a second (wait is required!)
MousePos $x, $y
Delay $scanSpeed
Call isMouseOrange
If $isMouseOrange = 0
SetConst boxMinX = $x
SetConst scanSuccess = 1
Else
Compute x= $x - $boxScanStep
Fine Fine // Find X max
SetConst scanSuccess = 0
Compute x = $lureInitLocX
Compute y = $lureInitLocY
While $scanSuccess = 0
// Move the mouse and wait a second (wait is required!)
MousePos $x, $y
Delay $scanSpeed
Call isMouseOrange
If $isMouseOrange = 0
SetConst boxMaxX = $x
SetConst scanSuccess = 1
Else
Compute x= $x + $boxScanStep
Fine Fine // Find Y min
SetConst scanSuccess = 0
Compute x = $lureInitLocX
Compute y = $lureInitLocY
While $scanSuccess = 0
// Move the mouse and wait a second (wait is required!)
MousePos $x, $y
Delay $scanSpeed
Call isMouseOrange
If $isMouseOrange = 0
SetConst boxMinY = $y
SetConst scanSuccess = 1
Else
Compute y= $y - $boxScanStep
Fine Fine // Find Y max
SetConst scanSuccess = 0
Compute x = $lureInitLocX
Compute y = $lureInitLocY
While $scanSuccess = 0
// Move the mouse and wait a second (wait is required!)
MousePos $x, $y
Delay $scanSpeed
Call isMouseOrange
If $isMouseOrange = 0
SetConst boxMaxY = $y
SetConst scanSuccess = 1
Else
Compute y= $y + $boxScanStep
Fine Fine Compute boxCenterX = Trunc(( $boxMinX + $boxMaxX ) / 2)
Compute boxCenterY = Trunc(( $boxMinY + $boxMaxY ) / 2)
SetConst lureInitLocX = $boxCenterX
SetConst lureInitLocY = $boxCenterY
Fine Procedure GetRGBValue
SetConst $brightTotal = 0
Compute y = $boxCenterY
Compute i = $boxCenterY + Trunc( ($boxMaxY - $boxCenterY) / 3 )
While $y <= $i
Compute x = $boxMinX
While $x <= $boxCenterX
LoadRGB $x, $y
Compute curTotal = {RGBRed} + {RGBGreen} + {RGBBlue}
If $curTotal > $brightTotal
Compute brightTotal = $curTotal
SetConst brightR = {RGBRed}
SetConst brightG = {RGBGreen}
SetConst brightB = {RGBBlue}
Compute brightRMin = $brightR - $brightRangeDown
Compute brightRMax = $brightR + $brightRangeUp
Compute brightGMin = $brightG - $brightRangeDown
Compute brightGMax = $brightG + $brightRangeUp
Compute brightBMin = $brightB - $brightRangeDown
Compute brightBMax = $brightB + $brightRangeUp
SetConst brightX = $x
SetConst brightY = $y
Fine Compute x=$x + 2
Fine Compute y=$y + 2
Fine Fine Procedure WaitForSplash
SetConst $splashed = 0
Call isMouseOrange
While $splashed = 0 AND $isMouseOrange = 1
Delay 100
// Check current spot
LoadRGB $brightX, $brightY
If {RGBRed} > $brightRMax OR {RGBRed} < $brightRMin OR {RGBGreen} > $brightGMax OR {RGBGreen} < $brightGMin OR {RGBBlue} > $brightBMax OR {RGBBlue} < $brightBMin
// Check top left
Compute x=$brightX-$brightDist
Compute y=$brightY-$brightDist
LoadRGB $x, $y
If {RGBRed} > $brightRMax OR {RGBRed} < $brightRMin OR {RGBGreen} > $brightGMax OR {RGBGreen} < $brightGMin OR {RGBBlue} > $brightBMax OR {RGBBlue} < $brightBMin
// Check top right
Compute x=$brightX+$brightDist
Compute y=$brightY-$brightDist
LoadRGB $x, $y
If {RGBRed} > $brightRMax OR {RGBRed} < $brightRMin OR {RGBGreen} > $brightGMax OR {RGBGreen} < $brightGMin OR {RGBBlue} > $brightBMax OR {RGBBlue} < $brightBMin
// Check bottom left
Compute x=$brightX-$brightDist
Compute y=$brightY+$brightDist
LoadRGB $x, $y
If {RGBRed} > $brightRMax OR {RGBRed} < $brightRMin OR {RGBGreen} > $brightGMax OR {RGBGreen} < $brightGMin OR {RGBBlue} > $brightBMax OR {RGBBlue} < $brightBMin
// Check bottom right
Compute x=$brightX+$brightDist
Compute y=$brightY+$brightDist
LoadRGB $x, $y
If {RGBRed} > $brightRMax OR {RGBRed} < $brightRMin OR {RGBGreen} > $brightGMax OR {RGBGreen} < $brightGMin OR {RGBBlue} > $brightBMax OR {RGBBlue} < $brightBMin
// Check top left (extended)
Compute x=$brightX-($brightDist*2)
Compute y=$brightY-($brightDist*2)
LoadRGB $x, $y
If {RGBRed} > $brightRMax OR {RGBRed} < $brightRMin OR {RGBGreen} > $brightGMax OR {RGBGreen} < $brightGMin OR {RGBBlue} > $brightBMax OR {RGBBlue} < $brightBMin
// Check top right (extended)
Compute x=$brightX+($brightDist*2)
Compute y=$brightY-($brightDist*2)
LoadRGB $x, $y
If {RGBRed} > $brightRMax OR {RGBRed} < $brightRMin OR {RGBGreen} > $brightGMax OR {RGBGreen} < $brightGMin OR {RGBBlue} > $brightBMax OR {RGBBlue} < $brightBMin
// Check bottom left (extended)
Compute x=$brightX-($brightDist*2)
Compute y=$brightY+($brightDist*2)
LoadRGB $x, $y
If {RGBRed} > $brightRMax OR {RGBRed} < $brightRMin OR {RGBGreen} > $brightGMax OR {RGBGreen} < $brightGMin OR {RGBBlue} > $brightBMax OR {RGBBlue} < $brightBMin
// Check bottom right (extended)
Compute x=$brightX+($brightDist*2)
Compute y=$brightY+($brightDist*2)
LoadRGB $x, $y
If {RGBRed} > $brightRMax OR {RGBRed} < $brightRMin OR {RGBGreen} > $brightGMax OR {RGBGreen} < $brightGMin OR {RGBBlue} > $brightBMax OR {RGBBlue} < $brightBMin
SetConst splashed = 1
RightClick Shift
Delay 500
Fine Fine Fine Fine Fine Fine Fine Fine Fine Call isMouseOrange
Fine Fine Procedure isMouseOrange
SetConst $isMouseOrange = 0
// Get the mouse color
Compute mouseX= {MouseX} + 4
Compute mouseY= {MouseY} + 4
LoadRGB $mouseX, $mouseY
// If the mouse is orange (variance added just for good measure..)
If {RGBRed} >= 210 AND {RGBRed} <= 218 AND {RGBGreen} >= 160 AND {RGBGreen} <= 168 AND {RGBBlue} >= 84 AND {RGBBlue} <= 92
SetConst $isMouseOrange = 1
Fine Fine