← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #188721]: This script doesn't work dofus game help!

 

Question #188721 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/188721

george posted a new comment:
well the problem is i don't know how to set script...

there is a picture ''a mine'' but there are 2-3 of same mine in one map

when i set the script like that:
--------------------------------------
copper = Pattern("nA-3.png").similar(0.91)    
copper2 = Pattern("1329980670115-2.png").similar(0.89)    

#copper
while copper:
    click(Pattern("nA-2.png").similar(0.91))
    copper = exists(Pattern("nA-2.png").similar(0.91))
#copper2
while copper2:
    click(Pattern("1329980670115-3.png").similar(0.89))
    copper2 = exists(Pattern("1329980670115-3.png").similar(0.89))
------------------------------------------------------------------------------

it is going like first seeking for cooper and another cooper and another cooper then cooper2 and cooper2 and cooper2
and if it misses any cooper version 1 it doesn't go back to seek for it....

and how can i repeat the script actually it is already set i think
-----------------------------------------------
while gamezone.exists("1330043783741.png",0): #while this image on screen it keep looping this.(resim degisti/ne oldugunu bilmiyorum?)
    letsmine() #Start mining module
    fight() #run fight module
    if gamezone.exists(Pattern("Close-2.png").similar(0.86), 0):
        fightover()
         else:
        if noore == 1:
            mine9_m23()

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.