Yoko

All sides of Injection
It is currently 2025-12-23 07:08:10

All times are UTC+02:00




Post new topic  Reply to topic  [ 2 posts ] 
Author Message
PostPosted: 2008-02-10 21:38:09 
Offline

Joined: 2004-06-04 21:04:14
Posts: 97
привет. есть скрипт. но то хочет\ не хочет поднимать кучку руды 1 шт. :roll: думаю ошибка где-то с кучками UO.GetQuantity :roll:
Code:
sub grab_oreN()
  VAR TempX,TempY,i,Exit, Exit1, ConTainer, j
   VAR Index=14 ; количество элементов массива
   DIM Ore[5], Colors[20]
uo.exec('set finddistance 4')

   Ore[0]=0x19B9 ; 4 and more ore
   Ore[1]=0x19B7 ; 1 ore
   Ore[2]=0x19BA ; 2 ore
   Ore[3]=0x19B8 ; 3 ore

For i=0 to 3
Exit=0
While Exit<>1
UO.FindType(Ore[i],-1,'ground')
If UO.GetQuantity('finditem')>0 then
UO.Grab('0','finditem')
CheckLag()
Wait(1000)
uo.ignore('finditem')
Else
Exit=1
Endif
Wend
Next
uo.ignorereset()
end sub


Top
   
PostPosted: 2008-02-10 22:00:29 
Offline
Expert!
User avatar

Joined: 2006-02-07 08:51:40
Posts: 1348
Location: г. Старый Оскол
Haxor wrote:
привет. есть скрипт. но то хочет\ не хочет поднимать кучку руды 1 шт. :roll: думаю ошибка где-то с кучками UO.GetQuantity :roll:


Вместо:
Code:
If UO.GetQuantity('finditem')>0 then


Вставь:
Code:
If UO.FindCount()>0 then


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

All times are UTC+02:00


Who is online

Users browsing this forum: Bing [Bot] and 3 guests


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