Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ;use for hunting normal cyclops mistrock ground floor at start
- HotKeySet("{f1}","myExit")
- Global $attacking = False;
- Global $needRest = False;
- Global $waypoint = False;
- Global $waypoint2 = False;
- Global $waypoint3 = False;
- ;Mobs colour
- Global $HuntingForColor = 0xBC7E3E
- while(1)
- WinActivate("Tibia - Zoonth Teferra")
- ;find a mob
- $pix = PixelSearch(2,63,158,1032,$HuntingForColor,3)
- if not(@error) Then
- ;click and attack mob
- MouseClick("left",$pix[0], $pix[1],1,1)
- sleep(3000)
- $attacking = True
- while($attacking)
- ;are we still attacking the mob, if not then go to waypoint
- $isAttacking = PixelSearch(4,59,167,1028,0xFF0000,1)
- if not (@error) then
- Else
- $waypoint = PixelSearch(1754,31,1854,132,0xC1A998,1)
- MouseClick("left",$waypoint[0], $waypoint[1],1,1)
- Else
- $waypoint2 = PixelSearch(1754,31,1854,132,0x5F2604,1)
- MouseClick("left",$waypoint2[0], $waypoint2[1],1,1)
- Else
- $waypoint3 = PixelSearch(1754,31,1854,132,0x3636F6,1)
- MouseClick("left",$waypoint3[0], $waypoint3[1],1,1)
- func myExit()
- msgbox(0,"Ending","Bot has exited")
- Exit
- EndFunc
- func StartRest()
- MouseClick("left",895,904,1,1)
- sleep(250)
- EndFunc
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement