Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #cs
- ADD detection of character screen and loading screen done
- Witch Doctor Cellar Farming Bot - Version 0.2 revision by cib, HELL VERSION TESTED
- Developed by Avatar88343 @ Ownedcore
- What it does:
- *This bot will travel to the cellar in Act 1, kill the mobs, collect the gold and items, and repair your gear.
- Instructions:
- 1.) Bind your middle mouse button to Move (found in Key Bindings Option)
- 1.a) Ensure T is bound to teleport to town
- 1.b) Ensure ALT is bound to reveal items names
- 1.c) Ensure that reveal items names option is set to display 10 sec
- 2.) Set your build to this http://us.battle.net/d3/en/calculator/witch-doctor#ZhiTPU!VeW!abcZba
- 3.) Set your game resolution to 1920x1080 (required)
- 3.) Start Act 1, Quest 6 - Talk to Alaric
- 4.) Hire the Scoundrel
- 5.) Teleport to The Old Ruins using the waypoint and run left until you reach a checkpoint
- 6.) Log out of the game
- 7.) Press Space to start the bot! Space is used to pause and resume the bot
- 8.) Press Z to turn off the bot
- NOTE:
- *1920 x 1080 is the only resolution currently supported (800x600 is not supported in this revision)
- *You must be running the game in Fullscreen Windoed mode
- *You may need to edit the values below the comments for better results
- FEATURES:
- *Automatic looting of Rare, Legendary, and Set items ( Revision: Legend implemented but not active and not tested because in hell )
- *Repairs Items when damaged
- *Detects death and responds accordingly
- *Able to detect
- *Randomization for increased safety
- *Added ability to find Cellar during bad runs
- *Loots Gems
- IN DEVELOPMENT:
- *Multi-resolution support (very soon)
- *Inventory check and stash use
- *Improved combat
- *Speed improvements
- *Multiple routes to improve safety
- *45 min timeout bug
- *Pickup blues
- *edit d3config
- **Based on the code by notAres and mackus101. Special thanks to them!
- #ce
- ;======EDIT THESE VALUES ACCORDINLY ===================================
- $R = 0 ;0 for 1920x1080, 1 for
- $ComputerLag = 1100 ;Increase this by 100-5000 if you have a slow PC. Gently tune it down until timings are right
- $LootRares = True ;Whether or not to loot only rare items
- $LootBlues = False ;currently supported
- $Repair = True ;Orders the bot to repair when items are damaged
- $LootGems = True
- $UseStash = False ;Not currently supported
- ;======================================================================
- Global $Resume[2][2] ;Location of the Resume Button
- Global $Leave[2][2] ;Location of the in-game leave button
- Global $GameLobbyCode[2][3] ;Contains X, Y, and Hex color of Resume button so we can see if we're there
- Global $GameScreenCode[2][3] ;Contains X, Y, and Hex color used to check if we are in an unpaused game
- Global $Loc1[2][2] ;First movement
- Global $Loc2[2][2] ;Second movement
- Global $Loc3[2][2] ;Third movement ttt
- Global $CellarLocation[2][2] ;Cellar door location
- Global $CellarLocation2[2][2] ;Location of cellar during bad runs (ugly workaround for now)
- Global $AltCellar = False
- Global $Loc5[2][2] ;Cellar hallway
- Global $Loc6[2][2] ;Cellar doorway
- Global $MonsterLoc[2][2] ;Initial boss location
- Global $MonsterSearch[2][4] ;Bounds of where we will find our monsters
- Global $GoldLoot1[2][2] ;First place to run when looting
- Global $GoldLoot2[2][2] ;Second place to run when looting
- Global $GoldLoot3[2][2] ;Third place to run when looting
- Global $LootingArea[2][4] ; looting bounds (TL X, TL Y, BR X, BR Y)
- Global $CharHitBox[2][4] ; Hitbox around user's character
- Global $DeathBounds[2][2] ; Used to detect the "You Have Died" text
- Global $RepairCheck[2][2] ; Used to check for repair icon
- Global $RepairCords[2][4][2] ; Four clicks needed to repair
- Global $CellarOffset[2]
- ;Global $MonsterData[2]
- ;All locations are N dimensional arrays. [0][x] is for 1080P and [1][x] is for 800x600
- ;1080P
- $Resume[0][0] = 319
- $Resume[0][1] = 416
- $GameLobbyCode[0][0] = 319
- $GameLobbyCode[0][1] = 416
- $GameLobbyCode[0][2] = 4065536 ;dec
- $GameScreenCode[0][0] = 1119
- $GameScreenCode[0][1] = 1044
- $GameScreenCode[0][2] = 0xDEFDFE
- ;800x600
- $Resume[1][0] = 142
- $Resume[1][1] = 251
- $GameLobbyCode[1][0] = 0 ;Undefined
- $GameLobbyCode[1][1] = 0
- $GameLobbyCode[1][2] = 0
- $GameScreenCode[1][0] = 0
- $GameScreenCode[1][1] = 0
- $GameScreenCode[1][2] = 0
- ;1080P
- $Leave[0][0] = 1042
- $Leave[0][1] = 582
- ;800x600
- $Leave[1][0] = 400
- $Leave[1][1] = 342
- ;1920x1080
- $Loc1[0][0] = 500 ;First movement
- $loc1[0][1] = 250
- $loc2[0][0] = 1 ;Second movement
- $loc2[0][1] = 370
- $loc3[0][0] = 400 ;Third Movement
- $loc3[0][1] = 600
- ;800x600
- $Loc1[1][0] = 8 ;First movement
- $loc1[1][1] = 146
- $loc2[1][0] = 7 ;Second movement
- $loc2[1][1] = 300
- $loc3[1][0] = 8 ;Third Movement
- $loc3[1][1] = 300
- ;1080P
- $CellarLocation[0][0] = 307 ;Cellar door location
- $CellarLocation[0][1] = 74
- ;800x600
- $CellarLocation[1][0] = 38 ;Cellar door location
- $CellarLocation[1][1] = 98
- $CellarLocation2[1][0] = 10 ;Location of cellar during bad runs
- $CellarLocation2[1][1] = 34
- $CellarOffset[0] = 33;
- $CellarOffset[1] = 14;
- ;1080P
- $loc5[0][0] = 116 ;Walk down hallway
- $loc5[0][1] = 986
- $loc6[0][0] = 740 ;enter hallway
- $loc6[0][1] = 295
- ;$loc6[0][0] = 776 ;enter hallway
- ;$loc6[0][1] = 328
- ;800x600
- $loc5[1][0] = 3 ;Walk down hallway
- $loc5[1][1] = 504
- $loc6[1][0] = 255 ;enter hallway
- $loc6[1][1] = 190
- ;1080P
- $MonsterLoc[0][0] = 590
- $MonsterLoc[0][1] = 261
- ;800x600
- $MonsterLoc[1][0] = 188
- $MonsterLoc[1][1] = 111
- ;1920x1080
- $MonsterSearch[0][0] = 10
- $MonsterSearch[0][1] = 90
- $MonsterSearch[0][2] = 1500
- $MonsterSearch[0][3] = 750
- ;800x600
- $MonsterSearch[1][0] = 40
- $MonsterSearch[1][1] = 53
- $MonsterSearch[1][2] = 424
- $MonsterSearch[1][3] = 191
- ;1920x1080
- $GoldLoot1[0][0] = 402
- $GoldLoot1[0][1] = 306
- $GoldLoot2[0][0] = 1260
- $GoldLoot2[0][1] = 351
- $GoldLoot3[0][0] = 911
- $GoldLoot3[0][1] = 694
- ;800x600
- $GoldLoot1[1][0] = 96
- $GoldLoot1[1][1] = 181
- $GoldLoot2[1][0] = 560
- $GoldLoot2[1][1] = 191
- $GoldLoot3[1][0] = 349
- $GoldLoot3[1][1] = 418
- ;1080P
- $LootingArea[0][0] = 15
- $LootingArea[0][1] = 20
- $LootingArea[0][2] = 1550
- $LootingArea[0][3] = 890
- ;800x600
- $LootingArea[1][0] = 75
- $LootingArea[1][1] = 90
- $LootingArea[1][2] = 630
- $LootingArea[1][3] = 360
- ;1080P
- $CharHitBox[0][0] = 790
- $CharHitBox[0][1] = 315
- $CharHitBox[0][2] = 1200
- $CharHitBox[0][3] = 730
- ;800x600
- $CharHitBox[1][0] = 304
- $CharHitBox[1][1] = 190
- $CharHitBox[1][2] = 468
- $CharHitBox[1][3] = 323
- ;1080P (NOT DONEEEEEEEEEEEEE)
- $DeathBounds[0][0] = 538
- $DeathBounds[0][1] = 335
- ;800x600
- $DeathBounds[1][0] = 210
- $DeathBounds[1][1] = 180
- ;1080P
- $RepairCords[0][0][0] = 1690
- $RepairCords[0][0][1] = 102
- $RepairCords[0][1][0] = 930
- $RepairCords[0][1][1] = 136
- $RepairCords[0][2][0] = 517
- $RepairCords[0][2][1] = 483
- $RepairCords[0][3][0] = 223
- $RepairCords[0][3][1] = 592
- ;800x600
- $RepairCords[1][0][0] = 691
- $RepairCords[1][0][1] = 88
- $RepairCords[1][1][0] = 505
- $RepairCords[1][1][1] = 52
- $RepairCords[1][2][0] = 282
- $RepairCords[1][2][1] = 261
- $RepairCords[1][3][0] = 157
- $RepairCords[1][3][1] = 329
- ;1080P
- $RepairCheck[0][0] = 1507
- $RepairCheck[0][1] = 36
- ;800x600
- $RepairCheck[1][0] = 573
- $RepairCheck[1][1] = 21
- $Amethyst = 0xE7A7FD
- $Ruby = 0xFF8E7E
- $Emerald = 0x36FD30
- $Topaz = 0xFFFF3B
- HotKeySet("z", "Terminate")
- HotKeySet("w","InGameplayScreen")
- HotKeySet("p","Pause")
- Func Terminate()
- Exit 0
- EndFunc
- Opt('MouseCoordMode', 2)
- Opt('PixelCoordMode', 2)
- HotKeySet('{SPACE}', 'Pause')
- Global $Paused
- ;bot starts paused. press space to start.
- Pause()
- $LootAttempts = 0
- $GemLootAttempts = 0
- WinActivate('Diablo III')
- While 1
- If WinActive('Diablo III') Then
- $AltCellar = False
- $LootAttempts = 0
- $GemLootAttempts = 0
- $Whatoloot = "OPTIONS : "
- ToolTip ( $Whatoloot, 10, 100 )
- if $LootBlues then
- $Whatoloot &= "BLUE "
- EndIf
- if $LootRares then
- $Whatoloot &= "RARE "
- EndIf
- if $LootGems Then
- $Whatoloot &= "GEMS "
- EndIf
- if $Repair Then
- $Whatoloot &= "REPAIR "
- EndIf
- ToolTip ( $Whatoloot, 10, 100 )
- ;Make sure that we are in the character selection screen ( we are looking at a spot in the Resume game button)
- for $i = 12 To 0 step -1
- if InGameLobby() Then
- ExitLoop
- EndIf
- sleep(600)
- if $i == 1 Then
- MsgBox(4096, "Error Resuming Game", "You don't seem to be in the lobby. Bot will now exit", 50)
- Terminate()
- EndIf
- Next
- ;Resume the game
- Click($Resume[$R][0], $Resume[$R][1])
- ;Make sure that we are in the game
- for $i = 12 To 0 step -1
- if InGameplayScreen() Then
- ExitLoop
- EndIf
- sleep(1000)
- if $i == 1 Then
- MsgBox(4096, "Error Starting the Game", "The game did not properly load...", 50)
- Terminate()
- EndIf
- Next
- ;Get close to the cellar
- Sleep(500)
- Move($Loc1[$R][0], $Loc1[$R][1])
- Sleep(400)
- Send("{4}")
- Sleep(700)
- if $R > 0 Then
- sleep(500)
- EndIf
- Move($Loc2[$R][0], $Loc2[$R][1])
- Sleep(1100)
- Move($Loc3[$R][0], $Loc3[$R][1])
- ;Check to see if it's there
- MouseMove($CellarLocation[$R][0], $CellarLocation[$R][1])
- Sleep(700)
- $CellarPixel = PixelSearch($CellarLocation[$R][0]-$CellarOffset[$R], $CellarLocation[$R][1]-$CellarOffset[$R],$CellarLocation[$R][0]+4,$CellarLocation[$R][1]+4, 0x334FB7,8)
- ;Sometimes the 800x600 path gets buggy and we need to adjust...
- if @error AND $R > 0 Then
- MouseMove($CellarLocation2[$R][0],$CellarLocation2[$R][1])
- Sleep(350)
- $CellarPixel = PixelSearch(6, 18,9,23, 0x334FB7,6)
- if not @error Then
- $AltCellar = True
- EndIf
- EndIf
- ;Leave the game if the Cellar is not there
- if @error Then
- Send("{3}")
- Sleep(200)
- Send("{2}")
- Sleep(200)
- ConsoleWrite("Did not find the cellar " & @LF)
- SnareNearbyEnemies()
- leaveGame()
- Sleep(12000)
- ContinueLoop
- EndIf
- ;Enter the cellar
- ConsoleWrite("Found the cellar" & @LF)
- ; if not $AltCellar Then
- if $R > 0 AND $AltCellar Then
- Click($CellarLocation2[$R][0] - 4, $CellarLocation2[$R][1] - 4)
- Else
- Click($CellarLocation[$R][0], $CellarLocation[$R][1])
- endif
- ;else
- ; Click($CellarLocation2[$R][0], $CellarLocation2[$R][1])
- ;EndIf
- Sleep(2500 + $ComputerLag)
- ;Check to see if we died
- if CheckForDeath() Then
- ContinueLoop
- EndIf
- ;Inside the celler now - Move to the doorway and summon minions
- Send("{2}")
- Sleep(200)
- Send("{3}")
- Sleep(600)
- Move($Loc5[$R][0], $Loc5[$R][1])
- Sleep(1700)
- Move($Loc6[$R][0], $Loc6[$R][1])
- Sleep(300)
- ;Cast spell 1 on the pack
- MouseMove(611, 247)
- Send ("{SHIFTDOWN}")
- Sleep(150)
- MouseClick("left")
- Sleep(50)
- Send ("{SHIFTUP}")
- MouseMove(611, 247)
- Sleep(150)
- Send("{1}")
- Sleep(500)
- Send("{1}")
- Sleep(500)
- Send("{1}")
- Sleep(500)
- Send("{4}")
- Sleep(250)
- ;Kill all the enemies inside
- while 1
- $MonsterBar = PixelSearch($MonsterSearch[$R][0], $MonsterSearch[$R][1], $MonsterSearch[$R][2], $MonsterSearch[$R][3], 0xEE0000, 10)
- if @error Then
- ConsoleWrite("Didn't find any, attacking to discover potential enemies" & @LF)
- Attack($MonsterLoc[$R][0],$MonsterLoc[$R][1])
- sleep(500)
- Attack($MonsterLoc[$R][0]-20,$MonsterLoc[$R][1]-10)
- sleep(500)
- Attack($MonsterLoc[$R][0]+30,$MonsterLoc[$R][1]+10)
- Sleep(400)
- $MonsterBar = PixelSearch($MonsterSearch[$R][0], $MonsterSearch[$R][1], $MonsterSearch[$R][2], $MonsterSearch[$R][3], 0xEE0000, 10)
- if @error Then
- ConsoleWrite("No monsters found - Moving on")
- ExitLoop
- EndIf
- EndIf
- ;if CheckForNearbyMonsters() Then
- ;send("{4}")
- ;EndIf
- for $i = 7 To 0 step -1
- Attack($MonsterBar[0], $MonsterBar[1])
- Sleep(100)
- Next
- WEnd
- ToolTip('Looting Gold...', 0, 150)
- ;Loot the gold and attack anything we missed
- sleep(300)
- #cs OLD
- Move(1145, 185)
- sleep(1200)
- Move(392, 572)
- sleep(800)
- Move(354, 932)
- sleep(900)
- Move(1493, 654)
- sleep(800)
- Move(969, 300)
- sleep(600)
- #ce
- Move(437, 338)
- Sleep(900)
- Move(1322, 315)
- Sleep(500)
- Move(838, 762)
- Sleep(500)
- AttackNearbyMonsters()
- ToolTip("")
- ;Move($GoldLoot1[$R][0], $GoldLoot1[$R][1]) original looting gold path
- ;Sleep(Random(800, 900))
- ;AttackNearbyMonsters()
- ;Move($GoldLoot2[$R][0], $GoldLoot2[$R][1])
- ;Sleep(Random(400,500))
- ;AttackNearbyMonsters()
- ;Move($GoldLoot3[$R][0], $GoldLoot3[$R][1])
- ;sleep(Random(400,500))
- ;AttackNearbyMonsters()
- ;Loot items
- Sleep(350)
- Send("{k}")
- Sleep(250)
- if $LootBlues then
- LootBlues()
- $LootAttemps = 0
- EndIf
- if $LootRares then
- LootRares()
- $LootAttemps = 0
- ;LootLegendaries()
- ;$LootAttemps = 0
- EndIf
- if $LootGems Then
- LootGems()
- EndIf
- ;Check to see if we died
- if CheckForDeath() Then
- ContinueLoop
- EndIf
- ;Teleport to town
- send("{t}")
- sleep(8000)
- ;Repair if needed
- if $Repair then
- RepairItems()
- EndIf
- ;Leave the game
- LeaveGame()
- Sleep(1000)
- EndIf
- WEnd
- Func CheckForRepair()
- $RepairNeeded = PixelSearch($RepairCheck[$R][0],$RepairCheck[$R][1], $RepairCheck[$R][0]+5, $RepairCheck[$R][1]+5, 0xFFE801,10)
- if Not @error Then
- return True
- Else
- return False
- EndIf
- EndFunc
- Func RepairItems()
- if not CheckForRepair() Then
- Return
- EndIf
- Move($RepairCords[$R][0][0] , $RepairCords[$R][0][1])
- Sleep(2700+$ComputerLag)
- MouseMove($RepairCords[$R][1][0] , $RepairCords[$R][1][1])
- Sleep(400)
- Click($RepairCords[$R][1][0] , $RepairCords[$R][1][1])
- sleep(2200+$ComputerLag)
- click($RepairCords[$R][2][0] , $RepairCords[$R][2][1])
- Sleep(Random(700-900))
- Click($RepairCords[$R][3][0] , $RepairCords[$R][3][1])
- Sleep(500)
- send("{esc}")
- EndFunc
- Func LeaveGame()
- send("{esc}")
- Sleep(400)
- Click($Leave[$R][0], $Leave[$R][1])
- EndFunc
- Func Pause()
- $Paused = Not $Paused
- While $Paused
- Sleep(100)
- ToolTip('Paused...', 0, 0)
- WEnd
- ToolTip("")
- EndFunc ;
- Func Click($x, $y)
- MouseClick('left', Random($x - 3, $x + 3), Random($y - 3, $y + 3), 1, Random(0, 1))
- Sleep(Random(1000, 1500))
- EndFunc
- Func Move($x, $y)
- MouseClick('middle', Random($x - 3, $x + 3), Random($y - 3, $y + 3), 1, Random(0, 1))
- Sleep(Random(1000, 1500))
- EndFunc
- Func Attack($x, $y)
- MouseClick('right', Random($x - 3, $x + 3), Random($y - 3, $y + 3), 1, Random(0, 1))
- EndFunc
- Func Rest($z)
- Sleep(Random($z, $z+25))
- EndFunc
- Func CheckForDeath()
- $Death = PixelSearch($DeathBounds[$R][0], $DeathBounds[$R][0], $DeathBounds[$R][0]+4, $DeathBounds[$R][0]+4, 0xFFFFFF)
- if not @error Then
- ConsoleWrite("Died" & @LF)
- LeaveGame()
- Sleep(12000)
- return True
- Else
- return False
- EndIf
- EndFunc
- Func LootBlues()
- $LootAttempts=0
- While ($LootAttempts < 3)
- $lootpass = "LOOT BLUE PASS "
- $lootpass &= $LootAttempts
- ToolTip($lootpass, 0, 150)
- Send("!")
- Sleep(250)
- $Blue = PixelSearch($LootingArea[$R][0], $LootingArea[$R][1], $LootingArea[$R][2], $LootingArea[$R][3], 0x6969FF, 2) ;
- If not @error Then
- Click($Blue[0], $Blue[1])
- Sleep(Random(800,1000))
- EndIf
- $LootAttempts+=1
- WEnd
- ToolTip("")
- EndFunc
- Func LootRares()
- $LootAttempts=0
- While ($LootAttempts < 2)
- $lootpass = "LOOT RARE PASS "
- $lootpass &= $LootAttempts
- ToolTip($lootpass, 0, 150)
- Send("!")
- Sleep(250)
- $Rare = PixelSearch($LootingArea[$R][0], $LootingArea[$R][1], $LootingArea[$R][2], $LootingArea[$R][3], 0xFFFF00, 6) ;
- If not @error Then
- Click($Rare[0], $Rare[1])
- Sleep(1600))
- EndIf
- $LootAttempts+=1
- WEnd
- ToolTip("")
- #cs remove cs and next ce line to activate lengendary item loot , not tested no legend in hell
- $LootAttempts=0
- While ($LootAttempts < 2)
- $lootpass = "LOOT LEGEND PASS "
- $lootpass &= $LootAttempts
- ToolTip($lootpass, 0, 150)
- Send("!")
- Sleep(250)
- $Legendary = PixelSearch($LootingArea[$R][0], $LootingArea[$R][1], $LootingArea[$R][2], $LootingArea[$R][3], 0xBF642F, 2) ;
- If not @error Then
- Click($Legendary[0], $Legendary[1])
- Sleep(1600)
- EndIf
- Send("!")
- Sleep(250)
- $set = PixelSearch($LootingArea[$R][0], $LootingArea[$R][1], $LootingArea[$R][2], $LootingArea[$R][3], 0x02CE01, 2) ;
- If not @error Then
- Click($set[0], $set[1])
- Sleep(1600))
- EndIf
- $LootAttempts+=1
- WEnd
- #ce
- ToolTip("")
- EndFunc
- #cs
- Func LootLegendaries() ; loot legend original function
- ToolTip('Looting Legendaries...', 0, 150)
- $Legendary = PixelSearch($LootingArea[$R][0], $LootingArea[$R][1], $LootingArea[$R][2], $LootingArea[$R][3],0xBF642F, 2) ;
- If not @error Then
- Click($Legendary[0], $Legendary[1])
- Sleep(Random(800,1000))
- EndIf
- $set = PixelSearch($LootingArea[$R][0], $LootingArea[$R][1], $LootingArea[$R][2], $LootingArea[$R][2], 0x02CE01, 2) ;
- If not @error Then
- Click($set[0], $set[1])
- Sleep(Random(800,1000))
- EndIf
- $LootAttempts+=1
- if($LootAttempts > 3) then
- Return
- Else
- LootRares()
- EndIf
- ToolTip("")
- EndFunc
- #ce
- Func LootGems()
- ToolTip('Looting Gems...', 0, 150)
- Send("!")
- Sleep(250)
- $Gem = PixelSearch($LootingArea[$R][0], $LootingArea[$R][1], $LootingArea[$R][2], $LootingArea[$R][3],$Ruby,5) ;
- If not @error Then
- Click($Gem[0], $Gem[1]-7)
- Sleep(Random(500,900))
- EndIf
- Send("!")
- $Gem = PixelSearch($LootingArea[$R][0], $LootingArea[$R][1], $LootingArea[$R][2], $LootingArea[$R][3],$Amethyst,5) ;
- If not @error Then
- Click($Gem[0], $Gem[1]-7)
- Sleep(Random(500,900))
- EndIf
- $Gem = PixelSearch($LootingArea[$R][0], $LootingArea[$R][1], $LootingArea[$R][2], $LootingArea[$R][3],$Emerald,5) ;
- If not @error Then
- Click($Gem[0], $Gem[1]-7)
- Sleep(Random(500,900))
- EndIf
- Send("!")
- $Gem = PixelSearch($LootingArea[$R][0], $LootingArea[$R][1], $LootingArea[$R][2], $LootingArea[$R][3],$Topaz,5) ;
- If not @error Then
- Click($Gem[0], $Gem[1]-7)
- Sleep(Random(500,900))
- EndIf
- Send("!")
- $GemLootAttempts+=1
- if($GemLootAttempts > 1) then
- Return
- Else
- LootGems()
- EndIf
- ToolTip("")
- EndFunc
- Func AttackNearbyMonsters()
- while 1
- $MonsterData = PixelSearch($CharHitBox[$R][0],$CharHitBox[$R][1],$CharHitBox[$R][2],$CharHitBox[$R][3], 0xEE0000, 10)
- if @error Then
- ExitLoop
- EndIf
- send("{4}")
- sleep(300)
- for $i = 10 To 0 step -1
- Attack($MonsterData[0], $MonsterData[1])
- Sleep(100)
- Next
- WEnd
- EndFunc
- Func CheckForNearbyMonsters()
- $MonsterData = PixelSearch($CharHitBox[$R][0],$CharHitBox[$R][1],$CharHitBox[$R][2],$CharHitBox[$R][3], 0xEE0000, 10)
- if @error Then
- return False
- Else
- return True
- EndIf
- EndFunc
- Func SnareNearbyEnemies()
- $MonsterData = PixelSearch($CharHitBox[$R][0],$CharHitBox[$R][1],$CharHitBox[$R][2],$CharHitBox[$R][3], 0xEE0000, 10)
- if not @error Then
- MouseMove($MonsterData[0], $MonsterData[1])
- Sleep(350)
- Send("{3}")
- sleep(250)
- EndIf
- EndFunc
- Func InGameLobby()
- MouseMove($GameLobbyCode[$R][0],$GameLobbyCode[$R][1])
- Sleep(300)
- PixelSearch($GameLobbyCode[$R][0],$GameLobbyCode[$R][1],$GameLobbyCode[$R][0]+10,$GameLobbyCode[$R][1]+10, $GameLobbyCode[$R][2], 10)
- if not @error Then
- return True
- Else
- return False
- EndIf
- EndFunc
- Func InGameplayScreen()
- PixelSearch($GameScreenCode[$R][0],$GameScreenCode[$R][1],$GameScreenCode[$R][0]+4,$GameScreenCode[$R][1]+3, $GameScreenCode[$R][2], 10)
- if not @error Then
- return True
- Else
- return False
- EndIf
- EndFunc
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement