Yoko

All sides of Injection
It is currently 2025-12-22 01:24:43

All times are UTC+02:00




Post new topic  Reply to topic  [ 1 post ] 
Author Message
PostPosted: 2007-08-04 09:21:23 
Offline

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

Собираем стоя на месте.

Code:
sub Get_Reg(reg,prereg)
  uo.Set('finddistance','15')
  uo.FindType(reg,'-1','ground')
  if uo.FindCount() then
    while uo.FindCount()
  #  WalkN(uo.GetX('finditem'),uo.GetY('finditem'),'finditem')
      uo.UseObject('finditem')
      wait(5000)
      uo.Print('We have '+STR(reg)+' regs.')
      if uo.InJournal('Прежде чем') then
        uo.FindType(prereg,'-1','backpack')
        while uo.FIndCount()
          uo.UseObject('finditem')
          wait(500)
          uo.FindType(prereg,'-1','backpack')
        wend
        uo.DeleteJournal()
      end if
      uo.FindType(reg,'-1','ground')     
    wend
  end if
  uo.FindType(prereg,'-1','backpack')
  while uo.FIndCount()
    uo.UseObject('finditem')
    wait(500)
    uo.FindType(prereg,'-1','backpack')
  wend
end sub
 
sub Get_MR()
  Get_Reg('0x18DF','0x18DD')
end sub



Code:
sub Get_Reg(reg,prereg)
  uo.Set('finddistance','15')
  uo.FindType(reg,'-1','ground')
  if uo.FindCount() then
    while uo.FindCount()
      WalkN(uo.GetX('finditem'),uo.GetY('finditem'),'finditem')
      uo.UseObject('finditem')
      wait(5000)
      uo.Print('We have '+STR(reg)+' regs.')
      if uo.InJournal('Прежде чем') then
        uo.FindType(prereg,'-1','backpack')
        while uo.FIndCount()
          uo.UseObject('finditem')
          wait(500)
          uo.FindType(prereg,'-1','backpack')
        wend
        uo.DeleteJournal()
      end if
      uo.FindType(reg,'-1','ground')     
    wend
  end if
  uo.FindType(prereg,'-1','backpack')
  while uo.FIndCount()
    uo.UseObject('finditem')
    wait(500)
    uo.FindType(prereg,'-1','backpack')
  wend
end sub
 
sub Get_MR()
  Get_Reg('0x18DF','0x18DD')
end sub


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

All times are UTC+02:00


Who is online

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