Yoko

All sides of Injection
It is currently 2026-01-19 08:27:55

All times are UTC+02:00




Post new topic  Reply to topic  [ 2 posts ] 
Author Message
PostPosted: 2007-12-12 19:00:15 
Offline

Joined: 2007-07-20 18:57:45
Posts: 36
Юзал поиск норм скритов ненашел вот этот :
Code:
sub Nitki() 
   VAR Spool='0x0FA0', Hlopok='0x0DF9', Cont='0x416F3EB9', Stanok='0x405274BC',i, Ammount=10

   While NOT UO.Dead()
   UO.FindType(Hlopok,-1,Cont)
   If UO.FindCount() then
   UO.MoveItem('finditem',STR(Ammount),'backpack')
   Endif
      wait(1000)
      For i=1 to Ammount
         checkLag()
   UO.WaitTargetObject(Stanok)
    wait(100)
         UO.UseType(Hlopok)
         wait(3000)
               
      Next
      UO.SetReceivingContainer(Cont)
      UO.FindType(Spool,-1,'backpack')
      UO.Grab('all','finditem')
     # UO.UnSetReceivingContainer(Cont)
   Wend

end sub

sub checklag()
IF UO.Waiting() > 0 THEN
UO.Exec("canceltarget")
END IF
UO.DeleteJournal()
UO.Click('backpack')
REPEAT
WAIT(50)
UNTIL UO.InJournal('backpack')
end sub


Тока берет хлопок 1 раз переделывает нитки в сундук , а еще хлопка не берет , и пишет No Item Found
[/code]


Top
   
 Post subject:
PostPosted: 2007-12-15 08:52:59 
Offline
User avatar

Joined: 2007-11-01 19:09:30
Posts: 287
Location: Moscow
попробуй чтонить типа этого...

Code:
sub Nitki()
  VAR Spool='0x0FA0', Hlopok='0x0DF9', Cont='0x416F3EB9', Stanok='0x405274BC',i, Ammount=10,found

  repeat
    if not cont=='ground' then
      uo.useobject(cont)
      wait(1000)
      checklag()
      if not uo.getserial('lastobject')==cont then
        uo.print('нет доступа к контейнеру')
        return
      endif
    endif

    UO.FindType(Hlopok,-1,Cont)
    found=UO.FindCount('finditem')
    If UO.FindCount('finditem')>0 then
      UO.MoveItem('finditem',Ammount,'backpack')
      wait(1000)
      while uo.count(hlopok)>0
        checkLag()
        UO.WaitTargetObject(Stanok)
        wait(100)
        UO.UseType(Hlopok)
        wait(3000)
      wend
      repeat
        UO.FindType(Spool,-1,'backpack')
        if uo.findcount('finditem')>0 then
          UO.moveitem('finditem',0,cont)
          wait(1000)
          checklag()
        endif
      until uo.findcount('finditem')==0
    else
      uo.print('Хлопок в сундуке закончился :(')
    endif
  until uo.dead() or found==0
endsub

_________________
**Выставляем отступы в скриптах*** ©Destruction
Feel the Power of Dark Side


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 2 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