Page 1 of 1

Why?

Posted: 2009-02-10 21:24:17
by Ever1x

Code: Select all

Sub Mining()
UO.DeleteJournal()
var x, y
var pick='0x0E85'
VAR ms1 = "There is no ore"
VAR ms2 = "You can't use"
VAR ms3 = "You loosen some rocks"
VAR ms4 = "location"
VAR ms5 = "Try mining"
VAR ms6 = "You can't see that"
for x=-2 to 2
for y=-2 to 2
try:
UO.Exec ("waittargettile "+" 1340 "+STR(UO.GEtX()+x)+" "+STR(UO.GetY()+y)+" 0")
UO.usetype(pick)
if UO.InJournal(ms1) OR UO.InJournal(ms2) OR UO.InJournal(ms3) OR UO.InJournal(ms4) OR UO.InJournal(ms5) OR UO.InJournal(ms6) then
wait (300)
UO.DeleteJournal()
goto try
uo.print("   End ")
end sub

Why doesn't this script work? Its shows unexisting line in error.
----
Edited: Oh and u can write in russian. I understand russian language.

Posted: 2009-02-10 22:36:03
by Successful

Code: Select all

if UO.InJournal(ms1) OR UO.InJournal(ms2) OR UO.InJournal(ms3) OR UO.InJournal(ms4) OR UO.InJournal(ms5) OR UO.InJournal(ms6) then
wait (300)
UO.DeleteJournal()
goto try
end if
uo.print("   End ")
end sub

Posted: 2009-02-10 23:00:51
by Millerbeer
If you open a cycle For operator, you should close it Next operator