Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #MaxThreadsPerHotKey, 2
- Toggle := 0
- BaitTime := A_TickCount-120000 ;like this for a reason, leave it.
- BaitToggle := false ;whether to use bait automatically
- T2BaitSlot := 2 ;which slot the tier 2 bait is in (only used with more than 0 and with BaitToggle on)
- T1BaitSlot := 3 ;which slot the tier 1 bait is in (only used with more than 0 and with BaitToggle on)
- T2BaitAmount := 0 ;the amount of tier 2 bait you have
- T1BaitAmount := 0 ;the amount of tier 1 bait you have
- BaitSameTime := false ;whether or not to use both baits at the same time or to run out of t2 first.
- JamTime := A_TickCount-9000000 ;like this for a reason, leave it.
- JamToggle := false ;whether to use jam sandwiches automatically
- JamSandwichSlot := 4
- JamSandwichAmount := 0
- RodSlot := 1 ;which slot the rod is in (only used with BaitToggle on)
- ;KeyWait, Capslock, D
- ;MouseGetPos, eX, eY
- ;PixelGetColor, color, eX, eY
- ;MsgBox You pressed %color%
- F1::
- Toggle := !Toggle
- RodOut := false
- LastFish := 0
- If (Toggle and not BaitToggle and not JamToggle) {
- MouseMove, 500, 500
- Send {Click down}
- Sleep, 500
- Send {Click up}
- RodOut := true
- }
- While Toggle {
- WinGetPos ,,, W, H, Roblox
- PixelSearch, aX, aY, 636, 773, 1300, 840, 0xFFFFFFFF, 0, fast
- PixelSearch, bX, bY, 636, 773, 1300, 840, 0x6969FF, 0, fast
- If(aX and aY and bX and bY) {
- MouseMove, aX, aY
- if(bX < aX) {
- Send {Click down}
- } Else {
- Send {Click up}
- }
- RodOut := false
- LastFish := A_TickCount
- } Else If(A_TickCount - LastFish >= 1500) {
- If(BaitToggle and (A_TickCount - BaitTime) >= 120000 and (T2BaitAmount > 0 or T1BaitAmount > 0)) {
- BaitTime := A_TickCount
- MouseMove, 500, 500
- If(T2BaitAmount > 0) {
- Send %T2BaitSlot%
- T2BaitAmount := T2BaitAmount - 1
- Send {Click down}
- Sleep, 1100
- Send {Click up}
- }
- If(T1BaitAmount > 0 and (BaitSameTime or T2BaitAmount <= 0)) {
- Send %T1BaitSlot%
- T1BaitAmount := T1BaitAmount - 1
- Send {Click down}
- Sleep, 1100
- Send {Click up}
- }
- Send %RodSlot%
- RodOut := false
- } Else If(JamToggle and (A_TickCount - JamTime) >= 900000 and (JamSandwichAmount > 0)) {
- JamTime := A_TickCount
- MouseMove, 500, 500
- Send %JamSandwichSlot%
- Send {Click down}
- Sleep, 1100
- Send {Click up}
- Send %RodSlot%
- RodOut := false
- } Else If(!RodOut) {
- MouseMove, 500, 500
- Sleep, 1000
- Send {Click down}
- Sleep, 500
- Send {Click up}
- Sleep, 2000
- RodOut := true
- } Else {
- MouseMove, 500, 500
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement