Yoko

All sides of Injection
It is currently 2025-12-27 05:51:51

All times are UTC+02:00




Post new topic  Reply to topic  [ 2 posts ] 
Author Message
PostPosted: 2005-06-21 04:31:18 
Offline

Joined: 2005-06-16 05:57:28
Posts: 3
я написал следующий скрипт
Code:
sub BagInPack()
var tbag='0x0E76'                           ; тип сумок
  uo.findtype('tbag',"-1","backpack")
  WHILE uo.findcount() > 0
    uo.emptycontainer(800,'finditem',"backpack")
    uo.drophere('finditem')
    uo.findtype('tbag',"-1","backpack")
    Wait(100)
  WEND
end sub


но когда я его запускаю он начинает выкидывать все подряд и из этой сумки и из пака, и затем уже и эту сумку. Как поправить дело?

_________________
Иногда шаг вперед являеться результатом пинка в зад.


Top
   
PostPosted: 2005-06-21 08:01:51 
Offline
Expert!
User avatar

Joined: 2004-07-04 00:14:58
Posts: 1284
Azrael wrote:
я написал следующий скрипт
Code:
sub BagInPack()
var tbag='0x0E76'                           ; тип сумок
var idBag
  uo.findtype('tbag',"-1","backpack")
  WHILE uo.findcount() > 0
idBag = UO.GetSerial('finditem')
uo.useobject(idBag)
CheckLag()
uo.findtype('-1','-1',idBag)
WHILE uo.findcount() > 0
  UO.MoveItem('finditem',-1,'backpack')
  CheckLag()
  wait(800)
  uo.findtype('-1','-1',idBag)
wend
    uo.drophere(idBag)
    uo.findtype('tbag',"-1","backpack")
    Wait(100)
  WEND
end sub
что то в таком стиле... для корректной работы обработать напильником ;)


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