Yoko
http://forum.yoko.com.ua/

Mining Error.
http://forum.yoko.com.ua/viewtopic.php?f=17&t=17007
Page 1 of 1

Author:  isaking [ 2012-05-12 16:19:07 ]
Post subject:  Mining Error.

Hey guyz.

I got a problem with my mining script.

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


Quote:
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.

Author:  Juicy Fruit [ 2012-05-12 16:59:04 ]
Post subject:  Re: Mining Error.

Where label 'start' ?

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

Page 1 of 1 All times are UTC+02:00
Powered by phpBB® Forum Software © phpBB Limited
https://www.phpbb.com/