Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- break := false
- PlantFarming() {
- global break
- Click 809 652 ; Select Breeding Cave
- Sleep 550
- Click 699 875 ; Select Retry
- Sleep 360
- Click 899 869 ; Confirm Breed
- Sleep 4000
- WaitForColour(0xFF1111, 945, 430, wait:=25, lookForColour:=true)
- Click 955 552 ; Click on Cave
- Sleep 450
- Click 939 825 ; Place in Nursery
- Sleep 500
- Click 1098 437 ; Click on Nursery
- Sleep 2500
- ; change coords depending on egg slot
- ; No Donation Board - 1: (,), 2: (,), 3: (278,826), 4: (257,846), 5: (80,846), 6:(,)
- ; Donation Board - 1: (,), 2: (475,826), 3: (433,849), 4: (400,865), 5: (238,867), 6:(,)
- WaitForColour(0x22BB11, 80, 846, wait:=25, lookForColour:=false)
- ; change first number depending on which nursery slot egg goes into (numbered from right)
- ; No Donation Board - 1: 721, 2: 523, 3: 366, 4: 336, 5: 152, 6:
- ; Donation Board - 1: , 2: 555, 3: 507, 4: 471, 5: 302, 6:
- Click 152 904 ; Click on Egg
- Sleep 350
- Click 1199 645 ; Click Sell
- Sleep 360
- Click 789 843 ; Click Yes
- Sleep 360
- }
- WaitForColour(colour, X, Y, wait:=50, lookForColour:=true) {
- if (lookForColour)
- {
- Loop {
- PixelGetColor, cRGB, %X%, %Y%, RGB
- if (cRGB = colour) ; might need to update this if the heart isn't detected
- {
- Break
- }
- Sleep %wait%
- }
- } else {
- Loop {
- PixelGetColor, cRGB, %X%, %Y%, RGB
- if (cRGB != colour)
- {
- Break
- }
- Sleep %wait%
- }
- }
- return
- }
- +x::
- MouseGetPos, PosX, PosY
- PixelGetColor, cRGB , %PosX%, %PosY%,RGB
- MsgBox, %cRGB% "`n" %PosX% ", " %PosY%
- return
- +p::
- break := false
- Loop {
- PlantFarming()
- if break
- Break
- }
- return
- +o::
- break := true
- return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement