Yoko

All sides of Injection
It is currently 2026-01-16 21:20:46

All times are UTC+02:00




Post new topic  Reply to topic  [ 4 posts ] 
Author Message
PostPosted: 2009-07-17 15:08:54 
Offline

Joined: 2009-07-17 15:06:30
Posts: 5
Товарищи эксперты, написал скрипт на магию, но через примерно 30 минут он парсит, с чем может быть связано, спс.

Code:
sub magery()

   var cont='0x4055B219'
   var bottle='0x0F0E'
   var cbottle='0x09DF'
   
   uo.useobject(cont)
   wait(1000)
   uo.useobject('backpack')
   wait(1000)
   while not uo.dead()
      while uo.mana>=10
         loot()
         uo.cast('Magic Arrow','self')
         wait(1550)
         checklag()
      wend
      uo.findtype(bottle,cbottle,'backpack')
      uo.useobject('finditem')
      wait(500)
   wend
   
endsub

Sub loot()
   
   var NS='0x0F88'
   var BB='0x0F7A'
   var bottle='0x0F0E'
   var cbottle='0x09DF'
   var cregs='200'
   var cbot='50'
   var cont='0x4055B219'
   
   uo.findtype(NS,'-1','backpack')
   if not uo.findcount() then
      uo.findtype(NS,'-1',cont)
      uo.moveitem('finditem',cregs,'backpack')
      wait(1000)
   endif
   
   uo.findtype(BB,'-1','backpack')
   if not uo.findcount() then
      uo.findtype(BB,'-1',cont)
      uo.moveitem('finditem',cregs,'backpack')
      wait(1000)
   endif

   uo.findtype(bottle,cbottle,'backpack')
   if not uo.findcount() then
      uo.findtype(bottle,cbottle,cont)
      uo.moveitem('finditem',cbot,'backpack')
      wait(1000)
      uo.findtype(bottle,'0x0000','backpack')
      uo.moveitem('finditem','all',cont)
      wait(1000)
   endif
   
endsub

Sub checklag()

  uo.click('backpack')
  repeat
    wait(50)
  until uo.injournal("backpack")
  uo.deletejournal()
 
end sub


Last edited by Hranitel on 2009-07-18 01:18:16, edited 1 time in total.

Top
   
PostPosted: 2009-07-17 16:47:10 
Offline
Expert!
User avatar

Joined: 2006-02-07 08:51:40
Posts: 1348
Location: г. Старый Оскол
Hranitel wrote:
Товарищи эксперты, написал скрипт на магию, но через примерно 30 минут он парсит, с чем может быть связано, спс.

Попробуй loot() делать реже, например при кол-ве регов < 15. Скорее всего из-за этого и парсит. Получается что он каждые 1.5 секунды добирает и выкидывает, естественно это его с ума сводит. :lol:


Top
   
 Post subject:
PostPosted: 2009-07-18 01:19:46 
Offline

Joined: 2009-07-17 15:06:30
Posts: 5
переделал, не помогло :(
просто голову сломал уже :?

Code:
sub mageryMA()

   var NS='0x0F88'
   var BB='0x0F7A'
   var bottle='0x0F0E'
   var cbottle='0x09DF'
   var cregs='1000'
   var cbot='99'
   var cont='0x4055B219'
   
   uo.useobject(cont)
   wait(1000)
   uo.useobject('backpack')
   wait(1000)
   while not uo.dead()
      while uo.mana>=10
         uo.findtype(NS,'-1','backpack')
         if uo.getquantity('finditem')<10 then
            uo.findtype(NS,'-1',cont)
            uo.moveitem('finditem',cregs,'backpack')
            wait(1000)
         endif
         uo.findtype(BB,'-1','backpack')
         if uo.getquantity('finditem')<10 then
            uo.findtype(BB,'-1',cont)
            uo.moveitem('finditem',cregs,'backpack')
            wait(1000)
         endif
         uo.findtype(bottle,cbottle,'backpack')
         if uo.getquantity('finditem')<1 then
            uo.findtype(bottle,cbottle,cont)
            uo.moveitem('finditem',cbot,'backpack')
            wait(1000)
            uo.findtype(bottle,'0x0000','backpack')
            uo.moveitem('finditem','all',cont)
            wait(1000)
         endif
         uo.cast('Magic Arrow','self')
         wait(1550)
         checklag()
      wend
      uo.findtype(bottle,cbottle,'backpack')
      uo.useobject('finditem')
      wait(500)
   wend
   
endsub

Sub checklag()

  uo.click('backpack')
  repeat
    wait(50)
  until uo.injournal("backpack")
  uo.deletejournal()
 
end sub


Top
   
 Post subject:
PostPosted: 2009-07-18 07:58:02 
Offline
Expert!
User avatar

Joined: 2006-02-07 08:51:40
Posts: 1348
Location: г. Старый Оскол
Hranitel wrote:
переделал, не помогло :(
просто голову сломал уже :?

Слишком глобально переделал, получилось по-сути тоже самое. Верни модуль loot() и вставь его допустим после того как откастовал, т.е. после того как выпил манку, а не перед каждым кастом и измени его (модуль loot()) так, что-бы он брал и выкидывал при < 15.


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