Advertisement
Killyoboy

Islands Auto Fishing v2

Oct 30th, 2022
2,018
1
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #MaxThreadsPerHotKey, 2
  2. Toggle := 0
  3. Time := A_TickCount-120000 ;like this for a reason, leave it.
  4.  
  5. BaitToggle := true ;whether to use bait automatically
  6.  
  7. T2BaitSlot := 2 ;which slot the tier 2 bait is in (only used with more than 0 and with BaitToggle on)
  8. T1BaitSlot := 3 ;which slot the tier 1 bait is in (only used with more than 0 and with BaitToggle on)
  9. T2BaitAmount := 85 ;the amount of tier 2 bait you have
  10. T1BaitAmount := 120 ;the amount of tier 1 bait you have
  11. BaitSameTime := false ;whether or not to use both baits at the same time or to run out of t2 first.
  12.  
  13. RodSlot := 1 ;which slot the rod is in (only used with BaitToggle on)
  14.  
  15. ;KeyWait, Capslock, D
  16. ;MouseGetPos, eX, eY
  17. ;PixelGetColor, color, eX, eY
  18. ;MsgBox You pressed %color%
  19.  
  20. F1::
  21. Toggle := !Toggle
  22.  
  23. If (Toggle and not BaitToggle) {
  24.     MouseMove, 500, 500
  25.     Send {Click down}
  26.     Sleep, 500
  27.     Send {Click up}
  28. }
  29.  
  30. While Toggle {
  31.     WinGetPos ,,, W, H, Roblox
  32.     PixelSearch, aX, aY, W/3.05, H/1.29, W/1.49, H/1.195, 0xFFFFFFFF, 0, fast
  33.     PixelSearch, bX, bY, W/3.05, H/1.29, W/1.49, H/1.195, 0x6969FF, 0, fast
  34.    
  35.     If(aX and aY and bX and bY) {
  36.         MouseMove, aX, aY
  37.        
  38.         if(bX < aX) {
  39.             Send {Click down}
  40.         } Else {
  41.             Send {Click up}
  42.         }
  43.     } Else If(BaitToggle and (A_TickCount - Time) >= 120000 and (T2BaitAmount > 0 or T1BaitAmount > 0)) {
  44.         Time := A_TickCount
  45.         MouseMove, 500, 500
  46.        
  47.         If(T2BaitAmount > 0) {
  48.             Send %T2BaitSlot%
  49.             T2BaitAmount := T2BaitAmount - 1
  50.             Send {Click down}
  51.             Sleep, 1100
  52.             Send {Click up}
  53.         }
  54.        
  55.         If(T1BaitAmount > 0 and (BaitSameTime or T2BaitAmount <= 0)) {
  56.             Send %T1BaitSlot%
  57.             T1BaitAmount := T1BaitAmount - 1
  58.             Send {Click down}
  59.             Sleep, 1100
  60.             Send {Click up}
  61.         }
  62.        
  63.         Send %RodSlot%
  64.         Send {Click down}
  65.         Sleep, 500
  66.         Send {Click up}
  67.     } Else If(aX and aY and !bX and !bY) {
  68.         MouseMove, aX, aY
  69.         Send {Click down}
  70.         Sleep, 500
  71.         Send {Click up}
  72.         Sleep, 2000
  73.     }  Else {
  74.         MouseMove, 0, 0
  75.     }
  76. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement