Why?

Anything and all.

Moderators: Murderator+, Murderator

Post Reply
Ever1x
Posts: 38
Joined: 2009-02-09 17:12:23

Why?

Post 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.
Successful
Posts: 174
Joined: 2008-12-13 00:00:15

Post 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
Millerbeer
Posts: 247
Joined: 2008-09-12 05:07:34

Post by Millerbeer »

If you open a cycle For operator, you should close it Next operator
Post Reply