Mining Error.

Ask for scripts here

Moderators: Murderator+, Murderator

Post Reply
isaking
Posts: 5
Joined: 2012-04-30 20:53:26

Mining Error.

Post by isaking »

Hey guyz.

I got a problem with my mining script.

Working good, but, after a time doing a error. "Unhandled exception in parser"


sub Mining()
var x,y,z, n
VAR LastTimer
UO.Set('finddistance','2')
n=0
z=UO.GetZ("self")
for x=-2 to 2
for y=-2 to 2
UO.Print(str(x)+" "+str(y))
Repeat
if UO.InJournal('TORMOZ') then
pause()
endif
UO.DeleteJournal()
UO.Warmode("0")
UO.WaitTargetTile("1341",STR(UO.GetX()+x),STR(UO.GetY()+Y),str(z))
UO.UseType('0x0E85')
LastTimer=UO.Timer()
Repeat
wait(500)
Until UO.InJournal("You put") or UO.InJournal("can't see") or UO.InJournal("heavy") or UO.InJournal("stop") or UO.InJournal("location") or UO.InJournal("no ore") or UO.InJournal("but fail") or UO.InJournal("far away") or UO.InJournal("in rock") or UO.InJournal("must wait") or UO.InJournal("nothing") or UO.InJournal("elsewhere") or UO.InJournal("where it") OR UO.Timer()>LastTimer+200
if UO.InJournal("You put") then
n=0
else
n=n+1
endif
Until UO.InJournal("nothing") or UO.InJournal("elsewhere") or UO.InJournal("no ore here") or UO.InJournal("location") or UO.InJournal("far away") or UO.InJournal("in rock") or UO.InJournal("where it") or n>=5
next
next

goto start

end sub




Anyone know wheres is the error and how can repair it? tyvm.
Juicy Fruit
Posts: 820
Joined: 2011-06-11 19:54:23

Re: Mining Error.

Post by Juicy Fruit »

Where label 'start' ?

Code: Select all

...
n=0
z=UO.GetZ("self")
start: #<<<<< insert start here.
for x=-2 to 2
for y=-2 to 2
...
Post Reply