Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Miner written by Wiw3K
- #Miner napisany przez Wiw3K
- #import
- from guide import *
- #Obrazki zmiany mapy
- mapup = exists(Pattern("1344919776609.png").similar(0.91).targetOffset(80,5))
- mapdown = exists(Pattern("1344919851078.png").similar(0.91).targetOffset(0,-35))
- mapleft = exists(Pattern("1344920092171.png").similar(0.94).targetOffset(-24,-70))
- mapright = exists(Pattern("1344920124703.png").similar(0.84).targetOffset(27,80))
- #Obrazki kopalni
- mineentrance = exists(Pattern("L.png").similar(0.84).targetOffset(-11,-2))
- mineexit = exists(Pattern("1344920782953.png").similar(0.86).targetOffset(0,-2))
- map0to1 = exists(Pattern("1344921279015.png").similar(0.88))
- map1to0 = exists(Pattern("flLv.png").similar(0.88).targetOffset(2,0))
- map0to2 = exists(Pattern("S3.png").similar(0.87).targetOffset(2,1))
- map2to0 = exists(Pattern("QSli.png").similar(0.88))
- map2to3 = exists(Pattern("935Fri.png").similar(0.94))
- map3to2 = exists(Pattern("I.png").similar(0.90).targetOffset(-2,-1))
- map2to4 = exists(Pattern("7.png").similar(0.89))
- map4to2 = exists(Pattern("kv.png").similar(0.90))
- map2to5 = exists(Pattern("fl.png").similar(0.87).targetOffset(-9,1))
- map5to2 = exists(Pattern("EiBii.png").similar(0.86).targetOffset(-2,-2))
- #Ore
- iron1 = exists(Pattern("1344920814078.png").similar(0.85))
- iron2 = exists(Pattern("1344920836578.png").similar(0.88))
- bronze1 = exists(Pattern("1344921572093.png").similar(0.91))
- bronze2 = exists(Pattern("1344921501625.png").similar(0.92))
- copper1 = exists(Pattern("1344921493468.png").similar(0.91))
- copper2 = exists(Pattern("1344921601437.png").similar(0.83))
- cobalt1 = exists(Pattern("1344921743937.png").similar(0.92))
- cobalt2 = exists(Pattern("1344921801281.png").similar(0.91))
- #Ustawienia
- hTime = 11
- mTime = 6
- mapdelay = 14
- inbank = False
- #Zaczynac w kopalni
- hMap = 0
- hFound = True
- hOnline = exists("Ff.png")
- #liczniki
- IrCount = 0
- Brcount = 0
- CoCount = 0
- CobCount = 0
- def GoToBank():
- inbank = True
- for i in range(20):
- if mapup:
- click(mapup)
- wait(mapdelay)
- for j in range(4):
- if mapleft:
- click(mapleft)
- wait(mapdelay)
- for k in range(3):
- if mapup:
- click(mapup)
- wait(mapdelay)
- def GoToMine():
- inbank = False
- for n in range(3):
- if mapdown:
- click(mapdown)
- wait(mapdelay)
- for n in range(4):
- if mapright:
- click(mapright)
- wait(mapdelay)
- for n in range(20):
- if mapdown:
- click(mapdown)
- wait(mapdelay)
- def nextMap():
- if hMap == 0:
- hMap = 1
- click(map0to1)
- wait(mTime)
- elif hMap == 1:
- hMap = 2
- click(map1to0)
- wait(mTime)
- elif hMap == 2:
- hMap = 3
- click(map1to2)
- wait(mTime)
- elif hMap == 3:
- hMap = 4
- click(map2to3)
- wait(mTime)
- elif hMap == 4:
- hMap = 5
- click(map3to2)
- wait(mTime)
- elif hMap == 5:
- hMap = 6
- click(map2to4)
- wait(mTime)
- elif hMap == 6:
- hMap = 7
- click(map4to2)
- wait(mTime)
- elif hMap == 7:
- hMap = 8
- click(map2to5)
- wait(mTime)
- elif map == 8:
- map = 9
- click(map5to2)
- wait(mTime)
- elif hMap == 9:
- hMap = 0
- click(map2to0)
- wait(mTime)
- hFound = True
- def Harvest():
- if iron1:
- hFound = True
- click(iron1)
- IrCount = IrCount + 1
- paste(iron1, 'Wydobywam ' + str(IrCount) + ' Iron')
- show(2)
- wait(hTime)
- elif iron2:
- hFound = True
- click(iron2)
- IrCount = IrCount + 1
- paste(iron2, 'Wydobywam ' + str(IrCount) + ' Iron')
- show(2)
- wait(hTime)
- elif bronze1:
- hFound = True
- click(bronze1)
- BrCount = BrCount + 1
- paste(bronze1, 'Wydobywam ' + str(BrCount) + ' Bronze')
- show(2)
- wait(hTime)
- elif bronze2:
- hFound = True
- click(bronze2)
- BrCount = BrCount + 1
- paste(bronze2, 'Wydobywam ' + str(BrCount) + ' Bronze')
- show(2)
- wait(hTime)
- elif copper1:
- hFound = True
- click(copper1)
- CoCount = CoCount + 1
- paste(copper1, 'Wydobywam ' + str(CoCount) + ' Copper')
- show(2)
- (hTime)
- elif copper2:
- hFound = True
- click(copper2)
- CoCount = CoCount + 1
- paste(copper2, 'Wydobywam ' + str(CoCount) + ' Copper')
- show(2)
- wait(hTime)
- elif cobalt1:
- hFound = True
- click(cobalt1)
- CobCount = CobCount + 1
- paste(copper2, 'Wydobywam ' + str(CobCount) + ' Cobalt')
- show(2)
- wait(hTime)
- elif cobalt2:
- hFound = True
- click(cobalt2)
- CobCount = CobCount + 1
- paste(copper2, 'Wydobywam ' + str(CobCount) + ' Cobalt')
- show(2)
- wait(hTime)
- else:
- hFound = False
- paste('Nie moge znalezc ore, zmieniam mape!')
- while hOnline:
- if hFound:
- Harvest()
- else:
- nextMap()
Advertisement
Add Comment
Please, Sign In to add comment