Yoko

All sides of Injection
It is currently 2025-10-19 18:23:09

All times are UTC+02:00




Post new topic  Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Лут с сумки !!!
PostPosted: 2009-02-27 03:12:08 
Offline
User avatar

Joined: 2007-10-09 20:08:53
Posts: 8
Нужен скрипт чтоб лутил с сумки которая лежит на полу 1 вещь в кол-ве 100 штук !!! Плз помогите !!!


Top
   
PostPosted: 2009-02-27 07:12:23 
Offline
Expert!
User avatar

Joined: 2006-02-07 08:51:40
Posts: 1348
Location: г. Старый Оскол
Orkish wrote:
Нужен скрипт чтоб лутил с сумки которая лежит на полу 1 вещь в кол-ве 100 штук !!! Плз помогите !!!


Code:
sub Take100()
   VAR tip = '0x0000' #Тип предмета
   VAR sumka = '0x0000' #Тип сумки
   VAR kolvo = '100' #Кол-во предметов для взятия
   VAR ser
   UO.Set('finddistance', '2')
   UO.FindType(sumka, '-1', 'ground')
   If UO.FindCount() > 0 then
      ser = UO.GetSerial('finditem')
   else
      UO.Print('Нет ничего!')
   endif

   UO.UseObject(ser)
   wait(500)
   UO.FindType(tip, '-1', ser)
   If UO.FindCount() > 0 then
      UO.MoveItem('finditem', kolvo, 'backpack')
      wait(1000)
   else
      UO.Print('Нет ничего!')
   endif
   UO.Set('finddistance', '16')
end sub


Last edited by Kynep on 2009-03-02 17:30:18, edited 2 times in total.

Top
   
PostPosted: 2009-03-02 16:57:10 
Offline
User avatar

Joined: 2007-10-09 20:08:53
Posts: 8
Kynep wrote:
Orkish wrote:
Нужен скрипт чтоб лутил с сумки которая лежит на полу 1 вещь в кол-ве 100 штук !!! Плз помогите !!!


Code:
sub Take100()
   VAR tip = '0x0000' #Тип предмета
   VAR sumka = '0x00000000' #ID сумки
   VAR kolvo = '100' #Кол-во предметов для взятия

   UO.UseObject(sumka)
   wait(500)
   UO.FindType(tip, '-1', sumka)
   If UO.FindCount() > 0 then
      UO.MoveItem('finditem', kolvo, 'backpack')
      wait(1000)
   else
      UO.Print('Нет ничего!')
   endif
end sub





а если сумка напостой меняет айди но все время появляется под тобой ???


Top
   
 Post subject:
PostPosted: 2009-03-02 17:13:30 
Offline
Expert!
User avatar

Joined: 2006-02-07 08:51:40
Posts: 1348
Location: г. Старый Оскол
Поправил, пробуй.


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

All times are UTC+02:00


Who is online

Users browsing this forum: No registered users 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