Yoko

All sides of Injection
It is currently 2025-10-15 15:54:44

All times are UTC+02:00




Post new topic  Reply to topic  [ 3 posts ] 
Author Message
PostPosted: 2010-04-08 01:00:20 
Offline

Joined: 2010-04-08 00:56:12
Posts: 2
простой скрипт на выкидывание под себя мешков из бек пака .. написал . пустые выкидывает на ура . как только открывает мешок в котором что-то лежит не выкидывает и пишет дисконект . что не так?


sub GroundDrop()
;------------------------------------------------------------------------------
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.drop('1',str(UO.GETX()),str(UO.GETY()),str(UO.GETZ()),BagSerial)
Until not UO.Count(Bag)
uo.say('End!')
End sub


Top
   
PostPosted: 2010-04-08 10:32:53 
Offline

Joined: 2005-04-19 18:00:29
Posts: 2259
Location: Московская область
По логике скрипта, если в мешке что-то есть, то он пытается сначало всё содержимое выбросить в мешок с мусором, а затем уже сам мешок выкидывает.

Code:
sub GroundDrop()
;------------------------------------------------------------------------------
Var Bags = '0x40A8AEE3'; Коробка для мешков
Var Bag = '0x0E76'; Тип мешка
Var BagSerial
;------------------------------------------------------------------------------
Repeat
UO.FindType(Bag,-1,'backpack')
BagSerial = UO.GetSerial( 'finditem' )
Wait(200)
UO.drop('1',str(UO.GETX()),str(UO.GETY()),str(UO.GETZ()),BagSerial)
Until not UO.Count(Bag)
uo.say('End!')
End sub


Top
   
PostPosted: 2010-04-08 11:13:31 
Offline

Joined: 2010-04-08 00:56:12
Posts: 2
огромное спасибо !.)


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