Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ;//////////////////////////////////////
- ;// MADE BY www.GG-bots.com // ENJOY!//
- ;//////////////////////////////////////
- #RequireAdmin
- #include <WindowsConstants.au3>
- #include <GUIConstants.au3>
- #include <GUIConstantsEx.au3>
- #include <ButtonConstants.au3>
- #include <GUIConstantsEx.au3>
- #include <StaticConstants.au3>
- #include <WindowsConstants.au3>
- #include <GuiButton.au3>
- Global $PauseUnpause
- Global $UnPaused
- Opt("GUIOnEventMode", 1)
- Opt("TrayMenuMode", 1)
- Opt("MouseCoordMode", 2)
- Opt("PixelCoordMode", 2)
- Opt("SendCapslockMode", 0)
- HotKeySet("{F5}", "Start") ;;Start Script
- HotKeySet("{F6}", "Pause") ;;Pause Script
- HotKeySet("{F7}", "ExitScript") ;;Exit Script
- HotKeySet("{NUMPAD2}", "MouseCoords") ;;Toggle GUI for mouse coordinates and the Hex color it's on
- HotKeySet("{NUMPAD0}", "PauseUnpause") ;;Freeze coords and pixel info
- ;;----;\
- ;;;GUI;;> DON'T CHANGE! This is for the Pixel/mouse coordinate tool. Enable this with NUMPAD 2, NUMPAD 0 will freeze the value, I use this to find coordinates and pixel colors.
- ;;----;/
- #Region ### START Koda GUI section ### Form=C:\Users\BLACKFENCER\Downloads\BotStuff\CovBot\Exploit-o-bot-GUI.kxf
- $Form1 = GUICreate("Exploit-o-Bot", 269, 107, 196, 131)
- $Button1 = GUICtrlCreateButton("Start", 16, 72, 75, 25)
- $Button2 = GUICtrlCreateButton("Pause", 96, 72, 75, 25)
- $Button3 = GUICtrlCreateButton("Exit/Stop", 176, 72, 75, 25)
- $Radio1 = GUICtrlCreateRadio("Trailing the Coven", 8, 24, 113, 17)
- $Radio2 = GUICtrlCreateRadio("Battlefields: Siege Runes Chests", 8, 48, 177, 17)
- $Label1 = GUICtrlCreateLabel("Choose Exploit to run:", 8, 8, 107, 17)
- $Label2 = GUICtrlCreateLabel("(Any class)", 184, 48, 55, 17)
- $Label3 = GUICtrlCreateLabel("(Monk Only for now)", 120, 24, 99, 17)
- GUICtrlSetOnEvent($Button1, "Start")
- GUICtrlSetOnEvent($Button3, "ExitScript")
- GUISetState(@SW_SHOW)
- #EndRegion ### END Koda GUI section ###
- GUICreate("Cursor Info", 160, 40, -1, -1, -1, $WS_EX_TOOLWINDOW + $WS_EX_TOPMOST)
- $label1 = GUICtrlCreateLabel("", 5, 5, 150, 15)
- $label2 = GUICtrlCreateLabel("", 5, 20, 150, 15)
- $ox = -1
- $oy = -1
- $oc = -1
- ;------------------------------------------------------------------------;
- Func SetLabels($x, $y, $col)
- $textPos = "Mouse pos x:" & $x & " y:" & $y
- $textCol = "Color: " & Hex($col, 6)
- GUICtrlSetData($label1, $textPos)
- GUICtrlSetData($label2, $textCol)
- EndFunc ;==>SetLabels
- ;------------------------------------------------------------------------;
- Func MousePos()
- $pos = MouseGetPos()
- $col = PixelGetColor($pos[0], $pos[1])
- If ($ox <> $pos[0] Or $oy <> $pos[1] Or $oc <> $col) Then
- $ox = $pos[0]
- $oy = $pos[1]
- $oc = $col
- SetLabels($pos[0], $pos[1], $col)
- EndIf
- EndFunc ;==>MousePos
- ;------------------------------------------------------------------------;
- Func MouseCoords()
- GUISetState(@SW_SHOW)
- $PauseUnpause = 1
- While 1
- If $PauseUnpause = 1 Then
- Switch GUIGetMsg()
- Case $GUI_EVENT_CLOSE
- Exit
- EndSwitch
- MousePos()
- Sleep(25)
- EndIf
- WEnd
- EndFunc ;==>MouseCoords
- ;------------------------------------------------------------------------;
- Func PauseUnpause()
- $PauseUnpause = $PauseUnpause * - 1 + 1
- EndFunc ;==>PauseUnpause
- ;;-----------------;\
- ;;;HOTKEY FUNCTIONS;;>
- ;;-----------------;/
- Func Start()
- WinActivate("Diablo III")
- $Coven = _GUICtrlButton_GetCheck ($Radio1)
- $Battlefields = _GUICtrlButton_GetCheck ($Radio2)
- If $Battlefields = $BST_CHECKED Then
- RoutineSiege()
- ElseIf $Coven = $BST_CHECKED Then
- RoutineCoven()
- EndIf
- EndFunc ;==>Start
- ;------------------------------------------------------------------------;
- Func Pause()
- $Unpaused = NOT $Unpaused
- while $Unpaused
- sleep(10)
- Tooltip("pause")
- WEnd
- Tooltip("")
- EndFunc ;==>Pause
- ;------------------------------------------------------------------------;
- Func ExitScript()
- Exit
- EndFunc ;==>ExitScript
- ;------------------------------------------------------------------------;
- While 1
- Sleep (10)
- WEnd
- ;;---------;\
- ;;;Main Run;;>
- ;;---------;/
- Func RoutineCoven()
- While 1
- MouseClick("left", 237, 503, 1, 0) ;Clicking Resume Game
- Sleep(Random(14000, 15000, 1))
- MouseClick("left", 208, 72, 2, 0) ;Moving...
- Sleep(5500)
- Sleep(Random(5500, 6000, 1))
- MouseClick("left", 1139, 544, 1, 0) ;Moving...
- Sleep(Random(1500, 1700, 1))
- MouseMove (1169, 0, 0) ;Moving...
- Sleep(Random(100, 120, 1))
- Send("{2 DOWN}") ;Dashing strike over wall..
- Sleep(Random(100, 120, 1))
- Send("{2 UP}")
- Sleep(Random(500, 600, 1))
- MouseMove (1894, 777, 0) ;Moving...
- Sleep(Random(100, 120, 1))
- Send("{2 DOWN}") ;Dashing strike over wall..
- Sleep(Random(100, 120, 1))
- Send("{2 UP}")
- Sleep(Random(500, 600, 1))
- MouseClick("left", 1812, 1079, 1, 0) ;Moving...
- Sleep(Random(2000, 2200, 1))
- MouseClick("left", 961, 610, 1, 0) ;Moving...
- Sleep(Random(500, 600, 1))
- $QuestGiver = PixelSearch(1000, 600, 1415, 960, 0x585D59, 2) ;Checking for Quest
- If @Error Then ;Exit game and restart if quest isn't there
- Send("{B DOWN}")
- Sleep(Random(100, 120, 1))
- Send("{B UP}")
- Sleep(Random(6500, 7000, 1))
- Send("{ESC DOWN}")
- Sleep(Random(100, 120, 1))
- Send("{ESC UP}")
- Sleep(Random(1000, 1200, 1))
- MouseClick("left", 253, 479, 1, 0) ;Moving...
- Sleep(Random(6000, 6600, 1))
- ElseIf Not @Error Then
- MouseClick("left", $QuestGiver[0] - 6, $QuestGiver[1] - 3, 2, 0) ;Clicking Quest NPC if he's there
- Sleep(Random(3000, 3200, 1))
- MouseClick("left", 428, 0, 1, 0) ;Moving...
- Sleep(Random(3000, 3200, 1))
- MouseClick("left", 255, 109, 1, 0) ;Moving...
- Sleep(Random(3000, 3200, 1))
- MouseMove (0, 1030, 0) ;Moving...
- Sleep(Random(100, 120, 1))
- Send("{2 DOWN}") ;Dashing strike over wall..
- Sleep(Random(100, 120, 1))
- Send("{2 UP}")
- Sleep(Random(600, 720, 1))
- MouseMove (320, 1079, 0) ;Moving...
- Sleep(Random(100, 120, 1))
- Send("{2 DOWN}") ;Dashing strike over wall..
- Sleep(Random(100, 120, 1))
- Send("{2 UP}")
- Sleep(Random(600, 720, 1))
- MouseClick("left", 1154, 969, 1, 0) ;Moving...
- Sleep(Random(1600, 1800, 1))
- MouseClick("left", 1230, 818, 1, 0) ;Moving...
- Sleep(Random(800, 1000, 1))
- Do
- $QuestTurnIn = PixelSearch(1250, 250, 1760, 550, 0x83767C, 1) ;Checking for Turn-in NPC, searches for the pixel until it is found, this assures that the quest was turned in properly.
- Until Not @error
- If Not @Error Then
- MouseClick("left", $QuestTurnIn[0], $QuestTurnIn[1] + 10, 2, 0) ;Clicking Turn-in NPC and exiting the game.
- Sleep(Random(3000, 3200, 1))
- Send("{B DOWN}")
- Sleep(Random(100, 120, 1))
- Send("{B UP}")
- Sleep(Random(6500, 6700, 1))
- Send("{ESC DOWN}")
- Sleep(Random(100, 120, 1))
- Send("{ESC UP}")
- Sleep(Random(1000, 1200, 1))
- MouseClick("left", 253, 479, 1, 0) ;Moving...
- Sleep(Random(6000, 6200, 1))
- EndIf
- EndIf
- WEnd
- EndFunc
- ;//////Siege Chests///////
- Func RoutineSiege()
- While 1
- MouseClick("left", 237, 503, 1, 0) ;Clicking Resume Game
- Sleep(Random(13500, 14000, 1))
- Send("{M DOWN}")
- Sleep(Random(100, 120, 1))
- Send("{M UP}")
- Sleep(Random(600, 720, 1))
- MouseClick("left", 499, 289, 1, 0) ;Clicking WayPoint
- Sleep(Random(4400, 4600, 1))
- MouseClick("left", 33, 676, 1, 0) ;Moving...
- Sleep(Random(2000, 2200, 1))
- MouseMove(822, 371, 1)
- Sleep(Random(400, 450, 1))
- $Chest1 = PixelSearch(777, 362, 825, 402, 0x647ea6, 4) ;Check for Chest
- If Not @error Then
- MouseClick("left", $Chest1[0], $Chest1[1] + 24, 2, 1) ;Looting Chest
- Sleep(Random(2200, 2300, 1))
- Loot()
- Sleep(Random(400, 600, 1))
- Send("{B DOWN}")
- Sleep(Random(100, 120, 1))
- Send("{B UP}")
- Sleep(Random(7100, 7300, 1))
- Send("{ESC DOWN}")
- Sleep(Random(100, 120, 1))
- Send("{ESC UP}")
- Sleep(Random(1000, 1200, 1))
- MouseClick("left", 253, 479, 1, 0)
- Sleep(Random(6300, 6500, 1))
- ElseIf @error Then
- MouseClick("left", 730, 920, 1, 0) ;Moving...
- Sleep(Random(1900, 2100, 1))
- MouseClick("left", 1025, 650, 1, 0) ;Moving...
- Sleep(Random(1900, 2100, 1))
- MouseClick("left", 808, 787, 2, 1) ;Looting Chest
- Sleep(Random(2200, 2400, 1))
- Loot()
- Sleep(Random(400, 600, 1))
- Send("{B DOWN}")
- Sleep(Random(100, 120, 1))
- Send("{B UP}")
- Sleep(Random(7100, 7300, 1))
- Send("{ESC DOWN}")
- Sleep(Random(100, 120, 1))
- Send("{ESC UP}")
- Sleep(Random(1000, 1200, 1))
- MouseClick("left", 253, 479, 1, 0)
- Sleep(Random(6300, 6500, 1))
- EndIf
- WEnd
- EndFunc
- Func Loot() ;//These functions basically look for Chests/Bodies and also loots Legs/Sets.
- $LegColor = PixelSearch(620, 300, 1400, 880, 0xFF8000, 2)
- If Not @error Then
- MouseClick("left", $LegColor[0], $LegColor[1], 1, 1)
- Sleep(Random(1800, 2000, 1))
- EndIf
- $SetColor = PixelSearch(620, 300, 1400, 880, 0x00FF00, 2)
- If Not @error Then
- MouseClick("left", $SetColor[0], $SetColor[1], 1, 1)
- Sleep(Random(1800, 2000, 1))
- EndIf
- ;$GemColor = PixelSearch(620, 300, 1400, 880, 0x99BBFF, 2)
- ;If Not @error Then
- ; MouseClick("left", $GemColor[0], $GemColor[1], 1, 1)
- ;Sleep(Random(1800, 2000, 1))
- ;EndIf
- $LegColor = PixelSearch(620, 300, 1400, 880, 0xFF8000, 2)
- If Not @error Then
- MouseClick("left", $LegColor[0], $LegColor[1], 1, 1)
- Sleep(Random(1800, 2000, 1))
- EndIf
- $SetColor = PixelSearch(620, 300, 1400, 880, 0x00FF00, 2)
- If Not @error Then
- MouseClick("left", $SetColor[0], $SetColor[1], 1, 1)
- Sleep(Random(1800, 2000, 1))
- EndIf
- ; $GemColor = PixelSearch(620, 300, 1400, 880, 0x99BBFF, 2)
- ;If Not @error Then
- ; MouseClick("left", $GemColor[0], $GemColor[1], 1, 1)
- ; Sleep(Random(1800, 2000, 1))
- ; EndIf
- $LegColor = PixelSearch(620, 300, 1400, 880, 0xFF8000, 2)
- If Not @error Then
- MouseClick("left", $LegColor[0], $LegColor[1], 1, 1)
- Sleep(Random(1800, 2000, 1))
- EndIf
- $SetColor = PixelSearch(620, 300, 1400, 880, 0x00FF00, 2)
- If Not @error Then
- MouseClick("left", $SetColor[0], $SetColor[1], 1, 1)
- Sleep(Random(1800, 2000, 1))
- EndIf
- ;$GemColor = PixelSearch(620, 300, 1400, 880, 0x99BBFF, 2)
- ;If Not @error Then
- ; MouseClick("left", $GemColor[0], $GemColor[1], 1, 1)
- ; Sleep(Random(1800, 2000, 1))
- ; EndIf
- MouseMove(970, 650, 1)
- Send("{Z Down}")
- Sleep(Random(100, 120, 1))
- Send("{Z Up}")
- EndFunc
- Func CheckChest()
- $Chest1 = PixelSearch(580, 219, 1342, 880, 0xAA9BAA, 2)
- If Not @error Then
- MouseClick("left", $Chest1[0], $Chest1[1] + 24, 2, 1)
- Sleep(Random(2200, 2400, 1))
- Loot()
- MouseClick("left", 1012, 720, 1, 0) ;Moving...
- Send("{B DOWN}")
- Sleep(Random(100, 120, 1))
- Send("{B UP}")
- Sleep(Random(7100, 7300, 1))
- Send("{ESC DOWN}")
- Sleep(Random(100, 120, 1))
- Send("{ESC UP}")
- Sleep(Random(1000, 1200, 1))
- MouseClick("left", 253, 479, 1, 0)
- Sleep(Random(6300, 6500, 1))
- EndIf
- EndFunc
- Func CheckBody()
- $LootBody1 = PixelSearch(580, 219, 1342, 880, 0x6F5F60, 1)
- If Not @error Then
- MouseClick("left", $LootBody1[0], $LootBody1[1], 1, 0)
- Sleep(Random(2000, 2200, 1))
- Loot()
- Sleep(Random(1800, 2000, 1))
- EndIf
- EndFunc
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement