Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //requires osbuddy color settings on second notch + windowed mode
- CheckInventory28thSlot(){
- PixelSearch, Q1, Q2, 654, 466, 675, 484, 0x2F190F, 1, RGB Fast
- if (ErrorLevel = 0){ ;Found in 27th Slot
- ItemDropper()
- GoTo, CheckOre1
- }else{
- PixelSearch, X1, Y1, 696, 466, 719, 485, 0x2F190F, 1, RGB Fast
- if (ErrorLevel = 0){
- ItemDropper()
- GoTo, CheckOre1
- }else{
- GoTo, CheckOre1
- }
- }
- }
- CheckOre1:
- CheckInventory28thSlot()
- PixelSearch, X2, Y2, 246, 162, 268, 178, 0x402217, 1, RGB Fast
- if (ErrorLevel = 1){
- GoTo, CheckOre2
- }else{
- Random, Var1, 246, 268
- Random, Var2, 162, 178
- MouseMove, %Var1%, %Var2%
- sleep 50
- click left
- looping := true
- while(looping = true){
- PixelSearch, E1, E2, 490, 67, 519, 176, 0x000000, 1, RGB Fast
- if(ErrorLevel = 0){
- looping := false
- }else{
- sleep 100
- }
- }
- }
- CheckOre2:
- CheckInventory28thSlot()
- sleep 100
- PixelSearch, X3, X4, 246, 222, 272, 242, 0x22110C, 1, RGB Fast
- if (ErrorLevel = 1){
- GoTo, CheckOre1
- }else{
- Random, Var3, 246, 272
- Random, Var4, 222, 242
- MouseMove, %Var3%, %Var4%
- sleep 50
- click left
- looping := true
- while(looping = true){
- PixelSearch, E1, E2, 490, 67, 519, 176, 0x000000, 1, RGB Fast
- if(ErrorLevel = 0){
- looping := false
- }else{
- sleep 100
- }
- }
- }
- CheckOre3:
- CheckInventory28thSlot()
- sleep 100
- PixelSearch, X7, X8, 246, 222, 272, 242, 0x321411, 1, RGB Fast
- if (ErrorLevel = 1){
- GoTo, CheckOre1
- }else{
- Random, Var5, 246, 272
- Random, Var6, 222, 242
- MouseMove, %Var5%, %Var6%
- sleep 50
- click left
- looping := true
- while(looping = true){
- PixelSearch, E1, E2, 490, 67, 519, 176, 0x000000, 1, RGB Fast
- if(ErrorLevel = 0){
- looping := false
- }else{
- sleep 100
- }
- }
- }
- GoTo, CheckOre1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement