Yoko

All sides of Injection
It is currently 2025-12-22 01:25:35

All times are UTC+02:00




Post new topic  Reply to topic  [ 7 posts ] 
Author Message
PostPosted: 2007-08-02 19:34:03 
Offline

Joined: 2005-04-19 18:00:29
Posts: 2259
Location: Московская область
В руках дагер.

Code:
sub Skinning()
var pile='0x0DF8'
var leather='0x1078'
var cotton='0x0C4F'
var k
uo.Set('finddistance','15')
#Scripts Writer#Antares#
#02/08/07#
DIM sheep[2]

sheep[0]=0x00CF
sheep[1]=0x00DF

  while uo.Weight < 620
   
    uo.FindType(sheep[0],'-1','ground')     
    if uo.FindCount() then
      WalkN(uo.GetX('finditem'),uo.GetY('finditem'),uo.GetSerial('finditem'))
      k=0
      if uo.GetDistance('finditem') <= 2 then
        uo.Click('finditem')
        wait(100)
        repeat
          wait(100)
          k=k+1
        until uo.InJournal('Sheep') || k>50
        uo.WaitTargetObject('finditem')
        uo.UseObject(uo.GetSerial(uo.ObjAtLayer('Rhand')))
        wait(500)
        if uo.InJournal('Вы положили') then
          uo.Print('You get a pile of wool. There are '+STR(uo.Count(pile))+ ' piles of wool.')
        end if         
        k=0
        uo.DeleteJournal()
        uo.Click('finditem')
        wait(100)
        repeat
          wait(100)
          k=k+1
        until uo.InJournal('Lamb') || k>50       
      end if
    else
      uo.Print('There are no sheep. Start to kill lambs.')
      uo.FindType(sheep[1],'-1','ground')
      if uo.FindCount() then
        WalkN(uo.GetX('finditem'),uo.GetY('finditem'),uo.GetSerial('finditem'))
        k=0
        uo.DeleteJournal()
        if uo.GetDistance('finditem') <= 1 then
          uo.Click('finditem')
          wait(100)
          repeat
            wait(100)
            k=k+1
          until uo.InJournal('Lamb') || k>50 
          if k<50 then
            uo.WarMode(true)
            uo.Attack('finditem')
            uo.DeleteJournal()
            k=0
            wait(100)
            repeat
              wait(100)
              k=k+1
            until uo.InJournal('Тело Lamb') || k>100
            if uo.InJournal('Тело Lamb') && k<100 then
              uo.WarMode(false)
              uo.WaitTargetObject('lastcorpse')
              uo.UseObject(uo.GetSerial(uo.ObjAtLayer('Rhand')))
              uo.DeleteJournal()
              k=0
              wait(100)   
              repeat
                wait(100)
                k=k+1
              until uo.InJournal('You carve') || k>50
              uo.Click('lastcorpse')
              wait(250)
              if uo.InJournal('2 items') || uo.InJournal('3 items') then
                if uo.InJournal('2 items') then
                  wait(500)
                  uo.FindType(leather,'-1','lastcorpse')
                  if uo.FindCount() then
                    uo.moveitem('finditem')
                    wait(500)
                    uo.Print('There are '+STR(uo.Count(leather))+' leather in a backpack.')
                  end if
                else
                  uo.FindType(cotton,'-1','lastcorpse')
                  if uo.FindCount() then
                    uo.moveitem('finditem')
                    wait(500)
                    uo.Print('There are '+STR(uo.Count(cotton))+' cotton in a backpack.')
                  end if
                end if
              end if
            else
              uo.Print('There are no body. 0_0')
            end if
          end if
        end if
      end if
    end if
    wait(1000)
  wend
 
end sub


Top
   
 Post subject:
PostPosted: 2007-08-03 00:14:40 
Offline
User avatar

Joined: 2007-02-21 20:15:57
Posts: 479
А сам на этом скрипте наверно не качаешся =)
Себе и ресалку с ходилкой наверно добавил =)

_________________
Шард Антарес
Ururu


Top
   
 Post subject:
PostPosted: 2007-08-03 08:53:35 
Offline

Joined: 2005-04-19 18:00:29
Posts: 2259
Location: Московская область
Ходилка есть в этом скрипте, WalkN(x,y,Target). На нём и качаюсь.

Ресалку не писал т.к. слежу постоянно.


Top
   
 Post subject:
PostPosted: 2007-08-03 22:37:23 
Offline
User avatar

Joined: 2007-02-21 20:15:57
Posts: 479
Я немного про другую ходилку =) для ресалки. Там и рекол из банка по руне к дому и загрузка\разгрузка.

Нет желания воплотить? =)

_________________
Шард Антарес

Ururu


Top
   
 Post subject:
PostPosted: 2007-08-03 23:25:11 
Offline

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

п.с. Если у тебя есть желание проспонсировать меня 2мя нуби рунками, реагентами и нуби ножиком то мы можем это обсудить.


Top
   
 Post subject:
PostPosted: 2007-08-04 00:11:55 
Offline
User avatar

Joined: 2007-02-21 20:15:57
Posts: 479
реги ножницы и ножи не проблема, рекол по рункам в банке (с дозарядкой), складирование в банке до определенного веса, а после перелет до дома и перетаскивание, при резке выгрузка в банк при наборе определенного веса, либо при наборе Нного кол-ва хлопка :roll:

_________________
Шард Антарес

Ururu


Top
   
 Post subject:
PostPosted: 2007-08-04 09:05:12 
Offline

Joined: 2005-04-19 18:00:29
Posts: 2259
Location: Московская область
Напиши мне в асю. Обсудим


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

All times are UTC+02:00


Who is online

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