Yoko

All sides of Injection
It is currently 2025-12-22 20:44:16

All times are UTC+02:00




Post new topic  Reply to topic  [ 3 posts ] 
Author Message
PostPosted: 2008-03-13 11:23:14 
Offline

Joined: 2008-03-12 14:35:20
Posts: 38
помогите найти ошибку

sub mining()
var mx, my, mz, i, j

na4alo:
mx = UO.GetX("self")
my = UO.GetY("self")
mz = UO.GetZ("self")

UO.DeleteJournal()

for i = mx-2 to mx+2
for j = my -2 to my+2

UO.Print("Копаем в координатах: "+str(mx-i)+" "+str(my-j))
while not UO.InJournal("0xAD00") and not UO.InJournal("0xA866") and not UO.InJournal("0xA20D")
UO.DeleteJournal()

if uo.waiting() then
uo.canceltarget()
endif

UO.Waittargettile("0", str(i), str(j), str(mz))
UO.Usetype("Pickaxe")
while not UO.InJournal("0xACF9") and not UO.InJournal("0xAD03")
wait (500)

wend
wend

UO.DeleteJournal()
goto na4alo
end sub


Top
   
PostPosted: 2008-03-13 11:28:19 
Offline
Expert!
User avatar

Joined: 2006-02-07 08:51:40
Posts: 1348
Location: г. Старый Оскол
altukhov wrote:
помогите найти ошибку


Code:
sub mining() 
  var mx, my, mz, i, j

  mx = UO.GetX("self") 
  my = UO.GetY("self")
  mz = UO.GetZ("self")

  UO.DeleteJournal()

  for i = mx-2 to mx+2
    for j = my -2 to my+2

    UO.Print("Копаем в координатах: "+str(mx-i)+" "+str(my-j))
      while not UO.InJournal("0xAD00") and not UO.InJournal("0xA866") and not UO.InJournal("0xA20D")
        UO.DeleteJournal()
        if uo.waiting() then
          uo.canceltarget()
        endif
        UO.Waittargettile("0", str(i), str(j), str(mz))
        UO.Usetype("Pickaxe")
        while not UO.InJournal("0xACF9") and not UO.InJournal("0xAD03")
          wait (500)
        wend
      wend
      UO.DeleteJournal()
    next
  next
end sub


Top
   
 Post subject:
PostPosted: 2008-03-13 11:34:29 
Offline

Joined: 2008-03-12 14:35:20
Posts: 38
Спасибо работает.


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:  
Powered by phpBB® Forum Software © phpBB Limited