This script doesn't work dofus game help!
iron = Pattern(
iron2 = Pattern(
copper = Pattern(
copper2 = Pattern(
bronze = Pattern(
bronze2 = Pattern(
gamezone = Region(
myself = ""L.png""
waittime = 10
mineiron = True
minecopper = True
minebronze = True
minetin = True
global lastroom
global currentroom
global noore
def mine9_m23)():
global lastroom
global currentroom
global noore
if gamezone.
currentroom = 1
lastroom = 1
wait (2)
if gamezone.
currentroom = 2
if lastroom == 1:
wait (2)
else:
if currentroom == lastroom:
if gamezone.
currentroom = 3
if lastroom == 2:
wait (2)
else:
if currentroom == lastroom:
if gamezone.
currentroom = 4
if lastroom == 3:
wait (2)
else:
if currentroom == lastroom:
if gamezone.
currentroom = 5
if lastroom == 4:
wait (2)
else:
if currentroom == lastroom:
if gamezone.
currentroom = 6
if lastroom == 5:
else:
if currentroom == lastroom:
if gamezone.
currentroom = 1
if lastroom == 6:
gamezone.
def fightover():
if gamezone.
wait(2)
else:
pass
def fight(): #Fight module
while gamezone.
if gamezone.
if gamezone.
wait(1)
else:
if gamezone.
if gamezone.
def levelup():
if gamezone.
else:
pass
def letsmine(): #Mining module
global noore
if mineiron == True:
if gamezone.
noore = 0
if mineiron == True:
if gamezone.
noore = 0
#COPPER
if minecopper == True:
if gamezone.
noore = 0
if minecopper == True:
if gamezone.
noore = 0
#BRONZE
if minebronze == True:
if gamezone.
noore = 0
if minebronze == True:
if gamezone.
noore = 0
else:
noore = 1
pass
while gamezone.
letsmine() #Start mining module
fight() #run fight module
if gamezone.
fightover()
else:
if noore == 1:
pass
-------
This is a game script kind of mining bot, when i press ready it doesn't work and at the bottom i typed the errors
[error] Stopped
[error] Error message: IndentationError: ('unindent does not match any outer indentation level', ('C:\\Users\
-------
basicly what i am trying to do is; First of all, this is a java game and there are specific picture colors.
it should collect iron, copper, bronze etc. in each room then when there is no mine picture on wall it should jump to anothermap
then again should collect iron,copper,bronze etc. then jump other map
again...
then jump next
again
then go back to the last room
then go back last room
when i come back first room i need to repeat the actions over again...
sometimes when u collect mines monsters attack
or you levelup
to avoid error there are extra scripts inside
please help me to fix this
1280 x 800 pixel screen
-------
the original one was this, but i couldn't try i have no idea if the original works or not, when i tried to run it in random map it didn't, and i am not allow to go to the same map... :D
-------
#Ore images
iron = Pattern(
iron2 = Pattern(
copper = Pattern(
copper2 = Pattern(
bronze = Pattern(
bronze2 = Pattern(
cobalt = Pattern(
cobalt2 =Pattern(
manganese = Pattern(
manganese2 = Pattern(
tin =Pattern(
tin2 =Pattern(
silver = Pattern(
silver2 =Pattern(
bauxite = Pattern(
bauxite2 =Pattern(
gold = Pattern(
gold2 =Pattern(
#REGIONS: These help script work faster.
gamezone = Region(
ui = Region(
tooltipui = Region(
okbutton = Region(
closebutton = Region(
coordinate = Region(
#SETUP
myself = Pattern(
waittime = 10 #this set time between mining
skill1 = "3" #Choose skill 1 to kill protector. (Hotkey)
skill2 = "1" #Choose skill 2 to kill protector. (Hotkey)
skill3 = "7" #This one it will target on ground i use living chest. (Hotkey)
damageGear = "v" #hotkey for damage gear. If you arent carrying another gear with use same hotkey on both.
miningGear = "b" #hotkey for mining gear. If you arent carrying another gear with use same hotkey on both.
#Also check line 519 to select right mine. Current i have only make room changer to two mines. More coming later or you can make own ones.
#Select minable ores True= mine False= dont mine
mineiron = True #IRON require level 1
minecopper = True #COPPER requires level 10
minebronze = True #BRONZE requires level 20
minecobalt = True #COBALT requires level 30
minemanganese = True #MANGANESE requires level 40
minetin = True #TIN requires level 50
minesilver = False #SILVER requires level 60
minebauxite = False #BAUXITE requires level 70
minegold = False #GOLD requires level 80
#VARIABLES
global lastroom #Variable using moving to right room. Dont edit
global currentroom #Variable using moving to right room. Dont edit
global noore #Variable using moving to right room. Dont edit
def mine5_19(): #Room swap module
global lastroom
global currentroom
global noore
if gamezone.
currentroom = 1
lastroom = 1
if gamezone.
currentroom = 2
if lastroom == 1:
else:
if currentroom == lastroom:
if gamezone.
currentroom = 3
if lastroom == 2:
else:
if currentroom == lastroom:
if gamezone.
currentroom = 4
if lastroom == 3:
else:
if currentroom == lastroom:
if gamezone.
currentroom = 5
if lastroom == 4:
wait (2)
else:
if currentroom == lastroom:
if gamezone.
currentroom = 6
if lastroom == 5:
else:
if currentroom == lastroom:
if gamezone.
currentroom = 7
if lastroom == 6:
wait (2)
else:
if currentroom == lastroom:
if gamezone.
currentroom = 8
if lastroom == 7:
else:
if currentroom == lastroom:
if gamezone.
currentroom = 9
if lastroom == 8:
wait (2)
else:
if currentroom == lastroom:
if gamezone.
currentroom = 10
if lastroom == 9:
else:
if currentroom == lastroom:
if gamezone.
currentroom = 1
if lastroom == 10:
def mine22_22(): #Room swap module
global lastroom
global currentroom
global noore
if coordinate.
currentroom = 1
lastroom = 1
if coordinate.
currentroom = 2
if lastroom == 1:
else:
if currentroom == lastroom:
if coordinate.
currentroom = 3
if lastroom == 2:
else:
if currentroom == lastroom:
if coordinate.
currentroom = 4
if lastroom == 3:
else:
if currentroom == lastroom:
if coordinate.
currentroom = 5
if lastroom == 4:
else:
if currentroom == lastroom:
if coordinate.
currentroom = 6
if lastroom == 5:
else:
if currentroom == lastroom:
if coordinate.
currentroom = 7
if lastroom == 6:
else:
if currentroom == lastroom:
if coordinate.
currentroom = 8
if lastroom == 7:
else:
if currentroom == lastroom:
if coordinate.
currentroom = 9
if lastroom == 8:
else:
if currentroom == lastroom:
if coordinate.
currentroom = 10
if lastroom == 9:
else:
if currentroom == lastroom:
if coordinate.
currentroom = 11
if lastroom == 10:
else:
if currentroom == lastroom:
if coordinate.
currentroom = 12
if lastroom == 11:
else:
if currentroom == lastroom:
if coordinate.
currentroom = 13
if lastroom == 12:
else:
if currentroom == lastroom:
if coordinate.
currentroom = 14
if lastroom == 13:
else:
if currentroom == lastroom:
def fightover():
if closebutton.
wait(2) #wait 2 sec after figt over screen is closed
else:
pass
def fight(): #Fight module
while ui.exists(
if ui.exists(
wait(1) #Lets wait 1 sec to get gear on.
if ui.exists(
wait(1)
else: # if ready button dont exists that mean we are not in fight or we are allready clicked it.
if gamezone.
if gamezone.
def toolcheck(): #This will check if you have mining pick on hand.
if tooltipui.
noore = 1
else:
pass
def levelup():
if okbutton.
else:
pass
def letsmine(): #Mining module
global noore
if mineiron == True:
if gamezone.
noore = 0
if mineiron == True:
if gamezone.
noore = 0
#COPPER
if minecopper == True:
if gamezone.
noore = 0
if minecopper == True:
if gamezone.
noore = 0
#BRONZE
if minebronze == True:
if gamezone.
noore = 0
if minebronze == True:
if gamezone.
noore = 0
#COBALT
if minecobalt == True:
if gamezone.
noore = 0
if minecobalt == True:
if gamezone.
noore = 0
#MANGANESE
if minemanganese == True:
if gamezone.
noore = 0
if minemanganese == True:
if gamezone.
noore = 0
else:
noore = 1
pass
#TIN
if minetin == True:
if gamezone.
noore = 0
if minetin == True:
if gamezone.
noore = 0
else:
noore = 1
pass
#SILVER
if minesilver == True:
if gamezone.
noore = 0
if minesilver == True:
if gamezone.
noore = 0
else:
noore = 1
pass
#BAUXITE
if minebauxite == True:
if gamezone.
noore = 0
if minebauxite == True:
if gamezone.
noore = 0
else:
noore = 1
pass
#GOLD
if minegold == True:
if gamezone.
noore = 0
if minegold == True:
if gamezone.
noore = 0
else:
noore = 1
pass
while ui.exists(
letsmine() #Start mining module
fight() #run fight module
if closebutton.
fightover() #call fightover module and close it.
else:
if noore == 1: #if no ore founded call room changer module.
#Choose where you are mining and add comment symbol (#) front of other modules.
pass
-------
this is the original one
i also upload all file with the pictures if you need to see you can download
http://
Thank you
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- SikuliX Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask george for more information if necessary.