Yoko

All sides of Injection
It is currently 2025-11-05 19:09:26

All times are UTC+02:00




Post new topic  Reply to topic  [ 5 posts ] 
Author Message
PostPosted: 2010-01-08 18:38:38 
Offline
User avatar

Joined: 2006-08-06 10:23:20
Posts: 117
... наполняет сумочки до определённого веса (не кол-ва итемов)?))

Игрокам ДРВ будет понятно, для чего это..
Тоесть у меня куча свитков написанных, все они воедино не делаюца..
Для продажи на столб удобнее расфасовывать по сумкам..


Top
   
 Post subject:
PostPosted: 2010-01-08 18:43:53 
Offline

Joined: 2005-04-19 18:00:29
Posts: 2259
Location: Московская область
Накладывай скриптом на переклад от купера в сумку в своём бекпеке, с проверкой на uo.Weight > MaxWeight.


Top
   
 Post subject:
PostPosted: 2010-01-08 18:44:53 
Offline
User avatar

Joined: 2006-08-06 10:23:20
Posts: 117
ха, точно)))))))) Сенкс :lol:


Top
   
 Post subject:
PostPosted: 2010-01-08 20:22:11 
Offline
User avatar

Joined: 2009-05-28 09:58:28
Posts: 2802
Location: Иваново
почему заранее не просчитать сколько вешать в граммах и не законстантить в количестве? :roll:

_________________
Image
YokoInjection CodeSweeper
Ошибка "Unhandled exception in parser"
Стрелялка для олдов.


Top
   
PostPosted: 2010-01-09 11:03:53 
Offline
Expert!
User avatar

Joined: 2005-09-14 15:31:58
Posts: 2152
Location: Latvia
TarantuL wrote:
... наполняет сумочки до определённого веса (не кол-ва итемов)?))

Игрокам ДРВ будет понятно, для чего это..
Тоесть у меня куча свитков написанных, все они воедино не делаюца..
Для продажи на столб удобнее расфасовывать по сумкам..

Я для этого сделал скрипт чтоб раскидать в сумках по 1к паралы, фсы, идт
Code:
sub main()
   var count=1000
   var type, color, n=0, q
   uo.addobject('item')
   while uo.targeting()
      wait(500)
   wend
   type=uo.getgraphic('item')
   color=uo.getcolor('item')
   uo.addobject('bag1')
   while uo.targeting()
      wait(500)
   wend   
   uo.addobject('bag2')
   while uo.targeting()
      wait(500)
   wend   
   repeat
      uo.findtype(type,color,'bag1')
      if uo.findcount() then
         uo.moveitem('finditem',0,'bag2')
         checklag()
         wait(600)
         n=n+uo.getquantity('finditem')
         if n==count then
            uo.print('done')
            return
         endif
         if n>count then
            q=n-count
            uo.moveitem('finditem',str(q),'bag1')
            uo.print('done')
            return
         endif
      endif
   until not uo.findcount()
   uo.print('exit')
endsub
sub checklag()
   repeat
      UO.DeleteJournal()
      UO.Click('backpack')
   until backpack()==1
endsub
sub backpack()
   var n
   for n=0 to 200
      if uo.injournal('a backpack') then
         return 1
      endif
      wait(200)
   next
endsub

_________________
Уроки языка Injection
Основные команды языка Injection
Yoko Injection Code Sweeper
Drw (2009) скрипты
2017 Начал играть на Uorpg.net


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

All times are UTC+02:00


Who is online

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