Yoko

All sides of Injection
It is currently 2026-01-16 21:26:45

All times are UTC+02:00




Post new topic  Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Why?
PostPosted: 2009-02-10 21:24:17 
Offline

Joined: 2009-02-09 17:12:23
Posts: 38
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.


Top
   
 Post subject:
PostPosted: 2009-02-10 22:36:03 
Offline

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


Top
   
 Post subject:
PostPosted: 2009-02-10 23:00:51 
Offline
User avatar

Joined: 2008-09-12 05:07:34
Posts: 247
If you open a cycle For operator, you should close it Next operator


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 3 posts ] 

All times are UTC+02:00


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Limited