Advertisement
Killyoboy

Islands Auto Fishing v3

Aug 5th, 2023
4,883
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #MaxThreadsPerHotKey, 2
  2. Toggle := 0
  3.  
  4. BaitTime := A_TickCount-120000 ;like this for a reason, leave it.
  5. BaitToggle := false ;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 := 0 ;the amount of tier 2 bait you have
  10. T1BaitAmount := 0 ;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. JamTime := A_TickCount-9000000 ;like this for a reason, leave it.
  14. JamToggle := false ;whether to use jam sandwiches automatically
  15.  
  16. JamSandwichSlot := 4
  17. JamSandwichAmount := 0
  18.  
  19. RodSlot := 1 ;which slot the rod is in (only used with BaitToggle on)
  20.  
  21. ;KeyWait, Capslock, D
  22. ;MouseGetPos, eX, eY
  23. ;PixelGetColor, color, eX, eY
  24. ;MsgBox You pressed %color%
  25.  
  26. F1::
  27. Toggle := !Toggle
  28. RodOut := false
  29. LastFish := 0
  30.  
  31. If (Toggle and not BaitToggle and not JamToggle) {
  32.     MouseMove, 500, 500
  33.     Send {Click down}
  34.     Sleep, 500
  35.     Send {Click up}
  36.    
  37.     RodOut := true
  38. }
  39.  
  40. While Toggle {
  41.     WinGetPos ,,, W, H, Roblox
  42.     PixelSearch, aX, aY, 636, 773, 1300, 840, 0xFFFFFFFF, 0, fast
  43.     PixelSearch, bX, bY, 636, 773, 1300, 840, 0x6969FF, 0, fast
  44.    
  45.     If(aX and aY and bX and bY) {
  46.         MouseMove, aX, aY
  47.        
  48.         if(bX < aX) {
  49.             Send {Click down}
  50.         } Else {
  51.             Send {Click up}
  52.         }
  53.        
  54.         RodOut := false
  55.         LastFish := A_TickCount
  56.     } Else If(A_TickCount - LastFish >= 1500) {
  57.         If(BaitToggle and (A_TickCount - BaitTime) >= 120000 and (T2BaitAmount > 0 or T1BaitAmount > 0)) {
  58.             BaitTime := A_TickCount
  59.             MouseMove, 500, 500
  60.            
  61.             If(T2BaitAmount > 0) {
  62.                 Send %T2BaitSlot%
  63.                 T2BaitAmount := T2BaitAmount - 1
  64.                 Send {Click down}
  65.                 Sleep, 1100
  66.                 Send {Click up}
  67.             }
  68.            
  69.             If(T1BaitAmount > 0 and (BaitSameTime or T2BaitAmount <= 0)) {
  70.                 Send %T1BaitSlot%
  71.                 T1BaitAmount := T1BaitAmount - 1
  72.                 Send {Click down}
  73.                 Sleep, 1100
  74.                 Send {Click up}
  75.             }
  76.            
  77.             Send %RodSlot%
  78.             RodOut := false
  79.         } Else If(JamToggle and (A_TickCount - JamTime) >= 900000 and (JamSandwichAmount > 0)) {
  80.             JamTime := A_TickCount
  81.             MouseMove, 500, 500
  82.            
  83.             Send %JamSandwichSlot%
  84.             Send {Click down}
  85.             Sleep, 1100
  86.             Send {Click up}
  87.            
  88.             Send %RodSlot%
  89.             RodOut := false
  90.         } Else If(!RodOut) {
  91.             MouseMove, 500, 500
  92.             Sleep, 1000
  93.            
  94.             Send {Click down}
  95.             Sleep, 500
  96.             Send {Click up}
  97.             Sleep, 2000
  98.            
  99.             RodOut := true
  100.         }  Else {
  101.             MouseMove, 500, 500
  102.         }
  103.     }
  104. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement