Help with mining script

Anything and all.

Moderators: Murderator+, Murderator

Post Reply
Secret
Posts: 2
Joined: 2004-06-03 19:09:20

Help with mining script

Post by Secret »

sub mina()

var steps
steps = 0
start:


uo.exec("waittargetobject rune;cast Recall")#till 348 1447 1
wait(3500)
if uo.injournal("The spell fizzles.") == TRUE then
uo.deletejournal()
goto start
endif

#################runda 1
start1:
while steps < 12


if UO.Life < 100 OR uo.injournal("You see") == TRUE OR uo.injournal("Por Ort Grav") == TRUE OR uo.injournal("Kal Vas Flam") == TRUE OR uo.injournal("An Mani") == TRUE then
uo.exec("waittargetobject hem;cast Recall")
wait(3500)
uo.deletejournal()
goto ojoj
endif

if uo.weight > 420 then
wait(500)
goto melt1
endif

wait(200)
uo.press(119) ## LastObject - WaitForTarget - TargetSelf f12
wait(500)
if uo.injournal("There is no ore here to mine.") == TRUE then
wait(200)
uo.press(34) ## Walk east
uo.deletejournal()
wait(200)
steps = steps + 1
goto start1
else
wait(4000)
endif
goto start1
wait(200)
wend
steps = 0


#################runda 2
start2:
while steps < 2

if UO.Life < 100 OR uo.injournal("Por Ort Grav") == TRUE OR uo.injournal("Kal Vas Flam") == TRUE OR uo.injournal("An Mani") == TRUE OR uo.injournal("You see") == TRUE then
uo.exec("waittargetobject hem;cast Recall")
wait(3500)
uo.deletejournal()
goto ojoj
endif

if uo.weight > 420 then
wait(500)
goto melt1
endif

wait(200)
uo.press(119) ## LastObject - WaitForTarget - TargetSelf f12
wait(500)
if uo.injournal("There is no ore here to mine.") == TRUE then
wait(200)
uo.press(33) ## Walk east
uo.deletejournal()
wait(200)
steps = steps + 1
goto start2
else

wait(4000)
endif
goto start2
wait(200)
wend

steps = 0

#################runda 3
start3:
while steps < 13

if UO.Life < 100 OR uo.injournal("Por Ort Grav") == TRUE OR uo.injournal("Kal Vas Flam") == TRUE OR uo.injournal("An Mani") == TRUE OR uo.injournal("You see") == TRUE then
uo.exec("waittargetobject hem;cast Recall")
wait(3500)
uo.deletejournal()
goto ojoj
endif

if uo.weight > 420 then
wait(500)
goto melt1
endif

wait(200)
uo.press(119) ## LastObject - WaitForTarget - TargetSelf f12
wait(500)
if uo.injournal("There is no ore here to mine.") == TRUE then
wait(200)
uo.press(36) ## Walk east
uo.deletejournal()
wait(200)
steps = steps + 1
goto start3
else
wait(4000)
endif
goto start3
wait(200)
wend

steps = 0


#################runda 4
start4:
while steps < 2

if UO.Life < 100 OR uo.injournal("Por Ort Grav") == TRUE OR uo.injournal("Kal Vas Flam") == TRUE OR uo.injournal("An Mani") == TRUE OR uo.injournal("You see") == TRUE then
uo.exec("waittargetobject hem;cast Recall")
wait(3500)
uo.deletejournal()
goto ojoj
endif

if uo.weight > 420 then
wait(500)
goto melt1
endif

wait(200)
uo.press(119) ## LastObject - WaitForTarget - TargetSelf f12
wait(500)
if uo.injournal("There is no ore here to mine.") == TRUE then
wait(200)
uo.press(33) ## Walk east
uo.deletejournal()
wait(200)
steps = steps + 1
goto start4
else
wait(4000)
endif
goto start4
wait(200)
wend

steps = 0

#################runda 5
start5:
while steps < 15

if UO.Life < 100 OR uo.injournal("Por Ort Grav") == TRUE OR uo.injournal("Kal Vas Flam") == TRUE OR uo.injournal("An Mani") == TRUE OR uo.injournal("You see") == TRUE then
uo.exec("waittargetobject hem;cast Recall")
wait(3500)
uo.deletejournal()
goto ojoj
endif

if uo.weight > 420 then
wait(500)
goto melt1
endif

wait(200)
uo.press(119) ## LastObject - WaitForTarget - TargetSelf f12
wait(500)
if uo.injournal("There is no ore here to mine.") == TRUE then
wait(200)
uo.press(34) ## Walk east
uo.deletejournal()
wait(200)
steps = steps + 1
goto start5
else
wait(4000)
endif
goto start5
wait(200)
wend

steps = 0

#################runda 6
start6:
while steps < 2

if UO.Life < 100 OR uo.injournal("Por Ort Grav") == TRUE OR uo.injournal("Kal Vas Flam") == TRUE OR uo.injournal("An Mani") == TRUE OR uo.injournal("You see") == TRUE then
uo.exec("waittargetobject hem;cast Recall")
wait(3500)
uo.deletejournal()
goto ojoj
endif

if uo.weight > 420 then
wait(500)
goto melt1
endif

wait(200)
uo.press(119) ## LastObject - WaitForTarget - TargetSelf f12
wait(500)
if uo.injournal("There is no ore here to mine.") == TRUE then
wait(200)
uo.press(33) ## Walk east
uo.deletejournal()
wait(200)
steps = steps + 1
goto start6
else
wait(4000)
endif
goto start6
wait(200)
wend

steps = 0

#################runda 7
start7:
while steps < 18

if uo.weight > 420 then
wait(500)
goto melt1
endif

if UO.Life < 100 OR uo.injournal("Por Ort Grav") == TRUE OR uo.injournal("Kal Vas Flam") == TRUE OR uo.injournal("An Mani") == TRUE OR uo.injournal("You see") == TRUE then
uo.exec("waittargetobject hem;cast Recall")
wait(3500)
uo.deletejournal()
goto ojoj
endif

wait(200)
uo.press(119) ## LastObject - WaitForTarget - TargetSelf f12
wait(500)
if uo.injournal("There is no ore here to mine.") == TRUE then
wait(200)
uo.press(36) ## Walk east
uo.deletejournal()
wait(200)
steps = steps + 1
goto start7
else
wait(4000)
endif
goto start7
wait(200)
wend


steps = 0

#################runda 8
start8:
while steps < 2

if UO.Life < 100 OR uo.injournal("Por Ort Grav") == TRUE OR uo.injournal("Kal Vas Flam") == TRUE OR uo.injournal("An Mani") == TRUE OR uo.injournal("You see") == TRUE then
uo.exec("waittargetobject hem;cast Recall")
wait(3500)
uo.deletejournal()
goto ojoj
endif

if uo.weight > 420 then
wait(500)
goto melt1
endif

wait(200)
uo.press(119) ## LastObject - WaitForTarget - TargetSelf f12
wait(500)
if uo.injournal("There is no ore here to mine.") == TRUE then
wait(200)
uo.press(33) ## Walk east
uo.deletejournal()
wait(200)
steps = steps + 1
goto start8
else
wait(4000)
endif
goto start8
wait(200)
wend

steps = 0

#################runda 9
start9:
while steps < 2

if UO.Life < 100 OR uo.injournal("Por Ort Grav") == TRUE OR uo.injournal("Kal Vas Flam") == TRUE OR uo.injournal("An Mani") == TRUE OR uo.injournal("You see") == TRUE then
uo.exec("waittargetobject hem;cast Recall")
wait(3500)
uo.deletejournal()
goto ojoj
endif

if uo.weight > 420 then
wait(500)
goto melt1
endif

wait(200)
uo.press(119) ## LastObject - WaitForTarget - TargetSelf f12
wait(500)
if uo.injournal("There is no ore here to mine.") == TRUE then
wait(200)
uo.press(33) ## Walk east
uo.deletejournal()
wait(200)
steps = steps + 1
goto start9
else
wait(4000)
endif
goto start9
wait(200)
wend

#################runda 10
start10:
while steps < 20

if UO.Life < 100 OR uo.injournal("Por Ort Grav") == TRUE OR uo.injournal("Kal Vas Flam") == TRUE OR uo.injournal("An Mani") == TRUE OR uo.injournal("You see") == TRUE then
uo.exec("waittargetobject hem;cast Recall")
wait(3500)
uo.deletejournal()
goto ojoj
endif

if uo.weight > 420 then
wait(500)
goto melt1
endif

wait(200)
uo.press(119) ## LastObject - WaitForTarget - TargetSelf f12
wait(500)
if uo.injournal("There is no ore here to mine.") == TRUE then
wait(200)
uo.press(34) ## Walk east
uo.deletejournal()
wait(200)
steps = steps + 1
goto start10
else
wait(4000)
endif
goto start10
wait(200)
wend
#############SMÄLLTA
melt1:
steps = 0
uo.exec("waittargetobject hem;cast Recall")
wait(3500)
if uo.injournal("The spell fizzles.") == TRUE then
uo.deletejournal()
goto melt1
endif
while uo.count("0x19b9") >= 1 ## 3+
uo.usetype("0x19b9")
wait(500)
uo.waittargettype("ingots")
uo.drop()
wait(500)
uo.drag(332,235,351,220)
wait(500)
uo.say("/resync")
wend
goto recall2




ojoj:
while uo.count("0x19b9") >= 1 ## 3+
uo.usetype("0x19b9")
wait(500)
uo.waittargettype("ingots")
uo.drop()
wait(500)
uo.drag(332,235,351,220)
wait(500)
uo.say("/resync")
wend
wait(20000)
goto recall2


########################################
########################################
########################################
########################################
########################################

recall2:

uo.exec("waittargetobject rune2;cast Recall")#till 348 1447 1
wait(3500)
if uo.injournal("The spell fizzles.") == TRUE then
uo.deletejournal()
goto recall2:
endif

#################runda 1
gruve1:
while steps < 8


if UO.Life < 100 OR uo.injournal("You see") == TRUE OR uo.injournal("Por Ort Grav") == TRUE OR uo.injournal("Kal Vas Flam") == TRUE OR uo.injournal("An Mani") == TRUE then
uo.exec("waittargetobject hem;cast Recall")
wait(3500)
uo.deletejournal()
goto ojoj2
endif

if uo.weight > 420 then
wait(500)
goto melt2
endif

wait(200)
uo.press(119) ## LastObject - WaitForTarget - TargetSelf f12
wait(500)
if uo.injournal("There is no ore here to mine.") == TRUE then
wait(200)
uo.press(35) ## Walk east
uo.deletejournal()
wait(200)
steps = steps + 1
goto gruve1
else
wait(4000)
endif
goto gruve1
wait(200)
wend
steps = 0


#################runda 2
gruve2:
while steps < 2

if UO.Life < 100 OR uo.injournal("Por Ort Grav") == TRUE OR uo.injournal("Kal Vas Flam") == TRUE OR uo.injournal("An Mani") == TRUE OR uo.injournal("You see") == TRUE then
uo.exec("waittargetobject hem;cast Recall")
wait(3500)
uo.deletejournal()
goto ojoj2
endif

if uo.weight > 420 then
wait(500)
goto melt2
endif

wait(200)
uo.press(119) ## LastObject - WaitForTarget - TargetSelf f12
wait(500)
if uo.injournal("There is no ore here to mine.") == TRUE then
wait(200)
uo.press(34) ## Walk east
uo.deletejournal()
wait(200)
steps = steps + 1
goto gruve2
else

wait(4000)
endif
goto gruve2
wait(200)
wend

steps = 0

#################runda 3
gruve3:
while steps < 8

if UO.Life < 100 OR uo.injournal("Por Ort Grav") == TRUE OR uo.injournal("Kal Vas Flam") == TRUE OR uo.injournal("An Mani") == TRUE OR uo.injournal("You see") == TRUE then
uo.exec("waittargetobject hem;cast Recall")
wait(3500)
uo.deletejournal()
goto ojoj2
endif

if uo.weight > 420 then
wait(500)
goto melt2
endif

wait(200)
uo.press(119) ## LastObject - WaitForTarget - TargetSelf f12
wait(500)
if uo.injournal("There is no ore here to mine.") == TRUE then
wait(200)
uo.press(33) ## Walk east
uo.deletejournal()
wait(200)
steps = steps + 1
goto gruve3
else
wait(4000)
endif
goto gruve3
wait(200)
wend

steps = 0


#################runda 4
gruve4:
while steps < 2

if UO.Life < 100 OR uo.injournal("Por Ort Grav") == TRUE OR uo.injournal("Kal Vas Flam") == TRUE OR uo.injournal("An Mani") == TRUE OR uo.injournal("You see") == TRUE then
uo.exec("waittargetobject hem;cast Recall")
wait(3500)
uo.deletejournal()
goto ojoj2
endif

if uo.weight > 420 then
wait(500)
goto melt2
endif

wait(200)
uo.press(119) ## LastObject - WaitForTarget - TargetSelf f12
wait(500)
if uo.injournal("There is no ore here to mine.") == TRUE then
wait(200)
uo.press(34) ## Walk east
uo.deletejournal()
wait(200)
steps = steps + 1
goto gruve4
else
wait(4000)
endif
goto gruve4
wait(200)
wend

steps = 0

#################runda 5
gruve5:
while steps < 13

if UO.Life < 100 OR uo.injournal("Por Ort Grav") == TRUE OR uo.injournal("Kal Vas Flam") == TRUE OR uo.injournal("An Mani") == TRUE OR uo.injournal("You see") == TRUE then
uo.exec("waittargetobject hem;cast Recall")
wait(3500)
uo.deletejournal()
goto ojoj2
endif

if uo.weight > 420 then
wait(500)
goto melt2
endif

wait(200)
uo.press(119) ## LastObject - WaitForTarget - TargetSelf f12
wait(500)
if uo.injournal("There is no ore here to mine.") == TRUE then
wait(200)
uo.press(35) ## Walk east
uo.deletejournal()
wait(200)
steps = steps + 1
goto gruve5
else
wait(4000)
endif
goto gruve5
wait(200)
wend

steps = 0

#################runda 6
gruve6:
while steps < 2

if UO.Life < 100 OR uo.injournal("Por Ort Grav") == TRUE OR uo.injournal("Kal Vas Flam") == TRUE OR uo.injournal("An Mani") == TRUE OR uo.injournal("You see") == TRUE then
uo.exec("waittargetobject hem;cast Recall")
wait(3500)
uo.deletejournal()
goto ojoj2
endif

if uo.weight > 420 then
wait(500)
goto melt2
endif

wait(200)
uo.press(119) ## LastObject - WaitForTarget - TargetSelf f12
wait(500)
if uo.injournal("There is no ore here to mine.") == TRUE then
wait(200)
uo.press(34) ## Walk east
uo.deletejournal()
wait(200)
steps = steps + 1
goto gruve6
else
wait(4000)
endif
goto gruve6
wait(200)
wend

steps = 0

#################runda 7
gruve7:
while steps < 13

if uo.weight > 420 then
wait(500)
goto melt2
endif

if UO.Life < 100 OR uo.injournal("Por Ort Grav") == TRUE OR uo.injournal("Kal Vas Flam") == TRUE OR uo.injournal("An Mani") == TRUE OR uo.injournal("You see") == TRUE then
uo.exec("waittargetobject hem;cast Recall")
wait(3500)
uo.deletejournal()
goto ojoj2
endif

wait(200)
uo.press(119) ## LastObject - WaitForTarget - TargetSelf f12
wait(500)
if uo.injournal("There is no ore here to mine.") == TRUE then
wait(200)
uo.press(33) ## Walk east
uo.deletejournal()
wait(200)
steps = steps + 1
goto gruve7
else
wait(4000)
endif
goto gruve7
wait(200)
wend


steps = 0

#################runda 8
gruve8:
while steps < 2

if UO.Life < 100 OR uo.injournal("Por Ort Grav") == TRUE OR uo.injournal("Kal Vas Flam") == TRUE OR uo.injournal("An Mani") == TRUE OR uo.injournal("You see") == TRUE then
uo.exec("waittargetobject hem;cast Recall")
wait(3500)
uo.deletejournal()
goto ojoj2
endif

if uo.weight > 420 then
wait(500)
goto melt2
endif

wait(200)
uo.press(119) ## LastObject - WaitForTarget - TargetSelf f12
wait(500)
if uo.injournal("There is no ore here to mine.") == TRUE then
wait(200)
uo.press(34) ## Walk east
uo.deletejournal()
wait(200)
steps = steps + 1
goto gruve8
else
wait(4000)
endif
goto gruve8
wait(200)
wend

steps = 0

#################runda 9
gruve9:
while steps < 14

if UO.Life < 100 OR uo.injournal("Por Ort Grav") == TRUE OR uo.injournal("Kal Vas Flam") == TRUE OR uo.injournal("An Mani") == TRUE OR uo.injournal("You see") == TRUE then
uo.exec("waittargetobject hem;cast Recall")
wait(3500)
uo.deletejournal()
goto ojoj2
endif

if uo.weight > 420 then
wait(500)
goto melt2
endif

wait(200)
uo.press(119) ## LastObject - WaitForTarget - TargetSelf f12
wait(500)
if uo.injournal("There is no ore here to mine.") == TRUE then
wait(200)
uo.press(35) ## Walk east
uo.deletejournal()
wait(200)
steps = steps + 1
goto gruve9
else
wait(4000)
endif
goto gruve9
wait(200)
wend

#################runda 10
gruve10:
while steps < 2

if UO.Life < 100 OR uo.injournal("Por Ort Grav") == TRUE OR uo.injournal("Kal Vas Flam") == TRUE OR uo.injournal("An Mani") == TRUE OR uo.injournal("You see") == TRUE then
uo.exec("waittargetobject hem;cast Recall")
wait(3500)
uo.deletejournal()
goto ojoj2
endif

if uo.weight > 420 then
wait(500)
goto melt2
endif

wait(200)
uo.press(119) ## LastObject - WaitForTarget - TargetSelf f12
wait(500)
if uo.injournal("There is no ore here to mine.") == TRUE then
wait(200)
uo.press(34) ## Walk east
uo.deletejournal()
wait(200)
steps = steps + 1
goto gruve10
else
wait(4000)
endif
goto gruve10
wait(200)
wend




melt2:
steps = 0
uo.exec("waittargetobject hem;cast Recall")
wait(3500)
if uo.injournal("The spell fizzles.") == TRUE then
uo.deletejournal()
goto melt1
endif
while uo.count("0x19b9") >= 1 ## 3+
uo.usetype("0x19b9")
wait(500)
uo.waittargettype("ingots")
uo.drop()
wait(500)
uo.drag(332,235,351,220)
wait(500)
uo.say("/resync")
wend
goto start




ojoj2:
while uo.count("0x19b9") >= 1 ## 3+
uo.usetype("0x19b9")
wait(500)
uo.waittargettype("ingots")
uo.drop()
wait(500)
uo.drag(332,235,351,220)
wait(500)
uo.say("/resync")
wend
wait(20000)
goto start
end sub


Ok i was just woundring, what did i miss? cause it wont mine.
maybe i forgot to add pickaxe somewhere? in that case, where?
-=M@rTin=-
Posts: 47
Joined: 2004-05-19 04:47:11
Location: MSK, RU, TheМля
Contact:

Post by -=M@rTin=- »

do you know that you are crazy-man?..
Post Reply