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

Why?
http://forum.yoko.com.ua/viewtopic.php?f=20&t=14395
Page 1 of 1

Author:  Ever1x [ 2009-02-10 21:24:17 ]
Post subject:  Why?

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

Author:  Successful [ 2009-02-10 22:36:03 ]
Post subject: 

Code:
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

Author:  Millerbeer [ 2009-02-10 23:00:51 ]
Post subject: 

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

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