Yoko

All sides of Injection
It is currently 2025-10-29 13:03:52

All times are UTC+02:00




Post new topic  Reply to topic  [ 6 posts ] 
Author Message
 Post subject: Empter
PostPosted: 2008-03-20 18:35:05 
Offline

Joined: 2008-03-20 18:09:07
Posts: 10
Помогите переделать скрипт, чтобы мешки он складывал не в коробку, а выбрасывал их на землю. Спасибо! :)

Code:
sub Devastate()

;------------------------------------------------------------------------------
   Var Bags   =  '0x40A8AEE3'; Коробка для мешков
   Var Trash  =  '0x40B9F4E3'; Мешок для мусора
   Var Bag    =  '0x0E76'; Тип мешка
   Var BagSerial
;------------------------------------------------------------------------------

   Repeat
     UO.FindType(Bag,-1,'backpack')
     BagSerial = UO.GetSerial( 'finditem' )
     UO.UseObject(BagSerial)
     Wait(500)
     Repeat   
      UO.FindType(-1,-1,BagSerial)
      UO.MoveItem('finditem',0,Trash)
      Wait(200)
     Until not UO.GetQuantity('finditem')
     Wait(200)
     UO.MoveItem(BagSerial,0,Bags)
   Until not UO.Count(Bag)
End sub


Top
   
 Post subject:
PostPosted: 2008-03-20 18:42:40 
Offline

Joined: 2008-03-03 09:19:21
Posts: 71
Location: SPB
UO.MoveItem(BagSerial,0,Bags)
Замени на
UO.drop('1',str(UO.GETX()),str(UO.GETY()),str(UO.GETZ()),BagSerial)


Top
   
 Post subject:
PostPosted: 2008-03-20 19:08:01 
Offline

Joined: 2008-03-20 18:09:07
Posts: 10
Yura wrote:
UO.MoveItem(BagSerial,0,Bags)
Замени на
UO.drop('1',str(UO.GETX()),str(UO.GETY()),str(UO.GETZ()),BagSerial)


Благодарю! :lol:


Top
   
 Post subject:
PostPosted: 2008-03-22 13:58:54 
Offline

Joined: 2008-03-20 18:09:07
Posts: 10
Помогите еще раз, пожалуйста.
Дело в том, что скрипт бывает не всегда все достает с мешка и выкидывает мешок с вещами. Можно как нибуть сделать, чтобы он всегда все вытаскивал с мешков? :)


Top
   
 Post subject:
PostPosted: 2008-03-22 14:30:31 
Offline

Joined: 2008-03-03 09:19:21
Posts: 71
Location: SPB
Until not UO.GetQuantity('finditem') -> Until UO.FindCount() == 0 попробуй


Top
   
 Post subject:
PostPosted: 2008-03-22 14:38:15 
Offline

Joined: 2008-03-20 18:09:07
Posts: 10
Yura wrote:
Until not UO.GetQuantity('finditem') -> Until UO.FindCount() == 0 попробуй


Вроде все окей. Спасибо еще раз. С меня пиво! :lol:


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

All times are UTC+02:00


Who is online

Users browsing this forum: Bing [Bot] and 2 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:  
cron
Powered by phpBB® Forum Software © phpBB Limited